Page 1
USR-DR404 AT 指令集 USR Cortex-M7 Series Serial to Ethernet Device Server AT Command manual V2.0.0 USR-N510,USR-N520,USR-N540,USR-N580 Build a Smarter IoT world, Your Trustworthy Partner...
AT command set Content 1. Introduction ....................... 4 2. AT Command Setting Approach ..................4 2.1. Network AT command mode .................. 4 2.2. Serial AT command mode ..................6 2.3. AT command error code ..................7 2.4. AT command set .....................8 2.5. AT command details ..................11 2.5.1.
AT command set Introduction This document provides a detailed specification and a comprehensive listing for the whole set of AT commands for the ARM Cortex M7 Series serial to Ethernet converter. This document applies to USR-N510,USR-N520,USR-N540,USR-N580 models. 2. AT Command Setting Approach 2.1.
Page 6
AT command set Check Auto Append Bytes Figure 2 Send AT command Figure 3 Now you can send AT command to the module.If no command is sent within 30 seconds, the module will automatically exit the Network AT command mode. Your TrustWorthy Industrial IoT Partner www.pusr.com...
AT command set 2.2. Serial AT command mode After the device is powered on and starts working, you can send commands through the serial port to set device parameters. The syntax and usage of the AT command are described in details later. The default parameters of the serial port are as follows: Baud rate 115200, None Parity bit, 8 Data bits, 1 Stop bit.
AT command set 3. After receiving ‘a’, the USR module sends ‘+ok’to the device or tool and enters the AT instruction mode 4. After receiving ‘+ok’, the device or tool knows that the USR module has entered AT instruction mode and can send AT commands to it.
AT command set Error code Description ERR1 Invalid command syntax ERR2 Invalid command code ERR3 Invalid operator ERR4 Wrong parameter or missing arguments ERR5 Operation not allowed ERR6 No operation permission 2.4. AT command set Table 4 AT command set Instruction Description General commands...
Page 10
AT command set exceeding maximum sockets NO. AT+SOCKPORTAN Query/set local port of SOCKA of PortN AT+UDPONN Do not filter remote IP or port in UDP mode of PortN Query/set whether to enable UDP multicast in socket A of AT+MULTIENN PortN AT+SOCKSLN Query/set whether to enable short-lived connection in TCP client mode of PortN...
Page 11
AT command set AT+MQTTVER Query/set MQTT version AT+MQTTCID Query/set client ID AT+MQTTSER Query/set Host address and port AT+MQTTLPORT Query/set local port AT+MQTTHEART Query/set keep alive interval AT+MQTTRECTM Query/set MQTT connection timeout AT+MQTTNDTRE Query/set MQTT reconnect period when no data flow in socket AT+MQTTCS Query/set whether to clean session...
AT command set AT+USRCLDTCO Query/set bonding serial ports AT+USRCLDGTO Query/set whether to enable edge computing of PUSR cloud Edge computing commands AT+EDGEEN Query/set whether to enable edge computing gateway System setting commands AT+MID Query/set the module name AT+WEBSOCKPO Query/set WebSocket port NO. AT+WEBPOINT Query/set websocket mapping direction AT+WEBPORT...
AT command set <CR><LF>+OK=<on/off><CR><LF> AT+E=<on/off><CR> <CR><LF>+OK<CR><LF> Parameter on:enable command echo,send back command header and command code,<CR> not included. off:the command header and command code are not echoing E.g.AT+E=ON 2.5.2. AT+H Function Help Format Query ...
AT command set Format AT+ CFGTF <CR> <CR><LF>+OK=<sta><CR><LF> Parameter saved: done E.g.AT+CFGTF 2.5.6. AT+RELD Function Restore the user default settings Format Execute AT+RELD<CR> <CR><LF>+OK<CR><LF> Parameter: none 2.5.7. AT+CLEAR Function Restore the factory default settings Format ...
AT command set AT+ENTM<CR> <CR><LF>+OK<CR><LF> Parameter:none 2.5.10. AT+MAC Function Query MAC address Format Query AT+MAC<CR> <CR><LF>+OK=<mac><CR><LF> Parameter mac: MAC address (e.g.9CA525C4F2F9) 2.5.11. AT+WANN Function Query/set WAN port parameters Format Query AT+WANN<CR> <CR><LF>+OK=<mode,address,mask,gateway><CR><LF>...
AT command set Format Query AT+RFCENN<CR> <CR><LF>+OK=<status><CR><LF> AT+ RFCENN =<status><CR> <CR><LF>+OK<CR><LF> Parameter ON: enable.default OFF: disable E.g.AT+RFCEN1=ON 2.5.18. AT+UARTMN Function Query/set serial port interface type of PortN(N520-H7-6) Format Query AT+UARTMN <CR> <CR><LF>+OK=<status><CR><LF>...
AT command set UDPS UDP Server UDPC UDP Client HTPC Httpd Client IP: When the module is set to Client, the IP address is the server IP address Port: 0~65535,0 means random E.g.AT+SOCKA1=TCPC,192.168.0.201,8234 2.5.20. AT+SOCKLKMN Function ...
AT command set AT+ TCPSEN<CR> <CR><LF>+OK=<sta><CR><LF> AT+TCPSEN<CR> <CR><LF>+OK =<sta><CR><LF> Parameter KICK:receive new socket connection and kick out the first connection.default KEEP:do not receive new socket connection E.g.AT+TCPSE1=KICK 2.5.23. AT+SOCKPORTAN Function Query/set local port of SOCKA of PortN Format ...
AT command set 2.5.25. AT+MULTIENN Function Query/set whether to enable UDP multicast in socket A of PortN Query AT+ MULTIENN<CR> <CR><LF>+OK=<sta><CR><LF> AT+MULTIENN<CR> <CR><LF>+OK =<sta><CR><LF> Parameter ON:enable. OFF:disable.default. E.g.AT+MULTIEN1=OFF 2.5.26. AT+SOCKSLN Function Query/set whether to enable short-lived connection in TCP client mode of PortN Format ...
AT command set <CR><LF>+OK<CR><LF> Parameter time: 3-255s.default 3s. E.g.AT+SHORTO1=3 2.5.28. AT+SOCKTONN Function Query/set time of no data traffic in socket to reconnect server of PortN Format Query AT+ SOCKTONN <CR> <CR><LF>+OK=<time><CR><LF> AT+ SOCKTONN =<time><CR> <CR><LF>+OK<CR><LF>...
AT command set Format Query AT+ HEARTUSERN <CR> <CR><LF>+OK=< data,type ><CR><LF> AT+ HEARTUSERN =< data,type ><CR> <CR><LF>+OK<CR><LF> Parameters data: user-defined heartbeat packets, up to 40 characters in ASCII,up to 40 characters in HEX type: format ,ASCII or HEX ...
AT command set status First:A registration package is sent only the first time you connect to the server Every:Add a registration packet before each packet sent to the server ALL: both are supported E.g.AT+REGTCP1=all 2.5.36. AT+REGUSRN Function ...
AT command set Query/set HTTP Header information of PortN Format Query AT+HTPHEADN<CR> <CR><LF>+OK =<string><CR><LF> AT+HTPHEADN =<string><CR> <CR><LF>+OK<CR><LF> Parameter string:up to 180 characters Note: Carriage return newlines are represented by <<CRLF>> escape characters E.g.AT+HTPHEAD1=Accept:text<<CRLF>> 2.5.42. AT+HTPCHDN Function ...
AT command set 2.5.44. AT+MODTCPN Function Query/set whether to enable modbus TCP of PortN Format Query AT+ MODTCPN<CR> <CR><LF>+OK=<sta><CR><LF> AT+ MODTCPN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter ON: enable OFF: disable,default E.g.AT+MODTCP1=ON 2.5.45. AT+MODPOLLN Function Query/set whether to enable modbus poll of PortN Format ...
AT command set 2.5.55. AT+MQTTCS Function Query/set whether to clean session Format Query AT+MQTTCS<CR> <CR><LF>+OK=<sta><CR><LF> AT+MQTTCS=<sta><CR> <CR><LF>+OK<CR><LF> Parameter ON: enable OFF:disable.default. E.g.AT+MQTTCS=ON 2.5.56. AT+MQTTAUTH Function Query/set whether to enable user credential Format ...
AT command set <CR><LF>+OK=<subnum,suben,topic,mode,Qos,cut,comn><CR><LF> AT+MQTTSUB=<subnum,suben,topic,mode,Qos,cut,comn><CR> <CR><LF>+OK<CR><LF> Parameter subnum:1~16, each serial port support maximum 16 topics. puben ON: enable.subscribe this topic message from server. OFF:disable.default. topic:maximum 128 characters mode 0: only send payload to serial port.default. ...
AT command set AT+ AWSRECTM<CR> <CR><LF>+OK=<time><CR><LF> AT+ AWSRECTM=<time><CR> <CR><LF>+OK<CR><LF> Parameter time:default 5s,range 1~65535s. E.g.AT+AWSRECTM=10 2.5.70. AT+AWSNDTRECTM Function Query/set MQTT reconnect period when no data flow in socket Format Query AT+ AWSNDTRECTM<CR> <CR><LF>+OK=<time><CR><LF> AT+ AWSNDTRECTM=<time><CR> <CR><LF>+OK<CR><LF>...
AT command set <CR><LF>+OK<CR><LF> Parameter pubnum:1~16, each serial port support maximum 16 topics. puben ON: enable.this topic message can be published to server. OFF:disable.default. topic:0~128 characters,do not support wildcards mode 0: send to all topics.default. ...
AT command set 2.5.76. AT+USRCLDEN Function Query/set whether to enable PUSR cloud service Format Query AT+USRCLDEN<CR> <CR><LF>+OK=<sta><CR><LF> AT+USRCLDEN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter ON: enable OFF:disable.default. E.g.AT+USRCLDEN=ON 2.5.77. AT+USRCLDTCOM Function Query/set bonding serial ports Format ...
AT command set 2.5.84. AT+WEBU Function Query/set web console username and password Format Query AT+WEBU<CR> <CR><LF>+OK=<username,password><CR><LF> AT+WEBU<CR> <CR><LF>+OK =<username,password><CR><LF> Parameters username:up to 16 characters,can’t be NULL password:up to 16 characters,can’t be NULL E.g.AT+WEBU=admin,admin 2.5.85.
AT command set ON: enable OFF:disable E.g.AT+UARTCLBUF =ON 2.5.87. AT+NETPRN Function Query/set the network printing function of PortN Format Query AT+ NETPRN <CR> <CR><LF>+OK=<sta><CR><LF> AT+ NETPRN =<sta><CR> <CR><LF>+OK<CR><LF> Parameter ON: enable ...
AT command set 2.5.92. AT+NTPSER Function Query/set Host address and port Format Query AT+NTPSER<CR> <CR><LF>+OK=< address,timezone><CR><LF> AT+NTPSER=< address,timezone><CR> <CR><LF>+OK<CR><LF> Parameter address: server address,up to 128 characters timezone:-12~12,default 8 E.g.AT+NTPSER=cn.ntp.org.cn,8 2.5.93. AT+LOG Function Query/set the LOG level Format ...
AT command set <CR><LF>+OK<CR><LF> Parameter sta: ON: enable OFF:disable.default. time:idle time,0-2500ms E.g.AT+P485CLT=OFF 2.5.95. AT+PDTIME Function Query the production time Format Query AT+PDTIME<CR> <CR><LF>+OK=<time><CR><LF> Parameter time: production time e.g.2021-10-18 11:20:02 2.5.96. AT+SEARCH function ...
AT command set AT+PLANG =<language><CR> <CR><LF>+OK<CR><LF> Parameter language CN Chinese EN English E.g.AT+PLANG=CN 2.5.98. AT+BTVER Function Query Boot version Format Query AT+BTVER<CR> <CR><LF>+OK=<ver><CR><LF> Parameter ver: boot version 2.5.99. AT+PING Function Test network connection Format ...
Need help?
Do you have a question about the Cortex-M7 Series and is the answer not in the manual?
Questions and answers