Chengdu Ebyte Electronic Technology Co.,Ltd.
ECAN-401 User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
19
Frame
information
FF
RTR
EDL
BRS
DLC
(
Data length
)
Frame ID3
X
X
X
ID.28-ID.24
Frame ID2
ID.23-ID.16
Frame ID1
ID.15-ID.8
Frame ID0
ID.7-ID.0
Data 1
Segmen
t mark
Segment type
Segment counter
Data 2
DATE
Data 3
DATE
Data 4
DATE
Data 5
DATE
Data 6
DATE
Data 7
DATE
Data 8
DATE
1.
Convert serial frame to can message
The serial interface adopts the standard Modbus RTU protocol, so the user frame only needs to comply with this protocol.
If the transmitted frame does not conform to the Modbus RTU format, the module will discard the received frame
without converting it.
2. can message to serial frame
For the Modbus protocol data of the CAN bus, there is no need to do cyclic redundancy check (CRC16), the module
receives according to the segmentation protocol, and automatically adds the cyclic redundancy check (CRC16) after
receiving a frame analysis, and converts it into Modbus RTU frame to send To the serial bus. If the received data does not
conform to the segmentation protocol, the group of data will be discarded without conversion.
Modbus RTU
Frame
CAN
Message
CAN
Message 1
CAN Message
x
Address domain
Frame
Information
Frame
Information
Frame
Information
function code
Frame ID3
0x00
0x00
Data field
Frame ID2
0x00
0x00
Frame ID1
0x00
0x00
Frame ID0
Frame ID
(user setting)
Frame ID (user
setting)
CRC field
Data 1
[Use of
Segmented
Protocol]
[Use of
Segmented
Protocol]
Data 2
Address field