Table of Contents:
If your device has a Cellular module, you can see the below screenshot. enable the cellular connection here.
Enable Cellular Connection
If your device doesn't have a cellular module, you will see a cellular module not detected.
If there is a problem with the cellular connection. Please check the below points:
Make sure you order the model with the cellular option. Can check by command or via the Web UI.
root@dragino-1bbd90:~# lsusb
Bus 001 Device 004: ID 2c7c:0125 --> This is the Cellular module
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Below command can check if you have a SIM card inserted, or via Web UI
For Models: LPS8N, LG308N, DLOS8N
root@dragino-1dadd8:~# comgt -d /dev/ttyUSB3
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: "CHN-UNICOM",7
Signal Quality: 10,99
Note: If the icon is missing some information, like SIM, Network, or Signal, which may be due to the display bug.
Please check the IP address is displayed and the Internet displays "OK", it works properly.
run "logread -f" in gateway CLI。
Fri Feb 7 01:20:28 2020 daemon.notice pppd[29452]: pppd 2.4.7 started by root, uid 0
Fri Feb 7 01:20:29 2020 user.notice iot_keep_alive: Ping WAN
Fri Feb 7 01:20:29 2020 user.notice iot_keep_alive: Default interface is
Fri Feb 7 01:20:29 2020 user.notice iot_keep_alive: No internet at any interface
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: abort on (BUSY)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: abort on (NO CARRIER)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: abort on (ERROR)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: report (CONNECT)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: timeout set to 10 seconds
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: send (AT&F^M)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: expect (OK)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: AT&F^M^M
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: OK
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: -- got it
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: send (ATE1^M)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: expect (OK)
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: ^M
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: ATE1^M^M
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: OK
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: -- got it
Fri Feb 7 01:20:29 2020 local2.info chat[29485]: send (AT+CGDCONT=1,"IP",""^M)
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: timeout set to 30 seconds
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: expect (OK)
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: ^M
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: AT+CGDCONT=1,"IP",""^M^M
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: OK
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: -- got it
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: send (ATD*99#^M) -----> In case the dialling process already reach here.
Normally the problem is with a provider, need to check if the SIM card has balance or other requirement from the cellular operator
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: expect (CONNECT)
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: ^M
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: ATD*99#^M^M
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: CONNECT
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: -- got it
Fri Feb 7 01:20:30 2020 local2.info chat[29485]: send ( ^M)
Fri Feb 7 01:20:30 2020 daemon.info pppd[29452]: Serial connection established.
Users can check whether the APN matched by the SIM card is correct.
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.
It should be SIM card no flow, users can insert SIM cards into the mobile phone for testing.
Users need to check whether the SIM card type is suitable for the EC25 module.
Users can insert SIM cards into the mobile phone for testing.
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.
root@dragino-1d25dc:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'wan'
list network 'wan'
list network 'wwan'
list network 'wan6'
list network 'cellular' -----------------> Add this line and reboot
option input 'REJECT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
and run /etc/init.d/firewall reload or reboot the device.
By default, Cell is the backup WAN where the Ethernet or Wi-Fi network is used first if they are available.
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.
Enable Cellular and connect Ethernet at the same time
ETH icon is displayed as Indicates that Ethernet is the main working network.
Cell icon is displayed as Indicates that Cellular is the backup WAN.
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
Remove the network cable from the WAN port on the gateway, the gateway will switch to a Cellular network.
Enable Cellular and connect WiFi at the same time
WiFi icon is displayed as Indicates that WiFi is the main working network.
Cell icon is displayed as Indicates that Cellular is the backup WAN.
Close the WiFi WAN, the gateway will switch to a Cellular network.
Users can get the IMEI via Linux command, but you have to access the gateway CLI.
Users can access the gateway CLI and run the minicom command to get the configuration interface.
Enter the minicom command, then select the option ''serial port setup".
And then, change the setting:
Note: Enter the corresponding letter to change the configuration, like A,B,C
Enter AT+GSN in the interface to get the IMEI,
For example: 860548042566627
Enter AT+QCCID in the interface to get the ICCID,
For example: 89860118005400261748
Prerequisite: Requires a USB 4G Dongle and a supported gateway firmware
This introduces a setup and configured gateway for using a USB 3g/UMTS-modem for WAN connection.
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.
This is not beginner-friendly due to too many protocols.
For more information: https://openwrt.org/docs/guide-user/network/wan/wwan/3gdongle
Most of the products can be used on the gateway, but because their protocols are different, they are not used in the same way.
For example, the Huawei-E3372/E8372 is using Hilink mode or NCM mode.
Huawei-E3372/E8372
Check the E3372 version to determine the mode.
The version numbers starting with 21 is NCM mode
The version numbers starting with 22 is Hilink mode
The E8372 only has Hilink mode
Note: The e3372 in the vast majority of cases is Hilink mode
Gateway upgrade to the specified firmware:Hilink.mode--build-v5.4.1625627505
USB-Dongle plugs into the gateway USB port
Check the USB module via command lsusb
Note: Users need to that connect to the gateway command line via ssh.
Check network configuration command line input:
In the command, the output user can see that the new interface added is eth2
Usually, the user can see that the new interface added is eth2 or wwan0
Enter the configuration from the command line:
uci set network.lte=interface
uci set network.lte.proto=dhcp
uci set network.lte.ifname=eth2 --------->#This depend on the name of the new interface gateway add
uci commit network
uci set firewall.@zone[1].network="wan wwan wan6 lte"
uci commit firewall
/etc/init.d/network restart
Checking Network Configurations
Command-line input: ifconfig
Now, Gateway is configured to access the internet on the LTE network.
Please try this USB dongle to access the internet on your PC, to make sure this USB dongle can normally access the internet.
Below list the place where the data traffic will use.
Users can upload this backup file to reduce data consumption in System-->Back Up/Restore Config, Download link for backup file:
Gateway will check for update every day for new configure or software. User can disable them by below method.
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.
See How to filter unwanted packets
This is a general instruction for the use of Openwrt of Dragino devices. Current models include:
1. Activate LuCI and connect to SSH following these instructions
2. Install luci-app-statistics using the following terminal commands:
opkg update opkg install luci-app-statistics opkg install collectd-mod-interface /etc/init.d/collectd enable reboot
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.
4. View the graphs and statistics using by going to Statistics > Graphs > Interfaces > 3g-cellullar