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