USR IOT Cortex-M7 Series At Command Manual

USR IOT Cortex-M7 Series At Command Manual

Serial to ethernet device server

Advertisement

Quick Links

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
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Cortex-M7 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for USR IOT Cortex-M7 Series

  • 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...
  • Page 2: Table Of Contents

    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.
  • Page 3 AT command set 2.5.28. AT+SOCKTONN ..................21 2.5.29. AT+HEARTENN ..................21 2.5.30. AT+HEARTTMN ..................21 2.5.31. AT+HEARTTPN ..................22 2.5.32. AT+HEARTDTN ..................22 2.5.33. AT+HEARTUSERN ..................22 2.5.34. AT+REGENN ..................23 2.5.35. AT+REGTCPN ..................23 2.5.36. AT+REGUSRN ..................24 2.5.37. AT+REGUSERN ..................24 2.5.38.
  • Page 4 AT command set 2.5.67. AT+AWSSER ..................36 2.5.68. AT+AWSHEARTTM ................... 36 2.5.69. AT+AWSRECTM ..................36 2.5.70. AT+AWSNDTRECTM ................. 37 2.5.71. AT+AWSCS ..................37 2.5.72. AT+AWSSSL ..................37 2.5.73. AT+AWSPUBCUSEN .................. 38 2.5.74. AT+AWSPUB ..................38 2.5.75. AT+AWSSUB ..................39 2.5.76. AT+USRCLDEN ..................40 2.5.77.
  • Page 5: Introduction

    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...
  • Page 7: Serial At Command Mode

    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.
  • Page 8: At Command Error Code

    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.
  • Page 9: At Command Set

    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...
  • Page 12: At Command Details

    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...
  • Page 13: At+H

    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 ...
  • Page 14: At+Reld

    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 ...
  • Page 15: At+Mac

    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>...
  • Page 16: At+Dns

    AT command set AT+DNSTYPE=<mode><CR> <CR><LF>+OK<CR><LF> Parameter  mode:  AUTO: default  Manual  E.g.AT+DNSTYPE=AUTO 2.5.13. AT+DNS Function  Query/set preferred DNS Server Format  Query  AT+DNS<CR> <CR><LF>+OK=< address ><CR><LF>  AT+DNS=< address ><CR> <CR><LF>+OK<CR><LF> Parameter  address: DNS server address ...
  • Page 17: At+Uarttln

    AT command set Format  Query  AT+UARTN<CR> <CR><LF>+OK=<baudrate,data_bits,stop_bit,parity,flowctrl ><CR><LF>  AT+UARTN=<baudrate,data_bits,stop_bit,parity,flowctrl ><CR><LF> <CR><LF>+OK<CR><LF> Parameters  baudrate  600~921.6K(bps)  data_bits:7,8  stop_bits:1,2  parity:  NONE  EVEN   flowctrl  NFC: none  FCR: software control flow XON,XOFF ...
  • Page 18: At+Uartmn

    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>...
  • Page 19: At+Socklkmn

    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 ...
  • Page 20: At+Sockportan

    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 ...
  • Page 21: At+Multienn

    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 ...
  • Page 22: At+Socktonn

    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>...
  • Page 23: At+Hearttpn

    AT command set <CR><LF>+OK=< time><CR><LF>  AT+ HEARTTMN=< time><CR> <CR><LF>+OK<CR><LF> Parameter  time: default 30s,range 1~65535s  E.g.AT+HEARTTM1=30 2.5.31. AT+HEARTTPN Function  Query/set heartbeat packet direction of PortN Format  Query  AT+ HEARTTP <CR> <CR><LF>+OK=< type><CR><LF>  AT+ HEARTTP =< type ><CR> <CR><LF>+OK<CR><LF>...
  • Page 24: At+Regenn

    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 ...
  • Page 25: At+Regusrn

    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 ...
  • Page 26: At+Htptpn

    AT command set <CR><LF>+OK=<ID,CODE><CR><LF>  AT+REGCLOUDN=<ID,CODE><CR> <CR><LF>+OK<CR><LF> Parameter  ID: device ID, 20 characters  CODE: password, 8 characters  E.g.AT+REGCLOUD1=12345678901234567890,12345786 2.5.39. AT+HTPTPN Function  Query/set HTTP request methods of PortN Format  Query  AT+HTPTPN<CR> <CR><LF>+OK=< status><CR><LF>  AT+HTPTPN=< status><CR> <CR><LF>+OK<CR><LF>...
  • Page 27: At+Htpchdn

    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 ...
  • Page 28: At+Modtcpn

    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 ...
  • Page 29: At+Mqtten

    AT command set <CR><LF>+OK =<time><CR><LF> Parameter  time: 10-9999ms,default 200ms  E.g.AT+MODTO1=200 2.5.47. AT+MQTTEN Function  Query/set whether to enable MQTT Format  Query  AT+MQTTEN<CR> <CR><LF>+OK=<sta><CR><LF>  AT+MQTTEN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter   ON: enable  OFF:disable.default.  E.g.AT+MQTTEN=ON 2.5.48. AT+MQTTVER Function ...
  • Page 30: At+Mqttser

    AT command set Query  AT+ MQTTCID<CR> <CR><LF>+OK=< clientid><CR><LF>  AT+ MQTTCID=< clientid><CR> <CR><LF>+OK<CR><LF> Parameter  clientid:up to 128 characters  E.g.AT+MQTTCID=1c5b47ea8b6648d5adc2cb77365ede92 2.5.50. AT+MQTTSER Function  Query/set Host address and port Format  Query  AT+MQTTSER<CR> <CR><LF>+OK=< address,port><CR><LF>  AT+MQTTSER=< address,port><CR> <CR><LF>+OK<CR><LF>...
  • Page 31: At+Mqttrectm

    AT command set Query/set keep alive interval Format  Query  AT+ MQTTHEARTTM<CR> <CR><LF>+OK=< time><CR><LF>  AT+ MQTTHEARTTM=< time><CR> <CR><LF>+OK<CR><LF> Parameter  time: default 60s,range 0~65535s,0 means disable  E.g.AT+MQTTHEARTTM=30 2.5.53. AT+MQTTRECTM Function  Query/set MQTT connection timeout Format  Query ...
  • Page 32: At+Mqttcs

    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 ...
  • Page 33: At+Mqttpsw

    AT command set AT+MQTTUSER<CR> <CR><LF>+OK =<user><CR><LF> Parameters  user:up to 128 characters,can’t be NULL  E.g.AT+MQTTUSER=admin 2.5.58. AT+MQTTPSW Function  Query/set password Format  Query  AT+MQTTPSW<CR> <CR><LF>+OK=<password><CR><LF>  AT+MQTTPSW<CR> <CR><LF>+OK =<password><CR><LF> Parameters  password:up to 128 characters,can’t be NULL ...
  • Page 34: At+Mqttssl

    AT command set <CR><LF>+OK=<topic,Qos,retained,payload><CR><LF>  AT+MQTTLWTCFG=<topic,Qos,retained,payload><CR> <CR><LF>+OK<CR><LF> Parameter  topic:0~128 characters,default /will  Qos: 0,1,2.default 0.  retained  ON: enable  OFF:disable.default.  payload:0~128 characters,default offline  E.g.AT+MQTTLWTCFG=/will,0,ON,offline 2.5.61. AT+MQTTSSL Function  Query/set whether to enable TLS/SSL Query  AT+MQTTSSL<CR>...
  • Page 35: At+Mqttpub

    AT command set <CR><LF>+OK=<sta><CR><LF>  AT+MQTTPUBCUSEN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter   ON: enable custom topic message transparent transform. Format: topic,Qos,retain,payload.  OFF:using predefined topic.default.  E.g.AT+MQTTPUBCUSEN=ON 2.5.63. AT+MQTTPUB Function  Query/set predefined topic message to publish Query  AT+MQTTPUB<CR> <CR><LF>+OK=<pubnum,puben,topic,mode,symbol,Qos,retained,comn><CR><LF>  AT+MQTTPUB=<pubnum,puben,topic,mode,symbol,Qos,retained,comn><CR>...
  • Page 36: At+Awsen

    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. ...
  • Page 37: At+Awsser

    AT command set  AT+ AWSCID=< clientid><CR> <CR><LF>+OK<CR><LF> Parameter  clientid:up to 128 characters  E.g.AT+AWSCID=1c5b47ea8b6648d5adc2cb77365ede92 2.5.67. AT+AWSSER Function  Query/set Host address and port Format  Query  AT+AWSSER<CR> <CR><LF>+OK=< address,port><CR><LF>  AT+AWSSER=< address,port><CR> <CR><LF>+OK<CR><LF> Parameter  address: broker address,up to 128 characters ...
  • Page 38: At+Awsndtrectm

    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>...
  • Page 39: At+Awspubcusen

    AT command set Query/set whether to enable TLS/SSL Query  AT+AWSSSL<CR> <CR><LF>+OK=<sslen,sslver,sslmod><CR><LF>  AT+AWSSSL=<sslen,sslver,sslmod><CR> <CR><LF>+OK<CR><LF> Parameter  sslen  ON: enable  OFF:disable.  sslver: protocol version  2:TLS1.2  sslmod  2: verify server and client certificate  E.g.AT+AWSSSL=ON,2,2 2.5.73.
  • Page 40: At+Awssub

    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. ...
  • Page 41: At+Usrclden

    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 ...
  • Page 42: At+Edgeen

    AT command set Parameter   ON: enable  OFF:disable.default.  E.g.AT+USRCLDGTOP=ON 2.5.79. AT+EDGEEN Function  Query/set whether to enable edge computing gateway Format  Query  AT+EDGEEN<CR> <CR><LF>+OK=<sta><CR><LF>  AT+EDGEEN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter   ON: enable  OFF:disable.default.  E.g.AT+EDGEEN=ON 2.5.80.
  • Page 43: At+Webpoint

    AT command set AT+ WEBSOCKPORT1<CR> <CR><LF>+OK=<port><CR><LF>  AT+ WEBSOCKPORT1=<port> <CR> <CR><LF>+OK<CR><LF> Parameter  port:listen port NO. Range 1-65535.  E.g.AT+WEBSOCKPORT1=81 2.5.82. AT+WEBPOINT Function  Query/set websocket mapping direction Format  Query  AT+WEBPOINT<CR> <CR><LF>+OK=<sta><CR><LF>  AT+WEBPOINT=<sta><CR> <CR><LF>+OK<CR><LF> Parameter   OFF: disable ...
  • Page 44: At+Webu

    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.
  • Page 45: At+Netprn

    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 ...
  • Page 46: At+Telnetport

    AT command set Query  AT+TELNETEN<CR> <CR><LF>+OK=<sta><CR><LF>  AT+TELNETEN=<sta><CR> <CR><LF>+OK<CR><LF> Parameter   ON: enable  OFF:disable.default.  E.g.AT+TELNETEN=ON 2.5.90. AT+TELNETPORT Function  Query/set TELNET port NO. Format  Query  AT+TELNETPORT<CR> <CR><LF>+OK=<port><CR><LF>  AT+TELNETPORT<CR> <CR><LF>+OK =<port><CR><LF> Parameter  port:port NO. of TELNET,default 22 ...
  • Page 47: At+Ntpser

    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 ...
  • Page 48: At+Pdtime

    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 ...
  • Page 49: At+Btver

    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 ...
  • Page 50: Contact Us

    USR IoT products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE...

This manual is also suitable for:

Usr-n510Usr-n520Usr-n540Usr-n580

Table of Contents