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