[PATCH] port-probe: Increase AT probe command timeout to 7 seconds.

Roshan Pius rpius at chromium.org
Mon Dec 8 13:54:19 PST 2014


This patch increases the response timeout for the probe AT commands.

We've been noticing some modems taking upto 6 seconds to respond to the
initial probe command after a reset which results in modem-manager timing
out and sending a second probe command. The modem sends a response
after about 6 seconds for the initial probe command which modem-manager
treats as response to second probe command and this results in the
modem-manager and modem going out of sync because the modem's second probe
response is treated as response to the next initialization AT command by
modem-manager.

---
 src/mm-port-probe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index 94e7d3b..d9492bf 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -970,9 +970,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",  7, mm_port_probe_response_processor_is_at },
+    { "AT",  7, mm_port_probe_response_processor_is_at },
+    { "AT",  7, mm_port_probe_response_processor_is_at },
     { NULL }
 };
 
-- 
2.2.0.rc0.207.ga3a616c



More information about the ModemManager-devel mailing list