Wiki source code of Notes for LORIOT
Version 67.1 by Kilight Cao on 2022/08/31 14:03
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.4 | 1 | (% class="wikigeneratedid" %) |
![]() |
52.4 | 2 | **~ Table of Contents:** |
![]() |
1.1 | 3 | |
![]() |
1.6 | 4 | {{toc/}} |
![]() |
1.4 | 5 | |
![]() |
48.4 | 6 | |
7 | |||
8 | |||
![]() |
1.4 | 9 | = 1. Introduction = |
10 | |||
![]() |
52.5 | 11 | |
![]() |
1.4 | 12 | ((( |
![]() |
1.7 | 13 | ((( |
![]() |
63.1 | 14 | The Dragino LoRaWAN gateway can communicate with [[LORIOT>>url:https://www.loriot.io/]] LoRaWAN Network Server: |
![]() |
1.4 | 15 | ))) |
![]() |
1.7 | 16 | ))) |
![]() |
1.1 | 17 | |
![]() |
1.4 | 18 | ((( |
![]() |
1.7 | 19 | ((( |
![]() |
67.1 | 20 | Below list the products and requirements that support communication with LORIOT using Semtech UDP: |
![]() |
1.4 | 21 | ))) |
![]() |
1.7 | 22 | ))) |
![]() |
1.1 | 23 | |
![]() |
1.7 | 24 | ((( |
![]() |
67.1 | 25 | ((( |
26 | 1.LoRaWAN Gateway model: [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]],[[LPS8N>>https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]],[[LG308N>>https://www.dragino.com/products/lora-lorawan-gateway/item/229-lg308n.html]] | ||
27 | |||
28 | ((( | ||
29 | ((( | ||
30 | 2.Firmware version since : [[lgw~~-~~-build-v5.4.1661158991-20220822-1704>>https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/lgw--build-v5.4.1661158991-20220822-1704/]] | ||
31 | |||
32 | |||
![]() |
1.4 | 33 | ))) |
![]() |
1.7 | 34 | ))) |
![]() |
67.1 | 35 | |
36 | Below list the products and requirements that support the use of LORIOT software: | ||
37 | ))) | ||
38 | ))) | ||
39 | |||
40 | 1.LoRaWAN Gateway model: [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] | ||
41 | |||
![]() |
1.7 | 42 | ((( |
![]() |
67.1 | 43 | ((( |
44 | 2.Firmware version since :[[LG02_LG08~~-~~-build-v5.4.1590459021-20200526-1012>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] | ||
![]() |
32.2 | 45 | |
46 | |||
![]() |
1.4 | 47 | ))) |
![]() |
1.7 | 48 | ))) |
![]() |
1.1 | 49 | |
![]() |
63.1 | 50 | = 2. Gateway Registration for Semtech UDP = |
![]() |
1.1 | 51 | |
![]() |
1.4 | 52 | == 2.1 Step 1: Get Gateway ETH0 MAC Address == |
![]() |
1.1 | 53 | |
![]() |
52.6 | 54 | |
![]() |
67.1 | 55 | Dragino LoRaWAN gateway uses ETH0 MAC address to generate Gateway EUI to communicate with LORIOT, The user needs to find the ETH0 MAC in the "**System -> System Overview**" menu. |
![]() |
63.1 | 56 | |
57 | |||
58 | [[image:image-20220831110558-1.png||height="595" width="909"]] | ||
59 | |||
60 | |||
61 | == 2.2 Step 2: Register Gateway == | ||
62 | |||
63 | |||
64 | [[image:image-20220831111032-2.png||height="617" width="1263"]] | ||
65 | |||
66 | |||
67 | **Choose gateway model** | ||
68 | |||
![]() |
65.1 | 69 | [[image:image-20220831111132-3.png||height="596" width="1223"]] |
![]() |
63.1 | 70 | |
71 | |||
![]() |
65.1 | 72 | (% style="color:red" %)**Special reminder: **If the user does not find the gateway Model, then **git ~-~-> Packet Forwarder Semtech** can be selected |
73 | |||
74 | [[image:image-20220831115222-11.png||height="596" width="1221"]] | ||
75 | |||
76 | |||
![]() |
63.1 | 77 | **Enter the ETH0 MAC of the gateway** |
78 | |||
79 | [[image:image-20220831111307-4.png||height="850" width="1237"]] | ||
80 | |||
81 | |||
82 | [[image:image-20220831111821-5.png||height="604" width="1239"]] | ||
83 | |||
84 | |||
85 | == 2.3 Step 3: Back to Semtech UDP page == | ||
86 | |||
87 | |||
88 | Back to the page of Semtech UDP check the secondary server settings and click the button of (% style="color:blue" %)**Save&Apply.** | ||
89 | |||
90 | (% class="box infomessage" %) | ||
![]() |
1.4 | 91 | ((( |
![]() |
63.1 | 92 | Server Address: ~-~-> LORIOT Different servers use different addresses, Such as: **next.loriot.io** |
![]() |
52.6 | 93 | |
![]() |
63.1 | 94 | Uplink /Downlink Port : ~-~-> 1780 |
95 | ))) | ||
96 | |||
97 | [[image:image-20220831112553-7.png]] | ||
98 | |||
99 | |||
100 | |||
101 | == 2.4 Step 4: Check Connection == | ||
102 | |||
103 | |||
104 | ((( | ||
105 | LORIOT will show disconnect if Gateway doesn't connect | ||
106 | ))) | ||
107 | |||
108 | ((( | ||
109 | LORIOT will show connect if Gateway connect to LORIOT ok. | ||
110 | ))) | ||
111 | |||
112 | [[image:image-20220831114125-8.png||height="561" width="1150"]] | ||
113 | |||
114 | |||
115 | == 2.5 Trouble Shooting == | ||
116 | |||
117 | |||
118 | User can check the station log in the(% style="color:blue" %)** LogRead ~-~-> System Log **(%%)page. | ||
119 | |||
120 | [[image:image-20220831114647-9.png||height="706" width="894"]] | ||
121 | |||
122 | |||
123 | and recode the station log in the (% style="color:blue" %)** LogRead ~-~-> Recode Log**(%%) page. | ||
124 | |||
125 | [[image:image-20220831114746-10.png||height="292" width="972"]] | ||
126 | |||
127 | |||
![]() |
66.1 | 128 | = 3. Gateways are connected using LORIOT software = |
129 | |||
![]() |
63.1 | 130 | == 3.1 Step 1: Get Gateway ETH0 MAC Address == |
131 | |||
132 | |||
133 | ((( | ||
134 | Dragino LoRaWAN gateway use ETH0 MAC address to generate Gateway ID to communicate with LORIOT, User can get the ETH0 MAC address from SSH access and run **ifconfig** command. | ||
135 | |||
![]() |
52.6 | 136 | |
![]() |
1.4 | 137 | ))) |
![]() |
1.1 | 138 | |
![]() |
4.2 | 139 | [[image:image-20220524175559-2.png]] |
![]() |
1.1 | 140 | |
![]() |
1.2 | 141 | Get ETH0 MAC address |
![]() |
1.1 | 142 | |
![]() |
52.7 | 143 | |
![]() |
1.4 | 144 | ((( |
![]() |
52.7 | 145 | (% style="color:red" %)**Note**: **To make set up more friendly, the ETH0 will show on the LORIOT page in a new firmware version.** |
![]() |
32.2 | 146 | |
147 | |||
![]() |
1.4 | 148 | ))) |
![]() |
1.1 | 149 | |
![]() |
63.1 | 150 | == 3.2 Step 2: Choose LORIOT service == |
![]() |
1.1 | 151 | |
![]() |
52.10 | 152 | |
![]() |
49.3 | 153 | [[image:image-20220531182035-1.png]] |
![]() |
1.1 | 154 | |
![]() |
1.2 | 155 | Choose to use LORIOT as LoRaWAN service provider |
![]() |
1.1 | 156 | |
![]() |
49.3 | 157 | |
![]() |
52.8 | 158 | |
![]() |
50.2 | 159 | [[image:image-20220531182109-2.png]] |
![]() |
1.1 | 160 | |
![]() |
1.2 | 161 | Install and choose the LORIOT server to be used |
162 | |||
![]() |
32.2 | 163 | |
![]() |
52.8 | 164 | |
![]() |
63.1 | 165 | == 3.3 Step 3: Checking Connection Status == |
![]() |
1.2 | 166 | |
![]() |
52.10 | 167 | |
![]() |
51.2 | 168 | [[image:image-20220531182202-3.png]] |
![]() |
1.2 | 169 | |
170 | Click to Home page and check the connection status | ||
171 | |||
![]() |
32.2 | 172 | |
![]() |
52.9 | 173 | |
![]() |
63.1 | 174 | == 3.4 Step 4: Setup Account in LORIOT == |
![]() |
1.2 | 175 | |
![]() |
52.9 | 176 | |
![]() |
1.2 | 177 | Login [[LORIOT>>url:https://www.loriot.io/]] and create account |
178 | |||
![]() |
52.2 | 179 | [[image:image-20220531182253-4.png]] |
![]() |
1.2 | 180 | |
181 | Log in LORIOT portal | ||
182 | |||
183 | |||
![]() |
52.9 | 184 | |
![]() |
1.4 | 185 | Choose to use the server same as the gateway setting |
186 | |||
![]() |
32.2 | 187 | [[image:image-20220526111312-1.png||height="493" width="1098"]] |
![]() |
1.2 | 188 | |
189 | Choose server | ||
190 | |||
191 | |||
![]() |
52.9 | 192 | |
![]() |
1.4 | 193 | Create a New Network |
194 | |||
![]() |
32.2 | 195 | [[image:image-20220526111425-2.png||height="579" width="1378"]] |
![]() |
1.2 | 196 | |
197 | Create a New Network | ||
198 | |||
199 | |||
![]() |
32.2 | 200 | [[image:image-20220526111500-3.png]] |
![]() |
1.5 | 201 | |
![]() |
1.2 | 202 | Create a New Network |
203 | |||
![]() |
32.2 | 204 | |
![]() |
52.9 | 205 | |
![]() |
63.1 | 206 | == 3.5 Step 5: Register the gateway == |
![]() |
1.2 | 207 | |
![]() |
52.9 | 208 | |
![]() |
32.2 | 209 | [[image:image-20220526111650-4.png]] |
![]() |
1.2 | 210 | |
211 | Register the Gateway in LORIOT | ||
212 | |||
213 | |||
![]() |
52.9 | 214 | |
![]() |
1.2 | 215 | Choose LG308 as gateway model |
216 | |||
![]() |
32.2 | 217 | [[image:image-20220526111742-5.png||height="496" width="1372"]] |
![]() |
1.2 | 218 | |
219 | Choose LG308 as gateway model | ||
220 | |||
221 | |||
![]() |
52.9 | 222 | |
![]() |
1.2 | 223 | Input Gateway ETH0 address |
224 | |||
![]() |
35.2 | 225 | [[image:image-20220526111918-6.png||height="744" width="1336"]] |
![]() |
1.2 | 226 | |
227 | Choose SX1301 Reference and use SPI protocol | ||
228 | |||
229 | |||
![]() |
52.9 | 230 | |
![]() |
1.2 | 231 | Choose the right Frequency Band and input location |
232 | |||
![]() |
35.2 | 233 | [[image:image-20220526112029-7.png||height="620" width="1306"]] |
![]() |
1.2 | 234 | |
235 | Set up regional settings. | ||
236 | |||
![]() |
45.2 | 237 | |
![]() |
52.9 | 238 | |
![]() |
63.1 | 239 | == 3.6 Step 6: Check Connection == |
![]() |
1.2 | 240 | |
![]() |
52.9 | 241 | |
![]() |
1.5 | 242 | ((( |
![]() |
1.2 | 243 | LORIOT will show disconnect if Gateway doesn't connect |
![]() |
1.5 | 244 | ))) |
![]() |
1.2 | 245 | |
![]() |
1.5 | 246 | ((( |
![]() |
1.2 | 247 | LORIOT will show connect if Gateway connect to LORIOT ok. |
![]() |
52.9 | 248 | |
249 | |||
![]() |
1.5 | 250 | ))) |
![]() |
1.2 | 251 | |
![]() |
36.2 | 252 | [[image:image-20220526112143-8.png||height="654" width="1373"]] |
![]() |
1.2 | 253 | |
254 | Status: Connected | ||
255 | |||
![]() |
45.2 | 256 | |
![]() |
52.9 | 257 | |
![]() |
63.1 | 258 | == 3.7 Debug If there is connection issue == |
![]() |
1.2 | 259 | |
![]() |
52.9 | 260 | |
![]() |
1.2 | 261 | User can check if loriot is running by checking the web ui |
262 | |||
![]() |
52.9 | 263 | |
![]() |
45.2 | 264 | [[image:image-20220526112917-18.png]] |
![]() |
1.2 | 265 | |
266 | Status: Connected | ||
267 | |||
![]() |
52.9 | 268 | |
![]() |
1.11 | 269 | ((( |
![]() |
1.2 | 270 | If user want to see more log, he can run below commands in Linux and see the full log: |
![]() |
1.11 | 271 | ))) |
![]() |
1.2 | 272 | |
![]() |
1.5 | 273 | (% class="box" %) |
274 | ((( | ||
![]() |
1.8 | 275 | ((( |
![]() |
1.11 | 276 | ps | grep "loriot_dragino" | grep -v grep | awk '{print $1}' | xargs kill -s 9 |
277 | /usr/bin/loriot_dragino_lg308_spi -f -s eu1.loriot.io | ||
![]() |
1.5 | 278 | ))) |
![]() |
1.8 | 279 | ))) |
![]() |
1.2 | 280 | |
![]() |
1.11 | 281 | ((( |
![]() |
52.9 | 282 | |
283 | |||
![]() |
1.2 | 284 | Above two commands will first kill the loriot process and run it again to get more output. |
![]() |
1.11 | 285 | ))) |
![]() |
1.2 | 286 | |
![]() |
47.2 | 287 | [[image:image-20220530145011-1.png]] |
![]() |
1.2 | 288 | |
289 | Get more debug info | ||
290 | |||
![]() |
45.2 | 291 | |
![]() |
52.9 | 292 | |
![]() |
63.1 | 293 | = 4. End Device Note = |
![]() |
1.2 | 294 | |
![]() |
63.1 | 295 | == 4.1 Downlink Setup == |
![]() |
1.2 | 296 | |
![]() |
52.9 | 297 | |
![]() |
48.2 | 298 | [[image:image-20220530145133-2.png]] |
![]() |
1.2 | 299 | |
![]() |
45.2 | 300 | |
![]() |
41.2 | 301 | [[image:image-20220526112416-11.png]] |
![]() |
1.2 | 302 | |
![]() |
45.2 | 303 | |
![]() |
41.2 | 304 | [[image:image-20220526112459-12.png]] |
![]() |
1.2 | 305 | |
![]() |
45.2 | 306 | |
![]() |
41.2 | 307 | [[image:image-20220526112537-13.png]] |
![]() |
1.2 | 308 | |
![]() |
45.2 | 309 | |
![]() |
41.2 | 310 | [[image:image-20220526112608-14.png||height="610" width="1382"]] |
![]() |
1.2 | 311 | |
![]() |
45.2 | 312 | |
![]() |
44.2 | 313 | [[image:image-20220526112655-15.png]] |
![]() |
1.2 | 314 | |
![]() |
45.2 | 315 | |
![]() |
44.2 | 316 | [[image:image-20220526112719-16.png]] |
![]() |
1.2 | 317 | |
![]() |
45.2 | 318 | |
![]() |
44.2 | 319 | [[image:image-20220526112759-17.png||height="483" width="1386"]] |