From b094fe442764a45e46df77176b697177a4d62f91 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 28 Jul 2021 16:07:09 +0200 Subject: [PATCH] port-probe: duplicate amount of AT probing attempts We originally did only 3 attempts every 3s, so the maximum probing time for a given TTY port looking for AT capabilities was 9 seconds. We now duplicate the amount of times, so up to 18s of port probing, which is quite a lot more than before, but unfortunately it's needed because most new modems take a lot of time to boot up internally. The way to avoid this long probing time is to make sure port type hints for the possible AT ports are set correctly. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/379 --- src/mm-port-probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index e955a97e..ed7d36ab 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -1083,6 +1083,9 @@ serial_probe_at (MMPortProbe *self) } static const MMPortProbeAtCommand at_probing[] = { + { "AT", 3, mm_port_probe_response_processor_is_at }, + { "AT", 3, mm_port_probe_response_processor_is_at }, + { "AT", 3, mm_port_probe_response_processor_is_at }, { "AT", 3, mm_port_probe_response_processor_is_at }, { "AT", 3, mm_port_probe_response_processor_is_at }, { "AT", 3, mm_port_probe_response_processor_is_at },