<div dir="ltr"><div><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I am new to scripting languages. Looking
modified version of qmi-network, which takes command line argument "Reconnect".
Based on this argument, query --wds-get-packet-service-status with predefined
time interval and if it disconnects stop_network () existing connection and start_network
() connection.</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks for your help on this.</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 10:31 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Aug 11, 2015 at 4:54 PM, Kavula Suresh <<a href="mailto:kavulas@gmail.com">kavulas@gmail.com</a>> wrote:<br>
> I was able to bring up connection by manually executing qmi-network script<br>
> or on boot-up by running systemd script service. I don't see any issues at<br>
> this end and works great.<br>
><br>
> With my Verizon connection, there are some cases connection is getting<br>
> disconnecting.<br>
><br>
> Is there a way to monitor connection status and auto re-connection on modem<br>
> disconnection with service provider?<br>
<br>
<br>
</span>You could run the same qmi-network script, but with the "status"<br>
action; that will ask the modem via --wds-get-packet-service-status to<br>
see if it's still connected or not.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>