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