Ebyte ECAN-401S User Manual page 19

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Frame
information
Frame ID3
Frame ID2
Frame ID1
Frame ID0
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 8
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
Address domain
function code
Data field
CRC field
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
FF
RTR
EDL
X
X
X
Segmen
Segment type
t mark
Message
Information
Frame ID3
Frame ID2
Frame ID1
Frame ID0
Data 1
Data 2
BRS
ID.28-ID.24
ID.23-ID.16
ID.15-ID.8
ID.7-ID.0
Segment counter
DATE
DATE
DATE
DATE
DATE
DATE
DATE
CAN
CAN
Message 1
Frame
Frame
Information
0x00
0x00
0x00
Frame ID
(user setting)
[Use of
Segmented
Protocol]
Address field
ECAN-401S User Manual
DLC(Data length)
CAN Message
x
Frame
Information
0x00
0x00
0x00
Frame ID (user
setting)
[Use of
Segmented
Protocol]
19

Advertisement

Table of Contents
loading

Table of Contents