<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Bjørn,</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">thanks for the reply</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">> AFAICS, that is the expected result.  The modem is connected and you do</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">> not disconnect, so "start-network" has no effect.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Yes, you're right, but why am I connected in the first place? There is no context configured</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">> If "--set-autoconnect disabled" does not work as expected, then please</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">> try "--stop-network --autoconnect".</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">doesn't stop-network require an handle?</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">    $ sudo uqmi -d /dev/cdc-wdm1 --stop-network --autoconnect</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">    "Invalid handle"</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 May 2017 at 13:20, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Carlo Lobrano <<a href="mailto:c.lobrano@gmail.com">c.lobrano@gmail.com</a>> writes:<br>
<br>
> Hello,<br>
><br>
> Hope this is the right place to ask for help and my apologies if it is not.<br>
><br>
> I'm testing uqmi with a Telit LE910 LTE modem on Ubuntu 16.10, but I'm<br>
> facing this weird issue.<br>
> Uqmi considers the modem connected from the very beginning, even if I<br>
> haven't run --start-network yet and even if I use --set-autoconnect<br>
> disabled first, and when I try to connect with a different APN it replies<br>
> with "no effect"<br>
><br>
><br>
>     $ sudo uqmi -d /dev/cdc-wdm1 --get-data-status<br>
>     "connected"<br>
>     $ sudo uqmi -d /dev/cdc-wdm1 --set-autoconnect disabled<br>
>     $ sudo uqmi -d /dev/cdc-wdm1 --get-data-status<br>
>     "connected"<br>
>     $ sudo uqmi -d /dev/cdc-wdm1 --start-network <a href="http://web.omnitel.it" rel="noreferrer" target="_blank">web.omnitel.it</a><br>
>  --autoconnect<br>
>     "No effect"<br>
<br>
<br>
</span>AFAICS, that is the expected result.  The modem is connected and you do<br>
not disconnect, so "start-network" has no effect.<br>
<br>
If you do not want "autoconnect" then you should not include it with the<br>
"start-network" request.<br>
<br>
If "--set-autoconnect disabled" does not work as expected, then please<br>
try "--stop-network --autoconnect".  This should both stop the current<br>
session and disable autoconnect for future sessions.  Until you enable<br>
it again with "--start-network --autoconnect".  Just don't do that if<br>
you don't want autoconnect...<br>
<span class=""><br>
<br>
> I think that reason is the default bearer established at the attach (since<br>
> it's LTE), but I'm not sure how to overcome this and any hints would be<br>
> very appreciated.<br>
<br>
</span>I haven't seen any such issues with the Qualcomm based modems. They seem<br>
to deal pretty well with the difference between their data bearers and<br>
the initial default bearer.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Bjørn<br>
</font></span></blockquote></div><br></div>