From b935782010edabff0b37a4256235e63bc6f946ec Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 29 Jul 2021 12:54:21 +0200 Subject: cinterion: increase ^SCFG? timeout to 120s The timeout in this command is extremely large, because there are some modules like the EGS5 that build the response based on the current network registration, and that implies the module needs to be registered. If for any reason there is no serving network where to register, the response comes after a very long time, up to 100s. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/408 --- plugins/cinterion/mm-broadband-modem-cinterion.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c b/plugins/cinterion/mm-broadband-modem-cinterion.c index d512b855..575ab484 100644 --- a/plugins/cinterion/mm-broadband-modem-cinterion.c +++ b/plugins/cinterion/mm-broadband-modem-cinterion.c @@ -2032,9 +2032,14 @@ load_current_bands (MMIfaceModem *self, task = g_task_new (self, NULL, callback, user_data); + /* The timeout in this command is extremely large, because there are some + * modules like the EGS5 that build the response based on the current network + * registration, and that implies the module needs to be registered. If for + * any reason there is no serving network where to register, the response + * comes after a very long time, up to 100s. */ mm_base_modem_at_command (MM_BASE_MODEM (self), "AT^SCFG?", - 3, + 120, FALSE, (GAsyncReadyCallback)get_band_ready, task); -- cgit v1.2.3-70-g09d2