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

Aleksander Morgado aleksandermj at chromium.org
Wed Jan 18 09:56:02 UTC 2023


Hey,

> I think the reason is the "60" seconds timeouts configured in register_in_3gpp_or_cdma_network() in mm-iface-modem-simple.c.
>
> Now, how do we handle scenarios where network takes more than 60 seconds to register? --simple-connect will always timeout..
>
> Please advise.
>

The --timeout you give in the mmcli call applies to the DBus request
exclusively, not to the actual operation. Different sub-steps in the
connection sequence have different timeout needs, and Simple.Connect()
does a lot of things with different timeout values. This is not ideal,
we could have an explicit timeout given by the user in
Simple.Connect() and adjust the internal timeouts of the different
steps so that they follow the user-provided one.

I think we had an issue to handle this, but cannot find it. Opened
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/692

-- 
Aleksander


More information about the ModemManager-devel mailing list