Changes for page Notes for TTN
Last modified by Mengting Qiu on 2024/08/20 17:29
From version 216.1
edited by Xiaoye
on 2023/07/28 14:42
on 2023/07/28 14:42
Change comment:
Uploaded new attachment "image-20230728144218-7.png", version {1}
To version 224.1
edited by Bei Jinggeng
on 2023/10/19 11:31
on 2023/10/19 11:31
Change comment:
Uploaded new attachment "image-20231019113137-3.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 6 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoye1 +XWiki.Bei - Content
-
... ... @@ -49,19 +49,19 @@ 49 49 == 2.1 Primary LoRaWAN Server == 50 50 51 51 52 -[[image:image-20220526134633-2.png||height="616" width="1323"]] 52 +[[image:image-20220526134633-2.png||_mstalt="430196" height="616" width="1323"]] 53 53 54 54 Register Gateway 55 55 56 56 57 57 58 -[[image:image-20220526134826-4.png]] 58 +[[image:image-20220526134826-4.png||_mstalt="432237"]] 59 59 60 60 Put Gateway ID 61 61 62 62 63 63 64 -[[image:image-20220526134759-3.png]] 64 +[[image:image-20220526134759-3.png||_mstalt="433550"]] 65 65 66 66 Choose Frequency Band 67 67 ... ... @@ -82,11 +82,11 @@ 82 82 AS923-4 (917.3-918.7) ~-~-~-~-~-~-~-~-~-~-~-~-~-~-- Asia 917-920 Mhz (AS923 Group 4)with only default channels 83 83 84 84 85 -[[image:image-20220726134642-1.png||height="344" width="660"]][[image:image-20220726135827-3.png||height="214" width="394"]][[image:image-20220726135759-2.png||height="218" width="554"]] 85 +[[image:image-20220726134642-1.png||_mstalt="430287" height="344" width="660"]][[image:image-20220726135827-3.png||_mstalt="432978" height="214" width="394"]][[image:image-20220726135759-2.png||_mstalt="433953" height="218" width="554"]] 86 86 87 87 88 88 89 -[[image:image-20220526134919-5.png]] 89 +[[image:image-20220526134919-5.png||_mstalt="433602"]] 90 90 91 91 Show Status 92 92 ... ... @@ -123,7 +123,7 @@ 123 123 The users is needing to download and install the helium gateway-rs then click the button of (% style="color:blue" %)**Save&Apply.** 124 124 125 125 126 -[[image:image-20220526135049-6.png]] 126 +[[image:image-20220526135049-6.png||_mstalt="432432"]] 127 127 128 128 Download and Install gateway-rs 129 129 ... ... @@ -134,7 +134,7 @@ 134 134 Back to the page of Semtech UDP check the secondary server settings and click the button of (% style="color:blue" %)**Save&Apply.** 135 135 136 136 137 -[[image:image-20220526135125-7.png]] 137 +[[image:image-20220526135125-7.png||_mstalt="431106"]] 138 138 139 139 Configuration of helium 140 140 ... ... @@ -171,7 +171,7 @@ 171 171 ))) 172 172 173 173 ((( 174 -(% style="color:blue" %)**What do you need to prepare** 174 +(% style="color:blue" %)**What do you need to prepare?** 175 175 ))) 176 176 177 177 ((( ... ... @@ -182,61 +182,75 @@ 182 182 ))) 183 183 ))) 184 184 185 -== 3.2 Step 1: AddGateway ==185 +== 3.2 Step 1: Register Gateway == 186 186 187 187 188 188 ((( 189 189 ((( 190 -(% style="color:blue" %)**The example for**(%%)** (% style="color:red" %)EU:(%%)** 190 +(% style="color:blue" %)**The example for**(%%)** the (% style="color:red" %)EU:(%%)** 191 191 ))) 192 192 ))) 193 193 194 194 ((( 195 195 ((( 196 -User can add your gateway into The Things Network V3 according to the previous step 197 -))) 198 -))) 196 +Click the 'Register Gateway' button will get this page to register the gateway from The Thing Network Console gateway page. 199 199 200 -((( 201 -((( 202 -Following picture is the successful added. 203 - 204 - 198 +[[image:image-20230728144218-7.png||_mstalt="433290" height="128" width="836"]] 205 205 ))) 206 206 ))) 207 207 208 -[[image:image-202 20526135316-8.png]]202 +[[image:image-20230728143449-2.png||_mstalt="433108"]] 209 209 210 - AddGateway204 +Register Gateway 211 211 212 212 213 213 == 3.3 Step 2: Create the API key == 214 214 215 215 216 - userneed to createtheCUPSAPIkeyandLNSAPIkey.210 +**API Key can be created manually** ~-~--> if users forgot to check the check box or switch to basic station mode from the Semtech UDP mode 217 217 218 218 219 -[[image:image-20220526135349-9.png]] 220 220 221 -Create CUPS API key 222 222 215 +**or generate by TTN by checking the check box when registering the gateway** ~-~-->[[image:image-20230728143505-3.png||_mstalt="431132"]] 223 223 224 224 225 - [[image:image-20220526135428-10.png]]218 +=== **1.) Generated by TTH** === 226 226 227 -Create LNS API key 228 228 221 +Users need to download these two key files and fill them into the gateway's TTN Basics Station configuration, 229 229 230 - (% style="color:red" %)**Note: Pleasecopy theAPI key.**223 +[[image:image-20230728150521-2.png||height="664" width="1019"]] 231 231 232 232 233 - ==3.4 Step 3:Updatethegatewaysetting==226 +(% style="color:red" %)**Note:**(%%) The "**Authorization: Bearer** " field should not be entered in the TTN Basics Station configuration of the gateway 234 234 228 +[[image:image-20230728151807-3.png||height="599" width="1450"]] 235 235 230 +=== **2.) Manually create API KEY: ** === 231 + 232 + 233 +==== CUPS API KEY ==== 234 + 235 +[[image:image-20220526135349-9.png||_mstalt="434460"]] 236 + 237 + 238 + 239 +==== LNS API KEY ==== 240 + 241 +[[image:image-20220526135428-10.png||_mstalt="453791"]] 242 + 243 + 244 +(% style="color:red" %)**Note: If your API is generated by yourself you have to update the key to the gateway setting.** 245 + 246 + 247 +==== Update the gateway setting ==== 248 + 249 + 236 236 In the LoRa Basics Station LNS Authentication Key field, paste the API key you generated in the previous step. 237 237 238 238 239 -[[image:image-20220526135528-11.png]] 253 +[[image:image-20220526135528-11.png||_mstalt="454480"]] 240 240 241 241 paste the API key 242 242 ... ... @@ -247,7 +247,7 @@ 247 247 User need to update the API key and install the Certificate 248 248 249 249 250 -[[image:image-20220526135601-12.png]] 264 +[[image:image-20220526135601-12.png||_mstalt="452153"]] 251 251 252 252 Access the gateway GUI 253 253 ... ... @@ -262,13 +262,13 @@ 262 262 263 263 (% class="box" %) 264 264 ((( 265 - CUPS Server URI ~-~-> Server Adress 279 + CUPS Server URI ~-~-> Server Address, Example: https:~/~/eu1.cloud.thethings.network:443 266 266 CUPS Authorization Key ~-~-> Server CUPS API Key 267 267 LNS Authorization Key ~-~-> Server LNS API Key 268 268 CUPS certificate ~-~-> Server CA(user can use the button to install the certificate by default) 269 269 ))) 270 270 271 -[[image:image-20220526135654-13.png]] 285 +[[image:image-20220526135654-13.png||_mstalt="455169"]] 272 272 273 273 Congfigure Station 274 274 ... ... @@ -288,7 +288,7 @@ 288 288 If user completes the above steps,which will see live date in the TTN. 289 289 290 290 291 -[[image:image-20220526135734-14.png]] 305 +[[image:image-20220526135734-14.png||_mstalt="455208"]] 292 292 293 293 Station live date 294 294 ... ... @@ -299,7 +299,7 @@ 299 299 User can check the station log in the** (% style="color:blue" %)LogRead ~-~-> System Log (%%)**page. 300 300 301 301 302 -[[image:image-20220526135845-15.png]] 316 +[[image:image-20220526135845-15.png||_mstalt="456560"]] 303 303 304 304 Station Log 305 305 ... ... @@ -307,7 +307,7 @@ 307 307 308 308 and recode the station log in the** (% style="color:blue" %)LogRead ~-~-> Recode Log(%%)** page. 309 309 310 -[[image:image-20220526135940-16.png]] 324 +[[image:image-20220526135940-16.png||_mstalt="455559"]] 311 311 312 312 Recore Log 313 313 ... ... @@ -356,19 +356,19 @@ 356 356 ))) 357 357 ))) 358 358 359 -[[image:image-20230221135445-1.png||height="356" width="777"]] 373 +[[image:image-20230221135445-1.png||_mstalt="428714" height="356" width="777"]] 360 360 361 361 First create an application and fill in the custom information in it 362 362 363 -[[image:image-20230221135520-2.png||height="52" width="974"]] 377 +[[image:image-20230221135520-2.png||_mstalt="427050" height="52" width="974"]] 364 364 365 -[[image:image-20230221135810-3.png||height="400" width="638"]] 379 +[[image:image-20230221135810-3.png||_mstalt="428025" height="400" width="638"]] 366 366 367 367 368 368 Add a node device to the application 369 369 370 370 371 -[[image:image-20220526140044-18.png]] 385 +[[image:image-20220526140044-18.png||_mstalt="453648"]] 372 372 373 373 374 374 == 4.2 Step 2 == ... ... @@ -378,7 +378,7 @@ 378 378 ((( 379 379 There are all our nodes in the repository. Users can choose the corresponding brand, model, firmware version and frequency.The decoder and configuration information of the node are pre-configured.Users do not need to configure them. 380 380 381 -[[image:image-20230221164809-2.png||height="525" width="617"]] 395 +[[image:image-20230221164809-2.png||_mstalt="430937" height="525" width="617"]] 382 382 ))) 383 383 ))) 384 384 ... ... @@ -389,7 +389,7 @@ 389 389 Add APP EUI in the application: 390 390 391 391 392 -[[image:image-20230221140131-4.png||height="569" width="674"]] 406 +[[image:image-20230221140131-4.png||_mstalt="425984" height="569" width="674"]] 393 393 394 394 395 395 == 4.4 Step 4 == ... ... @@ -398,7 +398,7 @@ 398 398 **Add APP KEY and DEV EUI:** 399 399 400 400 401 -[[image:image-20230221140448-6.png||height="535" width="647"]] 415 +[[image:image-20230221140448-6.png||_mstalt="430339" height="535" width="647"]] 402 402 403 403 404 404 = 5. TTN V3 integrated into MQTT server = ... ... @@ -437,13 +437,13 @@ 437 437 ))) 438 438 ))) 439 439 440 -[[image:image-20220526140347-22.png]] 454 +[[image:image-20220526140347-22.png||_mstalt="453700"]] 441 441 442 442 Fill in the username and password into MQTT. 443 443 444 444 445 445 446 -[[image:image-20220526140420-23.png]] 460 +[[image:image-20220526140420-23.png||_mstalt="451373"]] 447 447 448 448 449 449 The Application Server publishes uplink traffic on the following topics: ... ... @@ -471,7 +471,7 @@ 471 471 ))) 472 472 ))) 473 473 474 -[[image:image-20220526140452-24.png]] 488 +[[image:image-20220526140452-24.png||_mstalt="453401"]] 475 475 476 476 477 477 ((( ... ... @@ -480,7 +480,7 @@ 480 480 ))) 481 481 ))) 482 482 483 -[[image:image-20220526140708-25.png]] 497 +[[image:image-20220526140708-25.png||_mstalt="455117"]] 484 484 485 485 ((( 486 486 ((( ... ... @@ -504,7 +504,7 @@ 504 504 ))) 505 505 ))) 506 506 507 -[[image:image-20220526140856-26.png]] 521 +[[image:image-20220526140856-26.png||_mstalt="456755"]] 508 508 509 509 ((( 510 510 To send an unconfirmed downlink message to the device dev1 in application app1 in tenant tenant1 with the hexadecimal payload BE EF on FPort 15 with normal priority, use the topic v3/app1@tenant1/devices/dev1/down/push with the following contents: ... ... @@ -518,7 +518,7 @@ 518 518 519 519 ))) 520 520 521 -[[image:image-20220526140936-27.png]] 535 +[[image:image-20220526140936-27.png||_mstalt="456794"]] 522 522 523 523 524 524 == 5.3 Send Downlink message == ... ... @@ -538,7 +538,7 @@ 538 538 539 539 ))) 540 540 541 -[[image:image-20220526141021-28.png]] 555 +[[image:image-20220526141021-28.png||_mstalt="452647"]] 542 542 543 543 downlink 544 544 ... ... @@ -546,7 +546,7 @@ 546 546 547 547 After sending, you can view it in live data. 548 548 549 -[[image:image-20220526141052-29.png]] 563 +[[image:image-20220526141052-29.png||_mstalt="454337"]] 550 550 551 551 downlink 552 552 ... ... @@ -562,7 +562,7 @@ 562 562 563 563 ))) 564 564 565 -[[image:image-20220526141116-30.png]] 579 +[[image:image-20220526141116-30.png||_mstalt="451672"]] 566 566 567 567 downlink 568 568 ... ... @@ -593,7 +593,7 @@ 593 593 ))) 594 594 ))) 595 595 596 -[[image:image-20220526141149-31.png]] 610 +[[image:image-20220526141149-31.png||_mstalt="454038"]] 597 597 598 598 downlink 599 599 ... ... @@ -601,7 +601,7 @@ 601 601 = 6. Route TTN data to Node-Red = 602 602 603 603 604 -Users can create an MQTT integration by following the steps described in "[[5.TTN V3 Integrated into MQTT Server>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H5.A0TTNV3integratedintoMQTTserver]]" 618 +Users can create an MQTT integration by following the steps described in "[[5.TTN V3 Integrated into MQTT Server>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H5.A0TTNV3integratedintoMQTTserver||_mstmutation="1"]]" 605 605 606 606 607 607 == 6.1 Edit mqtt-broker node == ... ... @@ -616,12 +616,12 @@ 616 616 **Port :** 1883 617 617 ))) 618 618 619 -[[image:image-20220829160224-187.jpeg||height="569" width="1128"]] 633 +[[image:image-20220829160224-187.jpeg||_mstalt="526292" height="569" width="1128"]] 620 620 621 621 622 622 **Enter Username and Password** 623 623 624 -[[image:image-20220829164358-188.png||height="570" width="1130"]] 638 +[[image:image-20220829164358-188.png||_mstalt="486174" height="570" width="1130"]] 625 625 626 626 627 627 == 6.2 Debug == ... ... @@ -629,7 +629,7 @@ 629 629 630 630 Users can check logs by adding debug. 631 631 632 -[[image:image-20220829164652-189.png||height="572" width="1134"]] 646 +[[image:image-20220829164652-189.png||_mstalt="485472" height="572" width="1134"]] 633 633 634 634 635 635 == 6.3 Example: Use Local Server TTN and Node-Red in LPS8v2 == ... ... @@ -661,7 +661,7 @@ 661 661 662 662 **v3/(% style="color:red" %)Application ID(%%)/devices/(% style="color:red" %)End device ID(%%)/up** 663 663 664 -[[image:image-20221018100743-1.png]] 678 +[[image:image-20221018100743-1.png||_mstalt="427739"]] 665 665 666 666 667 667 ... ... @@ -668,11 +668,11 @@ 668 668 (% style="color:blue" %)**2. Enter the MQTT configuration information** 669 669 670 670 671 -[[image:image-20221018100947-2.png]] 685 +[[image:image-20221018100947-2.png||_mstalt="430079"]] 672 672 673 673 674 674 675 -[[image:image-20221018101102-3.png]] 689 +[[image:image-20221018101102-3.png||_mstalt="425256"]] 676 676 677 677 (% class="wikigeneratedid" %) 678 678 (% style="color:blue" %)**Finally, click "Update" and Deploy** ... ... @@ -682,7 +682,7 @@ 682 682 "Connected" indicates that the Link Node-red to Local TTN is normal. 683 683 684 684 (% class="wikigeneratedid" %) 685 -[[image:image-20220914140918-5.png||height="602" width="1121"]] 699 +[[image:image-20220914140918-5.png||_mstalt="432523" height="602" width="1121"]] 686 686 687 687 688 688 === 6.3.2 Check result. === ... ... @@ -690,13 +690,13 @@ 690 690 691 691 Users can check logs by adding debug. 692 692 693 -[[image:image-20220914140841-4.png||height="600" width="1119"]] 707 +[[image:image-20220914140841-4.png||_mstalt="430456" height="600" width="1119"]] 694 694 695 695 696 696 In addition,Users can access the lps8v2 gateway's built-in as server of **Node-Red Chart UI **via the URL((% style="background-color:yellow" %)__**//http:~/~/<hostname>:1880/ui or http:~/~/<local-IPV4-address>:1880/ui//**__(%%)) in your browser. 697 697 698 698 699 -[[image:image-20220914142021-7.png||height="517" width="1346"]] 713 +[[image:image-20220914142021-7.png||_mstalt="429000" height="517" width="1346"]] 700 700 701 701 702 702 = 7. Request Remote Support = ... ... @@ -723,7 +723,7 @@ 723 723 724 724 * What frequency the device is sending? 725 725 726 -[[image:image-20220526141308-33.png]] 740 +[[image:image-20220526141308-33.png||_mstalt="453778"]] 727 727 728 728 Console Output from End device to see the transmit frequency 729 729 ... ... @@ -732,7 +732,7 @@ 732 732 733 733 * Is the device in OTAA mode or ABP mode? (% style="color:red" %)**AT+NJM=1** (%%)(OTAA mode), (% style="color:red" %)**AT+NJM=0**(%%) (ABP mode) 734 734 735 -[[image:image-20220526141612-36.png]] 749 +[[image:image-20220526141612-36.png||_mstalt="454142"]] 736 736 737 737 738 738 Console Output from End device to see the transmit frequency ... ... @@ -751,7 +751,7 @@ 751 751 752 752 ))) 753 753 754 -[[image:image-20220526141739-37.png]] 768 +[[image:image-20220526141739-37.png||_mstalt="457847"]] 755 755 756 756 Console Output from Gateway to see packets between end node and server. 757 757 ... ... @@ -772,13 +772,13 @@ 772 772 773 773 ))) 774 774 775 -[[image:image-20220526141823-38.png||height="501" width="1144"]] 789 +[[image:image-20220526141823-38.png||_mstalt="456183" height="501" width="1144"]] 776 776 777 777 The Traffic for the End node in the server, use TTNv3 as example 778 778 779 779 780 780 781 -[[image:image-20220526141917-39.png]] 795 +[[image:image-20220526141917-39.png||_mstalt="457899"]] 782 782 783 783 The Traffic for the End node in the server, use TTNv3 as example 784 784 ... ... @@ -792,7 +792,7 @@ 792 792 If this data page shows the Join Request message from the end node? If not, most properly you have wrong settings in the keys. Keys in the server doesn't match the keys in End Node. 793 793 794 794 795 -[[image:image-20220526141956-40.png]] 809 +[[image:image-20220526141956-40.png||_mstalt="455832"]] 796 796 ))) 797 797 ))) 798 798 ))) ... ... @@ -801,7 +801,7 @@ 801 801 802 802 803 803 804 -[[image:image-20220526142033-41.png]] 818 +[[image:image-20220526142033-41.png||_mstalt="452036"]] 805 805 806 806 Check if OTAA Keys match the keys in device 807 807 ... ... @@ -815,7 +815,7 @@ 815 815 816 816 Open your application and click the button **Import end devices** 817 817 818 -[[image:image-20230423154012-1.png||height="472" width="755"]] 832 +[[image:image-20230423154012-1.png||_mstalt="426738" height="472" width="755"]] 819 819 820 820 821 821 Select the **File format** and upload the file (e.g. or ).devices/jsondevices.csv ... ... @@ -826,17 +826,17 @@ 826 826 827 827 Start the import by clicking the **Import end devices** button. 828 828 829 -[[image:image-20230423154040-2.png||height="470" width="749"]] 843 +[[image:image-20230423154040-2.png||_mstalt="427401" height="470" width="749"]] 830 830 831 831 832 832 Wait for the end devices to be successfully imported. In case any device fails, you will see a relevant error message in the console. 833 833 834 -[[image:image-20230423154105-3.png||height="478" width="763"]] 848 +[[image:image-20230423154105-3.png||_mstalt="428467" height="478" width="763"]] 835 835 836 836 837 837 If the import was successful, your devices are added to the list of end devices in your application. 838 838 839 -[[image:image-20230423154125-4.png||height="480" width="766"]] 853 +[[image:image-20230423154125-4.png||_mstalt="429481" height="480" width="766"]] 840 840 841 841 Devices are now registered on The Things Stack. 842 842
- image-20230728145557-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +53.6 KB - Content
- image-20230728150521-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +73.9 KB - Content
- image-20230728151807-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +149.0 KB - Content
- image-20231019113039-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +71.3 KB - Content
- image-20231019113131-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +207.7 KB - Content
- image-20231019113137-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +207.7 KB - Content