Last modified by Alec Chen on 2025/11/12 09:40

From version 1.3
edited by Alec Chen
on 2025/11/12 09:25
Change comment: There is no comment for this version
To version 1.6
edited by Alec Chen
on 2025/11/12 09:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,5 @@
1 +{{toc/}}
2 +
1 1  = 1. Register a TTN account =
2 2  
3 3  [[https:~~/~~/id.thethingsnetwork.org/oidc/interaction/NYqiq-Uu3V_sg3Lz54Onk/register>>https://id.thethingsnetwork.org/oidc/interaction/NYqiq-Uu3V_sg3Lz54Onk/register]]
... ... @@ -17,6 +17,8 @@
17 17  
18 18  [[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/#H2.A0AccessandConfigureLPS8N:~~~~:text=will%20TURN%20OFF.-,2.%C2%A0%20Access%20and%20Configure%20LPS8N,-The%20LPS8N%20is>>https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/#H2.A0AccessandConfigureLPS8N:~~:text=will%20TURN%20OFF.-,2.%C2%A0%20Access%20and%20Configure%20LPS8N,-The%20LPS8N%20is]]
19 19  
22 +== **2.1 Create a gateway in TTN V3 Server** ==
23 +
20 20  **Step 1: Get a Unique gateway ID.**
21 21  
22 22  Every LPS8N has a unique gateway id. The ID can be found at LoRaWAN page:
... ... @@ -26,6 +26,7 @@
26 26  The example gateway id is: **a840411e96744154**
27 27  
28 28  
33 +
29 29  **Step 2: Choose the TTNv3 Cluster Picker**
30 30  
31 31  [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657091719947-297.png?rev=1.1||alt="1657091719947-297.png"]]
... ... @@ -38,6 +38,7 @@
38 38  * Australia 1 **corresponding Gateway server address: **au1.cloud.thethings.network
39 39  * Legacy V2 Console : **TTN v2 shuts down in December 2021**
40 40  
46 +
41 41  **Step 3: Create a Gateway**
42 42  
43 43  [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657091941182-367.png?rev=1.1||alt="1657091941182-367.png"]]
... ... @@ -46,9 +46,9 @@
46 46  
47 47  Open the following page:
48 48  
49 - [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/image-20220706155323-5.png?width=1060&height=579&rev=1.1||alt="image-20220706155323-5.png" height="579" width="1060"]]
55 + [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/image-20220706155323-5.png?width=1060&height=579&rev=1.1||alt="image-20220706155323-5.png" height="475" width="870"]]
50 50  
51 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/image-20220706155323-6.png?width=1066&height=582&rev=1.1||alt="image-20220706155323-6.png" height="582" width="1066"]]
57 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/image-20220706155323-6.png?width=1066&height=582&rev=1.1||alt="image-20220706155323-6.png" height="477" width="874"]]
52 52  
53 53  **Notice: Gateway Server address must match the gateway configuration, otherwise you will have problem for End Node to join the network.**
54 54  
... ... @@ -55,33 +55,105 @@
55 55  
56 56  After creating the gateway, you can see the gateway info, as below.
57 57  
58 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094130908-567.png?rev=1.1||alt="1657094130908-567.png"]]
64 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094130908-567.png?rev=1.1||alt="1657094130908-567.png" height="354" width="876"]]
59 59  
60 60  
67 +== **2.2 Configure LPS8N to connect to TTN v3** ==
68 +
69 +You can now configure the LPS8N to let it connect to TTN network V3.
70 +
71 +Make sure your LPS8N has a working Internet Connection first.
72 +
73 +Choose the right server provider and click **Save&Apply.**
74 +
75 +
76 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094183213-301.png?rev=1.1||alt="1657094183213-301.png" height="393" width="877"]]
77 +
78 +**Note: The server address must match the Gateway server address you choose in TTN V3.**
79 +
80 +In the home page, we can see the LoRaWAN connection is ready now.
81 +
82 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094202420-798.png?rev=1.1||alt="1657094202420-798.png" height="441" width="876"]]
83 +
84 +In TTN v3 portal, we can also see the gateway is connected.
85 +
86 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094221515-510.png?rev=1.1||alt="1657094221515-510.png" height="412" width="876"]]
87 +
88 +== **2.3  Configure frequency** ==
89 +
90 +We also need to set the frequency plan in LPS8N to match the end node we use, so to receive the LoRaWAN packets from the LoRaWAN sensor.
91 +
92 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094249818-468.png?rev=1.1||alt="1657094249818-468.png" height="431" width="877"]]
93 +
94 +In logread page, user can check the frequency actually used.
95 +
96 + [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094333704-207.png?rev=1.1||alt="1657094333704-207.png" height="616" width="875"]]
97 +
98 +
61 61  = 3. Register sensor on TTN ( Use Dragino [[LT-22222-L>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]] IO Controller as a reference device) =
62 62  
63 -Please note that **the frequency band used by the device and the frequency band used by the gateway must be consistent**; otherwise, a connection cannot be established.
101 +This section shows how to add a LoRaWAN End device to a LoRaWAN network and see the data from TTN web site.
64 64  
65 -[[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/#H4.4A0AddaLoRaWANEndDevice:~~~~:text=%E4%BD%BF%E7%94%A8%E7%9A%84%E9%A2%91%E7%8E%87%E3%80%82-,4.4%20%E6%B7%BB%E5%8A%A0%20LoRaWAN%20%E7%BB%88%E7%AB%AF%E8%AE%BE%E5%A4%87,-%E6%9C%AC%E8%8A%82%E4%BB%8B%E7%BB%8D>>https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/#H4.4A0AddaLoRaWANEndDevice:~~:text=%E4%BD%BF%E7%94%A8%E7%9A%84%E9%A2%91%E7%8E%87%E3%80%82-,4.4%20%E6%B7%BB%E5%8A%A0%20LoRaWAN%20%E7%BB%88%E7%AB%AF%E8%AE%BE%E5%A4%87,-%E6%9C%AC%E8%8A%82%E4%BB%8B%E7%BB%8D]]
103 +We use [[LT-22222-L>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]] IO Controller as a reference device - the setup for other LoRaWAN devices will be similar.
66 66  
67 -At the same time, **the port must correspond one-to-one with the frequency band.**[[image:https://wiki.thingseye.io/xwiki/bin/download/Main/How%20to%20load%20universal%20deviceprofile%20at%20chirpstack/WebHome/1739178122182-350.png?rev=1.1||alt="1739178122182-350.png" height="573" width="867"]]
105 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1652422794767-871.png?rev=1.1||alt="1652422794767-871.png"]]
68 68  
107 +**Step 1**: Create a Device definition in TTN v3 with the OTAA keys from the example LT-22222-L IO Controller device.
69 69  
70 70  
110 +Three codes are required to define the device in TTN v3:
71 71  
112 +* DEV EUI - Unique ID code for a particular device.
113 +* APP EUI - ID code for an Application defined in TTN v3.
114 +* APP Key - Unique key to secure communications with a particular device.
72 72  
116 +A set of these codes are stored in each device by the manufacturer as the default codes for that particular device. Each device is shipped with a sticker with the default Device EUI as shown below.
73 73  
74 74  
119 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094382177-591.png?rev=1.1||alt="1657094382177-591.png"]]
75 75  
121 +**Note: You may be able to change these codes in a device by using a configuration facility on the device e.g. the LT-22222 uses a serial port access and a series of AT commands.  Changing the codes may be necessary in the case where you have to use codes assigned by a LoRa WAN server.**
76 76  
77 77  
124 +For the TTN v3 server, you can use the codes set in the device as in the following example.
78 78  
126 +Select **Add Application** to open the screen below.
79 79  
80 80  
129 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094417175-831.png?rev=1.1||alt="1657094417175-831.png"]]
81 81  
131 +Open the **Application **select** Add end device**
82 82  
133 +Start Register the end device
83 83  
135 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094444802-101.png?rev=1.1||alt="1657094444802-101.png"]]
84 84  
137 +Select OTAA activation mode
85 85  
86 86  
140 +The LoRaWAN version for your device should be provided by the manufacturer in a datasheet as LoRaWAN version or LoRaWAN specification. The most commonly used LoRaWAN versions are v1.0.2 and v1.0.3.
141 +
142 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094475730-208.png?rev=1.1||alt="1657094475730-208.png"]]
143 +
144 +First, input the End device ID, AppEUI and DevEUI.
145 +
146 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094646429-966.png?rev=1.1||alt="1657094646429-966.png"]]
147 +
148 +Secondly, choose the corresponding frequency and LoRaWAN class capabilities.
149 +
150 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094674045-755.png?rev=1.1||alt="1657094674045-755.png"]]
151 +
152 +Finally, Application layer settings input the corresponding AppKey. Before saving the configuration, check that the data matches the device.
153 +
154 +
155 +**Step 2**:  Power on LT-22222-L device and it will automatically join the TTN network. After joining successfully, it will start to upload messages to the TTN v3. Select the Live data tab and you will see the data appearing in the panel.
156 +
157 +
158 +**Note that it may take some time for the device data to appear in the TTN v3 display.**
159 +
160 +
161 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657094791060-639.png?rev=1.1||alt="1657094791060-639.png"]]
162 +
163 +
164 +
87 87