Difference between revisions of "End Device AT Commands and Downlink Commands"
From Wiki for Dragino Project
(→0x01 Change Uplink Interval) |
(→0x04 Reboot End Node) |
||
Line 65: | Line 65: | ||
Format: Command Code (0x04) followed by FF. | Format: Command Code (0x04) followed by FF. | ||
− | If the downlink payload=04FF, the end node will reboot. | + | If the downlink payload=<span CLASS=bluetext>04FF</span>, the end node will reboot. |
+ | <br> | ||
+ | |||
+ | == 0x05 Enable/Disable Data Confirm Mode== | ||
+ | |||
+ | Set end node to use confirm mode or unconfirm mode to uplink payload. | ||
+ | |||
+ | * 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. | ||
<br> | <br> |
Revision as of 10:06, 13 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
Downlink Commands List
Downlink Command Lists | ||
---|---|---|
Command Code | Function | Stack Version |
0x01 | Set LoRaWAN payload uplink interval | DR-LWS-005 |
0x04 | Reboot End Node | DR-LWS-005 |
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.