Version 127.4 by Xiaoling on 2022/07/29 15:01

Hide last authors
Xiaoling 73.5 1 (% style="text-align:center" %)
Xiaoling 95.2 2 [[image:1657010676286-732.png||height="452" width="452"]]
Xiaoling 50.3 3
4
5
6
Xiaoling 74.2 7 **Table of Contents:**
Xiaoling 50.3 8
Xiaoling 125.2 9 {{toc/}}
Xiaoling 50.3 10
11
12
13
Kilight Cao 81.1 14
Xiaoling 93.2 15
16
17
18
19
20
Xiaoling 125.2 21
Xiaoling 98.2 22 = 1.  Introduction =
Xiaoling 50.3 23
Xiaoling 127.2 24
Xiaoling 98.2 25 == 1.1  What is the LG308N ==
Xiaoling 50.3 26
Xiaoling 93.2 27
Xiaoling 75.2 28 (((
Xiaoling 95.2 29 (((
Xiaoling 96.2 30 The LG308N is an open source (% style="color:blue" %)**LoRaWAN Pico Gateway**(%%). It lets you bridge LoRa wireless network to an IP network via WiFi, Ethernet, 3G or 4G cellular network. The LoRa wireless allows users to send data and reach extremely long ranges at low data-rates.
Xiaoling 75.2 31 )))
Xiaoling 50.3 32
Xiaoling 75.2 33 (((
Xiaoling 96.2 34 The LG308N uses (% style="color:blue" %)**Semtech packet forwarder** (%%)and fully compatible with LoRaWAN protocol. It includes a (% style="color:blue" %)**SX1302 LoRa concentrator**(%%), which provides 10 programmable parallel demodulation paths.
Xiaoling 75.2 35 )))
Xiaoling 50.3 36
Xiaoling 75.2 37 (((
Xiaoling 96.2 38 LG308N has (% style="color:blue" %)**pre-configured standard LoRaWAN frequency bands**(%%) to use for different countries. User can also (% style="color:blue" %)**customized the frequency bands**(%%) to use in their own LoRa network.
Xiaoling 75.2 39 )))
Xiaoling 50.3 40
Xiaoling 75.2 41 (((
Xiaoling 95.2 42 LG308N can communicate with ABP LoRaWAN end node without LoRaWAN server. System integrator can use it to integrate with their existing IoT Service without set up own LoRaWAN server or use 3rd party LoRaWAN service.
Xiaoling 75.2 43 )))
Xiaoling 95.2 44 )))
Xiaoling 50.3 45
Xiaoling 75.2 46 (((
Xiaoling 93.2 47
Xiaoling 75.2 48 )))
Xiaoling 50.3 49
Xiaoling 96.2 50 [[image:1657010949218-224.png]]
Xiaoling 50.3 51
Xiaoling 93.4 52
Xiaoling 127.2 53
Xiaoling 98.2 54 == 1.2  Specifications ==
Xiaoling 50.3 55
Xiaoling 93.4 56
Xiaoling 118.6 57 (% style="color:#037691" %)**Hardware System:**
Xiaoling 50.3 58
Xiaoling 75.3 59 (((
Xiaoling 50.3 60 Linux Part:
Xiaoling 75.3 61 )))
Xiaoling 50.3 62
63 * 400Mhz ar9331 processor
64 * 64MB RAM
65 * 16MB Flash
66
Xiaoling 118.6 67 (% style="color:#037691" %)**Interface:**
68
Xiaoling 96.2 69 * 10M/100M RJ45 Ports x 2
Xiaoling 50.3 70 * WiFi : 802.11 b/g/n
71 * LoRaWAN Wireless
Xiaoling 96.2 72 * Power Input: 12 V DC, 2 A
Xiaoling 50.3 73 * IEEE 802.3 af compliant PoE port (DC 37  ~~ 57 v)
74 * USB 2.0 host connector x 1
75 * Mini-PCI E connector x 1
76 * SX1302 + 2 x SX1250
77
Xiaoling 118.6 78 (% style="color:#037691" %)**WiFi Spec:**
79
Xiaoling 50.3 80 * IEEE 802.11 b/g/n
81 * Frequency Band: 2.4 ~~ 2.462GHz
82 * Tx power:
83 ** 11n tx power : mcs7/15: 11db     mcs0 : 17db
84 ** 11b tx power: 18db
85 ** 11g 54M tx power: 12db
86 ** 11g 6M tx power: 18db
87 * Wifi Sensitivity
88 ** 11g 54M : -71dbm
89 ** 11n 20M : -67dbm
90
Xiaoling 118.6 91 (% style="color:#037691" %)**LoRa Spec:**
92
Xiaoling 96.2 93 * Up to -142.5 dBm sensitivity with SX1250 Tx/Rx front-end
Xiaoling 50.3 94 * 70 dB CW interferer rejection at 1 MHz offset
95 * Able to operate with negative SNR, CCR up to 9dB
96 * Emulates 49 x LoRa demodulators and 1 x (G)FSK demodulator
97 * Dual digital TX & RX radio front-end interfaces
98 * 10 programmable parallel demodulation paths
99 * Dynamic data-rate (DDR) adaptation
100 * True antenna diversity or simultaneous dual-band operation
101
Xiaoling 118.6 102 (% style="color:#037691" %)**Cellular 4G LTE (optional):**
103
Xiaoling 50.3 104 * Quectel: [[**EC25 LTE module**>>url:https://www.quectel.com/product/ec25minipcie.htm]]
105 * Standard Size SIM Slot
106 * 2 x 4G Sticker Antenna.
107 * Up to 150Mbps downlink and 50Mbps uplink data rates
108 * Worldwide LTE,UMTS/HSPA+ and GSM/GPRS/EDGE coverage
109 * MIMO technology meets demands for data rate and link reliability in modem wireless communication systems
110
Xiaoling 98.2 111 == 1.3  Features ==
Xiaoling 50.3 112
Xiaoling 127.2 113
Xiaoling 96.3 114 * Open Source Linux system
Xiaoling 50.3 115 * Managed by Web GUI, SSH via LAN or WiFi
Xiaoling 96.3 116 * Emulates 49x LoRa demodulators
117 * LoRaWAN Gateway
118 * 10 programmable parallel demodulation paths
Xiaoling 50.3 119
Xiaoling 98.2 120 == 1.4  Hardware System Structure ==
Xiaoling 50.3 121
Xiaoling 127.2 122
Xiaoling 98.2 123 [[image:1657011152828-178.png]]
Xiaoling 50.3 124
Xiaoling 93.4 125
Xiaoling 127.2 126
Xiaoling 98.2 127 == 1.5  LG308N Applications ==
Xiaoling 50.3 128
Xiaoling 98.3 129
Xiaoling 98.2 130 [[image:1657011208596-209.png]]
Xiaoling 50.3 131
Xiaoling 93.4 132
Xiaoling 127.2 133
Xiaoling 98.3 134 == 1.6  LED Indicators ==
Xiaoling 50.3 135
Xiaoling 127.2 136
Xiaoling 98.3 137 LG308N has totally 6 LEDs, They are:
138
Xiaoling 123.8 139 * **Power LED  **[[image:image-20220705165446-1.png||height="15" width="16"]] : This (% style="color:red" %)**LED**(%%) will be **solid on** if the device is properly powered.
140 * **HEART LED **[[image:image-20220705165446-2.png||height="16" width="15"]] : No function yet. 
141 * **SYS LED** [[image:image-20220705165446-3.png||height="16" width="15"]] :  This** LED** will shows different colors on different state:
Xiaoling 104.4 142 ** (% style="color:red" %)**SOLID**(%%):  Device is alive with LoRaWAN server connection.
Xiaoling 104.3 143 ** (% style="color:red" %)**BLINKING**(%%)**:**  a) Device has internet connection but no LoRaWAN Connection.  or  b) Device is in booting stage, in this stage, it will (% style="color:red" %)**BLINKING**(%%)** **for several seconds.
Xiaoling 104.4 144 ** (% style="color:red" %)**OFF**(%%):  Device doesn't have Internet connection.
Xiaoling 50.3 145
Xiaoling 123.8 146 * **ETH LED** [[image:image-20220705165446-5.png||height="15" width="17"]] [[image:image-20220705165446-5.png||height="15" width="17"]]: These two LEDs show the ETH interfaces connection status.
147 * **WiFi LED** [[image:image-20220705165446-6.png||height="15" width="15"]]** **:  This LED shows the WiFi interface connection status.
Xiaoling 50.3 148
Xiaoling 123.9 149 (((
Xiaoling 104.3 150 (% style="color:red" %)**Note: Above LED indication are for firmware version > LG02_LG08~-~-build-v5.3.1584002217-20200312-1639**
Xiaoling 123.9 151 )))
Xiaoling 104.2 152
153
Xiaoling 50.3 154 (((
155 (((
Xiaoling 93.4 156
Xiaoling 50.3 157 )))
158 )))
159
Xiaoling 105.2 160 = 2.  Access and Configure LG308N =
Xiaoling 50.3 161
Xiaoling 127.2 162
Xiaoling 123.10 163 The LG308N is configured as a WiFi Access Point by default. User can access and configure the LG308N after connecting to its WiFi network, or via its Ethernet port.
Xiaoling 50.3 164
Xiaoling 93.4 165
Xiaoling 127.2 166
Xiaoling 105.2 167 == 2.1  Find IP address of LG308N ==
Xiaoling 50.3 168
Xiaoling 127.2 169
Xiaoling 105.2 170 === 2.1.1  Connect via WiFi ===
Xiaoling 50.3 171
Xiaoling 105.2 172 [[image:1657011715859-829.png]]
Xiaoling 50.3 173
174
Xiaoling 105.3 175 At the first boot of LG308N, it will auto generate a WiFi network called (% style="color:green" %)**//dragino-xxxxxx //**(%%)with password:
176
Xiaoling 127.2 177 (% style="color:red" %)**Note: In latest version firmware, it has been password protected and the password is:  **(% style="background-color:yellow" %)**dragino+dragino**
Xiaoling 105.3 178
Xiaoling 127.2 179
Xiaoling 73.5 180 [[image:1652413127647-377.png]]
Xiaoling 50.3 181
182
Xiaoling 75.3 183 (((
Xiaoling 127.2 184 User can use a PC to connect to this WiFi network. The PC will get an IP address 10.130.1.xxx and the LG308N has the default IP (% style="color:green" %)**10.130.1.1**
Xiaoling 93.4 185
Xiaoling 127.2 186
Xiaoling 93.4 187
Xiaoling 75.3 188 )))
Xiaoling 50.3 189
Xiaoling 107.2 190 === 2.1.2  Connect via WAN port with DHCP IP from router ===
Xiaoling 50.3 191
Xiaoling 127.2 192
Xiaoling 106.2 193 [[image:1657011966663-484.png]]
Xiaoling 50.3 194
Xiaoling 106.2 195 (((
196 Alternatively, connect the LG308N** __WAN port__** to your router and LG308N will obtain an IP address from your router. In the router's management portal, you should be able to find what IP address the router has assigned to the LG308N. You can also use this IP to connect.
197 )))
Xiaoling 50.3 198
Xiaoling 106.2 199
Xiaoling 77.2 200 (((
Xiaoling 93.4 201
Xiaoling 77.2 202 )))
Xiaoling 50.3 203
Xiaoling 107.2 204 === 2.1.3  Connect via LAN port with direct connection from PC ===
Xiaoling 50.3 205
Xiaoling 127.2 206
Xiaoling 107.2 207 [[image:1657012061799-674.png]]
Xiaoling 50.3 208
Xiaoling 108.2 209 (((
Xiaoling 107.2 210 The LG308N __**LAN port**__ is configured as DHCP router by default, user can connect the PC to LAN port and set PC to DHCP mode, it will get IP from LAN port and be able to access to the device. The default IP in LAN port is 10.130.1.1
Xiaoling 108.2 211 )))
Xiaoling 50.3 212
213
Xiaoling 93.4 214
Xiaoling 108.2 215 === 2.1.4  Connect WiFi with DHCP IP from router ===
Xiaoling 50.3 216
Xiaoling 127.3 217
Xiaoling 108.2 218 [[image:image-20220705171041-7.png]]
Xiaoling 50.3 219
Xiaoling 93.4 220
Xiaoling 108.2 221 If the LG308N already connect to the router via WiFi, use can use the WiFi IP to connect to LG308N.
222
223
224
225 === 2.1.5  Connect via LAN port by fall back ip ===
226
Xiaoling 127.4 227
Xiaoling 108.2 228 The **LAN port** also has a [[fall back ip address>>path:#fallback_ip]] for access if user doesn't connect to uplink router.
229
230
231
Xiaoling 115.4 232 == 2.2  Access Configure Web UI ==
Xiaoling 50.3 233
Xiaoling 127.4 234
Xiaoling 50.3 235 **Web Interface**
236
Xiaoling 108.2 237 Open a browser on the PC and type the LG308N ip address (depends on your connect method)
Xiaoling 50.3 238
239 [[http:~~/~~/10.130.1.1/>>url:http://10.130.1.1/]] (Access via WiFi AP network)
240
241 or
242
243 http:~/~/IP_ADDRESS or [[http:~~/~~/ IP_ADDRESS:8000>>url:http://192.168.1.xx:8000]]
244
245
246 You will see the login interface of DLOS8N as shown below.
247
248 The account details for Web Login are:
249
250 (% style="color:#4f81bd" %)**User Name: root**
251
252 (% style="color:#4f81bd" %)**Password:   dragino**
253
Xiaoling 73.5 254 [[image:1652414287022-223.png]]
Xiaoling 50.3 255
Xiaoling 108.2 256
Xiaoling 127.4 257
Xiaoling 108.3 258 = 3.  Typical Network Setup =
Xiaoling 50.3 259
Xiaoling 127.4 260
Xiaoling 108.3 261 == 3.1  Overview ==
Xiaoling 50.3 262
Xiaoling 127.4 263
Xiaoling 108.3 264 (((
265 LG308N supports flexible network set up for different environment. This section describes the typical network topology can be set in LG308N. The typical network set up includes:
266 )))
Xiaoling 50.3 267
268 * **WAN Port Internet Mode**
269 * **WiFi Client Mode**
270 * **WiFi AP Mode**
271 * **Cellular Mode**
272
Xiaoling 108.4 273 == 3.2  Use WAN port to access Internet ==
Xiaoling 50.3 274
Xiaoling 127.4 275
Xiaoling 123.12 276 By default, the LG308N is set to use the WAN port to connect to an upstream network. When you connect the LG308N's WAN port to an upstream router, LG308N will get an IP address from the router and have Internet access via the upstream router. The network status can be checked in the (% style="color:#4f81bd" %)**home page**:
Xiaoling 50.3 277
Xiaoling 110.2 278 [[image:1657012559318-672.png]]
Xiaoling 50.3 279
Xiaoling 93.3 280
Xiaoling 127.4 281
Xiaoling 125.2 282 == 3.3  Access the Internet as a WiFi Client ==
Xiaoling 50.3 283
Xiaoling 127.4 284
Xiaoling 108.4 285 In the WiFi Client Mode, LG308N acts as a WiFi client and gets DHCP from an upstream router via WiFi.
Xiaoling 50.3 286
Xiaoling 77.2 287 (((
Xiaoling 50.3 288 The settings for WiFi Client is under page (% style="color:#4f81bd" %)**System~-~-> WiFi ~-~-> WiFi WAN Client Settings**
Xiaoling 77.2 289 )))
Xiaoling 50.3 290
Xiaoling 110.2 291 [[image:1657012573321-862.png]]
Xiaoling 50.3 292
Xiaoling 77.2 293 (((
Xiaoling 127.4 294 In the WiFi Survey Choose the WiFi AP, and input the Passphrase then click(% style="color:blue" %)** Save & Apply** to connect.
Xiaoling 93.3 295
Xiaoling 127.4 296
Xiaoling 93.3 297
Xiaoling 77.2 298 )))
Xiaoling 50.3 299
Xiaoling 111.2 300 == 3.4  Use built-in 4G modem for internet access ==
Xiaoling 50.3 301
Xiaoling 127.4 302
Xiaoling 111.2 303 If the LG308N has 3G/4G Cellular modem, user can use it as main internet connection or back up.
Xiaoling 50.3 304
305
Xiaoling 111.2 306 First, install the Micro SIM card as below direction
Xiaoling 50.3 307
Xiaoling 111.2 308 Second, Power off/ ON LG308N to let it detect the SIM card.
Xiaoling 50.3 309
Xiaoling 111.2 310 [[image:image-20220705171836-8.png]]
311
312
313
Xiaoling 80.2 314 (((
Xiaoling 50.3 315 The set up page is (% style="color:#4f81bd" %)**System ~-~-> Cellular**
Xiaoling 77.2 316 )))
Xiaoling 50.3 317
Xiaoling 77.2 318 (((
Xiaoling 50.3 319 While use the cellular as Backup WAN, device will use Cellular for internet connection while WAN port or WiFi is not valid and switch back to WAN port or WiFi after they recover.
Xiaoling 112.2 320
321
Xiaoling 77.2 322 )))
Xiaoling 50.3 323
Xiaoling 80.2 324 (((
Xiaoling 112.2 325 [[image:image-20220705171919-9.png]]
Xiaoling 80.2 326 )))
Xiaoling 50.3 327
328
Xiaoling 127.4 329
Xiaoling 113.2 330 == 3.5  Check Internet connection ==
Xiaoling 93.3 331
Xiaoling 127.4 332
Xiaoling 50.3 333 In the (% style="color:#4f81bd" %)**home**(%%) page, we can check the Internet connection.
334
Xiaoling 78.2 335 * GREEN Tick ​​​​ [[image:1652436675869-206.png||height="14" width="15"]] : This interface has Internet connection.
Xiaoling 113.2 336 * Yellow  Tick  [[image:1652436705761-420.png||height="15" width="15"]] : This interface has IP address but don't use it for internet connection.
337 * RED Cross    [[image:1652436787176-950.png||height="14" width="15"]] : This interface doesn't connected.
Xiaoling 50.3 338
Xiaoling 113.2 339 [[image:1657012821329-972.png]]
Xiaoling 50.3 340
Xiaoling 93.3 341
Xiaoling 127.4 342
Xiaoling 114.3 343 = 4.  Example: Configure as a LoRaWAN gateway =
Xiaoling 50.3 344
Xiaoling 127.4 345
Xiaoling 114.2 346 LG308N is fully compatible with LoRaWAN protocol. It uses the legacy Semtech Packet forwarder to forward the LoRaWAN packets to server. The structure is as below.
Xiaoling 50.3 347
Xiaoling 80.4 348 (((
Xiaoling 114.2 349 [[image:1657012860422-990.png]]
Xiaoling 80.4 350 )))
Xiaoling 50.3 351
Xiaoling 115.3 352 This chapter describes how to use the LG308N to work with(TTN v3)[[ LoRaWAN Server>>url:https://www.thethingsnetwork.org/]]  ([[www.thethingsnetwork.org>>url:http://www.thethingsnetwork.org/]])
Xiaoling 50.3 353
354
Xiaoling 127.4 355
Xiaoling 114.3 356 == 4.1  Create a gateway in TTN V3 Server ==
Xiaoling 50.3 357
Xiaoling 114.3 358
Xiaoling 123.14 359 (((
Xiaoling 127.4 360 (% style="color:blue" %)**Step 1: Get a Unique gateway ID.**
Xiaoling 123.14 361 )))
Xiaoling 50.3 362
Xiaoling 78.3 363 (((
Xiaoling 123.14 364 (((
Xiaoling 115.2 365 Every LG308N has a unique gateway id. The ID can be found at LoRaWAN page:
Xiaoling 78.3 366 )))
Xiaoling 123.14 367 )))
Xiaoling 50.3 368
Xiaoling 80.4 369 (((
Xiaoling 115.2 370 [[image:1657013108723-531.png]]
Xiaoling 115.4 371
372
Xiaoling 80.4 373 )))
Xiaoling 50.3 374
Xiaoling 115.4 375 The example gateway id is: (% style="color:green" %)**a840411e96744154**
Xiaoling 50.3 376
Xiaoling 115.5 377
Xiaoling 50.3 378
Xiaoling 127.4 379 (% style="color:blue" %)**Step 2: Sign up a user account in TTN server**
380
Xiaoling 50.3 381 [[**https:~~/~~/account.thethingsnetwork.org/register**>>url:https://account.thethingsnetwork.org/register]]
382
Xiaoling 73.5 383 [[image:1652422127479-258.png||height="346" width="738"]]
Xiaoling 50.3 384
Xiaoling 115.6 385
Xiaoling 50.3 386
Xiaoling 127.4 387 (% style="color:blue" %)**Step 3: Choose the TTNv3 Cluster Picker**
388
Xiaoling 80.4 389 (((
Xiaoling 73.5 390 [[image:1652422142236-792.png||height="356" width="737"]]
Xiaoling 80.4 391 )))
Xiaoling 50.3 392
393 (% style="color:red" %)**Note: Choose the cluster corresponds to a specific Gateway server address**
394
Xiaoling 119.3 395
Xiaoling 115.6 396 * Europe 1 (% style="color:red" %)**corresponding Gateway server address:** (% style="color:black" %)eu1.cloud.thethings.network
397 * North America 1 (% style="color:red" %)**corresponding Gateway server address: **(% style="color:black" %)nam1.cloud.thethings.network
398 * Australia 1 (% style="color:red" %)**corresponding Gateway server address: **(% style="color:black" %)au1.cloud.thethings.network
399 * Legacy V2 Console : (% style="color:red" %)**TTN v2 shuts down in December 2021**
Xiaoling 50.3 400
401
Xiaoling 127.4 402 (% style="color:blue" %)**Step 4: Create a Gateway**
403
Xiaoling 73.5 404 [[image:1652422440891-514.png||height="360" width="747"]]
Xiaoling 50.3 405
406 Click the Gateway icon and then click Add gateway.
407
408 Open the following page:
409
Xiaoling 73.5 410 [[image:1652422470352-518.png||height="391" width="716"]]
Xiaoling 50.3 411
Xiaoling 115.7 412
Xiaoling 73.5 413 [[image:1652422479876-297.png||height="398" width="729"]]
Xiaoling 50.3 414
Xiaoling 115.7 415
Xiaoling 80.4 416 (((
Xiaoling 127.4 417 (% style="color:red" %)**Notice: Gateway Server address must match the gateway configuration, otherwise you will have problem for End Node to join the network.**
418
419
Xiaoling 80.4 420 )))
Xiaoling 50.3 421
422 After creating the gateway, you can see the gateway info, as below.
423
Xiaoling 73.5 424 [[image:1652422509034-682.png||height="299" width="739"]]
Xiaoling 50.3 425
Xiaoling 93.3 426
Xiaoling 127.4 427
Xiaoling 123.15 428 == 4.2  Configure LG308N to connect to TTN v3 ==
Xiaoling 50.3 429
Xiaoling 127.4 430
Xiaoling 80.4 431 (((
Xiaoling 115.9 432 You can now configure the LG308N to let it connect to TTN network V3.
Xiaoling 80.4 433 )))
Xiaoling 50.3 434
Xiaoling 80.4 435 (((
Xiaoling 115.9 436 Make sure your LG308N has a working Internet Connection first.
Xiaoling 80.4 437 )))
Xiaoling 50.3 438
Xiaoling 80.4 439 (((
Xiaoling 127.4 440 Choose the right server provider and click (% style="color:blue" %)**Save&Apply**
441
442
Xiaoling 80.4 443 )))
Xiaoling 50.3 444
Xiaoling 73.5 445 [[image:1652422624783-580.png||height="327" width="729"]]
Xiaoling 50.3 446
447
Xiaoling 127.4 448 (% style="color:red" %)**Note: The server address must match the Gateway server address you choose in TTN V3.**
Xiaoling 117.2 449
Xiaoling 127.4 450
Xiaoling 50.3 451 In the home page, we can see the LoRaWAN connection is ready now.
452
Xiaoling 117.2 453 [[image:1657014479765-850.png]]
Xiaoling 50.3 454
Xiaoling 117.2 455
Xiaoling 50.3 456 In TTN v3 portal, we can also see the gateway is connected.
457
Xiaoling 73.5 458 [[image:1652422703020-955.png||height="343" width="730"]]
Xiaoling 50.3 459
Xiaoling 93.3 460
Xiaoling 127.4 461
Xiaoling 117.2 462 == 4.3  Configure frequency ==
Xiaoling 50.3 463
Xiaoling 127.4 464
Xiaoling 117.2 465 We also need to set the frequency plan in LG308N to match the end node we use, so to receive the LoRaWAN packets from the LoRaWAN sensor.
Xiaoling 50.3 466
Xiaoling 117.2 467
Xiaoling 73.5 468 [[image:1652422737399-529.png||height="362" width="737"]]
Xiaoling 50.3 469
470
471 In logread page, user can check the frequency actually used.
472
Xiaoling 73.5 473 [[image:1652422763536-750.png||height="514" width="730"]]
Xiaoling 50.3 474
Xiaoling 93.3 475
Xiaoling 127.4 476
Xiaoling 117.2 477 == 4.4  Add a LoRaWAN End Device ==
Xiaoling 50.3 478
Xiaoling 127.4 479
Xiaoling 78.3 480 (((
Xiaoling 50.3 481 This section shows how to add a LoRaWAN End device to a LoRaWAN network and see the data from TTN web site.
Xiaoling 78.3 482 )))
Xiaoling 50.3 483
Xiaoling 78.3 484 (((
Xiaoling 50.3 485 We use [[LT-22222-L>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]] IO Controller as a reference device - the setup for other LoRaWAN devices will be similar.
Xiaoling 78.3 486 )))
Xiaoling 50.3 487
Xiaoling 73.5 488 [[image:1652422794767-871.png]]
Xiaoling 50.3 489
Xiaoling 78.3 490 (((
Xiaoling 127.4 491 (% style="color:blue" %)**Step 1**: (% style="color:black" %)Create a Device definition in TTN v3 with the OTAA keys from the example LT-22222-L IO Controller device.
Xiaoling 78.3 492 )))
Xiaoling 50.3 493
Xiaoling 78.3 494 (((
Xiaoling 50.3 495 Three codes are required to define the device in TTN v3:
Xiaoling 78.3 496 )))
Xiaoling 50.3 497
498 * DEV EUI - Unique ID code for a particular device.
499 * APP EUI - ID code for an Application defined in TTN v3.
500 * APP Key - Unique key to secure communications with a particular device.
501
Xiaoling 78.3 502 (((
Xiaoling 118.2 503
504
Xiaoling 50.3 505 A set of these codes are stored in each device by the manufacturer as the default codes for that particular device. Each device is shipped with a sticker with the default Device EUI as shown below.
Xiaoling 78.3 506 )))
Xiaoling 50.3 507
Xiaoling 73.5 508 [[image:1652422840936-838.png]]
Xiaoling 50.3 509
Xiaoling 117.2 510
Xiaoling 78.3 511 (((
Xiaoling 50.3 512 (% style="color:red" %)Note: You may be able to change these codes in a device by using a configuration facility on the device e.g. the LT-22222 uses a serial port access and a series of AT commands.  Changing the codes may be necessary in the case where you have to use codes assigned by a LoRa WAN server.
Xiaoling 117.2 513
514
Xiaoling 78.3 515 )))
Xiaoling 50.3 516
Xiaoling 78.3 517 (((
Xiaoling 50.3 518 For the TTN v3 server, you can use the codes set in the device as in the following example.
Xiaoling 78.3 519 )))
Xiaoling 50.3 520
Xiaoling 78.3 521 (((
Xiaoling 50.3 522 Select **Add Application** to open the screen below.
Xiaoling 78.3 523 )))
Xiaoling 50.3 524
Xiaoling 117.2 525 [[image:1657014671459-433.png]]
Xiaoling 50.3 526
Xiaoling 118.2 527
Xiaoling 50.3 528 Open the **Application **select** Add end device**
529
Xiaoling 118.2 530
Xiaoling 50.3 531 Start Register the end device
532
Xiaoling 73.5 533 [[image:1652422975885-591.png||height="359" width="726"]]
Xiaoling 50.3 534
Xiaoling 78.3 535 (((
Xiaoling 50.3 536 Select OTAA activation mode
Xiaoling 118.2 537
538
Xiaoling 78.3 539 )))
Xiaoling 50.3 540
Xiaoling 78.3 541 (((
Xiaoling 50.3 542 The LoRaWAN version for your device should be provided by the manufacturer in a datasheet as LoRaWAN version or LoRaWAN specification. The most commonly used LoRaWAN versions are v1.0.2 and v1.0.3.
Xiaoling 78.3 543 )))
Xiaoling 50.3 544
Xiaoling 73.5 545 [[image:1652422998005-968.png||height="352" width="744"]]
Xiaoling 50.3 546
547 First, input the End device ID, AppEUI and DevEUI.
548
Xiaoling 118.2 549
Xiaoling 73.5 550 [[image:1652423022781-339.png||height="365" width="741"]]
Xiaoling 50.3 551
552 Secondly, choose the corresponding frequency and LoRaWAN class capabilities.
553
Xiaoling 118.2 554
Xiaoling 73.5 555 [[image:1652423046741-467.png||height="355" width="736"]]
Xiaoling 50.3 556
Xiaoling 78.3 557 (((
Xiaoling 50.3 558 Finally, Application layer settings input the corresponding AppKey. Before saving the configuration, check that the data matches the device.
Xiaoling 118.2 559
560
Xiaoling 78.3 561 )))
Xiaoling 50.3 562
Xiaoling 78.3 563 (((
Xiaoling 127.4 564 (% style="color:blue" %)**Step 2**: (% style="color:black" %)Power on LT-22222-L device and it will automatically join the TTN network. After joining successfully, it will start to upload messages to the TTN v3. Select the Live data tab and you will see the data appearing in the panel.
565
566
Xiaoling 78.3 567 )))
Xiaoling 50.3 568
Xiaoling 78.3 569 (((
Xiaoling 127.4 570 (% style="color:red" %)**Note that it may take some time for the device data to appear in the TTN v3 display.**
571
572
Xiaoling 78.3 573 )))
Xiaoling 50.3 574
Xiaoling 73.5 575 [[image:1652423277549-324.png||height="273" width="745"]]
Xiaoling 50.3 576
Xiaoling 93.3 577
Xiaoling 127.4 578
Xiaoling 118.2 579 = 5.  Web Configure Pages =
Xiaoling 50.3 580
Xiaoling 127.4 581
Xiaoling 118.2 582 == 5.1  Home ==
Xiaoling 50.3 583
Xiaoling 127.4 584
Xiaoling 50.3 585 Shows the system running status.
586
Xiaoling 118.2 587 [[image:1657014949846-507.png]]
Xiaoling 50.3 588
Xiaoling 93.3 589
Xiaoling 127.4 590
Xiaoling 118.2 591 == 5.2  LoRa Settings ==
Xiaoling 50.3 592
Xiaoling 127.4 593
Xiaoling 118.2 594 === 5.2.1  LoRa ~-~-> LoRa ===
Xiaoling 50.3 595
Xiaoling 127.4 596
Xiaoling 78.4 597 (((
Xiaoling 50.3 598 This page shows the LoRa Radio Settings. There are a set of default frequency band according to LoRaWAN protocol, and user can customized the band* as well.
Xiaoling 78.4 599 )))
Xiaoling 50.3 600
Xiaoling 78.4 601 (((
Xiaoling 118.2 602 Different LG308N hardware version can support different frequency range:
Xiaoling 78.4 603 )))
Xiaoling 50.3 604
Xiaoling 118.2 605 * (% style="color:blue" %)**868**(%%): valid frequency: 863Mhz ~~ 870Mhz. for bands EU868, RU864, IN865 or KZ865.
606 * (% style="color:blue" %)**915**(%%): valid frequency: 902Mhz ~~ 928Mhz. for bands US915, AU915, AS923 or KR920
Xiaoling 50.3 607
Xiaoling 78.4 608 (((
Xiaoling 127.4 609 After user choose the frequency plan, he can see the actually frequency in used by checking the page (% style="color:blue" %)**LogRead ~-~-> LoRa Log**
Xiaoling 78.4 610 )))
Xiaoling 50.3 611
Xiaoling 73.5 612 [[image:1652423554776-574.png||height="380" width="740"]]
Xiaoling 50.3 613
Xiaoling 127.4 614 (% style="color:red" %)**Note *: [[See this instruction for how to customize frequency band>>doc:Main.How to customized LoRaWAN frequency band.WebHome]]**
Xiaoling 50.3 615
616
Xiaoling 118.3 617 === 5.2.2  LoRa ~-~-> ABP Decryption ===
Xiaoling 50.3 618
Xiaoling 118.3 619 The LG308N can communicate with LoRaWAN ABP End Node without the need of LoRaWAN server. It can be used in some cases such as:
Xiaoling 50.3 620
621 * No internet connection.
Xiaoling 80.9 622 * User wants to get data forward in gateway and forward to their server based on MQTT/HTTP, etc. (Combine ABP communication method and [[MQTT forward together>>doc:Main.MQTT Forward Instruction.WebHome]]).
Xiaoling 50.3 623
Xiaoling 78.4 624 (((
Xiaoling 118.4 625
626
Xiaoling 80.10 627 Detail of this feature: **[[Communication with ABP End Node>>doc:Main.Communicate with ABP End Node without LoRaWAN Network Server --- LG308.WebHome]]**
Xiaoling 78.4 628 )))
Xiaoling 50.3 629
Xiaoling 73.5 630 [[image:1652423628833-467.png||height="357" width="755"]]
Xiaoling 50.3 631
Xiaoling 93.3 632
Xiaoling 118.4 633 == 5.3  LoRaWAN Settings ==
Xiaoling 50.3 634
Xiaoling 118.4 635 === 5.3.1  LoRaWAN ~-~-> LoRaWAN ===
Xiaoling 50.3 636
637 This page is for the connection set up to a general LoRaWAN Network server such as: [[TTN>>url:http://www.thethingsnetwork.org/]], [[ChirpStack>>url:https://www.chirpstack.io/]] etc
638
Xiaoling 73.5 639 [[image:1652423628833-467.png||height="357" width="755"]]
Xiaoling 50.3 640
641 (% style="color:red" %)**Note:**
642
Xiaoling 123.16 643 ~*: User can ignore the latitude and longitude settings here, LG308N will use the actually value from GPS module.
Xiaoling 50.3 644
645 ~**: Packet filter is to drop the unwanted LoRaWAN packet, instruction see here:
646
Xiaoling 80.10 647 **See:** **[[Filter unwanted LoRaWAN packets>>doc:Main.Filter unwanted LoRaWAN packets.WebHome]]**
Xiaoling 50.3 648
Xiaoling 93.3 649
Xiaoling 50.3 650
Xiaoling 118.4 651 === 5.3.2  LoRaWAN ~-~-> Amazon AWS-IoT ===
652
Xiaoling 73.5 653 [[image:1652428499323-384.png||height="275" width="723"]]
Xiaoling 50.3 654
Xiaoling 93.3 655
Xiaoling 78.4 656 (((
Xiaoling 80.10 657 Please see this instruction to know more detail and demo for how to connect to **[[AWS-IoT LoRaWAN Core>>doc:Main.AWS IoT Core for LoRaWAN.WebHome]].**
Xiaoling 93.3 658
Xiaoling 118.4 659
Xiaoling 93.3 660
Xiaoling 78.4 661 )))
Xiaoling 50.3 662
Xiaoling 118.4 663 === 5.3.3  LoRaWAN ~-~-> LORIOT ===
Xiaoling 50.3 664
Xiaoling 78.4 665 (((
Xiaoling 50.3 666 Settings to communicate to LORIOT LoRaWAN Network Server: [[https:~~/~~/www.loriot.io/>>url:https://www.loriot.io/]]
Xiaoling 78.4 667 )))
Xiaoling 50.3 668
Xiaoling 78.4 669 (((
Xiaoling 80.10 670 Instruction: **[[Notes for LORIOT>>doc:Main.Notes for LORIOT.WebHome]]**
Xiaoling 78.4 671 )))
Xiaoling 50.3 672
Xiaoling 73.5 673 [[image:1652428648903-878.png||height="266" width="731"]]
Xiaoling 50.3 674
Xiaoling 93.3 675
Xiaoling 121.2 676 == 5.4  MQTT Settings ==
Xiaoling 50.3 677
Xiaoling 123.17 678 (((
Xiaoling 119.4 679 If end nodes works in ABP mode, user can configure LG308N to transfer the data to MQTT broker,
Xiaoling 123.17 680 )))
Xiaoling 50.3 681
Xiaoling 123.17 682 (((
Xiaoling 80.10 683 Instruction: **[[MQTT Forward Instruction>>doc:Main.MQTT Forward Instruction.WebHome]]**
Xiaoling 123.17 684 )))
Xiaoling 50.3 685
686
Xiaoling 73.5 687 [[image:1652428705046-212.png||height="417" width="733"]]
Xiaoling 50.3 688
Xiaoling 93.3 689
Xiaoling 119.5 690
Xiaoling 121.2 691 == 5.5  System ==
Xiaoling 50.3 692
Xiaoling 121.2 693 === 5.5.1  System ~-~-> System Overview ===
Xiaoling 50.3 694
695 Shows the system info:
696
Xiaoling 73.5 697 [[image:1652428773760-580.png||height="408" width="728"]]
Xiaoling 50.3 698
Xiaoling 93.3 699
Xiaoling 119.5 700
Xiaoling 121.2 701 === 5.5.2  System ~-~-> General ( login settings) ===
Xiaoling 50.3 702
Xiaoling 73.5 703 [[image:1652428861256-300.png||height="354" width="724"]]
Xiaoling 50.3 704
Xiaoling 78.5 705 (((
Xiaoling 54.2 706 **__System Password:__**
Xiaoling 78.5 707 )))
Xiaoling 50.3 708
Xiaoling 78.5 709 (((
Xiaoling 119.5 710 There are two login for DLOS8: (% style="color:#4f81bd" %)root /dragino (% style="color:black" %)or (% style="color:#4f81bd" %)admin /dragino. (% style="color:black" %)Both root and admin has the same right for WEB access. But root user has also the right to access via SSH to Linux system. admin only able to access WEB interface.
Xiaoling 78.5 711 )))
Xiaoling 50.3 712
Xiaoling 78.5 713 (((
Xiaoling 50.3 714 This page can be used to set the password for them.
Xiaoling 78.5 715 )))
Xiaoling 50.3 716
Xiaoling 54.2 717 (((
Xiaoling 119.5 718 **__Timezone: __**Set device timezone.
Xiaoling 78.5 719 )))
Xiaoling 50.3 720
Xiaoling 54.2 721 (((
Xiaoling 119.5 722 **__Port forwarding: __**Enable/Disable the HTTP and SSH access via WAN interface.
Xiaoling 93.3 723
Xiaoling 119.5 724
Xiaoling 93.3 725
Xiaoling 78.5 726 )))
Xiaoling 50.3 727
Xiaoling 121.2 728 === 5.5.3  System ~-~-> Network ===
Xiaoling 50.3 729
Xiaoling 73.5 730 [[image:1652429149053-824.png||height="467" width="725"]]
Xiaoling 50.3 731
Xiaoling 78.5 732 (((
Xiaoling 119.6 733 **__LAN Settings:  __**When the LG308N has the AP enable, LAN settings specify the network info for LG308N's own network.
Xiaoling 78.5 734 )))
Xiaoling 50.3 735
Xiaoling 54.2 736 (((
Xiaoling 119.5 737 __**WAN Settings: **__Setting for LG308N WAN port
Xiaoling 54.2 738 )))
Xiaoling 50.3 739
Xiaoling 54.2 740 (((
Xiaoling 119.5 741 __**WiFi Settings:  **__Setting for LG308N WiFi IP when use it as WiFi Client
Xiaoling 54.2 742 )))
Xiaoling 50.3 743
Xiaoling 119.5 744
745
Xiaoling 121.2 746 === 5.5.4  System ~-~-> WiFi ===
Xiaoling 50.3 747
Xiaoling 119.5 748 LG308N WiFi Settings.
Xiaoling 50.3 749
Xiaoling 73.5 750 [[image:1652429430767-921.png||height="367" width="723"]]
Xiaoling 50.3 751
Xiaoling 93.3 752
Xiaoling 119.5 753
Xiaoling 121.2 754 === 5.5.5  System ~-~-> Cellular ===
Xiaoling 50.3 755
756 While use the cellular as Backup WAN, device will use Cellular for internet connection while WAN port or WiFi is not valid and switch back to WAN port or WiFi after they recover.
757
Xiaoling 73.5 758 [[image:1652429309615-825.png||height="320" width="732"]]
Xiaoling 50.3 759
Xiaoling 119.6 760 (% style="color:red" %)Note *: For LG308N which doesn't have the cellular module, this page will shows Cellular not detected.
Xiaoling 50.3 761
Xiaoling 93.3 762
Xiaoling 119.6 763
Xiaoling 121.2 764 === 5.5.6  System ~-~-> Network Status ===
Xiaoling 50.3 765
Xiaoling 73.5 766 [[image:1652429486609-208.png||height="415" width="728"]]
Xiaoling 50.3 767
Xiaoling 93.3 768
Xiaoling 119.6 769
Xiaoling 121.2 770 === 5.5.7  System ~-~-> Remote Mgnt & Auto Provision ===
Xiaoling 50.3 771
772 Auto Provision is the feature for batch configure and remote management. It can be used in below two cases:
773
Xiaoling 73.5 774 [[image:1652429518191-846.png||height="332" width="733"]]
Xiaoling 50.3 775
Xiaoling 73.5 776 [[image:1652429527544-247.png||height="327" width="724"]]
Xiaoling 50.3 777
Xiaoling 73.5 778 [[image:1652429537849-154.png||height="339" width="722"]]
Xiaoling 50.3 779
780 Please see this document for detail:
781
Xiaoling 119.7 782 [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG308N/Firmware/Application_Note/&file=Auto-update-feature.pdf>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Application_Note/&file=Auto-update-feature.pdf]]
783
Xiaoling 50.3 784
Xiaoling 80.10 785 R-SSH is for remote access device and management, introduction for how to use: **[[Remote Access Gateway>>doc:Main.Remote Access Gateway.WebHome]]**
Xiaoling 50.3 786
Xiaoling 73.5 787 [[image:1652429624400-864.png||height="432" width="716"]]
Xiaoling 50.3 788
Xiaoling 80.10 789
Xiaoling 119.7 790
Xiaoling 121.2 791 === 5.5.8  System ~-~-> Firmware Upgrade ===
Xiaoling 50.3 792
793 We keep improving the DLOS8N Linux side firmware for new features and bug fixes. Below are the links for reference.
794
795 * **Latest firmware**: [[LoRa Gateway Firmware>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG02-OLG02/Firmware/]],
796
797 ( [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG02-OLG02/Firmware>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG02-OLG02/Firmware/]] )
798
Xiaoling 119.7 799
Xiaoling 50.3 800 * **Change Log**: [[Firmware Change Log>>url:http://www.dragino.com/downloads/downloads/LoRa_Gateway/LG02-OLG02/Firmware/ChangeLog]].
801
802 ( [[http:~~/~~/www.dragino.com/downloads/downloads/LoRa_Gateway/LG02-OLG02/Firmware/ChangeLog>>url:http://www.dragino.com/downloads/downloads/LoRa_Gateway/LG02-OLG02/Firmware/ChangeLog]] )
803
Xiaoling 119.7 804
Xiaoling 78.5 805 (((
Xiaoling 66.2 806 The file named as (% style="color:green" %)**xxxxx–xxxxx-squashfs-sysupgrade.bin **(% style="color:black" %)is the upgrade Image. There are different methods to upgrade, as below.
Xiaoling 78.5 807 )))
Xiaoling 50.3 808
Xiaoling 78.5 809 (((
Xiaoling 66.2 810 (% style="color:green" %)**Web~-~-> System~-~-> Firmware Upgrade**
Xiaoling 78.5 811 )))
Xiaoling 50.3 812
Xiaoling 73.5 813 [[image:1652429711145-862.png||height="270" width="737"]]
Xiaoling 50.3 814
Xiaoling 121.2 815
Xiaoling 123.19 816 (((
Xiaoling 50.3 817 Select the required image and click **Flash Image.** The image will be uploaded to the device, and then click **Process Update** to upgrade.
Xiaoling 123.19 818 )))
Xiaoling 50.3 819
Xiaoling 123.19 820 (((
Xiaoling 66.2 821 (% style="color:red" %)**NOTE**: (% style="color:black" %)You normally need to **//uncheck//** the **Preserve Settings** checkbox when doing an upgrade to ensure that there is no conflict between the old settings and the new firmware. The new firmware will start up with its default settings.
Xiaoling 123.19 822 )))
Xiaoling 50.3 823
Xiaoling 123.19 824 (((
Xiaoling 50.3 825 The system will automatically boot into the new firmware after upgrade.
Xiaoling 123.19 826 )))
Xiaoling 50.3 827
Xiaoling 73.5 828 [[image:1652429962190-224.png||height="358" width="729"]]
Xiaoling 50.3 829
Xiaoling 66.2 830 (% style="color:red" %)**NOTE***(%%): User can also upgrade firmware via Linux console
Xiaoling 50.3 831
Xiaoling 66.2 832 SCP the firmware to the system(% style="color:green" %)**/var**(%%)** **directory and then run
Xiaoling 50.3 833
Xiaoling 66.2 834 (% style="color:#4f81bd" %)**//root@OpenWrt:~~# /sbin/sysupgrade –n /var/Your_Image//**
Xiaoling 50.3 835
Xiaoling 121.2 836
Xiaoling 66.2 837 (% style="color:red" %)**NOTE**(%%) : it is important to transfer the image in the /var directory, otherwise it may exceed the available flash size.
Xiaoling 50.3 838
Xiaoling 93.3 839
Xiaoling 50.3 840
Xiaoling 121.2 841 === 5.5.9  System ~-~-> Reboot/Reset ===
842
Xiaoling 73.5 843 [[image:1652430197132-330.png||height="256" width="724"]]
Xiaoling 50.3 844
Xiaoling 73.7 845 (((
846
Xiaoling 121.2 847
848
Xiaoling 73.7 849 )))
Xiaoling 50.3 850
Xiaoling 121.2 851 === 5.5.10  System ~-~-> Package Maintain ===
Xiaoling 50.3 852
Xiaoling 73.5 853 [[image:1652430243826-126.png||height="289" width="723"]]
Xiaoling 50.3 854
855 Place to show what package has installed and possible to upgrade packages.
856
Xiaoling 93.3 857
Xiaoling 50.3 858
Xiaoling 121.2 859 == 5.6  LogRead ==
Xiaoling 50.3 860
Xiaoling 121.2 861 === 5.6.1  LogRead ~-~-> LoRa Log ===
Xiaoling 50.3 862
863 Show the frequency for LoRa Radio and traffics.
864
Xiaoling 121.2 865 [[image:1657069890320-513.png]]
Kilight Cao 91.1 866
867
868
869
Xiaoling 121.2 870 === 5.6.2  LogRead ~-~-> System Log ===
Kilight Cao 91.1 871
Xiaoling 121.2 872 Show the system log
Kilight Cao 93.1 873
Xiaoling 121.2 874 [[image:1657069922599-794.png]]
Kilight Cao 91.1 875
876
877
Xiaoling 121.2 878 = 6.  More features =
Xiaoling 50.3 879
Xiaoling 121.2 880 == 6.1  More instructions ==
Xiaoling 50.3 881
Xiaoling 80.12 882 [[LoRaWAN Gateway Instruction>>doc:Main.WebHome]](LoRaWAN Gateway)
Xiaoling 50.3 883
Xiaoling 80.12 884
Xiaoling 50.3 885
Xiaoling 121.3 886 = 7.  Linux System =
Xiaoling 50.3 887
Xiaoling 121.3 888 The LG308N is based on the OpenWrt Linux system. It is open source, and users are free to configure and modify the Linux settings.
Xiaoling 93.3 889
Xiaoling 50.3 890
Xiaoling 121.3 891 == 7.1  SSH Access for Linux console ==
Xiaoling 50.3 892
Xiaoling 121.3 893 User can access the Linux console via the SSH protocol. Make sure your PC and the LG308N are connected to the same network, then use a SSH tool (such as [[putty>>url:http://www.chiark.greenend.org.uk/~~sgtatham/putty/download.html]] in Windows) to access it.
Xiaoling 50.3 894
Xiaoling 121.3 895 IP address:  IP address of LG308N
896
Xiaoling 50.3 897 Port:         22 (via WiFi AP mode) or 2222 (via WAN Interface)
898
Xiaoling 71.2 899 User Name:      (% style="color:green" %)**root**
Xiaoling 50.3 900
Xiaoling 71.2 901 Password:         (% style="color:green" %)**dragino** (% style="color:black" %)(default)
Xiaoling 50.3 902
Xiaoling 121.3 903
Xiaoling 50.3 904 After logging in, you will be in the Linux console and can enter commands as shown below.
905
Xiaoling 73.5 906 [[image:1652431588565-830.png]]
Xiaoling 50.3 907
Xiaoling 121.3 908
Xiaoling 71.2 909 The “(% class="mark" %)**logread -f**(%%)” command can be used to debug how system runs.
Xiaoling 50.3 910
Xiaoling 122.2 911 [[image:1657070133275-283.png]]
Xiaoling 71.2 912
Xiaoling 80.13 913
Xiaoling 50.3 914
Xiaoling 122.2 915 == 7.2  Edit and Transfer files ==
916
Xiaoling 78.5 917 (((
Xiaoling 122.3 918 The LG308N supports the (% style="color:green" %)**SCP protocol** (% style="color:black" %)and has a built-in (% style="color:green" %)**SFTP server**. (% style="color:black" %)There are many ways to edit and transfer files using these protocols.
Xiaoling 78.5 919 )))
Xiaoling 50.3 920
Xiaoling 78.5 921 (((
Xiaoling 50.3 922 In Windows, one of the easiest methods is using the [[WinSCP>>url:https://winscp.net/eng/index.php]] utility.
Xiaoling 78.5 923 )))
Xiaoling 50.3 924
Xiaoling 78.5 925 (((
Xiaoling 122.3 926 After establishing access via WinSCP to the device, you can use an FTP style window to drag / drop files to the LG308N, or edit the files directly in the windows.
Xiaoling 78.5 927 )))
Xiaoling 50.3 928
Xiaoling 78.5 929 (((
Xiaoling 50.3 930 Screenshot is as below:
Xiaoling 78.5 931 )))
Xiaoling 50.3 932
Xiaoling 73.5 933 [[image:1652431650755-450.png]]
Xiaoling 50.3 934
935
Xiaoling 122.4 936 == 7.3  File System ==
Xiaoling 71.3 937
Xiaoling 78.6 938 (((
939 (((
Xiaoling 122.5 940 The LG308N has a 16MB flash and a 64MB RAM. The /var and /tmp directory are in the RAM, contents stored in /tmp and /var will be erased after reboot the device. Other directories are in the flash and will keep after reboot.
Xiaoling 78.6 941 )))
Xiaoling 50.3 942
Xiaoling 122.5 943
Xiaoling 78.6 944 (((
Xiaoling 122.5 945 The Linux system use around 8MB ~~10MB flash size which means there is not much room for user to store data in the LG308N flash. User can use an external USB flash to extend the size for storage.
Xiaoling 78.6 946 )))
Xiaoling 122.5 947 )))
Xiaoling 50.3 948
Xiaoling 71.6 949
Xiaoling 122.5 950
Xiaoling 122.6 951 == 7.4  Package maintenance system ==
Xiaoling 50.3 952
Xiaoling 122.7 953 LG308N uses the OpenWrt [[**OPKG package maintenance system**>>https://oldwiki.archive.openwrt.org/doc/techref/opkg]]. There are more than 3000+ packages available in our package server for users to install for their applications. For example, if you want to add the **//iperf //** tool, you can install the related packages and configure DLOS8N to use **//iperf //**.
Xiaoling 50.3 954
Xiaoling 78.6 955 (((
Xiaoling 71.3 956 Below are some example **//opkg //** commands. For more information please refer to the [[OPKG package maintain system>>https://oldwiki.archive.openwrt.org/doc/techref/opkg]]** **([[https:~~/~~/oldwiki.archive.openwrt.org/doc/techref/opkg>>https://oldwiki.archive.openwrt.org/doc/techref/opkg]])
Xiaoling 78.6 957 )))
Xiaoling 50.3 958
Xiaoling 78.6 959 (((
Xiaoling 71.6 960 **In Linux Console run:**
Xiaoling 78.6 961 )))
Xiaoling 50.3 962
Xiaoling 71.6 963 (((
Xiaoling 71.7 964 (% style="color:green" %)**root@dragino-169d30:~~# opkg update**           (% style="color:black" %)~/~/ to get the latest packages list
Xiaoling 71.6 965 )))
Xiaoling 50.3 966
Xiaoling 71.6 967 (((
968 (% style="color:green" %)**root@dragino-169d30:~~# opkg list**    (% style="color:black" %) ~/~/shows the available packages
969 )))
Xiaoling 50.3 970
Xiaoling 71.6 971 (((
972 (% style="color:green" %)**root@dragino-169d30:~~# opkg install iperf ** (% style="color:black" %)~/~/ install iperf
973 )))
Xiaoling 50.3 974
975 The system will automatically install the required packages as shown below.
976
977
Xiaoling 71.6 978 (((
Xiaoling 71.7 979 (% style="background-color:#dcdcdc" %)//root@dragino-169d30:/etc/opkg# opkg install iperf//
Xiaoling 71.6 980 )))
Xiaoling 50.3 981
Xiaoling 71.6 982 (((
Xiaoling 71.7 983 (% style="background-color:#dcdcdc" %)//Installing iperf (2.0.12-1) to root…//
Xiaoling 71.6 984 )))
Xiaoling 50.3 985
Xiaoling 71.6 986 (((
Xiaoling 73.3 987 (% style="background-color:#dcdcdc" %)//Downloading //[[(% style="background-color: rgb(220, 220, 220); background-color: rgb(220, 220, 220)" %)//http:~~/~~/downloads.openwrt.org/snapshots/packages/mips_24kc/base/iperf_2.0.12-1_mips_24kc.ipk//>>url:http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/iperf_2.0.12-1_mips_24kc.ipk]]
Xiaoling 71.6 988 )))
Xiaoling 50.3 989
Xiaoling 71.6 990 (((
Xiaoling 71.7 991 (% style="background-color:#dcdcdc" %)//Installing uclibcxx (0.2.4-3) to root…//
Xiaoling 71.6 992 )))
Xiaoling 50.3 993
Xiaoling 71.6 994 (((
Xiaoling 73.3 995 (% style="background-color:#dcdcdc" %)//Downloading //[[(% style="background-color: rgb(220, 220, 220); background-color: rgb(220, 220, 220)" %)//http:~~/~~/downloads.openwrt.org/snapshots/packages/mips_24kc/base/uclibcxx_0.2.4-3_mips_24kc.ipk//>>url:http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/uclibcxx_0.2.4-3_mips_24kc.ipk]]
Xiaoling 71.6 996 )))
Xiaoling 50.3 997
Xiaoling 71.6 998 (((
Xiaoling 71.7 999 (% style="background-color:#dcdcdc" %)//Configuring uclibcxx.//
Xiaoling 71.6 1000 )))
Xiaoling 50.3 1001
Xiaoling 71.6 1002 (((
Xiaoling 71.7 1003 (% style="background-color:#dcdcdc" %)//Configuring iperf.//
Xiaoling 122.7 1004
1005
1006
Xiaoling 71.6 1007 )))
Xiaoling 50.3 1008
Xiaoling 123.2 1009 = 8.  Upgrade Linux Firmware =
Xiaoling 50.3 1010
Xiaoling 71.7 1011
Xiaoling 73.2 1012
Xiaoling 123.2 1013 = 9.  FAQ =
Xiaoling 50.3 1014
Xiaoling 123.2 1015 == 9.1  How can I configure for a customized frequency band? ==
1016
Xiaoling 78.6 1017 (((
Xiaoling 80.10 1018 See below link for how to customize frequency band: **[[How to customized LoRaWAN frequency band>>doc:Main.How to customized LoRaWAN frequency band.WebHome]]**
Xiaoling 78.6 1019 )))
Xiaoling 50.3 1020
Xiaoling 78.6 1021 (((
Xiaoling 80.10 1022
Xiaoling 78.6 1023 )))
Xiaoling 50.3 1024
Xiaoling 123.20 1025 == 9.2  Can I connect LG308N to LORIOT? ==
Xiaoling 50.3 1026
Xiaoling 80.10 1027 Yes, the set up instruction is here: **[[Notes for LORIOT>>doc:Main.Notes for LORIOT.WebHome]]**
Xiaoling 50.3 1028
Xiaoling 73.2 1029
Xiaoling 123.2 1030 == 9.3  Can I make my own firmware for the gateway, where can I find the source code? ==
Xiaoling 50.3 1031
Xiaoling 78.6 1032 (((
Xiaoling 123.2 1033 Yes, You can make your own firmware for the LG308N for branding purposes or to add customized applications.
Xiaoling 78.6 1034 )))
Xiaoling 50.3 1035
Xiaoling 78.6 1036 (((
Xiaoling 50.3 1037 The source code and compile instructions can be found at: [[https:~~/~~/github.com/dragino/openwrt_lede-18.06>>url:https://github.com/dragino/openwrt_lede-18.06]]
Xiaoling 78.6 1038 )))
Xiaoling 50.3 1039
Xiaoling 73.2 1040
Xiaoling 123.2 1041 == 9.4  Can I use 868Mhz version for 915Mhz bands? ==
Xiaoling 50.3 1042
1043 It is possible but the distance will be very short, you can select US915 frequency band in 868Mhz version hardware. It will work but you will see the performance is greatly decreased because the 868Mhz version has an RF filter for band 863~~870Mhz, all other frequencies will have high attenuation.
1044
Xiaoling 71.7 1045
Xiaoling 123.2 1046 == 9.5  Can I control the LEDs? ==
1047
1048 Except the PWR LED is controlled by +3v3 power directly. All other LEDs can be controlled by developer.
1049
1050
1051 (% style="color:blue" %)**Control Globe LED:**
1052
1053 ON: echo 1 > /sys/class/leds/dragino2\:red\:wlan/brightness 
1054
1055 OFF: echo 0 > /sys/class/leds/dragino2\:red\:wlan/brightness
1056
1057
1058 (% style="color:blue" %)**Control HEART LED:**
1059
1060 First export the gpio27 and set to out
1061
1062 echo 27 > /sys/class/gpio/export
1063
1064 echo out > /sys/class/gpio/gpio27/direction
1065
1066 ON: echo 0 > /sys/class/gpio/gpio27/value
1067
1068 OFF: echo 1 > /sys/class/gpio/gpio27/value
1069
1070
1071
Xiaoling 125.2 1072 = 10.  Trouble Shooting =
Xiaoling 73.2 1073
Xiaoling 125.2 1074 == 10.1  I get kernel error when install new package, how to fix? ==
Xiaoling 50.3 1075
1076 In some cases, when installing a package with **//opkg//**, it will generate a kernel error such as below due to a mismatch I the kernel ID:
1077
Xiaoling 73.3 1078 (% style="background-color:yellow" %)root@dragino-16c538:~~# opkg install kmod-dragino2-si3217x_3.10.49+0.2-1_ar71xx.ipk
Xiaoling 50.3 1079
Xiaoling 73.5 1080 (% style="background-color:yellow" %)Installing kmod-dragino2-si3217x (3.10.49+0.2-1) to root…
Xiaoling 50.3 1081
Xiaoling 73.3 1082 (% style="background-color:yellow" %)Collected errors:
Xiaoling 50.3 1083
Xiaoling 73.3 1084 (% style="background-color:yellow" %)* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-dragino2-si3217x:
Xiaoling 50.3 1085
Xiaoling 73.3 1086 (% style="background-color:yellow" %)*      kernel (= 3.10.49-1-4917516478a753314254643facdf360a) *
Xiaoling 50.3 1087
Xiaoling 73.3 1088 (% style="background-color:yellow" %)* opkg_install_cmd: Cannot install package kmod-dragino2-si3217x.
Xiaoling 50.3 1089
Xiaoling 78.6 1090 (((
Xiaoling 50.3 1091 In this case, you can use the –force-depends option to install such package as long as the actual kernel version is the same.
Xiaoling 78.6 1092 )))
Xiaoling 50.3 1093
Xiaoling 73.3 1094 (% style="background-color:yellow" %)Opkg install kmod-dragino2-si3217x_3.10.49+0.2-1_ar71xx.ipk –force-depends
Xiaoling 50.3 1095
Xiaoling 73.2 1096
Xiaoling 50.3 1097
Xiaoling 123.2 1098 == 10.2  How to recover the LG308N if the firmware crashes ==
1099
Xiaoling 78.6 1100 (((
Xiaoling 80.11 1101 Please follow this instruction to recover your gateway:  **[[Recover Gateway>>doc:Main.How to Recover Gateway if can't access it.WebHome]]**
Xiaoling 78.6 1102 )))
Xiaoling 50.3 1103
Xiaoling 78.6 1104 (((
Xiaoling 80.11 1105
Xiaoling 78.6 1106 )))
Xiaoling 50.3 1107
Xiaoling 124.2 1108 == 10.3  I configured LG308N for WiFi access and lost its IP. What to do now? ==
Xiaoling 50.3 1109
Xiaoling 124.2 1110 [[image:1657074078183-336.png]]
Xiaoling 50.3 1111
Xiaoling 78.6 1112 (((
Xiaoling 124.2 1113 (((
Xiaoling 123.2 1114 The LG308N has a fall-back IP address on its WAN port. This IP is always enabled so you can use the fall-back IP to access LG308N no matter what the WiFi IP is. The fall back IP is useful for connecting and debug the unit.
Xiaoling 78.6 1115 )))
Xiaoling 124.2 1116 )))
Xiaoling 50.3 1117
Xiaoling 124.2 1118 (((
Xiaoling 73.5 1119 (% style="color:red" %)Note: fallback IP can be disabled in the WAN and DHCP page.
Xiaoling 124.2 1120 )))
Xiaoling 50.3 1121
1122
Xiaoling 124.2 1123 (((
Xiaoling 50.3 1124 Steps to connect via fall back IP:
Xiaoling 124.2 1125 )))
Xiaoling 50.3 1126
Xiaoling 124.2 1127 (((
Xiaoling 123.2 1128 ~1. Connect PC's Ethernet port to LG01's LAN port
Xiaoling 124.2 1129 )))
Xiaoling 73.2 1130
Xiaoling 124.2 1131 (((
Xiaoling 123.2 1132 2. Configure PC's Ethernet port has IP: 172.31.255.253 and Netmask: 255.255.255.252
Xiaoling 124.2 1133 )))
Xiaoling 50.3 1134
Xiaoling 124.2 1135 (((
Xiaoling 50.3 1136 As below photo:
Xiaoling 124.2 1137 )))
Xiaoling 50.3 1138
Xiaoling 73.5 1139 [[image:1652435256286-879.png]]
Xiaoling 50.3 1140
Xiaoling 123.3 1141 3. In PC, use 172.31.255.254 to access LG308N via Web or Console.
Xiaoling 50.3 1142
1143
Xiaoling 73.5 1144
Xiaoling 125.3 1145 = 11.  Order Info =
Xiaoling 50.3 1146
1147
Xiaoling 123.5 1148 (% style="color:#4f81bd" %)**//PART: DLOS8N-XXX-YYY//: **
Xiaoling 50.3 1149
Xiaoling 123.5 1150 (% style="color:#4f81bd" %)**//XXX: Frequency Band//**
1151
Xiaoling 123.4 1152 * (% style="color:red" %)** 868**(% style="color:black" %) : valid frequency: 863Mhz ~~ 870Mhz. for bands EU868, RU864, IN865 or KZ865.
1153 * (% style="color:red" %)** 915**(% style="color:black" %):  valid frequency: 902Mhz ~~ 928Mhz. for bands US915, AU915, AS923 or KR920
Xiaoling 50.3 1154
Xiaoling 123.5 1155 (% style="color:#4f81bd" %)
Xiaoling 123.4 1156
Xiaoling 123.5 1157 (% style="color:#4f81bd" %)**//YYY: 4G Cellular Option//**
Xiaoling 50.3 1158
Xiaoling 123.5 1159 * (% style="color:red" %)** EC25-E**(% style="color:black" %):  EMEA, Korea, Thailand, India.
1160 * (% style="color:red" %)** EC25-A**(% style="color:black" %):  North America/ Rogers/AT&T/T-Mobile.
Xiaoling 123.4 1161 * (% style="color:red" %)** EC25-AU**(% style="color:black" %): Latin America, New Zeland, Taiwan
Xiaoling 123.5 1162 * (% style="color:red" %)** EC25-J**(% style="color:black" %):  Japan, DOCOMO/SoftBank/ KDDI
Xiaoling 50.3 1163
1164 More info about valid bands, please see [[EC25-E product page>>url:https://www.quectel.com/product/ec25.htm]].
1165
Xiaoling 73.6 1166
Xiaoling 125.3 1167 = 12.  Packing Info =
Xiaoling 50.3 1168
Xiaoling 78.6 1169 (((
Xiaoling 123.5 1170
1171
Xiaoling 50.3 1172 **Package Includes**:
1173
Xiaoling 123.6 1174 * LG308N or LG08 LoRa Gateway x 1
1175 * Stick Antenna for LoRa RF part. Frequency is one of 433 or 868 or 915Mhz depends the model ordered
1176 * Power Adapter: EU/AU/US type power adapter depends on country to be used
Xiaoling 50.3 1177 * Packaging with environmental protection paper box
Xiaoling 123.6 1178 )))
Xiaoling 50.3 1179
Xiaoling 78.6 1180 (((
Xiaoling 123.6 1181
1182
Xiaoling 50.3 1183 **Dimension and weight**:
Xiaoling 78.6 1184 )))
Xiaoling 50.3 1185
Xiaoling 93.3 1186 * Device Size: 26 x 9 x 8.5 cm
1187 * Weight: 450g
1188 * Package Size: 49 x 19.5 x x 19Package Size: 4912 cm
1189 * Weight: 2.5kg
Xiaoling 50.3 1190
Xiaoling 125.3 1191 = 13.  Support =
Xiaoling 50.3 1192
Xiaoling 80.15 1193 * Try to see if your questions already answered in the [[wiki>>doc:Main.WebHome]].
Xiaoling 50.3 1194 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8.
1195 Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before mentioned schedule.
Xiaoling 71.7 1196 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to:[[support@dragino.com>>url:file:///C:/Users/11315/Documents/D:/Projects/LoRa%20Product%20Line/LG308%20Picocell%20Gateway/LG308/LG308%20%25E8%25AF%25B4%25E6%2598%258E%25E4%25B9%25A6/support@dragino.com]]
Xiaoling 124.3 1197
1198 = 14.  Reference =
1199
1200 * Source code for LG08 LoRa Gateway: [[https:~~/~~/github.com/dragino/openwrt_lede-18.06>>url:https://github.com/dragino/openwrt_lede-18.06]]
1201
1202 * OpenWrt official Wiki: [[http:~~/~~/www.openwrt.org/>>url:http://www.openwrt.org/]]
1203
1204 * Firmware: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG308N-OLG308N/Firmware/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG02-OLG02/Firmware/]]
1205
1206 * Hardware Source code: [[https:~~/~~/github.com/dragino/motherboard-hardware/tree/master/LG308N>>url:https://github.com/dragino/motherboard-hardware/tree/master/LG308]]