第 30 页 共 60 页
Figure 3.22 Serial frame to CAN frame (transparent
conversion with identification , data greater than 8 bytes)
Conversion instance:
Since the configured CAN frame is an extenExample 1: Assume that the user configures the frame type
of the converted CAN frame as "Extended Frame", the starting address of "Frame ID" in the serial frame is 2
and the length is 3, and the data sent by the serial frame is 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88,
0x99, 0xAA and 0xBB respectively ded frame, the frame ID in the serial frame to CAN frame is 4 bytes. Since
the starting address in the configuration serial frame is 2 and the length is 3, three bytes are taken
continuously from the second byte in the serial frame, which are 0x22, 0x33 and 0x44 respectively in this
example. When the product is converted, these three bytes are sequentially filled into frame ID3, frame ID2
and frame ID1 of the CAN frame, but frame ID0 is filled with 00. The rest of the data in the serial frame is
converted to the data field of the CAN frame without any modification.