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