Chengdu Ebyte Electronic Technology Co.,Ltd.
Back
Inquire
Parameter
【Example】
Settings: Set the frame ID length to 4, position 2
Send: AT+RANDOM=4,2 \r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+ RANDOM?\r\n
Response: <CR><LF>+OK<CR><LF> AT+RANDOM=4,2 <CR><LF>
5.12 Setting/Querying Identification Parameters
Command
Function
Setting
Back
Inquire
Parameter
【Example】
Settings: enable frame ID, frame information
Send: AT+MSG=1,1 \r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+ MSG?\r\n
Response: <CR><LF>+OK<CR><LF> AT+MSG=1,1<CR><LF>
5.13 Set/query transmission direction
Command
Function
Setting
Back
Inquire
Parameter
【Example】
Setting: Only convert serial port data to can bus
Send: AT+DIRECTION=UART-CAN\r\n
Response: <CR><LF>+OK<CR><LF>
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
<CR><LF>+OK<CR><LF>
AT+RANDOM?
idLength (Frame header ID length ),idLocation (Frame ID position )。
Data range: length range 0-4 position 0-7
MSG
Set/query frame ID frame information enable
AT+MSG =flag_id, flag_type<CR><LF>
<CR><LF>+OK<CR><LF>
AT+MSG?
flag_id (frame header data), tail (frame tail data). Data range 0~0xFF
DIRECTION
Set/query frame ID frame information enable
AT+DIRECTION= parameter<CR><LF>
<CR><LF>+OK<CR><LF>
AT+ DIRECTION?
parameter (direction parameter), UART-CAN (serial port to can).
CAN-UART (CAN to serial port) BOTHWAY (two-way)
ECAN-401 User Manual
28