Changes for page End Device AT Commands and Downlink Command
Last modified by kai on 2024/09/06 10:00
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -314,14 +314,15 @@ 314 314 315 315 = 5. Keys, IDs and EUIs management = 316 316 317 + 317 317 == 5.1 Application EUI == 318 318 320 + 319 319 Feature: Get or Set the Application EUI. 320 320 321 321 322 322 (% style="color:blue" %)**AT Command: AT+APPEUI** 323 323 324 - 325 325 (% border="1" style="background-color:#ffffcc; color:green; width:686.222px" %) 326 326 |=(% colspan="3" style="width: 683px;" %)AT+APPEUI 327 327 |(% style="width:305px" %)**Command Example**|(% style="width:186px" %)**Function**|(% style="width:191px" %)**Response** ... ... @@ -330,14 +330,16 @@ 330 330 ))) 331 331 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 332 332 334 + 335 + 333 333 == 5.2 Application Key == 334 334 338 + 335 335 Feature: Get or Set the Application Key. 336 336 337 337 338 338 (% style="color:blue" %)**AT Command: AT+APPKEY** 339 339 340 - 341 341 (% border="1" style="background-color:#ffffcc; color:green; width:976.222px" %) 342 342 |=(% colspan="3" style="width: 973px;" %)AT+APPKEY 343 343 |(% style="width:441px" %)**Command Example**|(% style="width:180px" %)**Function**|(% style="width:350px" %)**Response** ... ... @@ -346,14 +346,16 @@ 346 346 ))) 347 347 |(% 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 348 348 352 + 353 + 349 349 == 5.3 Application Session Key == 350 350 356 + 351 351 Feature: Get or Set the Application Session Key. 352 352 353 353 354 354 (% style="color:blue" %)**AT Command: AT+APPSKEY** 355 355 356 - 357 357 (% border="1" style="background-color:#ffffcc; color:green; width:1040.22px" %) 358 358 |=(% colspan="3" style="width: 1037px;" %)AT+APPSKEY 359 359 |(% style="width:451px" %)**Command Example**|(% style="width:231px" %)**Function**|(% style="width:354px" %)**Response** ... ... @@ -364,14 +364,16 @@ 364 364 OK 365 365 ))) 366 366 372 + 373 + 367 367 == 5.4 Device Address == 368 368 376 + 369 369 Feature: Get or Set the Device Address. 370 370 371 371 372 372 (% style="color:blue" %)**AT Command: AT+DADDR** 373 373 374 - 375 375 (% border="1" style="background-color:#ffffcc; color:green; width:795.222px" %) 376 376 |=(% colspan="3" style="width: 792px;" %)AT+DADDR 377 377 |(% style="width:192px" %)**Command Example**|(% style="width:241px" %)**Function**|(% style="width:359px" %)**Response** ... ... @@ -382,14 +382,16 @@ 382 382 ))) 383 383 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 384 384 392 + 393 + 385 385 == 5.5 Device EUI == 386 386 396 + 387 387 Feature: Get or Set the Device EUI. 388 388 389 389 390 390 (% style="color:blue" %)**AT Command: AT+DEUI** 391 391 392 - 393 393 (% border="1" style="background-color:#ffffcc; color:green; width:1035.22px" %) 394 394 |=(% colspan="3" style="width: 1032px;" %)AT+DEUI 395 395 |(% style="width:250px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:634px" %)**Response** ... ... @@ -400,14 +400,16 @@ 400 400 OK 401 401 ))) 402 402 412 + 413 + 403 403 == 5.6 Network ID == 404 404 416 + 405 405 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) 406 406 407 407 408 408 (% style="color:blue" %)**AT Command: AT+NWKID** 409 409 410 - 411 411 (% border="1" style="background-color:#ffffcc; color:green; width:448.222px" %) 412 412 |=(% colspan="3" style="width: 445px;" %)AT+NWKID 413 413 |(% style="width:191px" %)**Command Example**|(% style="width:153px" %)**Function**|(% style="width:101px" %)**Response** ... ... @@ -416,14 +416,16 @@ 416 416 ))) 417 417 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 418 418 430 + 431 + 419 419 == 5.7 Network Session Key == 420 420 434 + 421 421 Feature: Get or Set the Network Session Key 422 422 423 423 424 424 (% style="color:blue" %)**AT Command: AT+NWKSKEY** 425 425 426 - 427 427 (% border="1" style="background-color:#ffffcc; color:green; width:1017.22px" %) 428 428 |=(% colspan="3" style="width: 1014px;" %)AT+NWKSKEY 429 429 |(% style="width:455px" %)**Command Example**|(% style="width:215px" %)**Function**|(% style="width:343px" %)**Response** ... ... @@ -432,18 +432,22 @@ 432 432 ))) 433 433 |(% 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 434 434 448 + 449 + 435 435 = 6. Joining and sending date on LoRaWAN network = 436 436 452 + 437 437 == 6.1 Confirm Mode == 438 438 439 -=== AT+CFM command before DR-LWS007 software stack === 440 440 456 +=== 6.1.1 AT+CFM command before DR-LWS007 software stack === 457 + 458 + 441 441 Feature: Get or Set the confirmation mode (0-1). 442 442 443 443 444 444 (% style="color:blue" %)**AT Command: AT+CFM** 445 445 446 - 447 447 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 448 448 |=(% colspan="3" style="width: 707px;" %)AT+CFM 449 449 |(% style="width:155px" %)**Command Example**|(% style="width:205px" %)**Function**|(% style="width:346px" %)**Response** ... ... @@ -453,6 +453,7 @@ 453 453 |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 454 454 |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 455 455 473 + 456 456 (% style="color:blue" %)**Downlink Command: 0x05** 457 457 458 458 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -462,12 +462,14 @@ 462 462 * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1 463 463 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 464 464 465 -=== AT+CFM command since DR-LWS007 software stack === 466 466 467 467 468 -(% style="color:blue" %)**AT Command: AT+CFM** 469 469 486 +=== 6.1.2 AT+CFM command since DR-LWS007 software stack === 470 470 488 + 489 +(% style="color:blue" %)**AT Command: AT+CFM** 490 + 471 471 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 472 472 |=(% colspan="3" style="width: 707px;" %)AT+CFM 473 473 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -499,9 +499,9 @@ 499 499 OK 500 500 ))) 501 501 522 + 502 502 (% style="color:blue" %)**Downlink Command: 0x05** 503 503 504 - 505 505 Format: Command Code (0x05) followed by 2 bytes mode value. 506 506 507 507 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. ... ... @@ -509,14 +509,17 @@ 509 509 * Example 1: Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 510 510 * Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 511 511 532 + 533 + 534 + 512 512 == 6.2 Confirm Status == 513 513 537 + 514 514 Feature: Get confirmation status of the last AT+SEND (0-1). 515 515 516 516 517 517 (% style="color:blue" %)**AT Command: AT+CFS** 518 518 519 - 520 520 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 521 521 |=(% colspan="3" style="width: 531px;" %)AT+CFS 522 522 |(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** ... ... @@ -524,14 +524,16 @@ 524 524 OK 525 525 ))) 526 526 550 + 551 + 527 527 == 6.3 Join LoRa® Network == 528 528 554 + 529 529 Feature: Join network. 530 530 531 531 532 532 (% style="color:blue" %)**AT Command: AT+JOIN** 533 533 534 - 535 535 (% border="1" style="background-color:#ffffcc; color:green; width:647.222px" %) 536 536 |=(% colspan="3" style="width: 644px;" %)AT+JOIN 537 537 |(% style="width:163px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:334px" %)**Response** ... ... @@ -541,14 +541,16 @@ 541 541 While Error in format, return AT_BUSY_ERROR 542 542 ))) 543 543 569 + 570 + 544 544 == 6.4 LoRa® Network Join Mode == 545 545 573 + 546 546 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). 547 547 548 548 549 549 (% style="color:blue" %)**AT Command: AT+NJM** 550 550 551 - 552 552 (% border="1" style="background-color:#ffffcc; color:green; width:753.222px" %) 553 553 |=(% colspan="3" style="width: 750px;" %)AT+NJM 554 554 |(% style="width:162px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:361px" %)**Response** ... ... @@ -558,9 +558,9 @@ 558 558 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 559 559 |(% style="width:162px" %)AT+NJM=2|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)While Error in format, return AT_PARAM_ERROR 560 560 588 + 561 561 (% style="color:blue" %)**Downlink Command: 0x20** 562 562 563 - 564 564 Format: Command Code (0x20) followed by 1 bytes mode value. 565 565 566 566 If the downlink payload=2000, it means set the Network Join Mode, while type code is 20. ... ... @@ -568,14 +568,17 @@ 568 568 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=0 569 569 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 570 570 598 + 599 + 600 + 571 571 == 6.5 LoRa® Network Join Status == 572 572 603 + 573 573 Feature: LoRa® Network Join Status. 574 574 575 575 576 576 (% style="color:blue" %)**AT Command: AT+NJS** 577 577 578 - 579 579 (% border="1" style="background-color:#ffffcc; color:green; width:498.222px" %) 580 580 |=(% colspan="3" style="width: 495px;" %)AT+NJS 581 581 |(% style="width:169px" %)**Command Example**|(% style="width:164px" %)**Function**|(% style="width:161px" %)**Response** ... ... @@ -583,14 +583,16 @@ 583 583 OK 584 584 ))) 585 585 616 + 617 + 586 586 == 6.6 Print Last Received Data in Raw Format == 587 587 620 + 588 588 Feature: Print Last Received Data in Raw Format<port:data>. 589 589 590 590 591 591 (% style="color:blue" %)**AT Command: AT+RECV** 592 592 593 - 594 594 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 595 595 |=(% colspan="3" style="width: 584px;" %)AT+RECV 596 596 |(% style="width:161px" %)**Command Example**|(% style="width:272px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -598,14 +598,16 @@ 598 598 OK 599 599 ))) 600 600 633 + 634 + 601 601 == 6.7 Print Last Received Data in Binary Format == 602 602 637 + 603 603 Feature: Print Last Received Data in Binary Format<port:data>. 604 604 605 605 606 606 (% style="color:blue" %)**AT Command: AT+RECVB** 607 607 608 - 609 609 (% border="1" style="background-color:#ffffcc; color:green; width:793.222px" %) 610 610 |=(% colspan="3" style="width: 790px;" %)AT+RECVB 611 611 |(% style="width:173px" %)**Command Example**|(% style="width:497px" %)**Function**|(% style="width:120px" %)**Response** ... ... @@ -613,14 +613,16 @@ 613 613 OK 614 614 ))) 615 615 650 + 651 + 616 616 == 6.8 Send Text Data == 617 617 654 + 618 618 Feature: Send Text Data<port:data>. 619 619 620 620 621 621 (% style="color:blue" %)**AT Command: AT+SEND** 622 622 623 - 624 624 (% border="1" style="background-color:#ffffcc; color:green; width:991.222px" %) 625 625 |=(% colspan="3" style="width: 988px;" %)AT+SEND 626 626 |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response** ... ... @@ -632,14 +632,16 @@ 632 632 633 633 ))) 634 634 671 + 672 + 635 635 == 6.9 Send Hexadecimal Data == 636 636 675 + 637 637 Feature: Send hexadecimal data along with the application port. 638 638 639 639 640 640 (% style="color:blue" %)**AT Command: AT+SENDB** 641 641 642 - 643 643 (% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %) 644 644 |=(% colspan="3" style="width: 1117px;" %)AT+SENDB 645 645 |(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response** ... ... @@ -650,16 +650,19 @@ 650 650 651 651 ))) 652 652 691 + 692 + 653 653 = 7. LoRaWAN network management = 654 654 695 + 655 655 == 7.1 Adaptive Data Rate == 656 656 698 + 657 657 Feature: Get or Set the Adaptive Data Rate setting. (0: off, 1: on). 658 658 659 659 660 660 (% style="color:blue" %)**AT Command: AT+ADR** 661 661 662 - 663 663 (% border="1" style="background-color:#ffffcc; color:green; width:683.222px" %) 664 664 |=(% colspan="3" style="width: 680px;" %)AT+ADR 665 665 |(% style="width:162px" %)**Command Example**|(% style="width:266px" %)**Function**|(% style="width:250px" %)**Response** ... ... @@ -671,23 +671,25 @@ 671 671 AT_PARAM_ERROR 672 672 ))) 673 673 715 + 674 674 (% style="color:blue" %)**Downlink Command: 0x22** 675 675 676 - 677 - 678 678 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. 679 679 680 -* **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 720 +* **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 681 681 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 682 682 723 + 724 + 725 + 683 683 == 7.2 LoRa® Class == 684 684 728 + 685 685 Feature: Get or Set the Device Class(Currently only support class A, class C). 686 686 687 687 688 688 (% style="color:blue" %)**AT Command:AT+CLASS** 689 689 690 - 691 691 (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %) 692 692 |=(% colspan="3" style="width: 504px;" %)AT+CLASS 693 693 |(% style="width:163px" %)**Command Example**|(% style="width:166px" %)**Function**|(% style="width:175px" %)**Response** ... ... @@ -698,14 +698,16 @@ 698 698 699 699 ))) 700 700 744 + 745 + 701 701 == 7.3 Duty Cycle Setting == 702 702 748 + 703 703 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. 704 704 705 705 706 706 (% style="color:blue" %)**AT Command:AT+DCS** 707 707 708 - 709 709 (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %) 710 710 |=(% colspan="3" style="width: 512px;" %)AT+DCS 711 711 |(% style="width:165px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:107px" %)**Response** ... ... @@ -716,14 +716,16 @@ 716 716 717 717 ))) 718 718 764 + 765 + 719 719 == 7.4 Data Rate == 720 720 768 + 721 721 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 722 722 723 723 724 724 (% style="color:blue" %)**AT Command: AT+DR** 725 725 726 - 727 727 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) 728 728 |=(% colspan="3" style="width: 463px;" %)AT+DR 729 729 |(% style="width:156px" %)**Command Example**|(% style="width:167px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -734,15 +734,17 @@ 734 734 735 735 ))) 736 736 784 + 737 737 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 738 738 739 - 740 - 741 741 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. 742 742 743 743 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 744 744 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 745 745 792 + 793 + 794 + 746 746 == 7.5 Frame Counter Downlink == 747 747 748 748 Feature: Get or Set the Frame Counter Downlink.