<
From version < 38.22 >
edited by Xiaoling
on 2022/05/31 09:07
To version < 21.1 >
edited by Xiaoling
on 2022/05/27 17:53
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,7 +3,6 @@
3 3  {{toc/}}
4 4  
5 5  
6 -
7 7  = 1. Introduction =
8 8  
9 9  Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands:
... ... @@ -20,10 +20,11 @@
20 20  
21 21  * For AT Command , See Devices User Manual for Device. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]
22 22  * For LoRaWAN Downlink: The gateway transfer downlink command in HEX format. This page shows the HEX format downlink code for each command. but some servers use base64 as downlink code. Below are reference for how to use downlink command:
23 -** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]]
24 -** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]]
22 +** Use HEX format to send a downlink: [[TTN v3>>doc:Main.Notes for TTN.WebHome]]
23 +** Use Base64 format to send a downlink: [[Chirpstack>>doc:Main.Notes for ChirpStack.WebHome]].
25 25  ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server)
26 26  
26 +
27 27  = 3. Support End Node and firmware version =
28 28  
29 29  (% border="1" style="background-color:#ffffcc; color:green; width:966px" %)
... ... @@ -138,7 +138,6 @@
138 138  * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds
139 139  
140 140  
141 -
142 142  == 4.2 Reboot End Node ==
143 143  
144 144  Feature: Reboot End Node to perform a new OTAA or ABP Join.
... ... @@ -300,6 +300,7 @@
300 300  OK
301 301  )))
302 302  
302 +
303 303  = 5. Keys, IDs and EUIs management =
304 304  
305 305  == 5.1 Application EUI ==
... ... @@ -318,6 +318,7 @@
318 318  )))
319 319  |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
320 320  
321 +
321 321  == 5.2 Application Key ==
322 322  
323 323  Feature: Get or Set the Application Key.
... ... @@ -334,6 +334,7 @@
334 334  )))
335 335  |(% style="width:441px" %)AT+APPKEY=00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35|(% style="width:180px" %)Set the Application Key|(% style="width:350px" %)OK
336 336  
338 +
337 337  == 5.3 Application Session Key ==
338 338  
339 339  Feature: Get or Set the Application Session Key.
... ... @@ -352,6 +352,8 @@
352 352  OK
353 353  )))
354 354  
357 +
358 +
355 355  == 5.4 Device Address ==
356 356  
357 357  Feature: Get or Set the Device Address.
... ... @@ -370,6 +370,8 @@
370 370  )))
371 371  |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK
372 372  
377 +
378 +
373 373  == 5.5 Device EUI ==
374 374  
375 375  Feature: Get or Set the Device EUI.
... ... @@ -388,6 +388,8 @@
388 388  OK
389 389  )))
390 390  
397 +
398 +
391 391  == 5.6 Network ID ==
392 392  
393 393  Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection)
... ... @@ -404,6 +404,8 @@
404 404  )))
405 405  |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK
406 406  
415 +
416 +
407 407  == 5.7 Network Session Key ==
408 408  
409 409  Feature: Get or Set the Network Session Key
... ... @@ -420,6 +420,8 @@
420 420  )))
421 421  |(% style="width:455px" %)AT+NWKSKEY=A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07|(% style="width:215px" %)Set the Network Session Key.|(% style="width:343px" %)OK
422 422  
433 +
434 +
423 423  = 6. Joining and sending date on LoRaWAN network =
424 424  
425 425  == 6.1 Confirm Mode ==
... ... @@ -448,6 +448,8 @@
448 448  * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1
449 449  * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0
450 450  
463 +
464 +
451 451  == 6.2 Confirm Status ==
452 452  
453 453  Feature: Get confirmation status of the last AT+SEND (0-1).
... ... @@ -463,6 +463,8 @@
463 463  OK
464 464  )))
465 465  
480 +
481 +
466 466  == 6.3 Join LoRa® Network ==
467 467  
468 468  Feature: Join network.
... ... @@ -480,6 +480,8 @@
480 480  While Error in format, return AT_BUSY_ERROR
481 481  )))
482 482  
499 +
500 +
483 483  == 6.4 LoRa® Network Join Mode ==
484 484  
485 485  Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA).
... ... @@ -508,6 +508,8 @@
508 508  * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O
509 509  * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1
510 510  
529 +
530 +
511 511  == 6.5 LoRa® Network Join Status ==
512 512  
513 513  Feature: LoRa® Network Join Status.
... ... @@ -523,6 +523,8 @@
523 523  OK
524 524  )))
525 525  
546 +
547 +
526 526  == 6.6 Print Last Received Data in Raw Format ==
527 527  
528 528  Feature: Print Last Received Data in Raw Format<port:data>.
... ... @@ -538,6 +538,8 @@
538 538  OK
539 539  )))
540 540  
563 +
564 +
541 541  == 6.7 Print Last Received Data in Binary Format ==
542 542  
543 543  Feature: Print Last Received Data in Binary Format<port:data>.
... ... @@ -553,6 +553,8 @@
553 553  OK
554 554  )))
555 555  
580 +
581 +
556 556  == 6.8 Send Text Data ==
557 557  
558 558  Feature: Send Text Data<port:data>.
... ... @@ -572,6 +572,8 @@
572 572  
573 573  )))
574 574  
601 +
602 +
575 575  == 6.9 Send Hexadecimal Data ==
576 576  
577 577  Feature: Send hexadecimal data along with the application port.
... ... @@ -590,6 +590,8 @@
590 590  
591 591  )))
592 592  
621 +
622 +
593 593  = 7. LoRaWAN network management =
594 594  
595 595  == 7.1 Adaptive Data Rate ==
... ... @@ -621,6 +621,8 @@
621 621  * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1.
622 622  * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0.
623 623  
654 +
655 +
624 624  == 7.2 LoRa® Class ==
625 625  
626 626  Feature: Get or Set the Device Class(Currently only support class A, class C).
... ... @@ -639,6 +639,8 @@
639 639  
640 640  )))
641 641  
674 +
675 +
642 642  == 7.3 Duty Cycle Setting ==
643 643  
644 644  Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing.
... ... @@ -657,6 +657,8 @@
657 657  
658 658  )))
659 659  
694 +
695 +
660 660  == 7.4 Data Rate ==
661 661  
662 662  Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . Note: while set Data Rate, please use set Adptive Data Rate, ADR=0 first. otherwise device will response to server's ADR command and change the DR to the setting from server
... ... @@ -685,6 +685,8 @@
685 685  * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1.
686 686  * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0.
687 687  
724 +
725 +
688 688  == 7.5 Frame Counter Downlink ==
689 689  
690 690  Feature: Get or Set the Frame Counter Downlink.
... ... @@ -705,6 +705,8 @@
705 705  
706 706  )))
707 707  
746 +
747 +
708 708  == 7.6 Frame Counter Uplink ==
709 709  
710 710  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -723,6 +723,8 @@
723 723  
724 724  )))
725 725  
766 +
767 +
726 726  == 7.7 Join Accept Delay1 ==
727 727  
728 728  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms.
... ... @@ -741,6 +741,8 @@
741 741  
742 742  )))
743 743  
786 +
787 +
744 744  == 7.8 Join Accept Delay2 ==
745 745  
746 746  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms.
... ... @@ -759,6 +759,8 @@
759 759  
760 760  )))
761 761  
806 +
807 +
762 762  == 7.9 Public Network Mode ==
763 763  
764 764  Feature: Get or Set the public network mode. (0: off, 1: on)
... ... @@ -779,6 +779,8 @@
779 779  
780 780  )))
781 781  
828 +
829 +
782 782  == 7.10 Receive Delay1 ==
783 783  
784 784  Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
... ... @@ -797,6 +797,8 @@
797 797  
798 798  )))
799 799  
848 +
849 +
800 800  == 7.11 Receive Delay2 ==
801 801  
802 802  Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
... ... @@ -815,6 +815,8 @@
815 815  
816 816  )))
817 817  
868 +
869 +
818 818  == 7.12 Rx2 Window Data Rate ==
819 819  
820 820  Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
... ... @@ -833,6 +833,8 @@
833 833  
834 834  )))
835 835  
888 +
889 +
836 836  == 7.13 Rx2 Window Frequency ==
837 837  
838 838  Feature: Get or Set the Rx2 window frequency
... ... @@ -851,6 +851,8 @@
851 851  
852 852  )))
853 853  
908 +
909 +
854 854  == 7.14 Transmit Power ==
855 855  
856 856  Feature: Get or Set the Transmit Power(0-5, MAX:0, MIN:5, according to LoRaWAN Spec, or 40=10dB, 41 = 11dB, …, 50 = 20dB which is out of LoRaWAN spec. )
... ... @@ -876,6 +876,8 @@
876 876  * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2.
877 877  * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0.
878 878  
935 +
936 +
879 879  == 7.15 RSSI of the Last Received Packet ==
880 880  
881 881  Feature: Get or Set the Rx2 window frequency
... ... @@ -891,6 +891,8 @@
891 891  OK
892 892  )))
893 893  
952 +
953 +
894 894  == 7.16 SNR of the Last Received Packet ==
895 895  
896 896  Feature: Get the SNR of the last received packet
... ... @@ -906,6 +906,8 @@
906 906  OK
907 907  )))
908 908  
969 +
970 +
909 909  == 7.17 Application Port ==
910 910  
911 911  Feature: Get or set the application port.
... ... @@ -933,6 +933,8 @@
933 933  * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1
934 934  * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5
935 935  
998 +
999 +
936 936  == 7.18 Single Channel Mode ==
937 937  
938 938  Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode.
... ... @@ -949,6 +949,8 @@
949 949  )))
950 950  |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK
951 951  
1016 +
1017 +
952 952  == 7.19 Eight Channel Mode ==
953 953  
954 954  Feature: Get or Set eight channels mode,Only for US915,AU915,CN470.
... ... @@ -978,6 +978,8 @@
978 978  * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1
979 979  * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5
980 980  
1047 +
1048 +
981 981  == 7.20 Get or Set RXwindows1 timeout ==
982 982  
983 983  Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255).
... ... @@ -1022,6 +1022,8 @@
1022 1022  )))
1023 1023  |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK
1024 1024  
1093 +
1094 +
1025 1025  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1026 1026  
1027 1027  Feature: Get or Set uplinkdwelltime
... ... @@ -1049,6 +1049,8 @@
1049 1049  * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1
1050 1050  * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0
1051 1051  
1122 +
1123 +
1052 1052  == 7.23 Set Packet Receiving Response Level ==
1053 1053  
1054 1054  Feature: Get or Set packet receiving response level. This feature is used to set compatible with different LoRaWAN servers. If RPL doesn;t match , user will see strange message in the server portal.
... ... @@ -1090,6 +1090,8 @@
1090 1090  * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1
1091 1091  * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2
1092 1092  
1165 +
1166 +
1093 1093  = 8. AT Commands Combination =
1094 1094  
1095 1095  == 8.1 Set a fix RX2DR for downlink window ==
... ... @@ -1097,6 +1097,8 @@
1097 1097  * **AT+ADR=0 **~-~-> Disable ADR first
1098 1098  * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate
1099 1099  
1174 +
1175 +
1100 1100  == 8.2 Use Downlink Command to set a fix uplink DR ==
1101 1101  
1102 1102  {{info}}
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0