CANFDNET-400U
High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
28
User Manual
Table 4.15 Example of converting serial frames to CANFD messages (transparent conversion with flags)
Serial frame
CANFD
message 1
CANFD
message 2
Address 0
0x00
Frame
information
0xBF
0xB3
Address 1
0x01
Frame ID 3
0x00
0x00
Address 2
0x02
Frame ID 2
0x02
0x02
Address 3
0x03
Frame ID1
0x03
0x03
Address 4
0x04
Frame ID0
0x04
0x04
Data 5
0x05
Data field
0x00
0x43
Data 6
0x06
0x01
0x44
Address 7
0x07
0x05
0x45
Address…
…
0x06
Address 64
0x40
…
Address 65
0x41
0x40
Address 66
0x42
0x41
Address 67
0x43
0x42
Address 68
0x44
Address 69
0x45
As shown in Table 4.15, because the CAN type is configured as CANFD and the
frame format is extended frame, the frame ID in the serial frame converted to CANFD
messages is 4 bytes. Because the starting address in the configuration serial frame is 2
and the length is 3, three bytes are taken continuously from the address 2 in the serial
frame, which are 0x02, 0x03, 0x04 in this example. During conversion, these three bytes
are filled into frame ID2, frame ID1, frame ID0 of CAN message in turn, but frame ID3 is
filled with 0x00. The rest of the data in the serial frame will be converted into the data field
of the CANFD message without any modification.
3. Converting CAN messages to serial frames
Assume that the start address of the configured CAN identifier in the serial frame is 2,
the length is 3 (in the case of extended frame), the frame ID of the CAN message is
0x00123456, and the data is 0x00-0x07.Table 4.16 lists the CAN messages and the
results of conversion to serial frames.
Table 4.16 Converting CAN extended frame messages into serial frames (transparent conversion with
flags)
CAN message (extended
frame)
Frame
information
0x88
Serial frame
Frame ID
0x00
Address 0
0x00
0x12
Address 1
0x01
0x34