Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
26
5.7 Setting/Querying CAN Information
Command
CAN
Function
Set CAN interface communication parameters
Setting
AT+CAN =baud,id,mode<CR><LF>
Back
<CR><LF>+OK<CR><LF>
Inquire
AT+CAN?
Parameter
Baud(CANBaud rate ):
6K,10K,20K,50K,100K,120K,125K,150K,200K,250K, 400K, 500K,
600K, 750K, 1000K unit
:
bps
id (Frame ID): 0~7FF(Standard frame ) , 0~1FFFFFFF(Extended frame )
mode:(Frame category )
:
NDTF(Standard frame )
,
EDTF(Extended
frame )
【
Example
】
set up:
Send: AT+CAN=100,70,NDTF\r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+ CAN?\r\n
Response: <CR><LF>+OK<CR><LF> AT+CAN=100,70,NDTF <CR><LF>
5.8 Setting/Querying Module Conversion Mode
Command
MODE
Function
Set/query module conversion mode
Setting
AT+ MODE=mode<CR><LF>
Back
<CR><LF>+OK<CR><LF>
Inquire
AT+MODE?
Parameter
mode (Module working mode ):TRANS(transparent ),
TPRTL(Transparent with logo ), PROTOL(Protocol mode ),
USER(Custom protocol ), MODBUS(MODBUS),
【
Example
】
set up:
Send: AT+CANLT=ETF\r\n
Response: <CR><LF>+OK<CR><LF>
Inquire:
Send: AT+ CANLT?\r\n
Response: <CR><LF>+OK<CR><LF> AT+CANLT=ETF<CR><LF>