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