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