Unable to create connection

Hi,

Raspberry Pi 4
Fresh install
sudo apt update && sudo apt full-upgrade

sudo lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 1: Dev 3, If 2, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
        |__ Port 1: Dev 3, If 3, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 3, If 4, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 3, If 5, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 3, If 6, Class=Vendor Specific Class, Driver=option, 480M
uname -ar
Linux jeedom 5.10.52-v8+ #1441 SMP PREEMPT Tue Aug 3 18:14:03 BST 2021 aarch64 GNU/Linux

AT#USBCFG? return 0

When I try the tutorial: Setting up a data connection over QMI interface using libqmi
Because I need to have SMS and Internet in same time.

 sudo qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode
error: couldn't create client for the 'dms' service: CID allocation failed in the CTL client: Transaction timed out

What I can do?

Thanks

Hi @fred ,

When you run the qmicli command, are you completely sure that there is no other qmicli command still running?
Also, if you are running ModemManager in the background you need to stop it. Otherwise, ModemManager and qmicli will fight over the cdc-wdm device.

OK,
Thanks!

Found ModemManager in background, when I stop it, qmicli works.

sudo cat /etc/systemd/system/multi-user.target.wants/ModemManager.service

[Unit]
Description=Modem Manager

[Service]
Type=dbus
BusName=org.freedesktop.ModemManager1
ExecStart=/usr/sbin/ModemManager --filter-policy=strict
StandardError=null
Restart=on-abort
CapabilityBoundingSet=CAP_SYS_ADMIN
ProtectSystem=true
ProtectHome=true
PrivateTmp=true
RestrictAddressFamilies=AF_NETLINK AF_UNIX
NoNewPrivileges=true
User=root

[Install]
WantedBy=multi-user.target
Alias=dbus-org.freedesktop.ModemManager1.service

Have you an advice about this?
Do you think I needed to disabled it or can I configure something to work with?

It’s raspberry pi for Home Automation.

Thanks

I can almost complete the tutorial.

wwan0 have IP

4: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/none
    inet 10.233.132.191/25 scope global wwan0
       valid_lft forever preferred_lft forever

But when I try to ping

ping -I wwan0 -c 5 sixfab.com
PING sixfab.com (104.26.9.221) from 10.233.132.191 wwan0: 56(84) bytes of data.
^C
--- sixfab.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 29ms
route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
0.0.0.0         10.233.132.192  0.0.0.0         UG    0      0        0 wwan0
0.0.0.0         192.168.10.1    0.0.0.0         UG    202    0        0 eth0
10.233.132.128  0.0.0.0         255.255.255.128 U     0      0        0 wwan0
192.168.10.0    0.0.0.0         255.255.255.0   U     202    0        0 eth0

:sleepy: