<div dir="ltr"><div><div><div><div>Hi All.<br><br></div>I have a modem in QMI-mode, and through your help, I have been able to get it up and running.<br><br><br></div>Now, my architecture is such ::<br><br>* <br>There is a python-script, which monitors the health of "wwan0" interface.<br><br>*<br>There is an application-binary in C, which uses POSIX-socket APIs to create a socket (and the socket is created from wwan0, as that is the only active interface).<br><br><br><br></div><div>Now, things are working fine so far.<br></div><div>I have put in the following tests in the python-script ::<br><br>1)<br></div><div>Ensure <b>power state: 'on' </b>in output of "mmcli -m modem-id".<br><br>2)<br>Ensure <b>state: 'connected' </b>in output of "mmcli -m modem-id".<br><br>3)<br></div><div>Ensure there is a ipv4 address assigned to wwan0-interface.<br><br><br></div><div>I run the above 3 tests every 30 seconds, and assume that if all 3 match as expected, then the wwan0-interface is fine (and any user-applications using POSIX-Socket APIs would continue to achieve new socket-instantiations fine).<br><br><br><br></div><div>Are the 3 tests sufficient?<br></div><div>Or any other tests should/must be put?<br></div><div> <br clear="all"></div></div><div><div><div><div><div><br></div><div>Will be grateful for pointers, that could help make the wwan-interface-up testing bullet-proof.<br></div><div><br><br><div class="gmail_signature" data-smartmail="gmail_signature">Thanks and Regards,<br>Ajay<br></div>
</div></div></div></div></div></div>