Skip to main content

AT Commands

Command Syntax

  • AT+<CMD>? : Help about <CMD>
  • AT+<CMD> : Execute <CMD>
  • AT+<CMD>=<value> : Set the value
  • AT+<CMD>=? : Show the value

General Commands

CommandDescription
ATAttention
AT?Short help
ATZTrigger MCU reset
AT+CFGMODSelect operating mode
AT+DEUIShow or set the device ID
AT+PWORDShow or set the system password
AT+TDCApplication data transmission interval
AT+CFGPrint all settings
AT+5VTExtend the 5V active sleep power duration
AT+PROProtocol selection
AT+APNShow or set the APN
AT+EXTShow or set the count value
AT+RXDLExtend the sending and receiving time
AT+SERVADDRShow or set the server address
AT+WEIGREShow or set the weight to 0
AT+WEIGAPShow or set the weight GapValue
AT+INTMODShow or set the trigger interrupt mode
AT+GETSENSORVALUEShow the current sensor measurement
AT+CSQTIMEShow or set the network joining time
AT+DNSTIMERRegularly resolve domain names
AT+TLSMODShow or set the TLS mode
AT+CLOCKLOGShow or set the SHT log time
AT+CDPRead or clear cached data
AT+CUMShow or set the cache loading mechanism (0: Off, 1: On)
AT+DNSCFGShow or set the DNS server
AT+MQOSSet the MQTT QoS level
AT+SLEEPShow or set the sleep mode
AT+GETLOGPrint serial port logs

MQTT Management

CommandDescription
AT+CLIENTShow or set the MQTT Client ID
AT+UNAMEShow or set the MQTT Username
AT+PWDShow or set the MQTT Password
AT+PUBTOPICShow or set the MQTT Publish Topic
AT+SUBTOPICShow or set the MQTT Subscribe Topic

System

CommandDescription
AT+FDR1Reset parameters to factory defaults except for passwords
AT+FDRReset parameters to Factory Defaults
AT+PWORDSerial access password
AT+LDATAShow last loaded data
AT+CDPRead or clear cached data
AT+GETLOGPrint serial port logs

COAP Management

CommandDescription
AT+URI1Show or set CoAP option 1
AT+URI2Show or set CoAP option 2
AT+URI3Show or set CoAP option 3
AT+URI4Show or set CoAP option 4

Example AT Configuration

The device is configured to connect to an MQTT server (1.2.3.4:1883) and send JSON data.

  • Sends sensor data to the server every 5 minutes.
  • Connects to the internet via NB-IoT network.
  • Encryption is off, direct connection is established.
AT+SERVADDR=1.2.3.4,1883
AT+CLIENT=clientid
AT+UNAME=accesstoken
AT+PWD=NULL
AT+PUBTOPIC=v1/devices/me/telemetry
AT+SUBTOPIC=v1/devices/me/telemetry
AT+TDC=300
AT+INTMOD=0
AT+APN=nbiot
AT+5VT=0
AT+PRO=3,5
AT+RXDL=0
AT+CLOCKLOG=1,65535,15,0
AT+CSQTIME=5
AT+TLSMOD=0,0