<
From version < 38.23 >
edited by Xiaoling
on 2022/05/31 09:08
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.
... ... @@ -301,7 +301,6 @@
301 301  )))
302 302  
303 303  
304 -
305 305  = 5. Keys, IDs and EUIs management =
306 306  
307 307  == 5.1 Application EUI ==
... ... @@ -320,6 +320,7 @@
320 320  )))
321 321  |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
322 322  
321 +
323 323  == 5.2 Application Key ==
324 324  
325 325  Feature: Get or Set the Application Key.
... ... @@ -336,6 +336,7 @@
336 336  )))
337 337  |(% 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
338 338  
338 +
339 339  == 5.3 Application Session Key ==
340 340  
341 341  Feature: Get or Set the Application Session Key.
... ... @@ -354,6 +354,8 @@
354 354  OK
355 355  )))
356 356  
357 +
358 +
357 357  == 5.4 Device Address ==
358 358  
359 359  Feature: Get or Set the Device Address.
... ... @@ -372,6 +372,8 @@
372 372  )))
373 373  |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK
374 374  
377 +
378 +
375 375  == 5.5 Device EUI ==
376 376  
377 377  Feature: Get or Set the Device EUI.
... ... @@ -390,6 +390,8 @@
390 390  OK
391 391  )))
392 392  
397 +
398 +
393 393  == 5.6 Network ID ==
394 394  
395 395  Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection)
... ... @@ -406,6 +406,8 @@
406 406  )))
407 407  |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK
408 408  
415 +
416 +
409 409  == 5.7 Network Session Key ==
410 410  
411 411  Feature: Get or Set the Network Session Key
... ... @@ -422,6 +422,8 @@
422 422  )))
423 423  |(% 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
424 424  
433 +
434 +
425 425  = 6. Joining and sending date on LoRaWAN network =
426 426  
427 427  == 6.1 Confirm Mode ==
... ... @@ -450,6 +450,8 @@
450 450  * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1
451 451  * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0
452 452  
463 +
464 +
453 453  == 6.2 Confirm Status ==
454 454  
455 455  Feature: Get confirmation status of the last AT+SEND (0-1).
... ... @@ -465,6 +465,8 @@
465 465  OK
466 466  )))
467 467  
480 +
481 +
468 468  == 6.3 Join LoRa® Network ==
469 469  
470 470  Feature: Join network.
... ... @@ -482,6 +482,8 @@
482 482  While Error in format, return AT_BUSY_ERROR
483 483  )))
484 484  
499 +
500 +
485 485  == 6.4 LoRa® Network Join Mode ==
486 486  
487 487  Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA).
... ... @@ -510,6 +510,8 @@
510 510  * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O
511 511  * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1
512 512  
529 +
530 +
513 513  == 6.5 LoRa® Network Join Status ==
514 514  
515 515  Feature: LoRa® Network Join Status.
... ... @@ -525,6 +525,8 @@
525 525  OK
526 526  )))
527 527  
546 +
547 +
528 528  == 6.6 Print Last Received Data in Raw Format ==
529 529  
530 530  Feature: Print Last Received Data in Raw Format<port:data>.
... ... @@ -540,6 +540,8 @@
540 540  OK
541 541  )))
542 542  
563 +
564 +
543 543  == 6.7 Print Last Received Data in Binary Format ==
544 544  
545 545  Feature: Print Last Received Data in Binary Format<port:data>.
... ... @@ -555,6 +555,8 @@
555 555  OK
556 556  )))
557 557  
580 +
581 +
558 558  == 6.8 Send Text Data ==
559 559  
560 560  Feature: Send Text Data<port:data>.
... ... @@ -574,6 +574,8 @@
574 574  
575 575  )))
576 576  
601 +
602 +
577 577  == 6.9 Send Hexadecimal Data ==
578 578  
579 579  Feature: Send hexadecimal data along with the application port.
... ... @@ -592,6 +592,8 @@
592 592  
593 593  )))
594 594  
621 +
622 +
595 595  = 7. LoRaWAN network management =
596 596  
597 597  == 7.1 Adaptive Data Rate ==
... ... @@ -623,6 +623,8 @@
623 623  * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1.
624 624  * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0.
625 625  
654 +
655 +
626 626  == 7.2 LoRa® Class ==
627 627  
628 628  Feature: Get or Set the Device Class(Currently only support class A, class C).
... ... @@ -641,6 +641,8 @@
641 641  
642 642  )))
643 643  
674 +
675 +
644 644  == 7.3 Duty Cycle Setting ==
645 645  
646 646  Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing.
... ... @@ -659,6 +659,8 @@
659 659  
660 660  )))
661 661  
694 +
695 +
662 662  == 7.4 Data Rate ==
663 663  
664 664  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
... ... @@ -687,6 +687,8 @@
687 687  * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1.
688 688  * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0.
689 689  
724 +
725 +
690 690  == 7.5 Frame Counter Downlink ==
691 691  
692 692  Feature: Get or Set the Frame Counter Downlink.
... ... @@ -707,6 +707,8 @@
707 707  
708 708  )))
709 709  
746 +
747 +
710 710  == 7.6 Frame Counter Uplink ==
711 711  
712 712  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -725,6 +725,8 @@
725 725  
726 726  )))
727 727  
766 +
767 +
728 728  == 7.7 Join Accept Delay1 ==
729 729  
730 730  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms.
... ... @@ -743,6 +743,8 @@
743 743  
744 744  )))
745 745  
786 +
787 +
746 746  == 7.8 Join Accept Delay2 ==
747 747  
748 748  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms.
... ... @@ -761,6 +761,8 @@
761 761  
762 762  )))
763 763  
806 +
807 +
764 764  == 7.9 Public Network Mode ==
765 765  
766 766  Feature: Get or Set the public network mode. (0: off, 1: on)
... ... @@ -781,6 +781,8 @@
781 781  
782 782  )))
783 783  
828 +
829 +
784 784  == 7.10 Receive Delay1 ==
785 785  
786 786  Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
... ... @@ -799,6 +799,8 @@
799 799  
800 800  )))
801 801  
848 +
849 +
802 802  == 7.11 Receive Delay2 ==
803 803  
804 804  Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
... ... @@ -817,6 +817,8 @@
817 817  
818 818  )))
819 819  
868 +
869 +
820 820  == 7.12 Rx2 Window Data Rate ==
821 821  
822 822  Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
... ... @@ -835,6 +835,8 @@
835 835  
836 836  )))
837 837  
888 +
889 +
838 838  == 7.13 Rx2 Window Frequency ==
839 839  
840 840  Feature: Get or Set the Rx2 window frequency
... ... @@ -853,6 +853,8 @@
853 853  
854 854  )))
855 855  
908 +
909 +
856 856  == 7.14 Transmit Power ==
857 857  
858 858  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. )
... ... @@ -878,6 +878,8 @@
878 878  * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2.
879 879  * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0.
880 880  
935 +
936 +
881 881  == 7.15 RSSI of the Last Received Packet ==
882 882  
883 883  Feature: Get or Set the Rx2 window frequency
... ... @@ -893,6 +893,8 @@
893 893  OK
894 894  )))
895 895  
952 +
953 +
896 896  == 7.16 SNR of the Last Received Packet ==
897 897  
898 898  Feature: Get the SNR of the last received packet
... ... @@ -908,6 +908,8 @@
908 908  OK
909 909  )))
910 910  
969 +
970 +
911 911  == 7.17 Application Port ==
912 912  
913 913  Feature: Get or set the application port.
... ... @@ -935,6 +935,8 @@
935 935  * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1
936 936  * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5
937 937  
998 +
999 +
938 938  == 7.18 Single Channel Mode ==
939 939  
940 940  Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode.
... ... @@ -951,6 +951,8 @@
951 951  )))
952 952  |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK
953 953  
1016 +
1017 +
954 954  == 7.19 Eight Channel Mode ==
955 955  
956 956  Feature: Get or Set eight channels mode,Only for US915,AU915,CN470.
... ... @@ -980,6 +980,8 @@
980 980  * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1
981 981  * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5
982 982  
1047 +
1048 +
983 983  == 7.20 Get or Set RXwindows1 timeout ==
984 984  
985 985  Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255).
... ... @@ -1024,6 +1024,8 @@
1024 1024  )))
1025 1025  |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK
1026 1026  
1093 +
1094 +
1027 1027  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1028 1028  
1029 1029  Feature: Get or Set uplinkdwelltime
... ... @@ -1051,6 +1051,8 @@
1051 1051  * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1
1052 1052  * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0
1053 1053  
1122 +
1123 +
1054 1054  == 7.23 Set Packet Receiving Response Level ==
1055 1055  
1056 1056  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.
... ... @@ -1092,6 +1092,8 @@
1092 1092  * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1
1093 1093  * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2
1094 1094  
1165 +
1166 +
1095 1095  = 8. AT Commands Combination =
1096 1096  
1097 1097  == 8.1 Set a fix RX2DR for downlink window ==
... ... @@ -1099,6 +1099,8 @@
1099 1099  * **AT+ADR=0 **~-~-> Disable ADR first
1100 1100  * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate
1101 1101  
1174 +
1175 +
1102 1102  == 8.2 Use Downlink Command to set a fix uplink DR ==
1103 1103  
1104 1104  {{info}}
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0