UMTS with OpenWRT

1 minute read

These are some random notes on how to use a ZTE MF180 with OpenWRT and Linux

Required OpenWRT Packages

Required packages:

  • kmod-usb-serial
  • kmod-usb-serial-option
  • ppp
  • usbutils

Verifying that the ZTE MF180 has been recognized

lsusb should yield the following output:

 Bus 001 Device 004: ID 19d2:0117 ONDA Communication S.p.A.

Enabling the USB Modem

In the default configuration the USB Modem mimics a CDROM device.

The following lines disable the CDROM device and enable the UMTS modem:

sdparm --command=eject //dev/sg0
insmod usbserial vendor=0x19d2 product=0x0117
insmod option

Preparing the Modem for regular use

To prepare the modem for regular use I will

  1. disable the PIN and
  2. permanently enable the UMTS modem (by enabling the download mode which disables the CDROM device)

Disable the PIN

Replace XXXX with your PIN code.

  echo AT+CLCK="SC",0,"XXXX" >/dev/ttyUSB1

Disable CD mode

  echo AT+ZCDRUN=E >/dev/ttyUSB1

Using UMTS with OpenWRT

Edit /etc/modules.d/60-usb-serial the umtserial module at startup

usbserial vendor=0x19d2 product=0x0117

Edit /etc/config/network to include the following section

config 'interface' 'wan'
        option 'ifname'  'ppp0'
        option 'device'  '/dev/ttyUSB2'
        option 'apn'     ''
        option 'service' 'umts'
        option 'proto'   '3g'
        option 'username' ''
        option 'password' 'ppp'

Test the configuration with

  ifup wan

If everything works out, make the changes persistent by adding ifup wan to your /etc/rc.local.


Leave a comment