@@ -30,7 +30,9 @@ six parts. The start and the stop byte for the frame, the timestamp, DLC,
3030arbitration ID and the payload. The payload has a variable length of between
31310 and 8 bytes, the other parts are fixed. Both, the timestamp and the
3232arbitration ID will be interpreted as 4 byte unsigned integers. The DLC is
33- also an unsigned integer with a length of 1 byte.
33+ also an unsigned integer with a length of 1 byte. Non-extended (11-bit)
34+ identifiers are encoded by adding 0x20000000 to the 11-bit ID. For example, an
35+ 11-bit CAN ID of 0x123 is encoded with an arbitration ID of 0x20000123.
3436
3537Serial frame format
3638^^^^^^^^^^^^^^^^^^^
@@ -102,3 +104,21 @@ Examples of serial frames
102104+================+=====================+======+=====================+==============+
103105| 0xAA | 0x66 0x73 0x00 0x00 | 0x00 | 0x01 0x00 0x00 0x00 | 0xBB |
104106+----------------+---------------------+------+---------------------+--------------+
107+
108+ .. rubric :: CAN message with 0 byte payload with an 11-bit CAN ID
109+
110+ +----------------+---------+
111+ | CAN message |
112+ +----------------+---------+
113+ | Arbitration ID | Payload |
114+ +================+=========+
115+ | 0x20000001 (1) | None |
116+ +----------------+---------+
117+
118+ +----------------+---------------------+------+---------------------+--------------+
119+ | Serial frame |
120+ +----------------+---------------------+------+---------------------+--------------+
121+ | Start of frame | Timestamp | DLC | Arbitration ID | End of frame |
122+ +================+=====================+======+=====================+==============+
123+ | 0xAA | 0x66 0x73 0x00 0x00 | 0x00 | 0x01 0x00 0x00 0x20 | 0xBB |
124+ +----------------+---------------------+------+---------------------+--------------+
0 commit comments