The following documentation has been verified to work under OpenBSD 7.7 using the US variant of the TPE-USB4G2US modem, but should work with any recent release of OpenBSD. If you have any questions or think this documentation needs an update contact support.
How to connect to the internet using a USB 4G TPE-USB4G2US modem on OpenBSD:
1. First open a terminal and type in the following, then hit enter:
sudo cu -l/dev/cuaU3 -s 115200
2. Enter the following command followed by enter to verify you get a response from the modem and everything is working:
ati
Example output:
Quectel
EC25-AF((D)
Revision: EC25AFFDR07A08M4G
3. Now type in the following command and hit enter to set the modem to MBIM mode:
AT+QCFG="usbnet",2
4. Type in the following command and hit enter to restart the modem:
AT+CFUN=1,1
5. Give the modem a minute to reboot and run the following command followed by enter:
sudo ifconfig
6. You should see in the output a line like the following:
umb0: flags=8810 MTU 1500
umb0 showing up indicates that your in MBIM mode and the APN can now be set
7. To set the apn for the cellular provider use the following command, but replace broadband with the APN for your cellular provider, then hit enter:
sudo ifconfig umb0 apn broadband up
8. To see if your connected to the internet try pinging a server:
ping -c 4 8.8.8.8
One of the lines you should get back after running the command is a line that looks like the following and says 0% packet loss:
4 packets transmitted, 4 packets received, 0.0% packet loss
That's it!