aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2024-10-08 09:06:42 -0500
committerDan Williams <dan@ioncontrol.co>2025-03-27 18:40:38 -0500
commit7d75a897a85e94d2bd183b38f9248a40dee3a570 (patch)
tree138910d78dd8bf0512f5674df7633f52b89ea238 /include
parentb04ca7939260b0167cb8d1466ec949fbf28dccaf (diff)
port-probe: allow per-port ID_MM_TTY_AT_PROBE_TRIES tag for custom number of AT probes
For modems that need more time to respond to AT port probes (like some Telit devices, and Cinterion-based Telit MV31/MV32) allow a custom number of AT probe tries on a per-port basis for generic probing, or plugins that opt into this functionality. Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'include')
-rw-r--r--include/ModemManager-tags.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ModemManager-tags.h b/include/ModemManager-tags.h
index fc2136ae..57067785 100644
--- a/include/ModemManager-tags.h
+++ b/include/ModemManager-tags.h
@@ -307,6 +307,22 @@
*/
#define ID_MM_MAX_MULTIPLEXED_LINKS "ID_MM_MAX_MULTIPLEXED_LINKS"
+/**
+ * ID_MM_TTY_AT_PROBE_TRIES:
+ *
+ * For ports that require a longer time to become ready to respond to AT
+ * commands, this tag specifies maximum number of AT probes to try as an
+ * integer between 1 and 20 (inclusive). Each probe attempt has a three-second
+ * timeout before the next probe is tried. Values outside the allowed range
+ * will be clamped to the min/max.
+ *
+ * Plugins implementing custom initialization without opting into this tag
+ * will ignore it.
+ *
+ * Since: 1.24
+ */
+#define ID_MM_TTY_AT_PROBE_TRIES "ID_MM_TTY_AT_PROBE_TRIES"
+
/*
* The following symbols are deprecated. We don't add them to -compat
* because this -tags file is not really part of the installed API.