WP8548 with Ubuntu 18.04 - QMI protocol error (16): 'NotProvisioned'

Hello all,
I try to use mangOH red board as a modem with Ubuntu 18.04 but i encounter some issue : I can send SMS, but cannot open the data link.

$ mmcli -L
/org/freedesktop/ModemManager1/Modem/6 [Sierra Wireless, Incorporated] WP8548

$ mmcli -m 6
General | dbus path: /org/freedesktop/ModemManager1/Modem/6
| device id: c3f1308b0d
Hardware | manufacturer: Sierra Wireless, Incorporated
| model: WP8548
| revision: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1
2017/04/26 23:34:19
| h/w revision: 1.0
| supported: gsm-umts
| current: gsm-umts
| equipment id: 35
System | device: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1
| drivers: qcserial, qmi_wwan, cdc_ether
| plugin: Sierra
| primary port: cdc-wdm0
| ports: enp0s20u1i19 (net), ttyUSB1 (qcdm), ttyUSB3 (at),
| wwan0 (net), cdc-wdm0 (qmi)
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
| state: registered
| power state: on
| access tech: umts
| signal quality: 34% (recent)
Modes | supported: allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g, 3g; preferred: 2g
| current: allowed: 2g, 3g; preferred: none
Bands | supported: egsm, dcs, pcs, g850, utran-1, utran-6, utran-5, utran-8,
| utran-2, utran-19
| current: egsm, dcs, pcs, g850, utran-1, utran-6, utran-5, utran-8,
| utran-2, utran-19
IP | supported: ipv4, ipv6, ipv4v6
3GPP | imei: 35
| operator id: 64700
| operator name: Orange
| registration: home
3GPP EPS | ue mode of operation: csps-2
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/5
Bearer | dbus path: /org/freedesktop/ModemManager1/Bearer/3

$ mmcli -m 6 --messaging-create-sms=“text=‘Hello World,number=’+262693******’”
Successfully created new SMS: /org/freedesktop/ModemManager1/SMS/24

$ mmcli -s 24 --send
successfully sent the SMS

$ mmcli -m 6 --simple-connect=“apn=internet.sierrawireless.com
error: couldn’t connect the modem: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.Core.NotFound: Couldn’t find associated QMI port for ‘net/enp0s20u1i19’’

With command line on the board, it’s working fine :

root@swi-mdm9x15:~# cm data apn internet.sierrawireless.com
root@swi-mdm9x15:~# cm data connect &
[ 429.148969] NOHZ: local_softirq_pending 08
[ 429.229055] NOHZ: local_softirq_pending 08
Connected through interface ‘rmnet0’
root@swi-mdm9x15:~# cm sms send 0693****** HelloWorld

Any help will be welcome :slight_smile:
Thanks in advance
RL

Hi RL,

Personally, I only used SDK and driver officially from Sierra below, I never try the mmcli tool…
https://source.sierrawireless.com/resources/airprime/software/linux-qmi-sdk-software-latest/
https://source.sierrawireless.com/resources/airprime/software/usb-drivers-linux-qmi-software-s2,-d-,39n2,-d-,60/

But from your log, seems like mmcli try to start data connection from enp0s20u1i19 (cdc-ether) and failed.

$ mmcli -m 6 --simple-connect=“apn=internet.sierrawireless.com
error: couldn’t connect the modem: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.Core.NotFound: Couldn’t find associated QMI port for ‘net/enp0s20u1i19’’

Does mmcli allow you to start data connection from specific interface (i.e. wwan0 )?
Or you can try disable cdc-ether interface on your WP8548 then try again (so not to confuse mmcli), i.e.

AT!ENTERCND="A710"
AT!USBCOMP?
AT!USBCOMP=1,1,10F
AT!RESET

Hope that work, please mark down the default value (returned by AT!USBCOMP?) in case you want to restore it later.

Thx

What ModemManager version are you using?

This specific problem was fixed in commit fd1a26fc36df005d66627109875631264d2f8e19, released with ModemManager 1.12.0

If you’re not using MM 1.12.x, you can try with this 18.04 PPA I maintain: https://launchpad.net/~aleksander-m/+archive/ubuntu/modemmanager-bionic

My MM version was 1.10.x.
With the MM version 1.12.2, all is working fine.
Thank you for the help !