AT Command Guide
The LQ 10 provides a UDP AT service suitable for computer utilities, host computer software, or automation scripts that read status and configure devices in batches.
4 min read · English documentationAT Command Guide
The LQ-10 provides a UDP AT service suitable for computer utilities, host-computer software, or automation scripts that read status and configure devices in batches.
Connection Parameters
| Item | Value |
|---|---|
| Protocol | UDP/IPv4 |
| Device port | 52112 |
| Maximum request size | 1023 bytes |
| Maximum response size | 2047 bytes |
| Command capitalization | Command names are case-insensitive; parameter values are case-sensitive as specified in the documentation |
| Line ending | CRLF can be used, or the command text can be sent directly |
Commands strictly support the following four forms:
AT+CMD
AT+CMD?
AT+CMD=<arguments>
AT+CMD=?
A successful response is usually AT+CMD:<data>, followed by a line break and OK. A response with no application data is OK; a failed response is ERROR.
Python Request Example
import socket
device_ip = "192.168.1.200"
command = "AT+FWVER?\r\n"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.settimeout(2.0)
sock.sendto(command.encode("ascii"), (device_ip, 52112))
data, _ = sock.recvfrom(2048)
print(data.decode("utf-8", errors="replace"))
Rules for Applying Configuration
-
IPCFG,WIFIMODE,WIFICFG,APCFG,STACFG, and UART routing commands first write to the configuration file. After completing a group of changes, sendAT+APPLYto apply them at runtime. -
AT+MSS=...,AT+STP=..., andAT+NRCFG=...in narrowband mode take effect immediately. - When
AT+WBMODE=narrow|wideswitches between broadband and narrowband modes, you must useAT+REBOOT;AT+APPLYcannot be used instead. - After changing the device IP address, send subsequent commands to the new address.
Query and System Commands
| Command | Function | Example Response |
|---|---|---|
AT+FWVER? |
Queries software and hardware versions | SW:...,HW:... |
AT+DEVID? |
Queries the device ID | Device ID |
AT+UPTIME? |
Queries application uptime | Formatted uptime |
AT+RFINFO? |
Queries RSSI and broadband/narrowband mode | `,<narrow |
AT+CSQ? |
Queries the 0–31 signal level; 99 indicates an unknown bit-error rate | <level>,99 |
AT+CFGGET |
Retrieves the main configuration as JSON | The response may approach 2KB |
AT+APPLY |
Reloads the saved configuration at runtime | The network is interrupted briefly |
AT+APPRESET |
Restarts the application | Not equivalent to restarting the entire device |
AT+REBOOT |
Restarts the entire device | Used when switching between broadband and narrowband modes |
Use AT+CMD=? to query the supported parameter format. For example: AT+IPCFG=?.
IP and Wireless Commands
| Command | Parameters |
|---|---|
AT+IPCFG? |
Queries ipaddr,netmask,gwipaddr
|
AT+IPCFG=<ip>,<mask>,<gateway> |
Sets the static IP address, contiguous subnet mask, and gateway on the same subnet |
AT+WIFIMODE? |
Queries ap or sta
|
| `AT+WIFIMODE=<ap | sta>` |
AT+APCFG? |
Queries the AP's ssid,channel,wpa,passwd
|
AT+APCFG=<ssid>,<channel>,<wpa>,<passwd> |
Configures the AP; wpa=2 is WPA2-PSK and wpa=0 is Open |
AT+STACFG? |
Queries the STA's ssid,key_mgmt,passwd
|
| `AT+STACFG=,<WPA-PSK | OPEN>,` |
AT+WIFICFG? |
Queries the complete wireless configuration for the current role |
AT+WBMODE? |
Queries narrow or wide
|
| `AT+WBMODE=<narrow | wide>` |
AT+NRCFG? |
Queries narrowband adaptive mode or the fixed level |
AT+NRCFG=adaptive |
Sets narrowband adaptive mode |
AT+NRCFG=fixed,<0..5> |
Sets a fixed narrowband level; the web interface currently provides levels 1–5 to general users |
| `AT+MSS=<on | off>` |
| `AT+STP=<on | off>` |
The password parameter for an Open configuration remains empty, so the command ends with a comma:
AT+APCFG=amovlab,149,0,
AT+STACFG=amovlab,OPEN,
AT+APPLY
WPA2-PSK example:
AT+IPCFG=192.168.1.201,255.255.255.0,192.168.1.1
AT+WIFIMODE=sta
AT+STACFG=amovlab,WPA-PSK,87654321
AT+APPLY
Serial-Port Commands
| Command | Parameters and Function |
|---|---|
AT+UARTCFG=<uart>,<type>,<baud>,<data>,<stop>,<parity>,<flow> |
Creates or modifies UART0–UART2; `type=normal |
AT+UARTRULE=<uart>,<proto>,<mode>,<endpoint>,<dir>,<ip>,<port> |
Adds a forwarding rule and returns its zero-based rule index |
AT+UARTGET=<uart> |
Returns JSON for the specified serial port; returns {} when it is not configured |
AT+UARTRM=<uart>,<index>[,<index>...] |
Deletes one or more rules by index |
AT+UARTCLR=<uart> |
Deletes the specified serial port and all its rules |
Parameter values:
-
proto:udportcp; -
mode:unicastormulticast; -
endpoint:localorremote; -
dir:rx,tx, orrxtx; -
parity:n,e, oro; -
flow: usenfor standard product configurations; - Each serial port supports up to 16 rules, and the port range is
1–65535.
Standard serial-port baud rates must use the supported values listed in the web interface. The fixed UART0 SBUS parameters for the current hardware are sbus,100000,8,2,e,n.
AT+UARTCFG=0,sbus,100000,8,2,e,n
AT+UARTRULE=0,udp,unicast,remote,tx,192.168.1.201,8080
AT+UARTGET=0
AT+APPLY
Caution The AT service is located on a trusted LAN. Standard configuration commands do not use web-session authentication. Do not expose UDP
52112directly to an untrusted network. Factory-authorized and SSH maintenance commands are not public user interfaces, and their authentication methods are not provided here.
