Wiki source code of Notes for LORIOT

Version 37.1 by Xiaoling on 2022/05/26 11:23

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