Hide last authors
Xiaoling 71.4 1
2
Xiaoling 23.2 3 **Table of Contents:**
Xiaoling 1.2 4
Xiaoling 1.1 5 {{toc/}}
6
Xiaoling 23.2 7
8
Xiaoling 82.2 9 = 1. Enable Cellular Connection =
Xiaoling 1.1 10
11
Xiaoling 82.3 12 If your device has a Cellular module, you can see the below screenshot. enable the cellular connection here.
Xiaoye 15.1 13
Xiaoling 42.2 14 [[image:image-20220601110850-2.png]]
Xiaoling 1.1 15
Xiaoye 15.1 16 **//Enable Cellular Connection//**
17
Xiaoling 42.4 18
Xiaoling 1.12 19 (((
Xiaoling 82.3 20 If your device doesn't have a cellular module, you will see a cellular module not detected.
Xiaoling 1.12 21 )))
Xiaoling 1.1 22
Xiaoling 24.2 23 [[image:image-20220527153544-2.png]]
Xiaoling 1.1 24
25
Xiaoling 82.2 26 = 2. How to Debug if Cellular connection fails =
Xiaoling 71.5 27
Xiaoling 1.1 28
Xiaoling 82.3 29 If there is a problem with the cellular connection. Please check the below points:
Xiaoling 1.1 30
31
Xiaoling 82.2 32 == 2.1 Do you order the model with a cellular option ==
Xiaoling 71.5 33
Xiaoye 15.1 34
Xiaoling 82.3 35 Make sure you order the model with the cellular option. Can check by command or via the Web UI.
Xiaoye 15.1 36
Xiaoling 1.2 37 (% class="box" %)
38 (((
Xiaoye 15.1 39 //root@dragino-1bbd90:~~# lsusb
Xiaoling 1.2 40 Bus 001 Device 004: ID 2c7c:0125      ~-~-> This is the Cellular module
41 Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Xiaoye 15.1 42 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub//
Xiaoling 1.2 43 )))
Xiaoling 1.1 44
Xiaoling 41.2 45 [[image:image-20220601110748-1.png]]
Xiaoye 15.1 46
Kilight Cao 6.1 47
Xiaoling 82.2 48 == 2.2 Do you input the SIM card correctly ==
Xiaoling 71.5 49
Xiaoling 1.1 50
Xiaoling 82.3 51 **Below command can check if you have a SIM card inserted, or via Web UI**
Xiaoye 15.1 52
Xiaoling 82.3 53 * Make sure to Power Off when you insert the SIM card and power on the device. The device doesn't support auto-detect SIM card on power on
54 * Make sure you have the correct direction to insert the SIM card. Every device has an example photo in the manual for the direction.
Xiaoye 15.1 55
Xiaoling 1.2 56 (% class="box" %)
57 (((
Edwin Chen 96.1 58 (% class="mark" %)**For Models: LPS8N, LG308N, DLOS8N**(%%)
Xiaoye 15.1 59 //root@dragino-1dadd8:~~# **comgt -d /dev/ttyUSB3**
Xiaoling 1.2 60 SIM ready
61 Waiting for Registration..(120 sec max)
Kilight Cao 6.1 62 Registered on Home network: "CHN-UNICOM",7
Xiaoye 15.1 63 Signal Quality: 10,99//
Xiaoling 1.2 64 )))
65
Xiaoye 15.1 66
Kilight Cao 11.1 67 (% class="wikigeneratedid" %)
Xiaoling 27.2 68 [[image:image-20220527153804-4.png]]
Kilight Cao 14.1 69
Xiaoye 15.1 70
Kilight Cao 14.1 71 (% class="wikigeneratedid" %)
Xiaoling 82.3 72 **​​(% style="color:red" %)Note:(%%)**(% style="color:red" %) **If the icon is missing some information, like SIM, Network, or Signal, which may be due to the display bug.**
Kilight Cao 14.1 73
74 (% class="wikigeneratedid" %)
Xiaoling 82.3 75 Please check the IP address is displayed and the Internet displays "OK", it works properly.
Kilight Cao 6.1 76
Kilight Cao 11.1 77 (% class="wikigeneratedid" %)
Xiaoling 27.2 78 [[image:image-20220527153827-5.png]]
Kilight Cao 11.1 79
Xiaoling 27.3 80
Xiaoling 82.2 81 == 2.3 Check dialing info ==
Xiaoling 71.5 82
Xiaoling 1.2 83
Xiaoling 82.3 84 run "**logread -f**" in gateway CLI。
Xiaoling 1.2 85
86 (% class="box" %)
87 (((
88 Fri Feb  7 01:20:28 2020 daemon.notice pppd[29452]: pppd 2.4.7 started by root, uid 0
89 Fri Feb  7 01:20:29 2020 user.notice iot_keep_alive: Ping WAN
90 Fri Feb  7 01:20:29 2020 user.notice iot_keep_alive: Default interface is
91 Fri Feb  7 01:20:29 2020 user.notice iot_keep_alive: No internet at any interface
92 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: abort on (BUSY)
93 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: abort on (NO CARRIER)
94 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: abort on (ERROR)
95 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: report (CONNECT)
96 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: timeout set to 10 seconds
97 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: send (AT&F^M)
98 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: expect (OK)
99 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: AT&F^M^M
100 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: OK
101 Fri Feb  7 01:20:29 2020 local2.info chat[29485]:  ~-~- got it
102 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: send (ATE1^M)
103 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: expect (OK)
104 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: ^M
105 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: ATE1^M^M
106 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: OK
107 Fri Feb  7 01:20:29 2020 local2.info chat[29485]:  ~-~- got it
108 Fri Feb  7 01:20:29 2020 local2.info chat[29485]: send (AT+CGDCONT=1,"IP",""^M)
109 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: timeout set to 30 seconds
110 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: expect (OK)
111 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: ^M
112 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: AT+CGDCONT=1,"IP",""^M^M
113 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: OK
114 Fri Feb  7 01:20:30 2020 local2.info chat[29485]:  ~-~- got it
Xiaoling 27.3 115 (% style="color:#037691" %)**Fri Feb  7 01:20:30 2020 local2.info chat[29485]: send (ATD*99#^M)      ~-~-~-~--> In case the dialling process already reach here.
116 Normally the problem is with a provider, need to check if the SIM card has balance or other requirement from the cellular operator**(%%)
Xiaoling 1.4 117 (% style="color:black" %)Fri Feb  7 01:20:30 2020 local2.info chat[29485]: expect (CONNECT)
Xiaoling 1.2 118 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: ^M
119 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: ATD*99#^M^M
120 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: CONNECT
121 Fri Feb  7 01:20:30 2020 local2.info chat[29485]:  ~-~- got it
122 Fri Feb  7 01:20:30 2020 local2.info chat[29485]: send ( ^M)
123 Fri Feb  7 01:20:30 2020 daemon.info pppd[29452]: Serial connection established.
124 )))
125
Kilight Cao 65.1 126
Xiaoling 82.2 127 == 2.4 If the following situation occurs, how can users solve this problem? ==
Xiaoling 71.5 128
Xiaoling 82.2 129 === 2.4.1 The gateway can read the SIM card, But the Internet is displayed as Fail. ===
Xiaoling 27.4 130
Kilight Cao 64.1 131
Xiaoling 82.3 132 Users can check whether the APN matched by the SIM card is correct.
Kilight Cao 64.1 133
Xiaoling 82.3 134 Regarding what APN your SIM card should use, Users can search for the APN corresponding to the SIM card by Google or ask the carrier.
Kilight Cao 64.1 135
136 [[image:image-20220718155937-1.png||height="562" width="497"]]
137
138
Xiaoling 82.2 139 === 2.4.2 The gateway can read the SIM card, But the Internet is displayed as Fail, and at the same time Network displays the carrier network. ===
Xiaoling 71.5 140
Kilight Cao 64.1 141
Xiaoling 82.3 142 It should be SIM card no flow, users can insert SIM cards into the mobile phone for testing.
Kilight Cao 64.1 143
144 [[image:1658131428288-728.png||height="538" width="494"]]
145
146
Xiaoling 82.2 147 === 2.4.3 The gateway can't read the SIM card, and the Internet is displayed as Fail. ===
Xiaoling 71.5 148
Kilight Cao 64.1 149
Xiaoling 82.3 150 Users need to check whether the SIM card type is suitable for the EC25 module.
Kilight Cao 64.1 151
152 [[image:1658131612484-845.png||height="549" width="499"]]
153
154
Xiaoling 82.2 155 === 2.4.4 SIM display:~*~**SIM ERROR~*~** Check SIM is inserted test SIM in a mobile phone? ===
Xiaoling 71.5 156
Kilight Cao 64.1 157
Xiaoling 82.3 158 Users can insert SIM cards into the mobile phone for testing.
Kilight Cao 64.1 159
160 [[image:image-20220718160804-3.png||height="602" width="500"]]
161
Xiaoling 71.5 162
Xiaoling 82.2 163 = 3. Share Cellular Network for WiFi & LAN clients =
Xiaoling 71.5 164
Xiaoling 1.2 165
Xiaoling 1.12 166 (((
Xiaoling 82.3 167 By default, the Cellular Network won't be shared with the WiFi or LAN clients. If users need to share with them, the user can modify the file.
Xiaoling 1.12 168 )))
Xiaoling 1.2 169
Xiaoling 1.5 170 (% class="box" %)
171 (((
Xiaoling 1.12 172 (((
Xiaoye 15.1 173 root@dragino-1d25dc:~~# cat /etc/config/firewall
174
Xiaoling 1.5 175 config defaults
Xiaoling 1.2 176 option syn_flood '1'
177 option input 'ACCEPT'
178 option output 'ACCEPT'
179 option forward 'REJECT'
180 config zone
181 option name 'lan'
182 list network 'lan'
183 option input 'ACCEPT'
184 option output 'ACCEPT'
Xiaoling 1.5 185 option forward 'REJECT' 
Xiaoling 1.2 186 config zone
187 option name 'wan'
188 list network 'wan'
189 list network 'wwan'
190 list network 'wan6'
Xiaoling 1.5 191 list network 'cellular'   ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--> Add this line and reboot
Xiaoling 1.2 192 option input 'REJECT'
193 option output 'ACCEPT'
194 option forward 'ACCEPT'
195 option masq '1'
196 option mtu_fix '1'
197 config forwarding
198 option src 'lan'
199 option dest 'wan'
Xiaoling 1.5 200 )))
Xiaoling 1.12 201 )))
Xiaoling 1.2 202
Xiaoling 1.14 203 (((
Xiaoling 82.3 204 and run **/etc/init.d/firewall reload** or **reboot the device**.
Xiaoye 15.1 205
Xiaoye 55.1 206
Xiaoling 82.2 207 = 4. Switching between Cellular and Ethernet and Wi-Fi networks =
Xiaoye 55.1 208
Xiaoye 44.1 209
Xiaoling 82.3 210 By default, Cell is the backup WAN where the Ethernet or Wi-Fi network is used first if they are available.
Xiaoye 44.1 211
Xiaoling 82.3 212 Once the Ethernet of the Wi-Fi network is unavailable where the gateway network will switch to a Cell network from Ethernet or Wi-Fi.
Kilight Cao 53.1 213
214
Xiaoye 55.1 215 **Enable Cellular and connect Ethernet at the same time**
Kilight Cao 53.1 216
Xiaoling 71.5 217 ETH icon is displayed as ​​​ [[image:1658135519305-444.png||height="18" width="19"]] Indicates that Ethernet is the main working network.
Kilight Cao 53.1 218
Xiaoling 71.5 219 Cell icon is displayed as  [[image:1658135500498-725.png||height="17" width="17"]] Indicates that Cellular is the backup WAN.
Kilight Cao 53.1 220
Xiaoye 55.1 221
Xiaoling 82.2 222 == 4.1 Switching between Cellular and Ethernet networks ==
Xiaoling 71.5 223
Xiaoye 55.1 224
Xiaoling 82.3 225 When connecting to the AP WiFI of the gateway, users can access the Web UI of the gateway through the default address 10.130.1.1
Xiaoye 55.1 226
Kilight Cao 51.1 227 [[image:image-20220606140622-2.png||height="664" width="1106"]]
Xiaoye 44.1 228
229
Xiaoling 82.3 230 **Remove the network cable from the WAN port on the gateway, the gateway will switch to a Cellular network.**
Kilight Cao 53.1 231
232 [[image:image-20220606140859-4.png||height="687" width="1107"]]
233
Xiaoling 71.5 234 (% style="display:none" %) (%%)
Xiaoye 55.1 235
Xiaoling 82.2 236 == 4.2 Switching between Cellular and WiFi networks ==
Xiaoling 71.5 237
Xiaoye 44.1 238
Kilight Cao 53.1 239 (% class="wikigeneratedid" %)
Xiaoling 82.3 240 Enable **Cellular** and connect **WiFi** at the same time
Kilight Cao 53.1 241
Xiaoling 82.3 242 WiFi icon is displayed as ​​​[[image:1658135519305-444.png||height="23" width="24"]] Indicates that WiFi is the main working network.
Kilight Cao 53.1 243
Xiaoling 82.3 244 Cell icon is displayed as  [[image:1658135500498-725.png||height="23" width="22"]] Indicates that Cellular is the backup WAN.
Kilight Cao 53.1 245
Xiaoling 71.5 246
Kilight Cao 51.1 247 [[image:image-20220606141113-7.png||height="678" width="1106"]]
248
Kilight Cao 53.1 249
Xiaoling 82.3 250 **Close the WiFi WAN, the gateway will switch to a Cellular network.**
Kilight Cao 53.1 251
Kilight Cao 51.1 252 [[image:image-20220606140932-5.png||height="687" width="1107"]]
253
Kilight Cao 45.1 254
Xiaoling 82.2 255 == 4.3 At the same time start Cellular and Ethernet and Wi-Fi networks ==
Xiaoling 71.5 256
Kilight Cao 53.1 257
258 [[image:image-20220606140328-1.png||height="682" width="1108"]]
259
Xiaoye 15.1 260
Xiaoling 1.14 261 )))
Xiaoling 1.2 262
Xiaoling 82.2 263 = 5. How does the gateway view the International Mobile Equipment Identity (IMEI) =
Xiaoling 1.2 264
Xiaoling 96.3 265 == For LIG16,LPS8, LPS8N, LG308, LG308N, DLOS8, DLOS8N view the International Mobile Equipment Identity (IMEI) ==
Xiaoling 1.2 266
Kilight Cao 94.1 267
Xiaoye 74.1 268 Users can get the IMEI via Linux command, but you have to access the gateway CLI.
269
270 (% class="box infomessage" %)
271 (((
Kilight Cao 94.1 272 **root@dragino-24b3c8:~~# comgt -d /dev/ttyModemAT -s /etc/gcom/getimei.gcom **
Xiaoye 74.1 273 )))
274
Kilight Cao 94.1 275 [[image:image-20231218095203-4.png]]
Xiaoye 74.1 276
277
Kilight Cao 94.1 278 [[image:image-20231218095426-6.jpeg||height="466" width="990"]]
Xiaoye 74.1 279
280
Xiaoling 96.3 281 == For LPS8v2 view the International Mobile Equipment Identity (IMEI) ==
Kilight Cao 94.1 282
283 (% class="box infomessage" %)
284 (((
285 **root@dragino-e4e891:~~# /usr/local/dragino/cell/getinfo.sh**
286 )))
287
288 [[image:image-20231218094526-1.png]]
289
290
291 [[image:image-20231218094741-3.png]]
292
293
Xiaoling 96.3 294 == How does the gateway access the Quetel module directly (to send AT commands) ==
Xiaoye 74.1 295
296
Xiaoling 82.3 297 Users can access the gateway CLI and run the minicom command to get the configuration interface.
Xiaoye 15.1 298
Xiaoling 1.13 299 (((
Xiaoye 15.1 300
301
Xiaoling 82.3 302 **Enter the minicom command, then select the option ''serial port setup".**
Xiaoling 1.13 303 )))
Xiaoling 1.2 304
Xiaoling 1.5 305 (% class="box infomessage" %)
306 (((
Xiaoling 71.4 307 **root@dragino-1ef9ac:~~# minicom -s**
Xiaoling 1.5 308 )))
Xiaoling 1.2 309
Xiaoling 31.2 310 [[image:image-20220527154132-6.png]]
Xiaoling 1.2 311
312
Xiaoye 15.1 313 And then, change the setting:
Xiaoling 1.2 314
Xiaoye 15.1 315 (% class="box infomessage" %)
316 (((
Xiaoling 71.5 317 **Serial Device :** (% style="color:#037691" %)**/dev/ttyModemAT**
Xiaoling 1.2 318
Xiaoling 71.5 319 **Bps/Par/Bits :(% style="color:#037691" %) 9600 8N1(%%)**
Xiaoye 15.1 320 )))
Xiaoling 1.2 321
Xiaoye 15.1 322
Xiaoling 82.3 323 (% style="color:red" %)**Note: Enter the corresponding letter to change the configuration, like A,B,C**
Xiaoye 15.1 324
Xiaoling 31.2 325 [[image:image-20220527154154-7.png]]
Xiaoling 1.2 326
327
Xiaoling 96.3 328 == International Mobile Equipment Identity (IMEI) ==
Kilight Cao 81.1 329
330
Xiaoling 71.5 331 (((
Xiaoling 82.3 332 Enter (% style="color:blue" %)**AT+GSN **(%%)in the interface to get the IMEI,
Xiaoling 71.5 333 )))
Xiaoling 1.2 334
Xiaoling 71.5 335 (((
Xiaoling 82.3 336 **For example: (% style="color:#037691" %)860548042566627(%%)**
Xiaoling 71.5 337 )))
Xiaoling 1.2 338
Xiaoling 1.6 339 (% class="box infomessage" %)
340 (((
Xiaoling 1.13 341 (((
Xiaoling 31.2 342 **AT+GSN**
Xiaoling 1.6 343 )))
Xiaoling 1.13 344 )))
Xiaoling 1.2 345
Xiaoling 31.2 346 [[image:image-20220527154231-8.png]]
Xiaoling 1.2 347
Kilight Cao 18.1 348
Xiaoling 96.3 349 == Integrated Circuit Card Identifier (ICCID) ==
Xiaoling 71.5 350
Kilight Cao 81.1 351
352 (((
Xiaoling 82.3 353 Enter (% style="color:blue" %)**AT+QCCID **(%%)in the interface to get the ICCID,
Kilight Cao 81.1 354 )))
355
356 (((
Xiaoling 82.3 357 **For example: (% style="color:#037691" %)89860118005400261748(%%)**
Kilight Cao 81.1 358
359 (% class="box infomessage" %)
360 (((
361 **AT+QCCID**
362 )))
363 )))
364
365 [[image:1678675878256-777.png]]
366
Xiaoling 1.2 367
Xiaoling 82.2 368 = 6. How does the gateway connect to the network via a USB 4G Dongle =
Kilight Cao 18.1 369
Xiaoling 82.2 370 == 6.1 Introduction ==
Xiaoling 1.2 371
Kilight Cao 20.1 372
Xiaoling 82.3 373 (% style="color:red" %)**Prerequisite: Requires a USB 4G Dongle and a supported gateway firmware**
Xiaoling 1.2 374
Xiaoling 1.15 375 (((
Xiaoling 82.3 376 This introduces a setup and configured gateway for using a USB 3g/UMTS-modem for WAN connection.
Kilight Cao 20.1 377
378
Xiaoling 1.15 379 )))
Xiaoling 1.2 380
Xiaoling 1.15 381 (((
Xiaoling 82.3 382 Many modes (and most **LTE**) USB modems provide **qmi**, **mbim**, **ncm**, **rndis** protocol for connection instead of legacy **ppp** protocol, they are faster and better, overall recommended.
Xiaoling 1.15 383 )))
Xiaoling 1.2 384
Xiaoling 1.15 385 (((
Xiaoling 82.3 386 This is not beginner-friendly due to too many protocols.
Kilight Cao 20.1 387
Xiaoling 82.3 388 For more information: [[https:~~/~~/openwrt.org/docs/guide-user/network/wan/wwan/3gdongle>>url:https://openwrt.org/docs/guide-user/network/wan/wwan/3gdongle]]
Kilight Cao 20.1 389
390
Xiaoling 1.15 391 )))
Xiaoling 1.2 392
Xiaoling 82.2 393 == 6.2 How to use the USB Dongle at the gateway ==
Xiaoling 1.2 394
Kilight Cao 18.1 395
Xiaoling 82.3 396 Most of the products can be used on the gateway, but because their protocols are different, they are not used in the same way.
Xiaoling 1.2 397
Xiaoling 1.15 398 (((
Xiaoling 82.3 399 For example, the Huawei-E3372/E8372 is using **Hilink mode** or **NCM mode**.
Xiaoling 1.15 400 )))
Xiaoling 1.2 401
Xiaoling 1.8 402 (% class="box" %)
403 (((
404 Huawei-E3372/E8372
Kilight Cao 16.1 405 Check the (% style="color:#037691" %)**E3372**(% style="color:black" %) version to determine the mode.
Xiaoling 1.2 406 The version numbers starting with 21 is NCM mode
407 The version numbers starting with 22 is Hilink mode
Kilight Cao 16.1 408 The E8372 only has Hilink mode
409 **~ **(% style="color:red" %)**Note: The e3372 in the vast majority of cases is Hilink mode**
Xiaoling 1.8 410 )))
Xiaoling 1.2 411
Kilight Cao 21.1 412
Xiaoling 82.2 413 == 6.3 Hilink mode ==
Xiaoling 71.6 414
Xiaoling 1.2 415
Kilight Cao 16.1 416 //Gateway upgrade to the specified firmware:[[Hilink.mode~~-~~-build-v5.4.1625627505>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG308-LG301/Firmware/USB-Dongle_firmware/Hilink.mode--build-v5.4.1625627505-20210707-1113/]]//
Xiaoling 1.2 417
Kilight Cao 18.1 418
Xiaoling 82.2 419 === 6.3.1 Plugs into the device ===
Xiaoling 71.6 420
Xiaoling 1.2 421
Xiaoling 1.16 422 (((
Xiaoling 82.3 423 USB-Dongle plugs into the gateway USB port
Xiaoling 1.16 424 )))
Xiaoling 1.2 425
Xiaoling 1.16 426 (((
Xiaoling 82.3 427 Check the USB module via command (% style="color:#037691" %)**lsusb**
Xiaoling 1.16 428 )))
Xiaoling 1.2 429
Xiaoling 1.16 430 (((
Xiaoling 82.3 431 (% style="color:red" %)**Note: Users need to that connect to the gateway command line via ssh.**
Xiaoling 1.16 432 )))
Xiaoling 1.2 433
Xiaoling 32.2 434 [[image:image-20220527154739-9.png]]
Xiaoling 1.2 435
Kilight Cao 18.1 436
Xiaoling 82.2 437 === 6.3.2 Detection of new network interfaces added ===
Xiaoling 71.6 438
Xiaoling 1.2 439
Xiaoling 82.3 440 Check network configuration command line input:
Xiaoling 1.2 441
Kilight Cao 16.1 442 (% class="box infomessage" %)
443 (((
444 (((
Xiaoling 71.3 445 **~ root@dragino-1ef9ac:~~# ifconfig -a**
Kilight Cao 16.1 446 )))
447 )))
Xiaoling 1.2 448
Xiaoling 33.2 449 [[image:image-20220527154822-10.png]]
Xiaoling 1.2 450
Xiaoling 82.3 451 In the command, the output user can see that the new interface added is (% style="color:#037691" %)**eth2**
Xiaoling 1.2 452
Xiaoling 82.3 453 Usually, the user can see that the new interface added is (% style="color:#037691" %)**eth2** (% style="color:black" %)or (% style="color:#037691" %)**wwan0**
Xiaoling 1.2 454
Kilight Cao 18.1 455
Xiaoling 82.2 456 === 6.3.3 Add the new interface to the network configuration. ===
Xiaoling 71.6 457
Xiaoling 1.2 458
Kilight Cao 16.1 459 //Enter the configuration from the command line~://
Xiaoling 1.2 460
Xiaoling 1.11 461 (% class="box" %)
462 (((
463 uci set network.lte=interface
Xiaoling 1.2 464 uci set network.lte.proto=dhcp
Xiaoling 1.11 465 uci set network.lte.ifname=eth2    ~-~-~-~-~-~-~-~-->#This depend on the name of the new interface gateway add
Xiaoling 1.2 466 uci commit network
467 uci set firewall.@zone[1].network="wan wwan wan6 lte"
468 uci commit firewall
469 /etc/init.d/network restart
Xiaoling 1.11 470 )))
Xiaoling 1.2 471
Xiaoling 34.2 472 [[image:image-20220527154937-11.png]]
Xiaoling 1.2 473
474
Kilight Cao 19.1 475 //**Checking Network Configurations**//
Kilight Cao 18.1 476
Kilight Cao 16.1 477 //Command-line input: (% style="color:#037691" %)**ifconfig**//
Xiaoling 1.2 478
Xiaoling 35.2 479 [[image:image-20220527155013-12.png]]
Xiaoling 1.2 480
Xiaoling 82.3 481 Now, Gateway is configured to access the internet on the LTE network.
Xiaoling 1.2 482
Kilight Cao 18.1 483
Xiaoling 82.2 484 == 6.4 NCM mode ==
Xiaoling 71.6 485
Xiaoling 1.2 486
Xiaoling 82.2 487 == 6.5 Troubleshooting ==
Kilight Cao 18.1 488
Xiaoling 82.2 489 === 6.5.1 The USB-Dongle interface cannot obtain the IP address. ===
Xiaoling 1.2 490
Kilight Cao 18.1 491
Xiaoling 82.3 492 Please try this USB dongle to access the internet on your PC, to make sure this USB dongle can normally access the internet.
Xiaoling 1.2 493
Kilight Cao 18.1 494
Xiaoling 82.2 495 = 7. How to reduce data traffic =
Xiaoling 71.6 496
Edwin Chen 83.1 497 == 7.1 How the gateway will consume data traffic ==
Xiaoling 1.2 498
Edwin Chen 83.1 499 Below list the place where the data traffic will use.
Kilight Cao 18.1 500
Edwin Chen 83.1 501 * Valid uplink data to LoRaWAN server or IoT server. ( We can't reduce this as they are the data we want)
502 * Invalid uplink sensor data to LoRaWAN serevr. ( See Filter unwanted packets)
503 * LoRaWAN Status push or polling data to LoRaWAN server . ( We can reduce this part , see below for discussion)
504 * System Keep Alive data. ( To ensure the system is more robust, can be disabled)
Xiaoye 87.1 505 * system Time synchronization Checking
Edwin Chen 83.1 506 * Auto update ( Software auto update, can be disabled)
Kilight Cao 18.1 507
Edwin Chen 83.1 508 === 7.1.1 LoRaWAN Status push or polling data to LoRaWAN server ===
Xiaoling 1.2 509
Xiaoling 94.2 510
Edwin Chen 83.1 511 When gateway connect to LoRaWAN server via LoRaWAN protocol, besides the sensor data uplink/downlink. gateway will still need to:
Xiaoling 1.2 512
Edwin Chen 83.1 513 * Uplink self-status to the LoRaWAN server every 30s. the users can adjust **Keep Alive Period** as below
514 * Check LoRaWAN server status every 5 seconds to see if there is valid downlink command to sensors. We don't provide WEB UI option to modify this time, because the modify of this settings will lead to fail on OTAA Join and Downlink commands.
515
Xiaoling 36.2 516 [[image:image-20220527155108-13.png]]
Xiaoling 1.2 517
Kilight Cao 18.1 518
Edwin Chen 83.1 519 === 7.1.2 System Keep Alive data ===
Xiaoling 71.3 520
Xiaoling 94.2 521
Edwin Chen 83.1 522 System Keep Alive Data is used to check gateway-network status and fix possible issue. Gateway will check every 15 seconds and generate traffic.
Xiaoling 1.2 523
Edwin Chen 83.1 524 Base on 15 seconds per check, the data traffic is about 2M data traffic per day. Users can adjust **Keepalive Interval** as below.
Xiaoling 1.2 525
Edwin Chen 84.1 526 [[image:image-20220527155229-15.png||height="511" width="986"]]
Xiaoling 1.2 527
528
Edwin Chen 83.1 529 === 7.1.3 Auto update ===
Xiaoling 1.2 530
Xiaoling 94.2 531
Edwin Chen 83.1 532 Gateway will check for update every day for new configure or software. User can disable them by below method.
Xiaoling 39.2 533
Xiaoling 1.2 534
Edwin Chen 83.1 535 === 7.1.4 Filter unwanted packets ===
Edwin Chen 43.1 536
Xiaoling 94.2 537
Edwin Chen 84.1 538 When gateway connect to LoRaWAN server via LoRaWAN protocol , Gateway will by default get every possible LoRaWAN packets and forward to LoRaWAN server. If there are sensors from others in the same area, such sensor data will also be forward to LoRaWAN server ( they will be ignore by the server). This also consume data.
Xiaoling 71.6 539
Edwin Chen 43.1 540 See [[How to filter unwanted packets>>doc:Main.Filter unwanted LoRaWAN packets.WebHome]]
541
Jean-Philippe Gagné 76.1 542
Edwin Chen 85.1 543 == 7.2 Usage statistics ==
Jean-Philippe Gagné 76.1 544
Kilight Cao 86.1 545 === 7.2.1 How does Openwrt usage statistics ===
546
Xiaoling 94.2 547
Kilight Cao 86.1 548 This is a general instruction for the use of Openwrt of Dragino devices. Current models include:
549
550 * LPS8,LPS8N
551 * LG308,LG308N
552 * DLOS8,DLOS8N
553 * LIG16
554
Jean-Philippe Gagné 76.1 555 ~1. Activate LuCI and connect to SSH following [[these instructions>>doc:Main.Install Luci in the new UI firmware.WebHome]]
556
557 2. Install luci-app-statistics using the following terminal commands:
558
559 {{{opkg update
560 opkg install luci-app-statistics
561 opkg install collectd-mod-interface
562 /etc/init.d/collectd enable
563 reboot
564 }}}
565
Jean-Philippe Gagné 79.1 566 3. Select the interface to be monitored by going to **Statistics > Setup **in the upper menu then **Network plugins > Interfaces. **Select **3g-cellular **in the list then save. You can select multiple interfaces by pressing the **ctrl key **while selecting the interfaces.
Jean-Philippe Gagné 76.1 567
Jean-Philippe Gagné 79.1 568 [[image:image-20221124133431-1.png]]
Jean-Philippe Gagné 76.1 569
Jean-Philippe Gagné 79.1 570 [[image:image-20221124135102-2.png]]
571
Xiaoling 82.3 572
Jean-Philippe Gagné 79.1 573 4. View the graphs and statistics using by going to **Statistics > Graphs** **> Interfaces > 3g-cellullar**
574
575 [[image:image-20221124134927-1.png]]
576
577
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0