Thursday, March 19, 2026

Re: USB 4G dongle that works with OpenBSD

I did some testing. Basically, it works.

The device is a ZTE MF79U CAT4-4G Modem. It is designed to be a mobile WiFi
access point, so by default it creates a 2.4 GHz WLAN for WiFi clients, which
also provides an admin web interface for the device.

Additionally, it has a slot for a microSDHC card that shows up as sd1 in my
case. And it has 2 TS9 sockets for external antennas - I have a dual 4G/5G
antenna connected with SMA/TS9 adapters.

When the device gets plugged in, it shows up like this in dmesg:

umass0 at uhub0 port 2 configuration 1 interface 0 "ZTE,Incorporated ZTE Mobile Boardband" rev 2.00/58.86 addr 6
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
cd0 at scsibus4 targ 1 lun 0: <ZTE USB, SCSI CD-ROM 2.31, > removable
sd1 at scsibus4 targ 1 lun 1: <ZTE MMC, Storage 2.31, > removable

No network interface on the OpenBSD host yet at this point.

By default, you need to use the admin web interface to enter the SIM PIN
before the device can connect to mobile broadband. Connect to the device
WLAN (ZTE_something, WPA key on sticker in the device), browse to
http://192.168.0.1/, user "admin", password on sticker in the device.
You will be asked to enter the SIM PIN.

A moment later, the device goes like this in dmesg:

cdce0 at uhub0 port 2 configuration 1 interface 0 "ZTE,Incorporated ZTE Mobile Boardband" rev 2.00/58.86 addr 6
cdce0: address fe:e1:ba:d0:94:75
umass0 at uhub0 port 2 configuration 1 interface 2 "ZTE,Incorporated ZTE Mobile Boardband" rev 2.00/58.86 addr 6
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
cd0 at scsibus4 targ 1 lun 0: <ZTE USB, SCSI CD-ROM 2.31, > removable
sd1 at scsibus4 targ 1 lun 1: <ZTE MMC, Storage 2.31, > removable
sd1: 15200MB, 512 bytes/sector, 31129600 sectors

Where sd1 is the microSDHC card in the device, and cdce0 is a network
interface that can be started like this:

# ifconfig cdce0 autoconf
# ifconfig cdce0
cdce0: flags=808943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
lladdr fe:e1:ba:d0:94:75
index 7 priority 0 llprio 3
groups: egress
inet 192.168.0.16 netmask 0xffffff00 broadcast 192.168.0.255

I did some light browsing, pinging etc. Things were working as expected.
I did not do heavier testing yet.

Unlike umb(4) devices, the APN string and SIM PIN cannot be set from ifconfig.
At least for initial setup, the device web admin interface has to be used.
But changed settings there should be persistent.

For my use case (DSL backup over LTE), SIM PIN checking needs to be disabled,
so I won't have to use the admin interface every time to manually start the
broadband connection. And WiFi from the device will be disabled - the DSL
router provides WiFi already, less radio noise, and 192.168.0.1 could be
reached from the OpenBSD host. This can be set in the web interface.
Not tested yet, but I don't expect problems.


Works for me, so far.

Olaf

No comments:

Post a Comment