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 | Attention |
AT? | Short help |
ATZ | Trigger MCU reset |
AT+CFGMOD | Select operating mode |
AT+DEUI | Show or set the device ID |
AT+TDC | Application data transmission interval |
AT+CFG | Print all settings |
AT+5VT | Extend the 5V active sleep power duration |
AT+PRO | Protocol selection |
AT+APN | Show or set the APN |
AT+RXDL | Extend the sending and receiving duration |
AT+SERVADDR | Show or set the server address |
AT+INTMOD | Show or set the trigger interrupt mode |
AT+GETSENSORVALUE | Show the current sensor measurement |
AT+NOUD | Show or set the number of data to be uploaded |
AT+CDP | Read or clear cached data |
AT+ALARMC | Set the distance alarm |
AT+CSQTIME | Show or set the network joining time |
AT+DNSTIMER | Regularly resolve domain names |
AT+DNSCFG | Show or set the DNS server |
AT+TLSMOD | Show or set the TLS mode |
AT+CLOCKLOG | Show or set the SHT log time |
AT+MQOS | Set the MQTT QoS level |
AT+SLEEP | Show or set the sleep mode |
AT+GETLOG | Print serial port logs |
MQTT Management
| Command | Description |
|---|---|
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+FDR | Reset parameters to Factory Defaults |
AT+PWORD | Serial access password |
AT+LDATA | Show the last uploaded data |
AT+CDP | Read or clear cached data |
AT+GETLOG | Print serial port logs |
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 |
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