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
AT+MODELShow module information
ATZTrigger MCU reset
AT+CFGMODSelect operating mode
AT+DEUIShow or set the device ID
AT+CFGPrint all settings
AT+SERVADDRShow or set the server address
AT+TDCShow or set the application data transmission interval (seconds)
AT+INTMODShow or set the trigger interrupt mode (0:input, 1:falling or rising edge, 2:falling edge, 3:rising edge)
AT+APNShow or set the APN
AT+5VTExtend the 5V active power duration
AT+PROShow or set the usage protocol (1:COAP, 2:UDP, 3:MQTT, 4:TCP) and Payload Type (0:HEX, 1:ThingSpeak, 3:ThingsBoard, 5:JSON)
AT+RXDLShow or set the reception time
AT+EXTShow or set the count value
AT+SHTEMPShow or set the temperature alarm
AT+SHHUMShow or set the humidity alarm
AT+GETSENSORVALUEShow the current sensor measurement
AT+DNSCFGShow or set the DNS Server
AT+CSQTIMEShow or set the network joining time
AT+BKDNSShow or set the dynamic domain name resolution IP
AT+TLSMODShow or set the TLS mode
AT+SLEEPShow or set the sleep mode
AT+GETLOGPrint serial port logs
AT+CLOCKLOGShow or set the SHT recording time
AT+DOWNTEConversion between standard version and 1T version downlinks

MQTT Management

CommandDescription
AT+MQOSSet the MQTT QoS level
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+PWORDShow or set the system password
AT+CDPRead or clear cached data
AT+LDATAShow the last loaded data

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
CommandDescription
AT+PDTAPrint sector data from start page to end page
AT+PLDTAPrint the last few data sets
AT+CLRDTAClear storage, revert the record location to position 1

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 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