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>
This commit is contained in:
Dan Williams
2025-03-27 18:40:38 -05:00
parent b04ca79392
commit 7d75a897a8
5 changed files with 220 additions and 25 deletions
+16
View File
@@ -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.