Chengdu Ebyte Electronic Technology Co.,Ltd.
ECAN-401 User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
13
Convert serial frame into CAN message (transparent mode)
2. CAN message to serial frame
During the conversion, all the data in the CAN message data field are sequentially converted into the serial frame. If you
check "Enable Frame Information" during configuration, the module will directly fill the "Frame Information" byte of the
CAN message into the serial frame. If you check "Enable Frame ID", then all the "Frame ID" bytes of the CAN message
are also filled into the serial frame.
Note: If you want to receive CAN frame information or frame ID on the serial interface, you need to enable the
corresponding function. Only then can you receive the corresponding information.
CAN Message
Serial frame
Frame
information
User
configuration
Frame
information
User configuration
Frame ID
User
configuration
Frame ID
User configuration
User
configuration
User configuration
Data field
data 1
0
data 1
data 2
1
data 2
data 3
2
data 3
data 4
3
data 4
data 5
4
data 5
data 6
5
data 6
data 7
6
data 7
data 8
7
data 8
Conversion example:
The CAN message "frame information" is enabled and "frame ID" is enabled in this example configuration. Frame ID1:
0x123, frame type: standard frame, frame type: data frame. Conversion direction: two-way. The data is 0x12, 0x34, 0x56,
0x78, 0xab, 0xcd, 0xef, 0xff. The data before and after conversion is as follows:
CAN Message
Serial frame
Frame
informati
on
0x08
0x08
Frame ID
0x01
0x01
0x23
0x23
Data field
0x12
0x12
0x34
0x34
0x56
0x56
0x78
0x78