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

Hide last authors
Alec Chen 1.4 1 {{toc/}}
2
Alec Chen 1.2 3 = 1. Register a TTN account =
4
Alec Chen 1.3 5 [[https:~~/~~/id.thethingsnetwork.org/oidc/interaction/NYqiq-Uu3V_sg3Lz54Onk/register>>https://id.thethingsnetwork.org/oidc/interaction/NYqiq-Uu3V_sg3Lz54Onk/register]]
Alec Chen 1.2 6
Alec Chen 1.3 7 [[image:1762910518611-841.png||height="771" width="859"]]
8
9 [[image:1762910544032-838.png||height="771" width="859"]]
10
11 [[image:1762910571349-677.png||height="771" width="860"]]
12
13 [[image:1762910474654-725.png||height="772" width="861"]]
14
15
Alec Chen 1.2 16 = 2.  Access and Configure gateway(Use Dragino [[LPS8N >>https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]]as a reference device) =
17
Alec Chen 1.3 18 Next, you need to configure the gateway and register it with TTN. The following are the gateway configuration methods provided by Dragino:
Alec Chen 1.2 19
20 [[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]]
21
Alec Chen 1.4 22 == **2.1 Create a gateway in TTN V3 Server** ==
23
Alec Chen 1.3 24 **Step 1: Get a Unique gateway ID.**
Alec Chen 1.2 25
Alec Chen 1.3 26 Every LPS8N has a unique gateway id. The ID can be found at LoRaWAN page:
Alec Chen 1.2 27
Alec Chen 1.3 28 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20All%20Gateway%20models/LPS8N%20-%20LoRaWAN%20Gateway%20User%20Manual/WebHome/1657091583941-544.png?rev=1.1||alt="1657091583941-544.png"]]
Alec Chen 1.2 29
Alec Chen 1.3 30 The example gateway id is: **a840411e96744154**
31
32
Alec Chen 1.4 33
Alec Chen 1.3 34 **Step 2: Choose the TTNv3 Cluster Picker**
35
36 [[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"]]
37
38
39 **Note: Choose the cluster corresponds to a specific Gateway server address**
40
41 * Europe 1** corresponding Gateway server address:** eu1.cloud.thethings.network
42 * North America 1 **corresponding Gateway server address: **nam1.cloud.thethings.network
43 * Australia 1 **corresponding Gateway server address: **au1.cloud.thethings.network
44 * Legacy V2 Console : **TTN v2 shuts down in December 2021**
45
46 **Step 3: Create a Gateway**
47
48 [[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"]]
49
50 Click the Gateway icon and then click Add gateway.
51
52 Open the following page:
53
Alec Chen 1.4 54 [[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"]]
Alec Chen 1.3 55
Alec Chen 1.4 56 [[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"]]
Alec Chen 1.3 57
58 **Notice: Gateway Server address must match the gateway configuration, otherwise you will have problem for End Node to join the network.**
59
60
61 After creating the gateway, you can see the gateway info, as below.
62
Alec Chen 1.4 63 [[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"]]
Alec Chen 1.3 64
65
Alec Chen 1.4 66 == **2.2 Configure LPS8N to connect to TTN v3** ==
67
68 You can now configure the LPS8N to let it connect to TTN network V3.
69
70 Make sure your LPS8N has a working Internet Connection first.
71
72 Choose the right server provider and click **Save&Apply.**
73
74
75 [[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"]]
76
77 **Note: The server address must match the Gateway server address you choose in TTN V3.**
78
79 In the home page, we can see the LoRaWAN connection is ready now.
80
81 [[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"]]
82
83 In TTN v3 portal, we can also see the gateway is connected.
84
85 [[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"]]
86
87 == **2.3  Configure frequency** ==
88
89 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.
90
91 [[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"]]
92
93 In logread page, user can check the frequency actually used.
94
95 [[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"]]
96
97
Alec Chen 1.3 98 = 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) =
99
Alec Chen 1.4 100 This section shows how to add a LoRaWAN End device to a LoRaWAN network and see the data from TTN web site.
Alec Chen 1.3 101
Alec Chen 1.4 102 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.
Alec Chen 1.2 103
Alec Chen 1.4 104 [[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"]]
Alec Chen 1.2 105
Alec Chen 1.4 106 **Step 1**: Create a Device definition in TTN v3 with the OTAA keys from the example LT-22222-L IO Controller device.
Alec Chen 1.2 107
108
Alec Chen 1.4 109 Three codes are required to define the device in TTN v3:
Alec Chen 1.2 110
Alec Chen 1.4 111 * DEV EUI - Unique ID code for a particular device.
112 * APP EUI - ID code for an Application defined in TTN v3.
113 * APP Key - Unique key to secure communications with a particular device.
Alec Chen 1.2 114
Alec Chen 1.4 115 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.
Alec Chen 1.2 116
117
Alec Chen 1.4 118 [[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"]]
Alec Chen 1.2 119
Alec Chen 1.4 120 **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.**
Alec Chen 1.2 121
122
Alec Chen 1.4 123 For the TTN v3 server, you can use the codes set in the device as in the following example.
Alec Chen 1.2 124
Alec Chen 1.4 125 Select **Add Application** to open the screen below.
Alec Chen 1.2 126
127
Alec Chen 1.4 128 [[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"]]
Alec Chen 1.2 129
Alec Chen 1.4 130 Open the **Application **select** Add end device**
Alec Chen 1.2 131
Alec Chen 1.4 132 Start Register the end device
Alec Chen 1.2 133
Alec Chen 1.4 134 [[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"]]
Alec Chen 1.2 135
Alec Chen 1.4 136 Select OTAA activation mode
Alec Chen 1.2 137
138
Alec Chen 1.4 139 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.
140
141 [[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"]]
142
143 First, input the End device ID, AppEUI and DevEUI.
144
145 [[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"]]
146
147 Secondly, choose the corresponding frequency and LoRaWAN class capabilities.
148
149 [[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"]]
150
151 Finally, Application layer settings input the corresponding AppKey. Before saving the configuration, check that the data matches the device.
152
153
154 **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.
155
156
157 **Note that it may take some time for the device data to appear in the TTN v3 display.**
158
159
160 [[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"]]
161
162
163
Alec Chen 1.2 164