Difference between revisions of "End Device AT Commands and Downlink Commands"
(→Downlink Commands List) |
David.huang (Talk | contribs) |
||
Line 80: | Line 80: | ||
* Downlink Payload: <span CLASS=bluetext>05000001</span>, Set AT+CFM=1, use confirm mode to uplink. | * Downlink Payload: <span CLASS=bluetext>05000001</span>, Set AT+CFM=1, use confirm mode to uplink. | ||
* Downlink Payload: <span CLASS=bluetext>05000000</span>, set AT+CFM=0, use unconfirm mode to uplink. | * Downlink Payload: <span CLASS=bluetext>05000000</span>, set AT+CFM=0, use unconfirm mode to uplink. | ||
+ | <br> | ||
+ | |||
+ | == 0x04 Factory Data Reset== | ||
+ | |||
+ | Format: Command Code (0x04) followed by FE. | ||
+ | |||
+ | If the downlink payload=<span CLASS=bluetext>04FE</span>, Reset Parameters to Factory Default, Keys Reserve. | ||
+ | <br> | ||
+ | |||
+ | == 0x0A Set work mode== | ||
+ | |||
+ | Set the work mode(1:IIC mode,2:Distance mode,3:3ADC mode,4:3DS18B20 mode,5:weight mode) | ||
+ | |||
+ | * Example 1: Downlink Payload: <span CLASS=bluetext>0A02</span> // Set distance mode. | ||
+ | * Example 2: Downlink Payload: <span CLASS=bluetext>0A03</span> // Set 3ADC mode. | ||
+ | <br> | ||
+ | |||
+ | == 0x20 LoRa® Network Join Mode== | ||
+ | |||
+ | Set the Network Join Mode. (0: ABP, 1: OTAA) | ||
+ | |||
+ | * Downlink Payload: <span CLASS=bluetext>2000</span>, Set AT+NJM=O, use ABP mode to uplink. | ||
+ | * Downlink Payload: <span CLASS=bluetext>2001</span>, Set AT+NJM=1, use OTAA mode to uplink. | ||
+ | <br> | ||
+ | |||
+ | == 0x22 Adaptive Rate== | ||
+ | |||
+ | Set the Adaptive Data Rate setting. (0: off, 1: on) | ||
+ | |||
+ | * Downlink Payload: <span CLASS=bluetext>2201</span>, Set AT+ADR=1. | ||
+ | * Downlink Payload: <span CLASS=bluetext>2200FFFF</span>, Set AT+ADR=O. | ||
+ | <br> | ||
+ | |||
+ | == 0x23 Application Port== | ||
+ | |||
+ | Set the application port | ||
+ | |||
+ | * Example1 : Downlink Payload: <span CLASS=bluetext>2305</span> // Set AT+PORT=5 . | ||
+ | * Example2 : Downlink Payload: <span CLASS=bluetext>2323</span> // Set AT+PORT=23 . | ||
+ | <br> | ||
+ | |||
+ | == 0x24 Eight Channel Mode== | ||
+ | |||
+ | Set eight channels mode,Only for US915,AU915,CN470 | ||
+ | |||
+ | * Example : Downlink Payload: <span CLASS=bluetext>2401</span> // Set AT+CHE=1 902.3 902.5 902.7 902.9 903.1 903.3 903.5 903.7 . | ||
+ | <br> | ||
+ | |||
+ | == 0x25 UplinkDwellTime== | ||
+ | |||
+ | Set UplinkDwellTime | ||
+ | |||
+ | * Downlink Payload: <span CLASS=bluetext>2500</span>, Set AT+DWELLT=0 to uplink. | ||
+ | * Downlink Payload: <span CLASS=bluetext>2501</span>, Set AT+DWELLT=1 to uplink. | ||
<br> | <br> |
Revision as of 01:51, 15 September 2020
Contents
Introduction
Dragino LoRaWAN End Node support two types of 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 downlink command
See Devices User Manual.
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; |
Common Downlink Commands
0x01 Change Uplink Interval
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
0x04 Reboot End Node
Format: Command Code (0x04) followed by FF.
If the downlink payload=04FF, the end node will reboot.
0x05 Enable/Disable Data Confirm Mode
Set end node to use confirm mode or unconfirm mode to uplink payload.
- Downlink Payload: 05000001, Set AT+CFM=1, use confirm mode to uplink.
- Downlink Payload: 05000000, set AT+CFM=0, use unconfirm mode to uplink.
0x04 Factory Data Reset
Format: Command Code (0x04) followed by FE.
If the downlink payload=04FE, Reset Parameters to Factory Default, Keys Reserve.
0x0A Set work mode
Set the work mode(1:IIC mode,2:Distance mode,3:3ADC mode,4:3DS18B20 mode,5:weight mode)
- Example 1: Downlink Payload: 0A02 // Set distance mode.
- Example 2: Downlink Payload: 0A03 // Set 3ADC mode.
0x20 LoRa® Network Join Mode
Set the Network Join Mode. (0: ABP, 1: OTAA)
- Downlink Payload: 2000, Set AT+NJM=O, use ABP mode to uplink.
- Downlink Payload: 2001, Set AT+NJM=1, use OTAA mode to uplink.
0x22 Adaptive Rate
Set the Adaptive Data Rate setting. (0: off, 1: on)
- Downlink Payload: 2201, Set AT+ADR=1.
- Downlink Payload: 2200FFFF, Set AT+ADR=O.
0x23 Application Port
Set the application port
- Example1 : Downlink Payload: 2305 // Set AT+PORT=5 .
- Example2 : Downlink Payload: 2323 // Set AT+PORT=23 .
0x24 Eight Channel Mode
Set eight channels mode,Only for US915,AU915,CN470
- Example : Downlink Payload: 2401 // Set AT+CHE=1 902.3 902.5 902.7 902.9 903.1 903.3 903.5 903.7 .
0x25 UplinkDwellTime
Set UplinkDwellTime
- Downlink Payload: 2500, Set AT+DWELLT=0 to uplink.
- Downlink Payload: 2501, Set AT+DWELLT=1 to uplink.