Chengdu Ebyte Electronic Technology Co.,Ltd.
ECAN-401 User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
21
excluding the end of the serial frame. Frame information is divided into extended frames and standard frames. The
standard frame is fixed as 0x00, and the extended frame is fixed as 0x80, which is different from transparent conversion
and transparent conversion with identification. In custom protocol conversion, regardless of the data length contained in
the data field of each frame How much, the content of the frame information is fixed. When the frame type is a standard
frame (0x00), the last two bytes of the frame type represent the frame ID, with the high order first; when the frame
information is an extended frame (0x80), the last 4 bytes of the frame type represent the frame ID, where High ranking
first.
Note: In the custom protocol conversion, regardless of the data length contained in the data field of each frame, the frame
information content is fixed. It is fixed as standard frame (0x00) or extended frame (0x80). The frame ID needs to
conform to the ID range, otherwise the ID may be wrong.
Serial frame
CAN Message
Serial
frame
header
User
configuratio
n
Frame
informati
on
Frame information
Frame
length
Frame
length
Frame
ID
Frame
ID1
Frame
informatio
n
Frame
information
Frame
ID0
Frame ID
Frame ID1
Data
field
Data 1
Frame ID0
Data 2
Data 0
Data 3
Data 1
Data 4
...
Data 5
Data field
Data 6
Data 6
Data 7
Data 7
Data 8
Data 8
Serial end
of frame
User
configuratio
n
2. Convert CAN message to serial frame
CAN bus message receives a frame and then forwards a frame. The module will convert the data in the CAN message
data field in turn, and at the same time add frame header, frame length, frame information and other data to the serial
frame, which is actually a serial frame Transfer the reverse form of CAN message.
CAN Message
Serial frame
Frame
informat
ion
Frame
information
Serial
frame
header
User configuration
Frame
ID
Frame ID1
Frame
length
Frame length
Frame ID0
Frame
information
Frame information
Data
Data 1
Frame ID
Frame ID1