ZLG CANFDNET-400U Product User Manual page 31

Rs232/485/422-can fd-bus intelligent protocol converter
Hide thumbs Also See for CANFDNET-400U:
Table of Contents

Advertisement

CANFDNET-400U
High-performance Four-channel CANFD Bus-to-Ethernet Converter User Manual
Table 4.15 Example of converting serial frames to CANFD messages (transparent conversion with flags)
Serial frame
Address 0
0x00
Address 1
0x01
Address 2
0x02
Address 3
0x03
Address 4
0x04
Data 5
0x05
Data 6
0x06
Address 7
0x07
Address...
Address 64
0x40
Address 65
0x41
Address 66
0x42
Address 67
0x43
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
Serial frame
Address 0
Address 1
...
flags)
0x00
0x01
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
CANFD
message 1
Frame
0xBF
information
Frame ID 3
0x00
Frame ID 2
0x02
Frame ID1
0x03
Frame ID0
0x04
0x00
0x01
0x05
0x06
Data field
...
0x40
0x41
0x42
CAN message (extended
frame)
Frame
information
Frame ID
28
User Manual
CANFD
message 2
0xB3
0x00
0x02
0x03
0x04
0x43
0x44
0x45
0x88
0x00
0x12
0x34

Advertisement

Table of Contents
loading

Table of Contents