On 8 May 2017 at 09:55, Aleksander Morgado <[email protected]> wrote:

> Wouldn't this happen in the same way for all non-AT ports in modems
> managed by the Telit plugin, now that ID_MM_TELIT_PORTS_TAGGED is
> removed from the Telit plugin as well?
>

In Telit plugin we only probe the port with ID_USB_INTERFACE_NUM ==  00,
which we know that supports AT commands, see mm-common-telit.c:

286     /* Try to get a port configuration from the modem: usb interface 00
287      * is always linked to an AT port
288      */
289     port = mm_port_probe_peek_port (ctx->probe);
290     if (!ctx->getportcfg_done &&
291         g_strcmp0 (mm_kernel_device_get_property (port,
"ID_USB_INTERFACE_NUM"), "00") == 0) {
292
293         if (ctx->getportcfg_retries == 0)
294             goto out;
295         ctx->getportcfg_retries--;
296
297         mm_port_serial_at_command (
298             ctx->port,
299             "AT#PORTCFG?",
300             2,
301             FALSE, /* raw */
302             FALSE, /* allow_cached */
303             ctx->cancellable,
304             (GAsyncReadyCallback)getportcfg_ready,
305             ctx);
306         return;
307     }
_______________________________________________
ModemManager-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to