qmi-network fails to start
Bjørn Mork
bjorn at mork.no
Wed Oct 11 08:57:41 UTC 2017
Benoît <benoit at neviani.fr> writes:
> mbim-network /dev/cdc-wdm0 start Network started successfully
>
> mbimcli -d /dev/cdc-wdm0 --query-ip-configuration error: couldn't get
> IP configuration response message: ContextNotActivated
>
> Just after launching this command a status reports an error:
> error: operation failed: MBIM protocol error: NotOpened
> error: couldn't get connection status
I believe you have to run mbimcli with both '--no-open' and '--no-close'
to prevent it from breaking the connection by closing the MBIM session.
Look at the mbim-network script and see what it does.
Note that you need to provide a transaction ID for --no-open, but it
doesn't necessarily need to be part of any particular sequence. You can
just make up a number. For example, quering the IP config of my current
ModemManager managed session:
root at miraculix:/tmp# mbimcli -p -d /dev/cdc-wdm0 --no-open=42 --no-close --query-ip-configuration
[/dev/cdc-wdm0] IPv4 configuration available: 'address, gateway, dns, mtu'
IP [0]: '10.155.162.5/30'
Gateway: '10.155.162.6'
DNS [0]: '193.213.112.4'
DNS [1]: '130.67.15.198'
MTU: '1500'
[/dev/cdc-wdm0] IPv6 configuration available: 'address, gateway, dns, mtu'
IP [0]: '2a02:2121:347:5a0b:3db0:b9ae:10c8:c4af/64'
Gateway: '2a02:2121:347:5a0b:c0f4:8d4e:d76a:d3e7'
DNS [0]: '2001:4600:4:fff::52'
DNS [1]: '2001:4600:4:1fff::52'
MTU: '1500'
[/dev/cdc-wdm0] Session not closed:
TRID: '44'
Bjørn
More information about the libqmi-devel
mailing list