AT Commands
Command Syntax
AT+<CMD>?: Help about <CMD>AT+<CMD>: Execute <CMD>AT+<CMD>=<value>: Set the valueAT+<CMD>=?: Show the value
General Commands
| Command | Description |
|---|---|
AT+MODEL | Show module information |
ATZ | Trigger MCU reset |
AT+CFGMOD | Select operating mode |
AT+DEUI | Show or set the device ID |
AT+CFG | Print all settings |
AT+SERVADDR | Show or set the server address |
AT+TDC | Show or set the application data transmission interval (seconds) |
AT+INTMOD | Show or set the trigger interrupt mode (0:input, 1:falling or rising edge, 2:falling edge, 3:rising edge) |
AT+APN | Show or set the APN |
AT+5VT | Extend the 5V active power duration |
AT+PRO | Show 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+RXDL | Show or set the reception time |
AT+EXT | Show or set the count value |
AT+SHTEMP | Show or set the temperature alarm |
AT+SHHUM | Show or set the humidity alarm |
AT+GETSENSORVALUE | Show the current sensor measurement |
AT+DNSCFG | Show or set the DNS Server |
AT+CSQTIME | Show or set the network joining time |
AT+BKDNS | Show or set the dynamic domain name resolution IP |
AT+TLSMOD | Show or set the TLS mode |
AT+SLEEP | Show or set the sleep mode |
AT+GETLOG | Print serial port logs |
AT+CLOCKLOG | Show or set the SHT recording time |
AT+DOWNTE | Conversion between standard version and 1T version downlinks |
MQTT Management
| Command | Description |
|---|---|
AT+MQOS | Set the MQTT QoS level |
AT+CLIENT | Show or set the MQTT Client ID |
AT+UNAME | Show or set the MQTT Username |
AT+PWD | Show or set the MQTT Password |
AT+PUBTOPIC | Show or set the MQTT Publish Topic |
AT+SUBTOPIC | Show or set the MQTT Subscribe Topic |
System
| Command | Description |
|---|---|
AT+FDR1 | Reset parameters to factory defaults except for passwords |
AT+FDR | Reset parameters to Factory Defaults |
AT+PWORD | Show or set the system password |
AT+CDP | Read or clear cached data |
AT+LDATA | Show the last loaded data |
COAP Management
| Command | Description |
|---|---|
AT+URI1 | Show or set CoAP option 1 |
AT+URI2 | Show or set CoAP option 2 |
AT+URI3 | Show or set CoAP option 3 |
AT+URI4 | Show or set CoAP option 4 |
Print or Clear Historical Data
| Command | Description |
|---|---|
AT+PDTA | Print sector data from start page to end page |
AT+PLDTA | Print the last few data sets |
AT+CLRDTA | Clear 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