<
From version < 63.41 >
edited by Xiaoling
on 2023/05/29 14:51
To version < 63.43 >
edited by Xiaoling
on 2023/05/29 15:19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -10,6 +10,7 @@
10 10  Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands:
11 11  
12 12  * (% style="color:blue" %)**Common Commands:** (%%) They should be available for each sensor, such as: change uplink interval, reset device.
13 +
13 13  * (% style="color:blue" %)**Sensor Related Commands:** (%%) Only for special sensor, such as control relay, poll RS485 device.
14 14  
15 15  (((
... ... @@ -21,6 +21,7 @@
21 21  
22 22  
23 23  * **AT Command** : See Devices User Manual for how to connect to device via USB TTL adapter and use. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]
25 +
24 24  * **LoRaWAN Downlink Command**: The gateway transfer downlink command in HEX format. This page shows the Downlink Command In HEX format. Please note some LoRaWAN servers use base64 as downlink code so user need to convert HEX to Base64 and use. Below are references for how to use downlink command:
25 25  ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]]
26 26  ** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]], [[How to Convert>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.1ConvertHEXtoBase64]]?
... ... @@ -129,6 +129,7 @@
129 129  )))
130 130  
131 131  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
134 +
132 132  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
133 133  
134 134  (% style="display:none" %) (%%)
... ... @@ -440,6 +440,7 @@
440 440  If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05.
441 441  
442 442  * **Example 1:** Downlink Payload: 0501  ~/~/ Set AT+CFM=1
446 +
443 443  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
444 444  
445 445  (% style="display:none" %) (%%)
... ... @@ -486,6 +486,7 @@
486 486  If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05.
487 487  
488 488  * **Example 1:** Downlink Payload: 05010101  ~/~/ Set AT+CFM=1,1,1
493 +
489 489  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
490 490  
491 491  (% style="display:none" %) (%%)
... ... @@ -546,6 +546,7 @@
546 546  If the downlink payload=2000, it means set the Network Join Mode, while type code is 20.
547 547  
548 548  * **Example 1: **Downlink Payload: **2000                  ** ~/~/ Set AT+NJM=0
554 +
549 549  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
550 550  
551 551  (% style="display:none" %) (%%)
... ... @@ -657,6 +657,7 @@
657 657  If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22.
658 658  
659 659  * **Example 1**: Downlink Payload: **2201**  ~/~/ Set AT+ADR=1.
666 +
660 660  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
661 661  
662 662  (% style="display:none" %) (%%)
... ... @@ -713,6 +713,7 @@
713 713  **Notice:**
714 714  
715 715  * User need to set Adaptive Data Rate(ADR)=0 first. otherwise device will respond to server's ADR command and change the DR according to server auto-adjustment.
723 +
716 716  * Data Rate specifies Spreading Factor. The mapping varies in different frequency bands. User can check this link for detail. [[rp2-1.0.3-lorawan-regional-parameters.pdf>>https://lora-alliance.org/resource_hub/rp2-1-0-3-lorawan-regional-parameters/]]
717 717  
718 718  (% style="color:blue" %)**AT Command: AT+DR**
... ... @@ -731,6 +731,7 @@
731 731  If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF.
732 732  
733 733  * **Example 1**: Downlink Payload: **220001FF**  ~/~/ Set AT+DR=1.
742 +
734 734  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
735 735  
736 736  (% style="display:none" %) (%%)
... ... @@ -938,6 +938,7 @@
938 938  If the downlink payload=22000100, it means setting the TXP to 0.
939 939  
940 940  * **Example 1**: Downlink Payload: **22000102**  ~/~/ Set AT+TXP=2.
950 +
941 941  * **Example 2**: Downlink Payload: **22000000**  ~/~/ Set AT+TXP=0.
942 942  
943 943  (% style="display:none" %) (%%)
... ... @@ -996,6 +996,7 @@
996 996  If the downlink payload=2301, it means set the application port to 1, while type code is 23.
997 997  
998 998  * **Example 1**: Downlink Payload: **2301**  ~/~/ set the application port to 1
1009 +
999 999  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1000 1000  
1001 1001  (% style="display:none" %) (%%)
... ... @@ -1041,6 +1041,7 @@
1041 1041  If the downlink payload=2401, it means set channel mode to 1, while type code is 24.
1042 1042  
1043 1043  * **Example 1**: Downlink Payload: 2401  ~/~/ set channel mode to 1
1055 +
1044 1044  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1045 1045  
1046 1046  (% style="display:none" %) (%%)
... ... @@ -1112,6 +1112,7 @@
1112 1112  If the downlink payload=2501, it means set uplinkdwelltime to 1, while type code is 25.
1113 1113  
1114 1114  * **Example 1**: Downlink Payload: **2501**  ~/~/ set uplinkdwelltime to 1
1127 +
1115 1115  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1116 1116  
1117 1117  (% style="display:none" %) (%%)
... ... @@ -1125,15 +1125,21 @@
1125 1125  (% style="color:blue" %)**RPL value:**
1126 1126  
1127 1127  * **AT+RPL=0:** Device won't immediately reply any downlink commands from platform.
1141 +
1128 1128  * **AT+RPL=1:** Device will immediately reply message to Unconfirmed Data Down. Payload is 0x00.
1143 +
1129 1129  * **AT+RPL=2:** Device will immediately reply message to Confirmed Data Down. Payload is 0x00 and requied response header for this command.
1145 +
1130 1130  * **AT+RPL=3:** Device will immediately reply message to MAC Command. Payload is 0x00 and requied response header for this command.
1147 +
1131 1131  * **AT+RPL=4: **Device will immediately reply message to Confirmed Data Down & MAC Command. Payload is 0x00 and requied response header for these two commands.
1132 1132  
1133 1133  (% style="color:blue" %)**Case Analyes:**
1134 1134  
1135 1135  * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software.
1153 +
1136 1136  * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command.
1155 +
1137 1137  * For Class C devices used in TTI, need to set AT+RPL=4 because TTI require immediately reply message to Confirmed Data Down & MAC Command.
1138 1138  
1139 1139  (% style="color:blue" %)**AT Command: AT+RPL**
... ... @@ -1152,6 +1152,7 @@
1152 1152  If the downlink payload=2101, it means set packet receiving response level to 1, while type code is 21.
1153 1153  
1154 1154  * **Example 1**: Downlink Payload: **2101**  ~/~/ set packet receiving response level to 1
1174 +
1155 1155  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1156 1156  
1157 1157  (% style="display:none" %) (%%)
... ... @@ -1183,6 +1183,7 @@
1183 1183  If the downlink payload=330100, it means set end node to use confirm mode, while type code is 33.
1184 1184  
1185 1185  * Example 1: Downlink Payload: 330100  ~/~/ Set AT+SETMAXNBTRANS=1,0
1206 +
1186 1186  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1187 1187  
1188 1188  (% style="display:none" %) (%%)
... ... @@ -1234,6 +1234,7 @@
1234 1234  If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
1235 1235  
1236 1236  * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1258 +
1237 1237  ** 0x01 : Flag
1238 1238  ** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours)
1239 1239  ** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours)
... ... @@ -1281,6 +1281,7 @@
1281 1281  If the downlink payload=26000A, it means set end node to use confirm mode, while type code is 26.
1282 1282  
1283 1283  * **Example 1:** Downlink Payload: 26000A  ~/~/  Set AT+RJTDC=10
1306 +
1284 1284  * **Example 2: **Downlink Payload: 260002  ~/~/  Set AT+RJTDC=2
1285 1285  
1286 1286  (% style="display:none" %) (%%)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0