Difference between revisions of "End Device AT Commands and Downlink Commands"
(→Keys, IDs and EUIs management) |
David.huang (Talk | contribs) (→Keys, IDs and EUIs management) |
||
Line 202: | Line 202: | ||
=Keys, IDs and EUIs management= | =Keys, IDs and EUIs management= | ||
+ | == Application EUI== | ||
+ | Feature: Get or Set the Application EUI. | ||
+ | |||
+ | <span CLASS=bluemiddle> AT Command: AT+APPEUI</span> | ||
+ | |||
+ | {| style="color:green;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
+ | ! colspan="3"|AT+APPEUI | ||
+ | {| style="color:green;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
+ | ! colspan="3"|AT+TDC | ||
+ | |- | ||
+ | |'''Command Example''' | ||
+ | |'''Function''' | ||
+ | |'''Response''' | ||
+ | |- | ||
+ | |AT+APPEUI? | ||
+ | |Get the Application EUI | ||
+ | |00 b3 d5 00 00 00 00 00 | ||
+ | OK | ||
+ | |||
+ | |- | ||
+ | |AT+APPEUI=00 b3 d5 7e f0 00 4d 34 | ||
+ | |Set the Application EUI | ||
+ | |OK | ||
+ | |||
+ | |} | ||
+ | <br> | ||
=Joining and sending date on LoRaWAN network= | =Joining and sending date on LoRaWAN network= |
Revision as of 21:30, 1 November 2020
Contents
Introduction
Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands:
- Common Commands: They should be available for each sensor, such as: change uplink interval, reset device.
- Sensor Related Commands: Only for special sensor, such as control relay, poll RS485 device.
This page shows the common commands since Dragino LoRaWAN stack DR-LWS-005. Make sure the end node support stack higher than DR-LWS-005 before checking this page.
How to use AT Commands or Downlink command
See Devices User Manual for Device. The user manual can be found in each product page of Dragino Official Website
Support End Node and firmware version
Dragino STM32 base hardware Firmware / LoRaWAN stack list | ||
---|---|---|
Model | Description | Firmware Version ; Stack Version |
LSN50-v1, LSN50-V2, | Open Source Generic LoRaWAN Sensor Node | LSN50 v1.6.0 <--> DR-LWS-003;
LSN50 v1.7.0 <--> DR-LWS-005; --> Support since this version |
System Management Commands
Change Uplink Interval
Feature: Change LoRaWAN End Node Transmit Interval.
AT Command: AT+TDC
AT+TDC | ||
---|---|---|
Command Example | Function | Response |
AT+TDC? | Show current transmit Interval | 30000
OK the interval is 30000ms = 30s |
AT+TDC=60000 | Set Transmit Interval | OK
Set transmit interval to 60000ms = 60 seconds |
Downlink Command: 0x01
Format: Command Code (0x01) followed by 3 bytes time value.
If the downlink payload=0100003C, it means set the END Node’s Transmit Interval to 0x00003C=60(S), while type code is 01.
- Example 1: Downlink Payload: 0100001E // Set Transmit Interval (TDC) = 30 seconds
- Example 2: Downlink Payload: 0100003C // Set Transmit Interval (TDC) = 60 seconds
Reboot End Node
Feature: Reboot End Node to perform a new OTAA or ABP Join.
AT Command: ATZ
ATZ: Trig a reset of the MCU | ||
---|---|---|
Command Example | Function | Response |
ATZ | Reset MCU | Device reset and show booting info
LSN50 Device/LoRa ST Module Image Version: XX Frequency Band: XX DevEui= XX XX XX XX XX XX XX XX <followed by the Tx and Rx information> |
Downlink Command: 0x04
Format: Command Code (0x04) followed by FF.
If the downlink payload=04FF, the end node will reboot.
Reset to factory Default
Feature: Reset the parameters to Factory Default, factory default value depends on the firmware settings, the OTAA and ABP keys will reserve after this command.
AT Command: AT+FDR
Reset to factory default | ||
---|---|---|
Command Example | Function | Response |
AT+FDR | Reset to factory default | Device reset to factory default parameters and show booting info
LSN50 Device/LoRa ST Module Image Version: XX Frequency Band: XX DevEui= XX XX XX XX XX XX XX XX Please set the parameters or reset Device to apply change |
Downlink Command: 0x04
Format: Command Code (0x04) followed by FE.
If the downlink payload=04FE, Reset Parameters to Factory Default, Keys Reserve.
Show Firmware Version
Feature: Show firmware version. No downlink command yet.
AT Command: AT+VER
AT+VER: Image Version and Frequency Band | ||
---|---|---|
Command Example | Function | Response |
AT+VER=? | Show Image version and Frequency Band |
1.3 EU868 OK |
Show System Configure
Feature: Show All configure. No downlink command yet.
AT Command: AT+CFG
AT+CFG: Print all configurations | ||
---|---|---|
Command Example | Function | Response |
AT+CFG | Show all configures |
AT+DEUI = XX XX XX XX XX XX XX XX AT+DADDR=XXXXXXXX ………. AT+RX2WTO=X AT+CHS=868100000 OK |
Keys, IDs and EUIs management
Application EUI
Feature: Get or Set the Application EUI.
AT Command: AT+APPEUI
AT+APPEUI
Joining and sending date on LoRaWAN networkLoRaWAN network management0x05 Enable/Disable Data Confirm ModeSet end node to use confirm mode or unconfirm mode to uplink payload.
0x20 LoRa® Network Join Mode-- ABP or OTAASet the Network Join Mode. (0: ABP, 1: OTAA)
0x22 Adaptive RateSet the Adaptive Data Rate setting. (0: off, 1: on)
0x23 Application PortSet the application port
0x24 Eight Channel ModeSet eight channels mode,Only for US915,AU915,CN470
0x25 UplinkDwellTimeSet UplinkDwellTime
0x21 Set response level
|
---|