<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 8 May 2017 at 09:55, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-:b2" class="gmail-a3s gmail-aXjCH gmail-m15be70ebfd3d813f">Wouldn't this happen in the same way for all non-AT ports in modems<br>
managed by the Telit plugin, now that ID_MM_TELIT_PORTS_TAGGED is<br>
removed from the Telit plugin as well?</div></blockquote></div><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">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:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<font face="monospace">
<span id="gmail-L286"><font color="#af5f00">286 </font></span> <font color="#0000c0">/*</font><font color="#0000c0"> Try to get a port configuration from the modem: usb interface 00</font><br>
<span id="gmail-L287"><font color="#af5f00">287 </font></span><font color="#0000c0"> * is always linked to an AT port</font><br>
<span id="gmail-L288"><font color="#af5f00">288 </font></span><font color="#0000c0"> </font><font color="#0000c0">*/</font><br>
<span id="gmail-L289"><font color="#af5f00">289 </font></span> port = <font color="#008080">mm_port_probe_peek_port </font>(ctx->probe);<br>
<span id="gmail-L290"><font color="#af5f00">290 </font></span> if (!ctx->getportcfg_done &&<br>
<span id="gmail-L291"><font color="#af5f00">291 </font></span> <font color="#008080">g_strcmp0 </font>(<font color="#008080">mm_kernel_device_get_property </font>(port, <font color="#c00000">"ID_USB_INTERFACE_NUM"</font>), <font color="#c00000">"00"</font>) == 0) {<br>
<span id="gmail-L292"><font color="#af5f00">292 </font></span><br>
<span id="gmail-L293"><font color="#af5f00">293 </font></span> if (ctx->getportcfg_retries == 0)<br>
<span id="gmail-L294"><font color="#af5f00">294 </font></span> <font color="#af5f00">goto</font> out;<br>
<span id="gmail-L295"><font color="#af5f00">295 </font></span> ctx->getportcfg_retries--;<br>
<span id="gmail-L296"><font color="#af5f00">296 </font></span><br>
<span id="gmail-L297"><font color="#af5f00">297 </font></span> <font color="#008080">mm_port_serial_at_command </font>(<br>
<span id="gmail-L298"><font color="#af5f00">298 </font></span> ctx->port,<br>
<span id="gmail-L299"><font color="#af5f00">299 </font></span> <font color="#c00000">"AT#PORTCFG?"</font>,<br>
<span id="gmail-L300"><font color="#af5f00">300 </font></span> 2,<br>
<span id="gmail-L301"><font color="#af5f00">301 </font></span> FALSE, <font color="#0000c0">/*</font><font color="#0000c0"> raw </font><font color="#0000c0">*/</font><br>
<span id="gmail-L302"><font color="#af5f00">302 </font></span> FALSE, <font color="#0000c0">/*</font><font color="#0000c0"> allow_cached </font><font color="#0000c0">*/</font><br>
<span id="gmail-L303"><font color="#af5f00">303 </font></span> ctx->cancellable,<br>
<span id="gmail-L304"><font color="#af5f00">304 </font></span> (GAsyncReadyCallback)getportcfg_ready,<br>
<span id="gmail-L305"><font color="#af5f00">305 </font></span> ctx);<br>
<span id="gmail-L306"><font color="#af5f00">306 </font></span> <font color="#af5f00">return</font>;<br>
<span id="gmail-L307"><font color="#af5f00">307 </font></span> }<br>
</font>
</div>
</div><br></div></div>