Wiki source code of Notes for LORIOT
Version 55.1 by Kilight Cao on 2022/08/31 11:11
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 commuicate 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 | |||
38 | = 2. Gateway Setup Instruction = | ||
39 | |||
40 | == 2.1 Step 1: Get Gateway ETH0 MAC Address == | ||
41 | |||
42 | |||
43 | ((( | ||
44 | 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. | ||
45 | |||
46 | |||
47 | ))) | ||
48 | |||
49 | [[image:image-20220524175559-2.png]] | ||
50 | |||
51 | Get ETH0 MAC address | ||
52 | |||
53 | |||
54 | ((( | ||
55 | (% style="color:red" %)**Note**: **To make set up more friendly, the ETH0 will show on the LORIOT page in a new firmware version.** | ||
56 | |||
57 | |||
58 | |||
59 | ))) | ||
60 | |||
61 | == 2.2 Step 2: Choose LORIOT service == | ||
62 | |||
63 | |||
64 | [[image:image-20220531182035-1.png]] | ||
65 | |||
66 | Choose to use LORIOT as LoRaWAN service provider | ||
67 | |||
68 | |||
69 | |||
70 | [[image:image-20220531182109-2.png]] | ||
71 | |||
72 | Install and choose the LORIOT server to be used | ||
73 | |||
74 | |||
75 | |||
76 | == 2.3 Step 3: Checking Connection Status == | ||
77 | |||
78 | |||
79 | [[image:image-20220531182202-3.png]] | ||
80 | |||
81 | Click to Home page and check the connection status | ||
82 | |||
83 | |||
84 | |||
85 | == 2.4 Step 4: Setup Account in LORIOT == | ||
86 | |||
87 | |||
88 | Login [[LORIOT>>url:https://www.loriot.io/]] and create account | ||
89 | |||
90 | [[image:image-20220531182253-4.png]] | ||
91 | |||
92 | Log in LORIOT portal | ||
93 | |||
94 | |||
95 | |||
96 | Choose to use the server same as the gateway setting | ||
97 | |||
98 | [[image:image-20220526111312-1.png||height="493" width="1098"]] | ||
99 | |||
100 | Choose server | ||
101 | |||
102 | |||
103 | |||
104 | Create a New Network | ||
105 | |||
106 | [[image:image-20220526111425-2.png||height="579" width="1378"]] | ||
107 | |||
108 | Create a New Network | ||
109 | |||
110 | |||
111 | [[image:image-20220526111500-3.png]] | ||
112 | |||
113 | Create a New Network | ||
114 | |||
115 | |||
116 | |||
117 | == 2.5 Step 5: Register the gateway == | ||
118 | |||
119 | |||
120 | [[image:image-20220526111650-4.png]] | ||
121 | |||
122 | Register the Gateway in LORIOT | ||
123 | |||
124 | |||
125 | |||
126 | Choose LG308 as gateway model | ||
127 | |||
128 | [[image:image-20220526111742-5.png||height="496" width="1372"]] | ||
129 | |||
130 | Choose LG308 as gateway model | ||
131 | |||
132 | |||
133 | |||
134 | Input Gateway ETH0 address | ||
135 | |||
136 | [[image:image-20220526111918-6.png||height="744" width="1336"]] | ||
137 | |||
138 | Choose SX1301 Reference and use SPI protocol | ||
139 | |||
140 | |||
141 | |||
142 | Choose the right Frequency Band and input location | ||
143 | |||
144 | [[image:image-20220526112029-7.png||height="620" width="1306"]] | ||
145 | |||
146 | Set up regional settings. | ||
147 | |||
148 | |||
149 | |||
150 | == 2.6 Step 6: Check Connection == | ||
151 | |||
152 | |||
153 | ((( | ||
154 | LORIOT will show disconnect if Gateway doesn't connect | ||
155 | ))) | ||
156 | |||
157 | ((( | ||
158 | LORIOT will show connect if Gateway connect to LORIOT ok. | ||
159 | |||
160 | |||
161 | ))) | ||
162 | |||
163 | [[image:image-20220526112143-8.png||height="654" width="1373"]] | ||
164 | |||
165 | Status: Connected | ||
166 | |||
167 | |||
168 | |||
169 | == 2.7 Debug If there is connection issue == | ||
170 | |||
171 | |||
172 | User can check if loriot is running by checking the web ui | ||
173 | |||
174 | |||
175 | [[image:image-20220526112917-18.png]] | ||
176 | |||
177 | Status: Connected | ||
178 | |||
179 | |||
180 | ((( | ||
181 | If user want to see more log, he can run below commands in Linux and see the full log: | ||
182 | ))) | ||
183 | |||
184 | (% class="box" %) | ||
185 | ((( | ||
186 | ((( | ||
187 | ps | grep "loriot_dragino" | grep -v grep | awk '{print $1}' | xargs kill -s 9 | ||
188 | /usr/bin/loriot_dragino_lg308_spi -f -s eu1.loriot.io | ||
189 | ))) | ||
190 | ))) | ||
191 | |||
192 | ((( | ||
193 | |||
194 | |||
195 | Above two commands will first kill the loriot process and run it again to get more output. | ||
196 | ))) | ||
197 | |||
198 | [[image:image-20220530145011-1.png]] | ||
199 | |||
200 | Get more debug info | ||
201 | |||
202 | |||
203 | |||
204 | = 3. End Device Note = | ||
205 | |||
206 | == 3.1 Downlink Setup == | ||
207 | |||
208 | |||
209 | [[image:image-20220530145133-2.png]] | ||
210 | |||
211 | |||
212 | [[image:image-20220526112416-11.png]] | ||
213 | |||
214 | |||
215 | [[image:image-20220526112459-12.png]] | ||
216 | |||
217 | |||
218 | [[image:image-20220526112537-13.png]] | ||
219 | |||
220 | |||
221 | [[image:image-20220526112608-14.png||height="610" width="1382"]] | ||
222 | |||
223 | |||
224 | [[image:image-20220526112655-15.png]] | ||
225 | |||
226 | |||
227 | [[image:image-20220526112719-16.png]] | ||
228 | |||
229 | |||
230 | [[image:image-20220526112759-17.png||height="483" width="1386"]] |