Serial/HDLC

From TinyOS Wiki
Revision as of 02:38, 22 October 2012 by Cire (talk | contribs)
Jump to: navigation, search
Low Level Serial Packet Format
Octet 0 1 2 3
Octet Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 0 HDLC Flag Addr (Ser_Proto) Ctrl (Seq_Num) Protocol (dispatch)
4 32 o o o
... ... payload
... ... o o o
... ... CRC
... ... HDLC Flag


See RFC 1662 for more details.


HDLC Flag 
(framing) 0x7E, HDLC framing byte. Indicates start of packet.
Addr (Ser_Proto) 
HDLC Address byte. Used to indicate low level serial protocol.
Ctrl (Seq_Num)
HDLC Control byte. Used for sequence number.
Protocol (dispatch)
HDLC Protocol byte. Used to indicate payload type.