HDLC Framer: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Block Docs Category:Stub Docs This is the template for the "Page-per-block Docs". This first section should describe what the block...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Block Docs]] | [[Category:Block Docs]] | ||
HDLC framer which takes in PMT binary blobs and outputs HDLC frames as unpacked bits, with CRC and bit stuffing added. The first sample of the frame is tagged with the tag frame_tag_name and includes a length field for tagged_stream use. | |||
This block outputs one whole frame at a time; if there is not enough output buffer space to fit a frame, it is pushed onto a queue. As a result flowgraphs which only run for a finite number of samples may not receive all frames in the queue, due to the scheduler's granularity. For flowgraphs that stream continuously (anything using a USRP) this should not be an issue. | |||
This block goes with [[HDLC Deframer]] | |||
== Parameters == | == Parameters == | ||
; | ; Frame tag name | ||
: | : The tag to add to the first sample of each frame. | ||
== Example Flowgraph == | == Example Flowgraph == | ||
[[File:Hdlc_demo_fg.png|800px]] | |||
== Source Files == | == Source Files == | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-digital/lib/hdlc_framer_pb_impl.cc hdlc_framer_pb_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-digital/lib/hdlc_framer_pb_impl.h hdlc_framer_pb_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-digital/include/gnuradio/digital/hdlc_framer_pb.h hdlc_framer_pb.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio | : [https://github.com/gnuradio/gnuradio/blob/main/gr-digital/grc/digital_hdlc_framer_pb.block.yml digital_hdlc_framer_pb.block.yml] |
Latest revision as of 07:10, 27 January 2022
HDLC framer which takes in PMT binary blobs and outputs HDLC frames as unpacked bits, with CRC and bit stuffing added. The first sample of the frame is tagged with the tag frame_tag_name and includes a length field for tagged_stream use.
This block outputs one whole frame at a time; if there is not enough output buffer space to fit a frame, it is pushed onto a queue. As a result flowgraphs which only run for a finite number of samples may not receive all frames in the queue, due to the scheduler's granularity. For flowgraphs that stream continuously (anything using a USRP) this should not be an issue.
This block goes with HDLC Deframer
Parameters
- Frame tag name
- The tag to add to the first sample of each frame.
Example Flowgraph
Source Files
- C++ files
- hdlc_framer_pb_impl.cc
- Header files
- hdlc_framer_pb_impl.h
- Public header files
- hdlc_framer_pb.h
- Block definition
- digital_hdlc_framer_pb.block.yml