test result: mmcli connecting with IPv6 works, but disconnect does not work

Aleksander Morgado aleksander at lanedo.com
Mon Aug 27 02:07:33 PDT 2012


On 08/25/2012 07:53 PM, Thomas Schäfer wrote:
> 
> hpmini:~ # mmcli -m 0 --simple-connect="XXXXX,ip-type=ipv6" --verbose
> [25 Aug 2012, 15:13:50] [Debug] Forcing request to be run asynchronously
> [25 Aug 2012, 15:13:50] [Debug] Assuming '0' is the modem index
> [25 Aug 2012, 15:13:50] [Debug] ModemManager process found at ':1.25'
> [25 Aug 2012, 15:13:50] [Debug] Modem found at '/org/freedesktop/ModemManager1/Modem/0'
> 
> [25 Aug 2012, 15:13:50] [Debug] Asynchronously connecting the modem...
> error: couldn't connect the modem: 'GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._qmi_5fcore_5ferror_5fquark.Code2: Transaction timed out'

Run mmcli with --timeout=200 or so, so that you don't hit the default
DBus timeout; that should fix the mmcli issue.

> hpmini:~ # /sbin/ip link set wwan0 up
> hpmini:~ # ip addr show
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
>     inet6 ::1/128 scope host 
>        valid_lft forever preferred_lft forever
> 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
>     link/ether 3c:d9:2b:1a:c9:9a brd ff:ff:ff:ff:ff:ff
> 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
>     link/ether d0:df:9a:93:67:90 brd ff:ff:ff:ff:ff:ff
> 5: wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
>     link/ether 00:a0:c6:00:00:00 brd ff:ff:ff:ff:ff:ff
>     inet6 2a01:198:24c:c122:89e1:83ed:a688:a480/64 scope global temporary dynamic 
>        valid_lft 604793sec preferred_lft 85793sec
>     inet6 2a01:198:24c:c122:2a0:c6ff:fe00:0/64 scope global dynamic 
>        valid_lft forever preferred_lft forever
>     inet6 fe80::2a0:c6ff:fe00:0/64 scope link 
>        valid_lft forever preferred_lft forever
> hpmini:~ # /sbin/ip link set wwan0 down
> hpmini:~ # mmcli -m 0 --simple-disconnect
> successfully disconnected all bearers in the modem
> hpmini:~ # mmcli -m 0 --simple-disconnect
> successfully disconnected all bearers in the modem

What exactly do you mean with disconnect not working?

Can you give me debug logs of ModemManager (just run it with --debug).
Also, please compile libqmi passing -DMESSAGE_ENABLE_TRACE in CFLAGS, like:

./configure CFLAGS="-DMESSAGE_ENABLE_TRACE"


-- 
Aleksander


More information about the libqmi-devel mailing list