Ebyte ECAN-401S User Manual page 21

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
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
Serial
frame
header
Frame
length
Frame
informatio
n
Frame ID
Data field
Serial end
of frame
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
Frame
informat
ion
Frame
ID
Data
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
User
configuratio
n
Frame
length
Frame
information
Frame ID1
Frame ID0
Data 0
Data 1
...
Data 6
Data 7
Data 8
User
configuratio
n
Frame
information
Frame ID1
Frame ID0
Data 1
CAN Message
Frame
informati
Frame information
on
Frame
Frame
ID
Frame
Data 1
Data 2
Data 3
Data 4
Data
field
Data 5
Data 6
Data 7
Data 8
Serial frame
Serial
frame
User configuration
header
Frame
Frame length
length
Frame
Frame information
information
Frame ID
Frame ID1
ECAN-401S User Manual
ID1
ID0
21

Advertisement

Table of Contents
loading

Table of Contents