Changes for page Notes for TTN
Last modified by Xiaoling on 2025/08/04 14:58
From version 194.1
edited by Bei Jinggeng
on 2023/02/21 14:04
on 2023/02/21 14:04
Change comment:
Uploaded new attachment "image-20230221140448-6.png", version {1}
To version 206.1
edited by Bei Jinggeng
on 2023/03/22 16:24
on 2023/03/22 16:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,10 +6,8 @@ 6 6 7 7 = 1. The Things Network-V3 = 8 8 9 - 10 10 == 1.1 Introduction == 11 11 12 - 13 13 === 1.1.1 What is The Things Network === 14 14 15 15 ... ... @@ -20,7 +20,6 @@ 20 20 ((( 21 21 The Things Network runs The Things Stack Community Edition, which is a crowdsourced, open and decentralized LoRaWAN network. This network is a great way to get started testing devices, applications, and integrations, and get familiar with LoRaWAN. 22 22 23 - 24 24 25 25 ))) 26 26 ... ... @@ -34,7 +34,6 @@ 34 34 ((( 35 35 Once you have an account,get started by following steps for adding Gateway,Device and Intergrations. 36 36 37 - 38 38 39 39 ))) 40 40 ... ... @@ -44,10 +44,12 @@ 44 44 LoRaWAN Gateway model: Existing Gateway 45 45 46 46 47 - 48 48 = 2. Gateway Registration for Semtech UDP = 49 49 50 50 46 +(% style="color:red" %)**Note: Steps 2 and 3 are different connection methods, the user only needs to choose one of them** 47 + 48 + 51 51 == 2.1 Primary LoRaWAN Server == 52 52 53 53 ... ... @@ -93,10 +93,8 @@ 93 93 Show Status 94 94 95 95 96 - 97 97 == 2.2 Secondary LoRaWAN Server == 98 98 99 - 100 100 === 2.2.1 Introduction === 101 101 102 102 ... ... @@ -103,7 +103,6 @@ 103 103 The Dragino gateway has supports the Secondary server settings. 104 104 105 105 106 - 107 107 === 2.2.2 Below list the support products and Requirements: === 108 108 109 109 ... ... @@ -116,7 +116,6 @@ 116 116 ))) 117 117 118 118 119 - 120 120 === 2.2.3 Example === 121 121 122 122 ... ... @@ -123,7 +123,6 @@ 123 123 The following takes Helium as a Secondary LoRaWAN server as an example 124 124 125 125 126 - 127 127 === 2.2.4 Step 1: Download and Install the helium gateway-rs === 128 128 129 129 ... ... @@ -135,7 +135,6 @@ 135 135 Download and Install gateway-rs 136 136 137 137 138 - 139 139 === 2.2.5 Step 2: Back to Semtech UDP page === 140 140 141 141 ... ... @@ -147,17 +147,17 @@ 147 147 Configuration of helium 148 148 149 149 150 - 151 151 = 3. Gateway Registration for Basics Station = 152 152 153 - 154 154 == 3.1 Introduction == 155 155 156 156 157 157 ((( 158 158 ((( 159 -The LoRa Basics™ Station protocol simplifies management of large 149 +The LoRa Basics™ Station protocol simplifies the management of large-scale LoRaWAN networks. LoRa Basics™ Station is the preferred way of connecting Gateways to The Things Stack. [[The LoRa Basics Station doc>>url:https://www.thethingsindustries.com/docs/gateways/lora-basics-station/]] 160 160 151 +(% style="color:red" %)**Note: Steps 2 and 3 are different connection methods, the user only needs to choose one of them** 152 + 161 161 162 162 ))) 163 163 ))) ... ... @@ -186,7 +186,6 @@ 186 186 ((( 187 187 A gateway that can access the internet normally 188 188 189 - 190 190 191 191 ))) 192 192 ))) ... ... @@ -219,7 +219,6 @@ 219 219 Add Gateway 220 220 221 221 222 - 223 223 == 3.3 Step 2: Create the API key == 224 224 225 225 ... ... @@ -237,10 +237,9 @@ 237 237 Create LNS API key 238 238 239 239 240 -(% style="color:red" %)**Note 230 +(% style="color:red" %)**Note: Please copy the API key.** 241 241 242 242 243 - 244 244 == 3.4 Step 3: Update the gateway setting == 245 245 246 246 ... ... @@ -252,7 +252,6 @@ 252 252 paste the API key 253 253 254 254 255 - 256 256 == 3.5 Step 4: Access the gateway GUI == 257 257 258 258 ... ... @@ -264,7 +264,6 @@ 264 264 Access the gateway GUI 265 265 266 266 267 - 268 268 == 3.6 Step 5: Configure Station == 269 269 270 270 ... ... @@ -286,7 +286,6 @@ 286 286 Congfigure Station 287 287 288 288 289 - 290 290 == 3.7 Start Station == 291 291 292 292 ... ... @@ -293,7 +293,6 @@ 293 293 ((( 294 294 When the user has finished the configuration,Please click Sace&Apply to start station to connect The Things Network. 295 295 296 - 297 297 298 298 ))) 299 299 ... ... @@ -308,7 +308,6 @@ 308 308 Station live date 309 309 310 310 311 - 312 312 == 3.9 Trouble Shooting == 313 313 314 314 ... ... @@ -328,7 +328,6 @@ 328 328 Recore Log 329 329 330 330 331 - 332 332 = 4. Configure node connection to TTNv3 = 333 333 334 334 ... ... @@ -348,7 +348,6 @@ 348 348 ((( 349 349 (% style="color:#037691" %)**We take LES01 as an example.** 350 350 351 - 352 352 353 353 ))) 354 354 ))) ... ... @@ -374,13 +374,21 @@ 374 374 ))) 375 375 ))) 376 376 377 -[[image:image-202 20526140015-17.png]]359 +[[image:image-20230221135445-1.png||height="356" width="777"]] 378 378 361 +First create an application and fill in the custom information in it 379 379 380 -[[image:image-202 20526140044-18.png]]363 +[[image:image-20230221135520-2.png||height="52" width="974"]] 381 381 365 +[[image:image-20230221135810-3.png||height="400" width="638"]] 382 382 383 383 368 +Add a node device to the application 369 + 370 + 371 +[[image:image-20220526140044-18.png]] 372 + 373 + 384 384 == 4.2 Step 2 == 385 385 386 386 ... ... @@ -388,14 +388,11 @@ 388 388 ((( 389 389 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. 390 390 391 - 381 +[[image:image-20230221164809-2.png||height="525" width="617"]] 392 392 ))) 393 393 ))) 394 394 395 -[[image:image-20220526140132-19.png]] 396 396 397 - 398 - 399 399 == 4.3 Step 3 == 400 400 401 401 ... ... @@ -402,10 +402,9 @@ 402 402 Add APP EUI in the application: 403 403 404 404 405 -[[image:image-202 20526140205-20.png]]392 +[[image:image-20230221140131-4.png||height="569" width="674"]] 406 406 407 407 408 - 409 409 == 4.4 Step 4 == 410 410 411 411 ... ... @@ -412,13 +412,11 @@ 412 412 **Add APP KEY and DEV EUI:** 413 413 414 414 415 -[[image:image-202 20526140251-21.png]]401 +[[image:image-20230221140448-6.png||height="535" width="647"]] 416 416 417 417 418 - 419 419 = 5. TTN V3 integrated into MQTT server = 420 420 421 - 422 422 == 5.1 Introduction == 423 423 424 424 ... ... @@ -426,7 +426,6 @@ 426 426 ((( 427 427 The Application Server exposes an MQTT server to work with streaming events. In order to use the MQTT server you need to create a new API key, which will function as connection password. You can also use an existing API key, as long as it has the necessary rights granted. 428 428 429 - 430 430 431 431 ))) 432 432 ))) ... ... @@ -538,7 +538,6 @@ 538 538 [[image:image-20220526140936-27.png]] 539 539 540 540 541 - 542 542 == 5.3 Send Downlink message == 543 543 544 544 ... ... @@ -616,7 +616,6 @@ 616 616 downlink 617 617 618 618 619 - 620 620 = 6. Route TTN data to Node-Red = 621 621 622 622 ... ... @@ -623,7 +623,6 @@ 623 623 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]]" 624 624 625 625 626 - 627 627 == 6.1 Edit mqtt-broker node == 628 628 629 629 ... ... @@ -644,7 +644,6 @@ 644 644 [[image:image-20220829164358-188.png||height="570" width="1130"]] 645 645 646 646 647 - 648 648 == 6.2 Debug == 649 649 650 650 ... ... @@ -653,7 +653,6 @@ 653 653 [[image:image-20220829164652-189.png||height="572" width="1134"]] 654 654 655 655 656 - 657 657 == 6.3 Example: Use Local Server TTN and Node-Red in LPS8v2 == 658 658 659 659 ... ... @@ -665,7 +665,6 @@ 665 665 Below are the steps to plot the sensor data on LPS8v2 Node-Red. 666 666 667 667 668 - 669 669 === 6.3.1 Link Node-Red to Local TTN === 670 670 671 671 ... ... @@ -708,7 +708,6 @@ 708 708 [[image:image-20220914140918-5.png||height="602" width="1121"]] 709 709 710 710 711 - 712 712 === 6.3.2 Check result. === 713 713 714 714 ... ... @@ -717,15 +717,12 @@ 717 717 [[image:image-20220914140841-4.png||height="600" width="1119"]] 718 718 719 719 720 - 721 721 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. 722 722 723 723 724 - 725 725 [[image:image-20220914142021-7.png||height="517" width="1346"]] 726 726 727 727 728 - 729 729 = 7. Request Remote Support = 730 730 731 731 ... ... @@ -826,3 +826,120 @@ 826 826 [[image:image-20220526142033-41.png]] 827 827 828 828 Check if OTAA Keys match the keys in device 802 + 803 + 804 += 8. FAQ = 805 + 806 +== 8.1 How to import devices keys to server. == 807 + 808 +**For TTS in LPS8v2** 809 + 810 +Open your application and click the button **Import end devices** 811 + 812 +[[image:https://www.thethingsindustries.com/docs/getting-started/migrating/import-end-devices.png||alt="import devices" height="517" width="828"]] 813 + 814 +Select the **File format** and upload the file (e.g. or ).devices/jsondevices.csv 815 + 816 +You can specify **Fallback values** for Frequency plan and LoRaWAN and Regional Parameters version, in case the import file does not specify these settings for the device. 817 + 818 +You can also expand the **Advanced claiming and component settings** to set targeted components, and set the claim authentication code to be generated. 819 + 820 +Start the import by clicking the **Import end devices** button. 821 + 822 +[[image:https://www.thethingsindustries.com/docs/getting-started/migrating/upload-file.png||alt="upload devices.json file" height="536" width="858"]] 823 + 824 +Wait for the end devices to be successfully imported. In case any device fails, you will see a relevant error message in the console. 825 + 826 +[[image:https://www.thethingsindustries.com/docs/getting-started/migrating/operation-finished.png||alt="import finished" height="551" width="882"]] 827 + 828 +If the import was successful, your devices are added to the list of end devices in your application. 829 + 830 +[[image:https://www.thethingsindustries.com/docs/getting-started/migrating/successful-import.png||alt="successful-import" height="556" width="889"]] 831 + 832 +Devices are now registered on The Things Stack. 833 + 834 +=== JSON File Reference === 835 + 836 +The Things Stack allows you to import end devices from V2, ChirpStack and other LoRaWAN networks using a JSON file describing those devices. 837 + 838 +Using JSON file with device descriptions, you can migrate end devices with or without their existing sessions. 839 + 840 +Here is an example of an OTAA device description in the file:devices.json 841 + 842 +{{{{ 843 + "ids": { 844 + "device_id": "my-device", 845 + "dev_eui": "0102030405060708", 846 + "join_eui": "0102030405060708" 847 + }, 848 + "name": "My Device", 849 + "description": "Living room temperature sensor", 850 + "lorawan_version": "MAC_V1_0_2", 851 + "lorawan_phy_version": "PHY_V1_0_2_REV_B", 852 + "frequency_plan_id": "EU_863_870_TTN", 853 + "supports_join": true, 854 + "root_keys": { 855 + "app_key": { 856 + "key": "01020304050607080102030405060708" 857 + } 858 + } 859 +} 860 +}}} 861 + 862 +Multiple end devices can also be contained in a single file like so:devices.json 863 + 864 +{{{{ 865 + /* device 1 */ 866 +} 867 +{ 868 + /* device 2 */ 869 +} 870 +}}} 871 + 872 +The format above is considered by the Console and CLI as a JSON stream, processing one object at a time. For more details in how to use the file 873 + 874 + 875 +=== CSV File Reference === 876 + 877 +The Things Stack has support for importing end devices from CSV (comma-separated values) files. This is useful when batches of end devices are managed in Microsoft Excel or any other spreadsheet or database that can export to CSV file. 878 + 879 +The CSV import in The Things Stack uses the following settings: 880 + 881 +* Semicolon () as field delimiter. This makes working with Microsoft Excel and other spreadsheets convenient; 882 +* Header row is required 883 +* On each row, the same number of fields as on the header line 884 +* Use quotes to use in a field value; 885 +* Use double quotes to escape quotes 886 +* Unknown header columns are permitted and ignored 887 +* Name and id cannot have capital letters and special characters 888 +* Example column lorawan_phy_version is not needed 889 + 890 +=== Example === 891 + 892 +Minimal example: 893 + 894 +{{{dev_eui;join_eui;frequency_plan_id;lorawan_version;lorawan_phy_version;app_key 895 +1111111111111111;1111111111111111;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;11111111111111111111111111111111 896 +2222222222222222;2222222222222222;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;22222222222222222222222222222222 897 +3333333333333333;3333333333333333;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;33333333333333333333333333333333 898 +}}} 899 + 900 +All columns for a LoRaWAN 1.0.4 device: 901 + 902 +{{{id;dev_eui;join_eui;name;frequency_plan_id;lorawan_version;lorawan_phy_version;brand_id;model_id;hardware_version;firmware_version;band_id;app_key 903 +test-one;1111111111111111;1111111111111111;Device 1;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;the-things-industries;generic-node-sensor-edition;1.0.4;1.0;EU_863_870;11111111111111111111111111111111 904 +test-two;2222222222222222;2222222222222222;Device 2;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;the-things-industries;generic-node-sensor-edition;1.0.4;1.0;EU_863_870;22222222222222222222222222222222 905 +test-three;3333333333333333;3333333333333333;Device 3;EU_863_870_TTN;MAC_V1_0_4;RP002_V1_0_3;the-things-industries;generic-node-sensor-edition;1.0.4;1.0;EU_863_870;33333333333333333333333333333333 906 +}}} 907 + 908 +=== Excel Template === 909 + 910 +[[Download the Excel template>>url:https://www.thethingsindustries.com/docs/getting-started/migrating/tts-end-devices-csv-template.xlsx]]. You can remove all columns that are not required (see above). 911 + 912 += = 913 + 914 += 9. Trouble Shooting. = 915 + 916 +Please refer to the link below: 917 + 918 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H9.WhydoIseea22MICMismatch22errormessagefromtheserver3F>>url:http://wiki.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H9.WhydoIseea22MICMismatch22errormessagefromtheserver3F]]
- image-20230221164647-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +59.6 KB - Content
- image-20230221164809-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +59.9 KB - Content