Difference between revisions of "Serial/HDLC"

From TinyOS Wiki
Jump to: navigation, search
Line 53: Line 53:
 
! 4
 
! 4
 
! 32
 
! 32
| colspan="32" style="background:#ffd0d0;" | o o o
+
| colspan="8" style="background:#ffd0d0;" | o o o
 
|-
 
|-
 
! ...
 
! ...
 
! ...
 
! ...
| colspan="32" style="background:#ffd0d0;" | payload
+
| colspan="8" style="background:#ffd0d0;" | payload
 
|-
 
|-
 
! ...
 
! ...
 
! ...
 
! ...
| colspan="32" style="background:#ffd0d0;" | o o o
+
| colspan="8" style="background:#ffd0d0;" | o o o
 
|-
 
|-
 
! ...
 
! ...

Revision as of 02:38, 22 October 2012

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.