RADIUSdesk

logo

This is an old revision of the document!


Hands On LTE on OpenWrt

Supported hardware

Packages to include

  • To get the LTE modem working in OpenWrt you need to include some specific packages.
  • There are also some optional packages that you can include since they come in handy.

Required

  • kmod-usb-wdm
  • kmod-usb-net
  • kmod-usb-net-qmi-wwan
  • libqmi
  • uqmi
  • kmod-mii
opkg update
opkg install kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan uqmi

For Serial Support (AT Commands)

  • kmod-usb-serial
  • kmod-usb-serial-option
  • kmod-usb-serial-wwan
opkg update
opkg install kmod-usb-serial-option kmod-usb-serial kmod-usb-serial-wwan

Optional

  • qmi-utils
  • picocom
opkg update
opkg install picocom qmi-utils

Interacting with the modem

  • After you installed the packages reboot the Access Point.
  • If everything works as intended you should see the following device
ls -l /dev/cdc-wdm0
  • Now you can try to interact with the modem.
uqmi -d /dev/cdc-wdm0 --get-data-status
uqmi -d /dev/cdc-wdm0 --get-signal-info
uqmi -d /dev/cdc-wdm0 --get-system-info

UCI Configuration

Using AT Commands

  • We can use picocom terminal to reach the LTE modem
 picocom /dev/ttyUSB2
  • I had to first issue the following commands before the modem returned something for CUSD
AT+CMGF=1
OK
ATZ
OK
AT+CUSD=1,"*101#",15
OK
 
+CUSD: 0,"Balance: R 0.00 .Data: 25.83 MB.",15