mmcli "--timeout=[SECONDS]" does not work with --simple-connect

Amol Lad Amol.Lad at 4rf.com
Mon Jan 16 05:00:13 UTC 2023


Hi Aleksander,

I've tried with MM 1.20.4 and also 1.18.8 but it seems the timeout is always "60 seconds" even if a larger --timeout is provided to mmcli --simple-connect

Any suggestion will really help. I landed into this issue because here a network on roaming is taking around 90 seconds to register and I found mmcli --simple-connect is returning after 60 seconds wait even though I've provided --timeout=175

# time mmcli -m 0 --timeout=175 --simple-connect="apn=vi" -v
[16 Jan 2023, 04:15:43] [Debug] Forcing request to be run asynchronously
[16 Jan 2023, 04:15:43] [Debug] Assuming '0' is the modem index
[16 Jan 2023, 04:15:43] [Debug] ModemManager process found at ':1.1765'
[16 Jan 2023, 04:15:43] [Debug] Modem found at '/org/freedesktop/ModemManager1/Modem/0'

[16 Jan 2023, 04:15:43] [Debug] Asynchronously connecting the modem...
error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.NetworkTimeout: Network timeout'
Command exited with non-zero status 1
real    1m 0.82s
user    0m 0.01s
sys     0m 0.00s

Thanks
Amol

-------------- next part --------------
Hi Aleksander,

I've tried with MM 1.20.4 and also 1.18.8 but it seems the timeout is always "60 seconds" even if a larger --timeout is provided to mmcli --simple-connect

Any suggestion will really help. I landed into this issue because here a network on roaming is taking around 90 seconds to register and I found mmcli --simple-connect is returning after 60 seconds wait even though I've provided --timeout=175

# time mmcli -m 0 --timeout=175 --simple-connect="apn=vi" -v
[16 Jan 2023, 04:15:43] [Debug] Forcing request to be run asynchronously
[16 Jan 2023, 04:15:43] [Debug] Assuming '0' is the modem index
[16 Jan 2023, 04:15:43] [Debug] ModemManager process found at ':1.1765'
[16 Jan 2023, 04:15:43] [Debug] Modem found at '/org/freedesktop/ModemManager1/Modem/0'

[16 Jan 2023, 04:15:43] [Debug] Asynchronously connecting the modem...
error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.NetworkTimeout: Network timeout'
Command exited with non-zero status 1
real    1m 0.82s
user    0m 0.01s
sys     0m 0.00s

Thanks
Amol



More information about the ModemManager-devel mailing list