qmi-network fails to start
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 : '10.155.162.5/30'
DNS : '220.127.116.11'
DNS : '18.104.22.168'
[/dev/cdc-wdm0] IPv6 configuration available: 'address, gateway, dns, mtu'
IP : '2a02:2121:347:5a0b:3db0:b9ae:10c8:c4af/64'
DNS : '2001:4600:4:fff::52'
DNS : '2001:4600:4:1fff::52'
[/dev/cdc-wdm0] Session not closed:
More information about the libqmi-devel