Difference between revisions of "Serial/HDLC"
(New page: The following table shows several representation formats: {| class="wikitable" border="2" |+ blah blah blah |- ! header 1 !! Header 2 !! Header 3 |- | row 1, cell 1 | row 1, cell 2 | row ...) |
|||
Line 1: | Line 1: | ||
− | + | {| class="wikitable" style="text-align:center" border="2" | |
− | + | |+Low Level Serial Packet Format | |
− | {| class="wikitable" border="2" | ||
− | |+ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | ! style="border-bottom:none; border-right:none;"| | |
− | + | ! style="border-left:none;"| Octet | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ! style="border-bottom:none; border-right:none;"| | ||
− | ! style="border-left:none;" | ||
! colspan="8" | 0 | ! colspan="8" | 0 | ||
! colspan="8" | 1 | ! colspan="8" | 1 | ||
Line 52: | Line 9: | ||
! colspan="8" | 3 | ! colspan="8" | 3 | ||
|- | |- | ||
− | ! style="border-top: none" | | + | ! style="border-top: none" | Octet |
− | ! | + | ! Bit |
! style="width:2.6%;"| 0 | ! style="width:2.6%;"| 0 | ||
! style="width:2.6%;"| 1 | ! style="width:2.6%;"| 1 | ||
Line 89: | Line 46: | ||
! 0 | ! 0 | ||
! 0 | ! 0 | ||
− | | colspan=" | + | | colspan="8"| HDLC Flag |
− | | colspan=" | + | | colspan="8"| Addr (Ser_Proto) |
− | | colspan=" | + | | colspan="8"| Ctrl (Seq_Num) |
− | | colspan=" | + | | colspan="8"| Protocol (dispatch) |
− | |||
|- | |- | ||
! 4 | ! 4 | ||
! 32 | ! 32 | ||
− | | colspan=" | + | | colspan="32" style="background:#ffd0d0;" | o o o |
− | |||
− | |||
|- | |- | ||
− | ! | + | ! ... |
− | ! | + | ! ... |
− | | colspan=" | + | | colspan="32" style="background:#ffd0d0;" | payload |
− | |||
− | |||
|- | |- | ||
− | ! | + | ! ... |
− | ! | + | ! ... |
− | | colspan="32"| | + | | colspan="32" style="background:#ffd0d0;" | o o o |
|- | |- | ||
− | ! | + | ! ... |
− | ! | + | ! ... |
− | | colspan=" | + | | colspan="16" | CRC |
|- | |- | ||
− | ! | + | ! ... |
− | ! | + | ! ... |
− | | colspan=" | + | | colspan="8" | 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. |
− | : |
Revision as of 03:36, 22 October 2012
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.