LNDxxxF Module AT Command Specification

LoRaWAN Transparent Transmission Module — AT Command Manual (Rev-1.6)

1. Overview

This document provides a detailed description of the AT commands supported by LoRaWAN modules developed by Ruiqi Technology, along with usage examples. This document applies to all LoRaWAN transparent transmission modules of Ruiqi Technology. xxx represents the supported frequency bands, including:

xxx Frequency BandFrequency RangeApplicable Region
CN470470~510 MHzChina
EU433433~434 MHzEurope
EU868863~870 MHzEurope
US915902~928 MHzNorth America
AS923920~925 MHzSoutheast Asia

1.1 Requirements and Purpose

Enable R&D and testing personnel to quickly master AT operation methods and achieve rapid LoRa integration.

1.2 References

<Omitted>

2. AT Commands

2.1 Serial Port Settings

ItemSetting
Serial PortLPUART
Baud Rate9600
Data Bit8 bit
Stop Bit1 bit
Parity BitNone

2.2 AT Commands

2.2.1 Basic Format of AT Commands:

SymbolDescription
ATAT command header, case-sensitive.
+CMD+CMD is the specific command.
=Current AT command is a setting operation.
=?Current command is a usage query operation.
?Current command is a value query operation.
<CR><LF>\r\n, terminator.

2.2.2 AT Command Definitions:

  • AT+<CMD>? — Get help for <CMD>.
  • AT+<CMD> — Execute <CMD>.
  • AT+<CMD>=<value> — Set parameters for <CMD>, where <value> is the parameter value.
  • AT+<CMD>=? — Get the list of settable parameter values for this command.

2.2.3 AT Command Return Values:

Return ValueDescription
OKCommand executed successfully.
ERRUnknown error.
BUSYThe module is processing other commands and cannot respond to the current request.

2.2.4 AT Command Notes

By default, all setting commands do not save parameters after power loss. To save parameters across power cycles, send AT+SAVE=1, which will save all previously set parameters.

3. AT Command Set

3.1 AT: Get AT Command List

3.1.1 Command 1: AT

Function: Detect the serial port connection status between the host and the module.

Return 2No response — Indicates an exception; no response means no information is returned.

3.2 AT+BAND

Function: Set and query frequency band.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+BAND=<n>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query frequency band list commandAT+BAND?(List<n>: <band>)
<n>:<band>
OK
10 S
Query current frequency bandAT+BAND=?<n>:<band>
OK
10 S

Parameters

ParameterTypeValueDescription
<n>Integer0AS923
1AU915
2CN470
3CN779
4EU433
5EU868
6KR920
7IN865
8US915
9RU864
10AS923-1
11AS923-2
12AS923-3
13AS923-4
14AS923-1JP
15KZ865
<band>StringBand information, e.g. AS923

Example

Send→◇AT+BAND?
Receive←◆0:AS923
1:AU915
2:CN470
3:CN779
4:EU433
5:EU868
6:KR920
7:IN865
8:US915
9:RU864
10:AS923-1
11:AS923-2
12:AS923-3
13:AS923-4
14:AS923-1JP
15:KZ865
OK
Send→◇AT+BAND=1
Receive←◆OK
Send→◇AT+BAND=?
Receive←◆1:AU915
OK

3.3 AT+DEVEUI

Function: Query and set LoRaWAN device DEVEUI.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+DEVEUI=<n>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query frequency band list commandAT+DEVEUI=?+DEVEUI:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String8 hexadecimal charactersLoRaWAN device DEVEUI

Example

Send→◇AT+DEVEUI=0e8044007b446033
Receive←◆OK
Send→◇AT+DEVEUI=?
Receive←◆+DEVEUI:0e8044007b446033
OK

3.4 AT+APPEUI

Function: Query and set LoRaWAN device APPEUI.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+APPEUI=<imei>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+APPEUI=?+APPEUI:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String8 hexadecimal charactersLoRaWAN device APPEUI

Example

Send→◇AT+DEVEUI=0e8044007b446033
Receive←◆OK
Send→◇AT+DEVEUI=?
Receive←◆+DEVEUI:0e8044007b446033
OK
Send→◇AT+APPEUI=1111111111111111
Receive←◆OK
Send→◇AT+APPEUI=?
Receive←◆+APPEUI:1111111111111111
OK

3.5 AT+APPKEY: APPKEY Query and Set Command

Function: Query and set LoRaWAN device APPKEY.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+APPKEY=<imei>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+APPKEY=?+APPKEY:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String16 hexadecimal charactersLoRaWAN device APPKEY

Example

Send→◇AT+APPKEY=2b7e151628aed2a6abf7158809cf4f3c
Receive←◆OK
Send→◇AT+APPKEY=?
Receive←◆+APPKEY:2b7e151628aed2a6abf7158809cf4f3c
OK

3.6 AT+NWKKEY

Function: Query and set LoRaWAN device NWKKEY.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+NWKKEY=<imei>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query NWKKEY commandAT+NWKKEY=?+NWKEY:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String16 hexadecimal charactersLoRaWAN device NWKKEY

Example

Send→◇AT+NWKKEY=2b7e151628aed2a6abf7158809cf4f3c
Receive←◆OK
Send→◇AT+NWKKEY=?
Receive←◆+NWKKEY:2b7e151628aed2a6abf7158809cf4f3c
OK

3.7 AT+APPSKEY

Function: Query and set LoRaWAN device APPSKEY.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+APPSKEY=<imei>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+APPSKEY=?+APPKEY:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String16 hexadecimal charactersLoRaWAN device APPSKEY

Example

Send→◇AT+APPSKEY=2b7e151628aed2a6abf7158809cf4f3c
Receive←◆OK
Send→◇AT+APPSKEY=?
Receive←◆+APPSKEY:2b7e151628aed2a6abf7158809cf4f3c
OK

3.8 AT+NWKSKEY

Function: Query and set LoRaWAN device NWKSKEY.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+WMKSKEY=<imei>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+WMKSKEY=?+WMKSKEY:<imei>
OK
10 S

Parameters

ParameterTypeLengthDescription
<imei>String16 hexadecimal charactersLoRaWAN device NWKSKEY

Example

Send→◇AT+NWKSKEY=2b7e151628aed2a6abf7158809cf4f3c
Receive←◆OK
Send→◇AT+NWKSKEY=?
Receive←◆+NWKSKEY:2b7e151628aed2a6abf7158809cf4f3c
OK

3.9 AT+NJM

Function: Set and query network access mode.

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+NJM=<value>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+NJM=?+NJM:<mode>
OK
10 S

Parameters

ParameterTypeValueDescription
<value>Integer0ABP network access mode
1OTAA network access mode
<Mode>StringOTAA and ABP—

Example

Send→◇AT+NJM=1
Receive←◆OK
Send→◇AT+NJM=?
Receive←◆+NJM:OTAA
OK

3.10 AT+JOIN

Function: Module network access.

Command

TypeSyntaxResponseMaximum Response Time
Network access commandAT+JOINOK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
20 S
Query network access status commandAT+JOIN=?+JOIN:<value>
OK
20 S
Clear network access status commandAT+JOIN=1OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
20 S

Parameters

ParameterTypeValueDescription
<value>Integer0Indicates not network accessed
1Indicates network accessed

Example

Send→◇AT+JOIN
Receive←◆OK
Receive←◆JOINED
Send→◇AT+JOIN=?
Receive←◆+NJM:OTAA
OK
Send→◇AT+JOIN=1
Receive←◆OK

3.11 AT+DEVADDR: DEVADDR Query and Set Command

Function: Query and set the device short address (DEVADDR).

Command

TypeSyntaxResponseMaximum Response Time
Set CommandAT+DEVADDR=<addr>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query commandAT+DEVADDR=?+DEVADDR:<addr>
OK
10 S

Parameters

ParameterTypeLengthDescription
<addr>String4 hexadecimal charactersShort address after device network access

Example

Send→◇AT+DEVADDR=11223344
Receive←◆OK
Send→◇AT+DEVADDR=?
Receive←◆+DEVADDR:11223344
OK

3.12 AT+CFM

Function: Set and query data frame type.

Command

TypeSyntaxResponseMaximum Response Time
Set data frame commandAT+CFM=<value>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
10 S
Query data frame commandAT+CFM=?+CFM:<value>
OK
10 S

Parameters

ParameterTypeValueDescription
<value>Integer0Unconfirmed data frame
1Confirmed data frame

Example

Send→◇AT+CFM=1
Receive←◆OK
Send→◇AT+CFM=?
Receive←◆+CFM:1
OK

3.13 AT+ADR

Function: Set and query ADR (Adaptive Data Rate) status.

Command

TypeSyntaxResponse
Set ADR status commandAT+ADR=<status>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query ADR status commandAT+ADR=?+ADR:<status>
OK

Parameters

ParameterTypeValueDescription
<status>Integer0Disable ADR
1Enable ADR

Example

Send→◇AT+ADR=1
Receive←◆OK
Send→◇AT+ADR=?
Receive←◆+ADR:1
OK

3.14 AT+DR

Function: Set and query DR (Data Rate) value.

Command

TypeSyntaxResponse
Set DR valueAT+DR=<value>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query DR valueAT+DR=?+DR:<value>
OK

Parameters

ParameterTypeValueDescription
valueSet DR value, range 0-50DR_0
1DR_1
2DR_2
3DR_3
4DR_4
5DR_5

Example

Send→◇AT+DR=1
Receive←◆OK
Send→◇AT+DR=?
Receive←◆+DR:1
OK
Note
  1. When configuring DR, ADR must be disabled; otherwise, an error will be triggered.
  2. For AS923 and AU915 bands, when DWELL UPLINK is set to 1, the minimum DR starts from DR2.

3.15 AT+SEND

Function: Send uplink data.

Command

TypeSyntaxResponse
Send uplink dataAT+SEND=<Fport>,<len>,<appdata>OK
If confirmed frame data is sent without downlink response, return: +CMEE ERROR:100
If the module is not network accessed, return: AT_NO_NET_JOINED

Parameters

ParameterDescription
<Fport>Transmission port number, value range: 1~223
<len>Transmission data length: 0 — String mode: uplink content must be string; >0 — HEX mode: uplink data length, value range (1~223), uplink data must be HEX data.
<appdata>Data content. When <len> is not 0, data content must be HEX data; when <len> is 0, data content is string, no space required.

Example

## Transmit Uplink Data in HEX Mode:
Send→◇AT+SEND=12,8,0011223344556677
Receive←◆OK
## Transmit Uplink Data in String Mode:
Send→◇AT+SEND=12,0,123db
Receive←◆OK
Note
  1. When transmitting in HEX mode, the configured data length must match the actual transmitted data length; otherwise, an error will be reported.
  2. For transmission in String mode, the module converts string data into HEX data before transmission. If the HEX data converted from the string exceeds the payload size limit of the current DR, the transmission will fail.

3.16 AT+DPDATA

Function: Downlink data display — Enable, disable, retrieve data, clear cache.

Command

TypeSyntaxResponse
Set downlink data display modeAT+DPDATA=<mode>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Parameters

ParameterValueDescription
<mode>
Downlink reception mode
0Disable downlink echo function
1Enable downlink data display function
2Enable downlink data cache function
3Retrieve one cached data
4Clear cached data

Example

## Disable Downlink Echo:
Send→◇AT+DPDATA=0
Receive←◆OK
## Enable Downlink Echo:
Send→◇AT+DPDATA=1
Receive←◆OK
Send→◇AT+SEND=12,8,0011223344556677
Receive←◆OK
## At this point, if the server sends downlink data 1122334455 to port 20, the node will display the data##
Receive←◆+DPDATA:20,5,1122334455
## Enable Downlink Data Buffer Function:
Send→◇AT+DPDATA=2
Receive←◆OK
Send→◇AT+SEND=12,8,0011223344556677
Receive←◆OK
#### At this point, if the server sends downlink data 1122334455 to port 20###
Send→◇AT+DPDATA=3
## Query buffer
Receive←◆+DPDATA:20,5,1122334455
Send→◇AT+DPDATA=4
## Clear buffer
Send→◇AT+DPDATA=3
## Query buffer
Receive←◆+DPDATA:0

3.17 AT+RXDELAY

Function: Set and query downlink reception window.

Command

TypeSyntaxResponse
Set downlink reception window timeAT+RXDELAY=<WINDOW>,<DELAYTIME>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query downlink reception window timeAT+RXDELAY=?+<status>
RX1DELAY:4970
RX2DELAY:5970
OK

Parameters

ParameterTypeValueDescription
<WINDOW>Window number to set1RX reception window 1
2RX reception window 2
<DELAYTIME>Window start time valueRange 0-9999—
<status>Window statusJOINReception window for network access
RECReception window for downlink data after network access
NoteIn OTAA mode, if not network accessed, the window status shows JOIN time; if network accessed, it shows REC time.

Example

## Set Join Receive Window##
Send→◇AT+RXDELAY=1,4970
Receive←◆OK
Send→◇AT+RXDELAY=?
Receive←◆+JOIN
RX1DELAY:4970
RX2DELAY:6000
OK
## Set Downlink Receive Window##
Send→◇AT+RXDELAY=1,4970
Receive←◆OK
Send→◇AT+RXDELAY=?
Receive←◆+JOIN
RX1DELAY:4970
RX2DELAY:6000
OK

3.18 AT+TXPWR

Function: Set and query transmission power.

Command

TypeSyntaxResponse
Set transmission power levelAT+TXPWR=<value>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query transmission power levelAT+TXPWR=?<value>
OK

Parameters

Transmission power is divided into 6 power levels, shown in the table below for different frequency bands.

Region AS923:

CommandTx Power
AT+TXPWR=014 dbm
AT+TXPWR=112 dbm
AT+TXPWR=210 dbm
AT+TXPWR=38 dbm
AT+TXPWR=46 dbm
AT+TXPWR=54 dbm

Region CN470:

CommandTx Power
AT+TXPWR=020 dbm
AT+TXPWR=118 dbm
AT+TXPWR=216 dbm
AT+TXPWR=314 dbm
AT+TXPWR=410 dbm
AT+TXPWR=57 dbm
AT+TXPWR=65 dbm
AT+TXPWR=72 dbm

Region EU433:

CommandTx Power
AT+TXPWR=010 dbm
AT+TXPWR=17 dbm
AT+TXPWR=24 dbm
AT+TXPWR=31 dbm
AT+TXPWR=4-2 dbm
AT+TXPWR=5-5 dbm

Region EU868:

CommandTx Power
AT+TXPWR=020 dbm
AT+TXPWR=114 dbm
AT+TXPWR=211 dbm
AT+TXPWR=38 dbm
AT+TXPWR=45 dbm
AT+TXPWR=52 dbm

Region US915:

CommandTx Power
AT+TXPWR=020 dbm
AT+TXPWR=116 dbm
AT+TXPWR=210 dbm
AT+TXPWR=37 dbm
AT+TXPWR=45 dbm
AT+TXPWR=51 dbm

Example

## Maximum Transmit Power Level##
Send→◇AT+TXPWR=0
Receive←◆OK
## Query Transmit Power Level##
Send→◇AT+TXPWR=?
Receive←◆0
OK

3.19 AT+CLASS

Function: Set and query module reception mode.

Command

TypeSyntaxResponse
Set reception mode commandAT+CLACC=<mode>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query reception mode commandAT+CLASS=?<mode>
OK

Parameters

ParameterTypeValueDescription
<mode>Reception modeACLASS_A reception mode
BCLASS_B reception mode
CCLASS_C reception mode

Example

Send→◇AT+CLASS=A
Receive←◆OK
Send→◇AT+CLASS=?
Receive←◆A
OK

3.20 AT+RSSI

Function: Query RSSI value.

Command

TypeSyntaxResponse
Query RSSI valueAT+RSSI+RSSI:<value>
OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Parameters

ParameterTypeRange
<value>RSSI valueRange 0~-128

Example

Send→◇AT+SEND=12,8,0011223344556677
Receive←◆OK
Send→◇AT+RSSI
Receive←◆+RSSI:-51
OK
NoteRSSI is issued by the server. Transmission is allowed only after data reception.

3.21 AT+CSQ

Function: Set and query frequency point.

Command

TypeSyntaxResponse
Set frequency point commandAT+CSQ=<Channels1~channelsn Frequency>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query current frequency point commandAT+CSQ=?<Channels1>,
↓
[n]<channelsn>
OK

Parameters

ParameterDescription
Channels1Frequency point 1 to set
ChannelsnFrequency point n to set
nNumber of frequency points

Example

Send→◇AT+CSQ=923200000,923400000,923600000,923800000,924000000,924200000,924400000,924600000
Receive←◆OK
Send→◇AT+CSQ=?
Receive←◆+CSQ:
[1]:<486300000>
[2]:<486500000>
[3]:<486700000>
[4]:<486900000>
[5]:<487100000>
[6]:<487300000>
[7]:<487500000>
[8]:<487700000>
OK
NoteThe setting command can only be used for same uplink/downlink frequency bands. No downlink can be received when used for offset-frequency bands.

3.22 AT+DC

Function: Set and query duty cycle status.

Command

TypeSyntaxResponse
Set duty cycle status commandAT+DC=<status>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query duty cycle statusAT+DC=?+DUTYCYCLE:<status>
OK

Parameters

ParameterValueDescription
status
Duty cycle status
0Disable duty cycle
1Enable duty cycle

Example

Send→◇AT+DC=1
Receive←◆OK
Send→◇AT+DC=?
Receive←◆+DUTYCYCLE: 1
OK

3.23 AT+DWELL

Function: Set and query module DWELL value.

Command

TypeSyntaxResponse
Set DWELL valueAT+DWELL=<uplink or downlink>,<time value>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query DWELL valueAT+DWELL=?+DWELL:
UPLINK: <time value>
DPLINK: <time value>
OK

Parameters

ParameterValueDescription
<uplink or downlink>1dwell uplink
2dwell downlink
time value0 / 1—

Example

Send→AT+DWELL?
Receive←◆+DWELL:
UPLINK: 1
DPLINK: 1
OK
Send→AT+DWELL=1,1
Receive←◆OK

3.24 AT+RXWIN

Function: Query or set window open duration or RX2 parameters.

Command

TypeSyntaxResponse
Set duration of reception window 1 and 2AT+RXWIN=1,<timevalue>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Set RX2 window parameters (DR value and frequency)AT+RXWIN=2,<DR>,<freq>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query duration of window 1 and 2AT+RXWIN=?+WIN.DURATION.TIME:<timevaue>
OK
Query RX2 window parameters (DR value and frequency)AT+RXWIN?+RXWIN2:
DR:<value>
FRE:<freq>
OK

Parameters

ParameterValueDescription
timevaue0-1000Set window timeout duration
DR0-5DR value to set
freq0-987700000Frequency to set

Example

Send→AT+RXWIN=2,5, 505300000
Receive←◆OK
Send→AT+RXWIN=1,5000
Receive←◆OK
Send→AT+RXWIN?
Receive←◆+RXWIN2:
DR:0
FRE:505300000
OK
Send→AT+RXWIN=?
Receive←◆+WIN.DURATION.TIME:3000
OK

3.25 AT+GETTIME

Function: Get current RTC clock.

Command

TypeSyntaxResponse
Get current RTC clockAT+GETTIMEOK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Example

Send→AT+GETTIME
Receive←◆+SysCurTime:xxxx-xx-xx xx:xx:xx
OK

3.26 AT+SAVE

Function: Save modified parameters to NV table.

Command

TypeSyntaxResponse
Save modified parameters to NV tableAT+SAVE=<mode>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Parameters

ParameterValueDescription
<mode>
Save mode
0Clear NV table, restore factory settings
1Save modified parameters to NV table

Example

#### Save Settings#####
Send→AT+SAVE=1
Receive←◆OK
### Restore Factory Defaults###
Send→AT+SAVE=0
Receive←◆OK

3.27 AT+VER

Function: Query version number.

Command

TypeSyntaxResponse
Query version numberAT+VER?+VER:<version information>
OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Example

Send→AT+VER?
Receive←◆+VER: LoRaWAN V1.0.4
FW_LND915E&F_REACH-AT-OEM-D_Release_2.5.0-20240113
OK

3.28 AT+RESET

Function: Reset module.

Command

TypeSyntaxResponse
Reset moduleAT+RESETRESET
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101

Example

Send→AT+RESET
Receive←◆RESET

3.29 AT+RM

Function: Set and query retransmission count.

Command

TypeSyntaxResponse
Set retransmission count commandAT+RM=<VALUE>OK
If an error occurs: +CMEE ERROR:100 or +CMEE ERROR:101
Query retransmission count commandAT+RM=?+DUTYCYCLE:<status>
OK

Parameters

ParameterValueDescription
<VALUE>Range 1-22Retransmission count

Example

Send→AT+RM=?
Receive←◆+RM:2
OK
Send→AT+RM=1
Receive←◆OK

3.30 AT+TXS

Function: Point-to-point transmission.

Command

TypeSyntaxResponse
Point-to-point transmissionAT+TXS=<DATALEN>,<DATA>,<TIMEOUT>OK
If an error occurs: +CMEE ERROR:100

Parameters

ParameterDescription
<DATALEN>Data length
<DATA>Data
<TIMEOUT>Timeout (ms)

Example

Send→AT+TXS=9,112233445566778899,1000
Receive←◆OK

3.31 AT+RXS

Function: Point-to-point reception.

Command

TypeSyntaxResponse
Point-to-point receptionAT+RXS=<TIMEOUT>OK
If an error occurs: +CMEE ERROR:100

Parameters

ParameterValueDescription
<TIMEOUT>
Reception timeout (ms)
0Module waits indefinitely until data is received
>0Reception timeout

Example

Send→AT+RXS=5000
Receive←◆+PTPDATA:9,112233445566778899
OK

3.32 AT+PTPCONF

Function: Set point-to-point parameters.

Command

TypeSyntaxResponse
Set point-to-point parametersAT+PTPCONF=<freq>,<power>,<bandwidth>,<datarate>,<coderate>,<lna>,<pa_boost>,<modulation>,<len>,<deviation>,<low_dr>,<bt>,<preamblelen>,<rx_duty_time>,<sleep_duty_time>OK
If an error occurs: +CMEE ERROR:100
Query point-to-point parametersAT+PTPCONF=?<n><status>
OK

Parameters

ParameterDescription
<freq>Frequency (Hz)
<power>Transmission power (dBm)
<bandwidth>Bandwidth (Hz)
<datarate>Data rate (bps)
<coderate>Coding rate (recommended to use default value)
<lna>LNA status (recommended to use default value)
<pa_boost>PA boost status (recommended to use default value)
<modulation>Modulation mode (0: FSK, 1: LoRa)
<len>Payload length
<deviation>FSK frequency deviation (recommended to use default value)
<low_dr>Low data rate optimization (recommended to use default value)
<bt>BT product (recommended to use default value)
<preamblelen>Preamble length
<rx_duty_time>FSK duty cycle mode reception time
<sleep_duty_time>FSK duty cycle mode sleep time

Example

Send→AT+PTPCONF=863525000,22,250000,100000,4/5,0,0,0,100,40000,0,2,60000,1,597
Receive←◆OK
Send→AT+PTPCONF=?
Receive←◆1: Freq= 863525000 Hz
2: Power= 22 dBm
3: Bandwidth= 250000 Hz
4: FSK datarate= 100000 bps
5: Coding Rate not applicable
6: LNA State= 0
7: PA Boost State= 0
8: modulation FSK
9: Payload len= 100 Bytes
10: FSK deviation= 40000 Hz
11: LowDRopt not applicable
12: FSK gaussian BT product= 2
13: FSK preambleLen= 60000
14: FSK Rx duty time= 1ms
15: FSK Sleep duty time= 597ms
OK

3.33 AT+FORCEJOIN

Function: Force OTAA rejoin when already network accessed.

Command

TypeSyntaxResponse
Force OTAA rejoinAT+FORCEJOINOK
If an error occurs: +CMEE ERROR:100

Example

Send→AT+FPRCEJOIN
Receive←◆OK

3.34 AT+RXBDL

Function: Adjust and Query Beacon Period.

Command

TypeSyntaxResponse
Adjust Beacon PeriodAT+RXBDL=<value>OK
If an error occurs: +CMEE ERROR:100
Query Beacon PeriodAT+RXBDL=?+RXBDL: -100
OK

Parameters

ParameterDescription
<value>
Offset Time, unit is ms
Beacon period is fixed at 128000 ms. Calculation formula is (128000 + value) ms; value can be positive or negative.

Example

Send→◇AT+RXBDL=-100
Receive←◆
OK
Send→◇AT+RXBDL=?
Receive←◆+RXBDL: -100
OK

3.35 AT+RXPDL

Function: Adjust and Query ping-slot Period.

Command

TypeSyntaxResponse
Adjust ping-slot PeriodAT+RXPDL=<value>OK
If an error occurs: +CMEE ERROR:100
Query ping-slot PeriodAT+RXPDL=?+RXPDL: -20
OK

Parameters

ParameterDescription
<value>
Offset Time, unit is ms
ping-slot period defaults to 128000 ms. Calculation formula is (128000 + value) ms; value can be positive or negative.

Example

Send→◇AT+RXPDL=-20
Receive←◆
OK
Send→◇AT+RXPDL=?
Receive←◆+RXPDL: -20
OK

3.36 AT+RXPPRD

Function: Set and Query ping-slot Period.

Command

TypeSyntaxResponse
Set ping-slot PeriodAT+RXPPRD=<value>OK
If an error occurs: +CMEE ERROR:100
Query ping-slot PeriodAT+RXPPRD=?+RXPPRD: 7
OK

Parameters

ParameterDescription
<value>
ping-slot Period
Value range: 0-7; value defaults to 7. ping-slot period is (2^value) s.
NoteThis command is only supported in Class A mode. It is recommended to set the ping-slot period before network access.

Example

Send→◇AT+RXPPRD=5
Receive←◆
OK
Send→◇AT+RXPPRD=?
Receive←◆+RXPPRD: 5
OK

4. Error Codes

This specification defines the format and meaning of error codes that may be returned by the LoRaWAN module during the execution of AT commands. Error codes are used to help users quickly locate problems, and are divided into two categories: standard error codes and extended error codes:

  • Standard error codes: common general errors, such as parameter errors, execution failures, etc.
  • Extended error codes: errors related to LoRaWAN protocol or network interaction, such as network access failure, data transmission timeout, etc.

Error code format: +CMEE ERROR:<error_code>.

4.1 General Error Codes

Error CodeDescription
100Unknown error / AT error
101Invalid parameter
102Command not supported
103Device is busy, cannot process

4.2 Protocol-related Error Codes

Error CodeDescription
200Network access failed
201Network rejected access
202Network access timeout (no response)
203AppKey/NwkKey invalid
204Already in network access state
205No network joined
210Data transmission failed (general)
211Transmission timeout, no ACK
212Invalid transmission channel
213Exceeded DutyCycle limit
214Exceeded power limit
220Reception failed (general)
221Reception timeout
222MIC check error
223Invalid frame received
224Test parameter overflow
225Class B mode not enabled
226Invalid key
227Confirmed transmission returned NULL
228Transmission timeout
300Error code upper limit marker