[Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 15 Dec 2024 17:57:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783

Helder Filho <hnov19@blackwallet.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hnov19@blackwallet.com.br

--- Comment #50 from Helder Filho <hnov19@blackwallet.com.br> ---
(In reply to Pierre Pronchery from comment #49)

Hello! I compiled the UMB(4) and UMBCTL(8) modules for my pfSense RELENG_2_7_0,
which is based on FreeBSD 14.0-CURRENT. I confirm that the module almost worked
with my Sierra MC7355. My Sierra is recognized as the interface umb0, and I can
set the APN and list it:

[2.7.0-RELEASE][admin@router.home]/root: ./umbctl umb0
umb0: state open, mode automatic, registration home network
        provider "Oi", dataclass GPRS, signal #99
        phone number "", roaming "" (denied)
        APN "", TX 5742000, RX 42200000
        firmware "SWI9X15C_05.05.58.00", hardware "MC7355"
[2.7.0-RELEASE][admin@router.home]/root: ./umbctl umb0 apn claro.com.br
[2.7.0-RELEASE][admin@router.home]/root: ./umbctl umb0
umb0: state open, mode automatic, registration home network
        provider "Oi", dataclass GPRS, signal #99
        phone number "", roaming "" (denied)
        APN "claro.com.br", TX 5742000, RX 42200000
        firmware "SWI9X15C_05.05.58.00", hardware "MC7355"
[2.7.0-RELEASE][admin@router.home]/root: ifconfig umb0 up
[2.7.0-RELEASE][admin@router.home]/root: ./umbctl umb0
umb0: state attached, mode automatic, registration home network
        provider "Oi", dataclass GPRS, signal #99
        phone number "XXXXXXXXXXXXX", roaming "" (denied)
        APN "claro.com.br", TX 5742000, RX 42200000
        firmware "SWI9X15C_05.05.58.00", hardware "MC7355"

I confirmed via AT commands that the APN I set using umbctl is reflected on the
Sierra.

However, when I try to check the IP of the umb0 interface, it is empty:

[2.7.0-RELEASE][admin@router.home]/root: ifconfig umb0
umb0: flags=8811<UP,POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
        media: <unknown type>
        status: 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

As a result, when I try to use the interface, it fails:

[2.7.0-RELEASE][admin@router.home]/root: curl --interface umb0
http://ipecho.net/plain
curl: (7) Failed to connect to ipecho.net port 80 after 1048 ms: Couldn't
connect to server

I compiled the module on a virtual machine using the patch sent by Pierre
Pronchery on 2024-12-12 17:48:31 UTC, and then copied the umbctl files to /sbin
and umb.ko to /boot/modules on my pfSense router. Did I do something wrong?
Should I have copied other files? I would appreciate any help.

I would like to note that when I connect to the Sierra using the PPP protocol
on my pfSense, the connection works without issues. I would like to use MBIM to
see if I can achieve better performance.

Additionally, I noticed that umbctl is recognizing my dataclass as GPRS;
however, when I use the command AT!GSTATUS?, I confirm that I am actually
connected to a WCDMA network. I'm not sure if this could be causing the issue
of not receiving an IP address on the umb0 interface.

Thank you all for your efforts on this port!

-- 
You are receiving this mail because:
You are the assignee for the bug.