SHENK.SK

Martin Šechný

en
sk

4G LTE + Linux

A 4G LTE mobile broadband connection is functional with Huawei E3372h-153 USB modem in GNU/Linux operating system.

We can use a NetworkManager for automatic connection control. Or a command sequence can be used, also as a script:

ModemManager & we need terminal application for serial modem (mmcli command)
sleep 10 wait for ModemManager and modem initialization
mmcli -i 0 --pin XXXX send PIN to SIM card
sleep 5 wait for modem registration in 4G network, registration should be automatic
mmcli -m 0 -e enable the modem
mmcli -m 0 --create-bearer='apn=XXX,ip-type=ipv4' prepare a transport channel with an APN name of 4G service provider
mmcli -m 0 -b 0 -c connect the modem to the 4G network
sleep 5 wait for active connection
ifconfig wwan0 up bring up a connection from the operating system to the modem on the first OSI layer
pppd ttyUSB1 defaultroute bring up a connection to the 4G network on the second and third OSI layer (PPP, IPv4)

The modem should be recognized by the operating system correctly. Sometimes during the operating system start up it may not be recognized. It is safer to plug the modem later, when the operating system is running. ModemManager should recognize a device ID 12d1:14fe (CD mode), this is an install disk with device driver, but not usable in Linux. After a while, ModemManager should recognize a device ID 12d1:1506 (modem mode). An alternative configuration is a device ID 12d1:1f01 (CD mode), then a device ID 12d1:14dc (HiLink router mode), this is a router with NAT and DHCP server.

Used packages:

kernel-3.10.17-x86_64
kernel-modules-3.10.17-x86_64
usb_modeswitch-2.0.1
ModemManager-1.0.0
net-tools-1.60-20120726git
ppp-2.4.5
NetworkManager-0.9.8.8