<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span>Hi,<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div><br>
</div>
<div>my team and I are using for testing purposes an 3G USB modem (Huawei E352) that has an unexpected behaviour with ModemManager 1.12.10 and later stable versions (1.12.12 and 1.14.0).<br>
</div>
<div>The 3G modem is used as a broadband one and every time it disconnects, it encounters AT serial timeouts and is eventually declared as invalid by ModemManager then removed from modem list.<br>
</div>
<div><br>
</div>
<div>Jul 02 08:42:27.226342 tap-00006711 ModemManager[1225]: <debug> [1593679347.226334] (ttyUSB1): --> 'ATE0<CR>'<br>
</div>
<div>...<br>
</div>
<div>Jul 02 08:42:30.453896 tap-00006711 ModemManager[1225]: <debug> [1593679350.453872] (ttyUSB1): --> 'ATV1<CR>'<br>
</div>
<div>Jul 02 08:42:33.679831 tap-00006711 ModemManager[1225]: <warn> [1593679353.679807] (tty/ttyUSB1) at port timed out 2 consecutive times<br>
</div>
<div>...<br>
</div>
<div>Jul 02 08:42:59.421551 tap-00006711 ModemManager[1225]: <error> [1593679379.421503] (tty/ttyUSB1) at port timed out 10 consecutive times, marking modem '/org/freedesktop/ModemManager1/Modem/0' as invalid<br>
</div>
<div>...<br>
</div>
<div>Jul 02 08:43:02.667893 tap-00006711 ModemManager[1225]: <debug> [1593679382.667880] Modem (Huawei) '/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/usb4/4-1' completely disposed<br>
</div>
<div><br>
</div>
<div>Only an external action (unplug/unplug, electrical action) makes it reappear, manual scan via mmcli does not. <br>
</div>
<div><br>
</div>
<div>So I have two questions:<br>
</div>
<div>1) Is there something in the debug logs that may explain these systematic serial timeouts?
<br>
</div>
<div>I'm not sure ModemManager is at fault here (like some actions leading to unrecoverable errors) or the modem device is simply defective...<br>
</div>
<div><br>
</div>
<div>2) When the modem is declared invalid, is a there a way using libmm-glib to detect or be notified of such event occurrences?<br>
</div>
<div>The device disappearance at ModemManager and NetworkManager level is an obvious one but since it is quite a common event, we would like to know if something more specific can be observed.
<br>
</div>
<div><br>
</div>
<div>Thanks in advance for the help.<br>
</div>
<div><br>
</div>
<div>Regards,<br>
</div>
<span></span></div>
<div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; color: rgb(0, 0, 0);">
<p style="margin-top: 0px; margin-bottom: 0px;"><span id="ms-rterangepaste-start"></span></p>
<table style="font-family: Verdana, Arial; font-size: 12px; line-height: 18px; color: rgb(35, 0, 102);">
<tbody>
<tr>
<td colspan="2" style="padding-bottom:12px"><b style="font-size:14px">Louis-Alexis Eyraud</b><br>
Embedded software engineer</td>
</tr>
<tr>
<td valign="top"><a href="http://www.sigfox.com" target="_blank" style="text-decoration:none; outline:none"><img width="94" height="30" style="border:0px; margin:4px 10px 0px 0px" src="http://www.sigfox.com/static/media/signature_sigfox_logo_nov16.png"></a></td>
<td valign="top" style="padding-left:10px">Bâtiment E-volution - 425, rue Jean Rostand <br>
31670 Labège, France <br>
<a href="mailto:louis-alexis.eyraud@sigfox.com" style="color: rgb(35, 0, 102);">louis-alexis.eyraud@sigfox.com</a><br>
<a href="http://www.sigfox.com" target="_blank" style="text-decoration: none; color: rgb(128, 36, 255);"><b>sigfox.com</b></a>
<div style="margin-top:8px"><a href="https://twitter.com/sigfox" target="_blank" style="text-decoration:none; outline:none"><img title="twitter" width="32" height="32" style="border:none" src="http://www.sigfox.com/static/media/T.png"> </a><a href="http://www.facebook.com/sigfox" target="_blank" style="text-decoration:none; outline:none; margin-left:5px"><img title="facebook" width="32" height="32" style="border:none" src="http://www.sigfox.com/static/media/F.png"> </a><a href="http://www.linkedin.com/company/2731408" target="_blank" style="text-decoration:none; outline:none; margin-left:5px"><img title="linkedin" width="32" height="32" style="border:none; margin-top:1px" src="http://www.sigfox.com/static/media/L.png"> </a><a href="https://www.youtube.com/sigfox" target="_blank" style="text-decoration:none; outline:none; margin-left:5px"><img title="youtube" width="32" height="32" style="border:none" src="http://www.sigfox.com/static/media/Y.png"></a></div>
</td>
</tr>
</tbody>
</table>
<span id="ms-rterangepaste-end"></span><br>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>