Chengdu Ebyte Electronic Technology Co.,Ltd.
ECAN-401 User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
27
5.9 Set/query the filtering mode of the CAN bus
Command
CANLT
Function
Set/query the filtering method of CAN bus
Setting
AT+CANLT =mode<CR><LF>
Back
<CR><LF>+OK<CR><LF>
Inquire
AT+CANLT?
Parameter
mode (Filter mode ):OFF(Receive all functions), ETF(Only receive
extended frames ),
NTF(Only receive standard frames ), USER (customize )
【
Example
】
set up:
Send: AT+MODE=MODBUS\r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+ MODE?\r\n
Response: <CR><LF>+OK<CR><LF>AT+MODE=MODBUS <CR><LF>
5.10 Set/query frame header and frame end data
Command
UDMHT
Function
Set/query frame header and end data in custom mode
Setting
AT+UDMHT=head,tail<CR><LF>
Back
<CR><LF>+OK<CR><LF>
Inquire
AT+ UDMHT?
Parameter
head (Header data )
,
tail (End-of-frame data ). data range 0~0xFF
【
Example
】
Settings: Set the frame header data to FF and the frame end data to 55
Send: AT+UDMHT=FF,55 \r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+UDMHT?\r\n
Response: <CR><LF>+OK<CR><LF> AT+UDMHT=FF,55<CR><LF>
5.11 Setting/Querying Identification Parameters
Command
RANDOM
Function
Set/query query identification parameters
Setting
AT+RANDOM = idLength, idLocation <CR><LF>