Custom Protocol Mode - Ebyte ECAN-401 User Manual

Intelligent protocol converter
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Conversion example:
Modbus RTU
function code

4.1.5 Custom protocol mode

It must be a complete serial frame format that conforms to the custom protocol, and it must contain all the serial frames
in the mode configured by the user.
There is content, except for the data field, if the content of other bytes is wrong, this frame will not be sent successfully.
The content of the serial frame: frame header, frame length, frame information, frame ID, data field, frame end.
Note: In this mode, the frame ID and frame type configured by the user are invalid, and the data will be forwarded
according to the format in the serial frame.
1. Convert serial frame to CAN message
The serial frame format must conform to the specified frame format. Because the CAN frame format is based on
messages, the serial frame format is based on byte transmission. Therefore, in order to allow users to use CAN-bus
conveniently, the serial frame format is moved closer to the CAN frame format, and the start and end of a frame are
specified in the serial frame, that is, the "frame head" and "frame end" in the AT command. , Users can configure by
themselves. Frame length refers to the length from the beginning of the frame information to the end of the last data,
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
Serial
Frame
frame
Address
55
field
0F
00
00
Data field
00
04
02
00
00
29
CRC Field
13
Data 3
Data 4
Data 5
Data field
Data 6
Data 7
Data 8
CAN
CAN
Messag
Message
e 1
Frame
Informat
ion
Frame
ID3
Frame
ID3
Frame
ID1
Frame
Frame
ID0
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 8
ECAN-401 User Manual
Data field
CAN
Message
c2
08
02
00
00
00
00
00
00
Frame
ID
ID
81
C2
55
00
0F
00
00
00
00
04
02
20

Advertisement

Table of Contents
loading

Table of Contents