mmcli connectin with IPv4 works, question about keys

Thomas Schäfer tschaefer at t-online.de
Tue Aug 28 05:35:29 PDT 2012


Am 27.08.2012 11:02, schrieb Aleksander Morgado:

>> Where can I find a list of valid keys/values, like apn and ip-type?
>>
>
> For the list of keys, check the Connect() method here:
> http://www.lanedo.com/~aleksander/modem-manager/api-20120827/gdbus-org.freedesktop.ModemManager1.Modem.Simple.html
>
> If the value of the key is given as an enum, you'll need to pass the
> value as a string representing the enum, just get the suffix of the enum
> and lowercase it (what glib-mkenums does to get the 'nick' of the enum).
> For the 'bands', just provide a list of those lowercase suffixes
> enclosed in singlequotes. E.g.:
>
> simple-connect="bands='egsm,dcs,pcs,g850',ip-type=ipv4"
>
>
>
>> Is there a possibility to force 3g-mode?
>>
>
> It should be doable passing:
>      "allowed-mode=3g"

Here comes an error:
Error parsing connect string: "Invalid properties string, unexpected key 
"allowed-mode"



>
> 'allowed-modes' is also a list, so you can also pass:
>      "allowed-modes='2g,3g,4g'"
>

This does almost work, but only with one value.




> Note that setting allowed modes is not always supported, so it may not work.
>

The switch between 2G and 4G works, but only at the second try.

hpmini:~ # mmcli --timeout=500 -m 0 
--simple-connect="apn=internet.telekom,allowed-modes='4g',ip-type=ipv4" 
--verbose
[28 Aug 2012, 14:27:15] [Debug] Forcing request to be run asynchronously
[28 Aug 2012, 14:27:15] [Debug] Assuming '0' is the modem index
[28 Aug 2012, 14:27:15] [Debug] ModemManager process found at ':1.30'
[28 Aug 2012, 14:27:15] [Debug] Modem found at 
'/org/freedesktop/ModemManager1/Modem/0'

[28 Aug 2012, 14:27:15] [Debug] Asynchronously connecting the modem...
error: couldn't connect the modem: 
'GDBus.Error:org.freedesktop.libqmi.Error.Protocol.CallFailed: QMI 
protocol error (14): 'CallFailed''
hpmini:~ # mmcli --timeout=500 -m 0 
--simple-connect="apn=internet.telekom,allowed-modes='4g',ip-type=ipv4" 
--verbose
[28 Aug 2012, 14:27:24] [Debug] Forcing request to be run asynchronously
[28 Aug 2012, 14:27:24] [Debug] Assuming '0' is the modem index
[28 Aug 2012, 14:27:24] [Debug] ModemManager process found at ':1.30'
[28 Aug 2012, 14:27:24] [Debug] Modem found at 
'/org/freedesktop/ModemManager1/Modem/0'

[28 Aug 2012, 14:27:24] [Debug] Asynchronously connecting the modem...
successfully connected the modem
hpmini:~ #



The first try switches to the wanted mode.
The second try makes the connection.




(3G has bad diagnostics, because of the same LED color, and nearly equal 
performance )




> If you could test those with your modem it would be great :-)

You are doing the things I can test. Thank you!



Regards,

Thomas



More information about the libqmi-devel mailing list