From 7d75a897a85e94d2bd183b38f9248a40dee3a570 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 8 Oct 2024 09:06:42 -0500 Subject: 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 --- include/ModemManager-tags.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') 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. -- cgit v1.2.3-70-g09d2