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+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+RXDLExtend the sending and receiving duration
AT+SERVADDRShow or set the server address
AT+INTMODShow or set the trigger interrupt mode
AT+GETSENSORVALUEShow the current sensor measurement
AT+NOUDShow or set the number of data to be uploaded
AT+CDPRead or clear cached data
AT+ALARMCSet the distance alarm
AT+CSQTIMEShow or set the network joining time
AT+DNSTIMERRegularly resolve domain names
AT+DNSCFGShow or set the DNS server
AT+TLSMODShow or set the TLS mode
AT+CLOCKLOGShow or set the SHT log time
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+FDRReset parameters to Factory Defaults
AT+PWORDSerial access password
AT+LDATAShow the last uploaded 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 the NB-IoT network.
  • Encryption is disabled, 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