Contact the team on 01932 212 284
Support Sales

UKIoT

Connecting the World of IoT

  • Home
  • Shop
  • About Us
  • Partners
  • Success Stories
  • Blog
  • UKIOT Academy

AT Commands Guide

Posted on Thursday May 2, 2024

Download as PDF

Contents

1.0 Accessing the AT Commands

1.1 Board Type 1

1.2 Board Type 2

1.3 LHT65N/S & LHT52

1.4 LDS02 & LWL02

1.5 LT-22222-L & RS485-LN

2.0 General Commands

2.1 System Management Commands

2.2 Keys, ID & EUI Management

2.3 Joining & sending data on a LoRaWAN Network

2.4 LoRaWAN Network Management

1.0 Accessing the AT Commands

How you access the AT Commands will differ between devices. See the sections below to find the instructions for your device.

1.1 Board Type 1

This includes the following devices LSN50v2-8, LSN50v2-D2X, LSN50v2-S31X, CPL01, LDSO3A, LWL03A, SW3L Series and the NB-IoT versions of these devices. This will also be correct for the upgraded versions of these devices (e.g. SN50V3-LB/NB, D2X-LB/NB, S31X-LB/NB, CPL03-LB/NB, DS03A-LB/NB, SW3L-LB/NB)

To access the AT Commands to change the configuration of your device you will need:

– A USB-TTL Converter

– 3 F-F DuPont Cables

– A Phillips screwdriver

  1. Open up the device by removing the 4 screws on the front of the device.
  2. Using the F-F Cables connect one end of the cables to the USB-TTL Converter as shown below:

Then connect the other end of the cables to the corresponding pin receptors on the device as shown below:

USB-TTL GND –> Device GND

USB-TTL RXD –> Device PA2

USB-TTL TXD –> Device PA3

Then turn on the device placing the yellow jumper over both power pins.

Plug the USB-TTL Converter into a USB port on your laptop and open Serial Port Utility. If you have a Windows laptop it should already be installed, if not you can install a copy here.

  1. On the left hand side, select the COM Port that you have plugged the USB-TTL converter into and make sure the rest of the fields match that of the image below:
  1. Click the play/start button to open the session.
  1. To begin communicating with the device may need to enter the device password (123456 or 12345678 as default- Newer models will have a unique AT Pin which can be found on the registration key sticker on the device box). Make sure to press the enter key before you press send as otherwise to command will not work.
  1. You can then enter any device specific or common commands to change the device configuration. In this example we will use the AT+TDC=(time in milliseconds) command to adjust the uplink interval.
  1. To see the current uplink interval use the AT Command: AT+TDC=?. Make sure to leave a new line after every AT Command entered. The device should then show 1200000 OK if the device is set to a 20min Uplink interval.
  1. 10. To change the uplink interval enter: AT+TDC=’the required uplink interval in milliseconds’

 For Example:

  • AT+TDC=30000 – To change the uplink interval to 30 seconds
  • AT+TDC=60000- To change the uplink interval to 60 seconds
  1. The device will reply with ‘OK’. Then hit the reset button on the device to trigger this change. You will see an uplink then come through serial port utility every 30 or 60 seconds depending on which command was used.

1.2 Board Type 2

This includes the following devices LTC2-XX, LDDSXX, LLDSXX, LMDSXXX, LLMS01, LSE01, LSPH01, GroPoint Air, RS485-BL and the NB-IoT versions of these devices. This will also be correct for the upgraded versions of these devices (e.g. DDSXX-LB/NB, LLDSXX-LB/NB, LMDSXXX-LB/NB, LMS01-LB-NB, SE01-LB-NB, SPH01-LB-NB, RS485-LB/NB).

To access the AT Commands to change the configuration of your device you will need:

– A USB-TTL Converter

– 3 M-F DuPont Cables

– A Phillips screwdriver

  1. Open up the device by removing the 4 screws on the front of the device.
  2. Using the M-F Cables provided connect the female the female end of the cables to the USB-TTL Converter as shown below:
  1. Then connect the male end of the cables to the corresponding pin receptors on the device as shown below:

USB-TTL GND –> Device GND

USB-TTL RXD –> Device TXD

USB-TTL TXD –> Device RXD

Then turn on the device placing the yellow jumper over both power pins.

  1. Plug the USB-TTL Converter into a USB port on your laptop and open Serial Port Utility. If you have a Windows laptop it should already be installed, if not you can install a copy here.
  1. On the left hand side, select the COM Port that you have plugged the USB-TTL converter into and make sure the rest of the fields match that of the image below:
  1. Click the play/start button to open the session.
  1. To begin communicating with the device may need to enter the device password (123456 or 12345678 as default- Newer models will have a unique AT Pin which can be found on the registration key sticker on the device box). Make sure to press the enter key before you press send as otherwise to command will not work.
  1. You can then enter any device specific or common commands to change the device configuration. In this example we will use the AT+TDC=(time in milliseconds) command to adjust the uplink interval.
  1. To see the current uplink interval use the AT Command: AT+TDC=?. Make sure to leave a new line after every AT Command entered. The device should then show 1200000 OK if the device is set to a 20min Uplink interval.
  1. To change the uplink interval enter: AT+TDC=’the required uplink interval in milliseconds’

 For Example:

  • AT+TDC=30000 – To change the uplink interval to 30 seconds
  • AT+TDC=60000- To change the uplink interval to 60 seconds
  1. The device will reply with ‘OK’. Then hit the reset button on the device to trigger this change. You will see an uplink then come through serial port utility every 30 or 60 seconds depending on which command was used.

1.3 LHT65N/S & LHT52

To access the AT Commands to change the configuration of your device you will need:

– E2 Programming Cable

– USB-TTL Converter

– 3 M-F DuPont Cables

Male to Female Cables:

USB-TTL GND —-> Programming Cable Port 1

USB-TTL RXD —-> Programming Cable Port 5

USB-TTL TXD —-> Programming Cable Port 9

  1. Plug the USB C end of the programming cable into your device.
  1. Plug the USB-TTL Converter into a USB port on your laptop and open Serial Port Utility. If you have a Windows laptop it should already be installed, if not you can install a copy here.
  1. On the left hand side, select the COM Port that you have plugged the USB-TTL converter into and make sure the rest of the fields match that of the image below:
  1. Click the play/start button to open the session.

  1. To begin communicating with the device may need to enter the device password (123456 or 12345678 as default- Newer models will have a unique AT Pin which can be found on the registration key sticker on the device box). Make sure to press the enter key before you press send as otherwise to command will not work.
  1. You can then enter any device specific or common commands to change the device configuration. In this example we will use the AT+TDC=(time in milliseconds) command to adjust the uplink interval.
  1. To see the current uplink interval use the AT Command: AT+TDC=?. Make sure to leave a new line after every AT Command entered. The device should then show 1200000 OK if the device is set to a 20min Uplink interval.
  1. To change the uplink interval enter: AT+TDC=’the required uplink interval in milliseconds’

 For Example:

  • AT+TDC=30000 – To change the uplink interval to 30 seconds
  • AT+TDC=60000- To change the uplink interval to 60 seconds
  1. The device will reply with ‘OK’. Then hit the reset button on the device to trigger this change. You will see an uplink then come through serial port utility every 30 or 60 seconds depending on which command was used.

1.4 LDS02 & LWL02

To access the AT Commands to change the configuration of your device you will need:

– A USB-TTL Converter

– 3 M-F DuPont Cables

– Small flat head screwdriver

  1. Open up the device by sliding the back off the device and then using a small screwdriver to remove the board and battery casing from the external casing.
  2. Using the M-F Cables provided connect the female the female end of the cables to the USB-TTL Converter as shown below:

Then connect the male end of the cables to the corresponding pin receptors on the device as shown below:

USB-TTL GND –> Device GND

Then turn on the device by inserting 2x AAA

USB-TTL RXD –> Device TXD batteries. USB-TTL TXD –> Device RXD

  1. Plug the USB-TTL Converter into a USB port on your laptop and open Serial Port Utility. If you have a Windows laptop it should already be installed, if not you can install a copy here.
  1. On the left hand side, select the COM Port that you have plugged the USB-TTL converter into and make sure the rest of the fields match that of the image below:
  1. Click the play/start button to open the session.
  1. To begin communicating with the device may need to enter the device password (123456 or 12345678 as default- Newer models will have a unique AT Pin which can be found on the registration key sticker on the device box). Make sure to press the enter key before you press send as otherwise to command will not work.
  1. You can then enter any device specific or common commands to change the device configuration. In this example we will use the AT+TDC=(time in milliseconds) command to adjust the uplink interval.
  1. To see the current uplink interval use the AT Command: AT+TDC=?. Make sure to leave a new line after every AT Command entered. The device should then show 1200000 OK if the device is set to a 20min Uplink interval.
  1. To change the uplink interval enter: AT+TDC=’the required uplink interval in milliseconds’

 For Example:

  • AT+TDC=30000 – To change the uplink interval to 30 seconds
  • AT+TDC=60000- To change the uplink interval to 60 seconds
  1. The device will reply with ‘OK’. Then hit the reset button on the device to trigger this change. You will see an uplink then come through serial port utility every 30 or 60 seconds depending on which command was used.

1.5 LT-22222-L & RS485-LN

To access the AT Commands to change the configuration of your device you will need:

– A USB-TTL Converter

– 3 M-F DuPont Cables

– 3.5mm programming cable (provided with devices)

– A Phillips screwdriver

  1. Plug the 3.5mm programming cable into the PROG port on the device.
  2. Using the M-F Cables connect one end of the cables to the USB-TTL Converter as shown below:
  1. Then connect the other end of the cables to the corresponding pin receptors on the programming cable as shown below:

USB-TTL GND –> Black    

USB-TTL RXD –> White

USB-TTL TXD –> Red

  1. Make sure your device is powered on. Both the LT-22222-L and the RS485-LN can be powered by a 7 ~ 24V DC power source. If the device is properly powered the Power LED will glow red. See below for connection methods:

RS485-LN

  • Power Source VIN to RS485-LN VIN+
  • Power Source GND to RS485-LN VIN-

LT-22222-L

  • Power Source V+ to LT-22222-L VIN
  • Power Source V- to LT-22222-L GND
  1. Plug the USB-TTL Converter into a USB port on your laptop and open Serial Port Utility. If you have a Windows laptop it should already be installed, if not you can install a copy here.
  1. On the left hand side, select the COM Port that you have plugged the USB-TTL converter into and make sure the rest of the fields match that of the image below:
  1. Click the play/start button to open the session.
  1. To begin communicating with the device may need to enter the device password (123456 or 12345678 as default- Newer models will have a unique AT Pin which can be found on the registration key sticker on the device box). Make sure to press the enter key before you press send as otherwise to command will not work.
  1. You can then enter any device specific or common commands to change the device configuration. In this example we will use the AT+TDC=(time in milliseconds) command to adjust the uplink interval.
  1. To see the current uplink interval use the AT Command: AT+TDC=?. Make sure to leave a new line after every AT Command entered. The device should then show 1200000 OK if the device is set to a 20min Uplink interval.
  1. To change the uplink interval enter: AT+TDC=’the required uplink interval in milliseconds’

 For Example:

  • AT+TDC=30000 – To change the uplink interval to 30 seconds
  • AT+TDC=60000- To change the uplink interval to 60 seconds
  1. The device will reply with ‘OK’. Then hit the reset button on the device to trigger this change. You will see an uplink then come through serial port utility every 30 or 60 seconds depending on which command was used.

2.0 General Commands

These commands re universal across all devices. For device specific commands, please refer to the user manual of your device.

2.1 System Management Commands

2.1.1 Change Uplink Interval

Function: Change device uplink interval

AT Command: AT+TDC

Command ExampleFunctionResponse
AT+TDC=?Shows the current uplink interval3000OKSo the interval here is 30000ms (30secs)
AT+TDC=60000Sets the uplink intervalOKThe interval has been set to 60000ms (60secs)

2.1.2 Reboot End Node

Function: Reboot End Node to perform a new OTAA or ABP join

AT Command: ATZ

Command ExampleFunctionResponse
ATZReset MCUDevice will reset and will show the booting info

2.1.3 Reset to Factory Default

Function: Reset to factory default. The OTAA and ABP Keys will be preserved when running this command.

AT Command: AT+FDR

Command ExampleFunctionResponse
AT+FDRReset to factory defaultDevice will reset to factory default and will show the booting info

2.1.4 Show Firmware Version

Function: Shows the firmware version and frequency plan of the device.

AT Commands: AT+VER

Command ExampleFunctionResponse
AT+VER=?Shows the firmware version and frequency plan1.8.0 EU868OK

2.1.5 Show System Configuration

Function: Shows system configuration.

AT Command: AT+CFG

Command ExampleFunctionResponse
AT+CFGShows full system configuration.AT+DEUI = XX XX XX XX XX XX XX XX
AT+DADDR=XXXXXXXX
……….
AT+RX2WTO=X
AT+CHS=868100000
OK

2.2 Keys, ID & EUI Management

2.2.1 Application EUI (APPEUI)

Function: Get or set APPEUI

AT Command: AT+APPEUI

Command Example   FunctionResponse
AT+APPEUI=?Shows the APPEUI00 B3 D5 00 00 00 00 00 OK
AT+APPEUI=00 B3 D5 7E F0 00 4D 34Sets the APPEUIOKThe APPEUI has been set to 00 B3 D5 7E F0 00 4D 34

2.2.2 Application Key (APPKEY)

Function: Get or set APPKEY

AT Command: AT+APPKEY

Command Example   FunctionResponse
AT+APPKEY=?Shows the APPKEY00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35OK
AT+APPKEY= 00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35Sets the APPKEYOKThe APPEUI has been set to 00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35

2.2.3 Application Session Key (APPSKEY)

Function: Get or set APPSKEY

AT Command: AT+APPSKEY

Command Example   FunctionResponse
AT+APPSKEY=?Shows the APPSKEY00 7D DC 73 33 D3 EB 9E 14 38 D5 A4 3E 62 5B E2OK
AT+APPSKEY= 00 7D DC 73 33 D3 EB 9E 14 38 D5 A4 3E 62 5B E2Sets the APPSKEYOKThe APPSKEY has been set to 00 7D DC 73 33 D3 EB 9E 14 38 D5 A4 3E 62 5B E2

2.2.4 Device Address (DEVADDR)

Function: Get or set DEVADDR

AT Command: AT+DADDR

Command Example   FunctionResponse
AT+DADDR=?Shows the DEVADDRA8 40 41 FFOK
AT+DADDR= A8 40 41 FFSets the DEVADDROKThe DEVADDR has been set to A8 40 41 FF

2.2.5 Device EUI (DEVEUI)

Function: Get or set DEVEUI

AT Command: AT+DEUI

Command Example   FunctionResponse
AT+DEUI=?Shows the DEVEUI00 44 34 22 33 45 55 55 OK
AT+DEUI= A8 40 41 FF FF 12 34 56Sets the DEVEUIOKThe DEVEUI has been set to A8 40 41 FF FF 12 34 56

2.2.6 Network ID (NWKID)

Function: Get or set NWKID

AT Command: AT+NWKID

Command Example   FunctionResponse
AT+NWKID=?Shows the Network IDA8 40 41 FFOK
AT+NWKID= A8 40 41 FFSets the Network IDOKThe DEVADDR has been set to A8 40 41 FF

2.2.7 Network Session Key (NWKSKEY)

Function: Get or set NWKSKEY

AT Command: AT+NWKSKEY

Command Example   FunctionResponse
AT+NWKSKEY=?Shows the NWKSKEY00 4F 19 25 52 CE 97 09 D7 FA 84 71 DB 51OK
AT+NWKSKEY= A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07Sets the NWKSKEYOKThe NWKSKEY has been set to A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07

2.3 Joining & sending data on a LoRaWAN Network

2.3.1 Confirmation Mode

Function: Get or set the confirmation mode (0-1).

Before DR-LWS-007 software stack.

AT Command: AT+CFM

Command ExampleFunctionResponse
AT+CFM=?Shows the Confirmation mode0OK
AT+CFM=1Sets the Confirmation modeOKThe CFM has been set to 1
AT+CFM=2Sets the Confirmation modeOKThe CFM has been set to 2
After DR-LWS-007 software stack.

AT Command: AT+CFM

Command ExampleFunctionResponse
AT+CFM=1,0,0Value1Confirmed uplink1OK
AT+CFM=0,?,0Value2Sets max retry level, range: 0~-70~7OKThe Max retry level has been set to 0~7
AT+CFM=0,0,1Value3Sets the uplink FCnt to increase by 1 for each try1OKThe uplink FCnt has been set to increase by 1 for each try

2.3.2 Confirmation Status

Function: Gets the confirmation status of the last AT+SEND (0-1).

AT Command: AT+CFS

Command ExampleFunctionResponse
AT+CFS=?Gets confirmation status0OK

2.3.3 Join LoRa Network

Function: Joins the LoRa Network.

AT Command: AT+JOIN

Command ExampleFunctionResponse
AT+JOIN=?Gets informationAT+JOIN: Join NetworkOK

2.3.4 LoRa Network Join Mode

Function: Gets or sets the LoRa Network Join Mode.

AT Command: AT+NJM

Command ExampleFunctionResponse
AT+NJM=?Gets network join mode1OK
AT+NJM=0Sets the network join modeOKThe NJM has been set to 0
AT+NJM=2Sets the network join modeOKThe NJM has been set to 2

2.3.5 LoRa Network Join Status

Function: Gets the LoRa Network Join Status.

AT Command: AT+NJS

Command ExampleFunctionResponse
AT+NJS=?Gets the join status0OK

2.3.6 Print last received data in raw format

Function: Prints the last received data in raw format (<port:data>).

AT Command: AT+RECV

Command ExampleFunctionResponse
AT+RECV=?Prints the last received data in the raw format0:OK

2.3.7 Print last received data in binary format

Function: Prints the last received data in binary format (<port:data>).

AT Command: AT+RECVB

Command ExampleFunctionResponse
AT+RECVB=?Prints the last received data in the binary format2: 0010OK

2.3.8 Send Text Data

Function: Sends text data (<port:data>).

AT Command: AT+SEND

Command ExampleFunctionResponse
AT+SEND=12:hello worldSends text data along with the application portOK

2.3.9 Send Hexadecimal Data

Function: Sends hexadecimal data (<port:data>).

AT Command: AT+SENDB

Command ExampleFunctionResponse
AT+SENDB=12:ABCDEF0123456789Sends hexadecimal data along with the application portOK

2.4 LoRaWAN Network Management

2.4.1 Adaptive Data Rate (ADR)

Function: Get or set the ADR setting (0: off, 1: on).

AT Command: AT+ADR

Command ExampleFunctionResponse
AT+ADR=?Gets the ADR setting1OK
AT+ADR=0Sets the ADR settingOKThe ADR setting has been set to 0: Off
AT+ADR=1Sets the ADR settingOKThe ADR setting has been set to 1: On

2.4.2 LoRa Class

Function: Get or set the device class (Dragino products currently only support class A & C).

AT Command: AT+CLASS

Command ExampleFunctionResponse
AT+CLASS=?Gets the device classAOK
AT+CLASS=CSets the device classOKThe device class has been set to C

Note: Run AT+FDR Before running AT+CLASS=C

2.4.3 Duty Cycle Setting

Function: Get or set the ETSI Duty Cycle setting (0=disabled, 1=enabled -Only for testing).

AT Command: AT+DCS

Command ExampleFunctionResponse
AT+DCS=?Gets the ETSI duty cycle setting1OK
AT+DCS=0Sets the ETSI duty cycle settingOKThe ETSI duty cycle setting has been set to 0: Disabled

2.4.4 Data Rate

Function: Get or set the Data Rate (0-7 corresponding to DR_X).

AT Command: AT+DR

Command ExampleFunctionResponse
AT+DR=?Gets the Data rate5OK
AT+DR=2Sets the Data rateOKThe data rate has been set to 2

Note: Users need to use command AT+ADR=0 to set the ADR to 0 first. Otherwise the device will respond to the servers ADR command and change the DR according to the servers auto-adjustment.

Data Rate specifies the Spreading Factor- The mapping varies in different frequency bands.

See here for more details.

2.4.5 Frame Counter Downlink

Function: Get or set the Frame Counter Downlink.

AT Command: AT+FCD

Command ExampleFunctionResponse
AT+FCD=?Gets the Frame Counter Downlink.0OK
AT+FCD=10Sets the Frame Counter Downlink.OKThe system will write the new value to FCD.

2.4.6 Frame Counter Uplink

Function: Get or set the Frame Counter Uplink.

AT Command: AT+FCU

Command ExampleFunctionResponse
AT+FCU=?Gets the Frame Counter Uplink.0OK
AT+FCU=10Sets the Frame Counter Uplink.OKThe system will write the new value to FCU.

2.4.7 Join Accept Delay 1

Function: Get or set the Join Accept delay between the end of the TX and the Join RX Window 1 (RX1) in ms.

AT Command: AT+JN1DL

Command ExampleFunctionResponse
AT+JN1DL=?Gets the Join Accept delay5000OK
AT+JN1DL=10000Sets the Join Accept delayOKThe join accept delay has been set to 10000ms

2.4.8 Join Accept Delay 2

Function: Get or set the Join Accept delay between the end of the TX and the Join RX Window 2 (RX2) in ms.

AT Command: AT+JN2DL

Command ExampleFunctionResponse
AT+JN2DL=?Gets the Join Accept delay6000OK
AT+JN2DL=20000Sets the Join Accept delayOKThe join accept delay has been set to 20000ms

2.4.9 Public Network Mode

Function: Get or set the public network mode (0:off, 1:on).

A public LoRaWAN network uses 0x34 as a sync-word. Default settings: PNM=1

AT Command: AT+PNM

Command ExampleFunctionResponse
AT+PNM=?Gets the public network mode1OK
AT+PNM=1Sets to use public network mode.Sets syncword=0x34OKSystem will write new value to PNM
AT+PNM=0Sets to use private network mode.Sets syncword=0x12OK

Note: If you are building your own LoRaWAN Server but still use syncword=0x34, this is still considered a public network.

2.4.10 Receive Delay 1

Function: Get or set the delay between the end of TX and the RX1 Window in ms.

AT Command: AT+RX1DL

Command ExampleFunctionResponse
AT+RX1DL=?Gets the receive delay1000OK
AT+RXDL1=1500Sets the receive delayOKThe receive accept delay has been set to 1500ms

2.4.11 Receive Delay 2

Function: Get or set the delay between the end of TX and the RX2 Window in ms.

AT Command: AT+RX2DL

Command ExampleFunctionResponse
AT+RX2DL=?Gets the receive delay2000OK
AT+RXDL2=2500Sets the receive delayOKThe receive accept delay has been set to 2500ms

2.4.12 RX2 Window Data Rate

Function: Get or set the RX2 window data rate (0-7 corresponding to DR_X).

AT Command: AT+RX2DR

Command ExampleFunctionResponse
AT+RX2DR=?Gets the RX2 window data rate2OK
AT+RXDR=6Sets the RX2 window data rate OKThe RX2 window data rate has been set to 6

2.4.13 RX2 Window Frequency

Function: Get or set the RX2 window frequency.

AT Command: AT+RX2FQ

Command ExampleFunctionResponse
AT+RX2FQ=?Gets the RX2 window frequency2OK
AT+RX2FQ=434665000Sets the RX2 window data frequencyOKThe RX2 window frequency has been set to 434665000

2.4.14 Transmission Power

Function: Get or set the transmission power (0-5, MAX:0, MIN:5- According to LoRaWAN Spec or 40=10dB, 41=11dB…50=20dB which is out of LoRaWAN Spec).

AT Command: AT+TXP

Command ExampleFunctionResponse
AT+TXP=?Gets the Transmission power0OK
AT+TXP=1Sets the Transmission powerOKThe Transmission power has been set to 1

Note: Transmission power might be changed by the ADR from the LoRaWAN server. So when manually changing the TXP also remember to use AT+ADR=0.

2.4.15 RSSI of the Last Received Packet

Function: Get the RSSI of the last received packet.

AT Command: AT+RSSI

Command ExampleFunctionResponse
AT+RSSI=?Gets the RSSI of the last received packet0OK

2.4.16 SNR of the Last Received Packet

Function: Get the SNR of the last received packet.

AT Command: AT+SNR

Command ExampleFunctionResponse
AT+SNR=?Gets the SNR of the last received packet0OK

2.4.17 Application Port

Function: Get or set the Application Port.

AT Command: AT+PORT

Command ExampleFunctionResponse
AT+PORT=?Gets the Application Port21OK
AT+PORT=21Gets the Application PortOKThe Application port has been set to 21

2.4.18 Single Channel Mode

Function: Get or set the Frequency (Unit:Hz) for Single Channel Mode.

AT Command: AT+CHS

Command ExampleFunctionResponse
AT+CHS=?Gets the Single Channel Mode0OK
AT+CHS=868100000Gets the Single Channel ModeOKThe single channel mode has been set to 868100000

2.4.19 Eight Channel Mode

Function: Get or set Eight Channel Mode. Only for bands: US915, AU915 & CN470.

AT Command: AT+CHE

Command ExampleFunctionResponse
AT+CHE=?Gets the Eight Channel Mode1902.3 902.5 902.7 902.9 903.1 903.3 903.5 903.7OK
AT+CHE=1Gets the Eight Channel ModeOKThe eight channel mode has been set to 1

2.4.20 RX1 Window Timeout

Function: Get or set the number of symbols to detect and timeout from the RX1 Window (0-255).

AT Command: AT+RX1WTO

Command ExampleFunctionResponse
AT+RX1WTO=?Gets the RX1 Window Timeout14OK
AT+RX1WTO=60Gets the RX1 Window TimeoutOKThe RX1 window timeout has been set to 60

2.4.21 RX2 Window Timeout

Function: Get or set the number of symbols to detect and timeout from the RX2 Window (0-255).

AT Command: AT+RX2WTO

Command ExampleFunctionResponse
AT+RX2WTO=?Gets the RX1 Window Timeout7OK
AT+RX2WTO=20Gets the RX1 Window TimeoutOKThe RX2 window timeout has been set to 20

2.4.22 Uplink Dwell Time

Function: Get or set the uplink dwell time. Only for AS923 & AU915.

AT Command: AT+DWELLT

Command ExampleFunctionResponse
AT+DWELLT=?Gets the Uplink Dwell Time1OK
AT+DWELLT=0Gets the Uplink Dwell TimeOKThe uplink dwell time has been set to 0

2.4.23 Packet Receiving Response Level

Function: Get or set the packet receiving response level. This feature is used to set compatible  with different LoRaWAN servers. If the RPL doesn’t match, the user will see strange messages in the server portal.

RPL Value:

  • -AT+RPL=0: The device won’t immediately reply to any downlink commands from the platform
  • AT+RPL=1: The device will immediately reply to unconfirmed data downlinks. Payload is 0x00
  • AT+RPL=2: The device will immediately reply to confirmed data downlinks. Payload is 0x00 and the required response header for this command.
  • AT+RPL=3: The device will immediately reply to MAC commands. Payload is 0x00 and the required response header for this command.
  • AT+RPL=4: The device will immediately reply to confirmed data downlinks & MAC commands. Payload is 0x00 and the required response header for these 2 commands.

Case Analysis:

  • For Class A devices, AT+RPL=0 is ok. This is the default setting.
  • For Class C devices using ChirpStack, AT+RPL=4 will need to be used as ChirpStack requires immediate replies to MAC commands.
  • For Class C devices using TTI, AT+RPL=4 will need to be used as TTI requires immediate replies to MAC commands & confirmed data downlink.

AT Command: AT+RPL

Command ExampleFunctionResponse
AT+RPL=?Gets the packet receiving response level1OK
AT+RPL=0Gets the packet receiving response levelOKThe packet receiving response level has been set to 0

2.4.24 Control NBTrans in Unconfirmed Uplink Mode

Function: LWS007 NBTrans: set retransmission packets.

AT Command: AT+SETMAXNBTRANS

Command ExampleFunctionResponse
AT+SETMAXNBTRANS=1,0Value 1: Sets the maximum NBTrans.1OK
AT+SETMAXNBTRANS=?,1Value 2: 0: Uplink FCnt doesn’t change for each NBTrans1: uplink FCnt increases by 1 for each NBTrans1OK

2.4.25 Device Offline Rejoining (LWS007)

AT+DDETECT= <Flag>, <ACK_Timeout_1>, <ACK_Timeout_2> (Default Value: AT+DDETECT=1,1440,2880)

  • ACK_Timeout_1: Unit: min
  • ACK_Timeout_2: Unit: min

AT Command: AT+DDETECT

Command ExampleFunctionResponse
AT+DDETECT= 1,1440,2880Value1Enable online detection1OK
AT+DDETECT=1,?,2280Value2Online detection packet sending timeOK
AT+DDETECT= 1,1440,?Value3Processes re-joinOK

2.4.26 Request the Server to send an ACK

AT Command: AT+PNACKMD

Command ExampleFunctionResponse
AT+PNACKMD=1If the node uploads the ACK as confirmed, it will request the server to send an ACK. If the server ACK is not received, the node will upload the packets that have not received the ACK the next time it receives the ACK.1OK
AT+PNACKMD=0Off request the server to send an ACK0OK

2.4.27 Request the Server to send an ACK

AT Command: AT+RJTDC

Command ExampleFunctionResponse
AT+RJTDC=?Shows the re-join data transmission interval in mins30OK
AT+RJTDC=60Sets the re-join data transmission interval in minsOKThe re-join data transmission has been set to 60 mins
  • AIS01-LB LoRaWAN AI Image End Node

    AIS01-LB LoRaWAN AI Image End Node

    From £24.99 (exc. VAT)
  • AM102/AM102L Indoor Ambience Monitoring Sensor

    AM102/AM102L Indoor Ambience Monitoring Sensor

    From £55.80 (exc. VAT)
  • AM103/AM103L Indoor Ambience Monitoring Sensor

    AM103/AM103L Indoor Ambience Monitoring Sensor

    From £180.00 (exc. VAT)
  • AM307 Indoor Ambience Monitoring Sensor

    AM307 Indoor Ambience Monitoring Sensor

    From £318.60 (exc. VAT)
  • Footer Logo
    • ©2026 UKIoT, all rights reserved. UKIoT is a limited company registered in England and Wales. Registration no. 11466521

    • LoRaWAN Frequency Checker
    • Delivery
    • Subscribe
    • Terms & Conditions
    • Privacy Policy
    • Website issues/enquiries: support@ukiot.io
    • Home
    • Shop
    • About Us
    • Partners
    • Success Stories
    • Blog
    • UKIOT Academy