<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);">
</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>
<div id="appendonsend"></div>
Hi,
<div><br>
</div>
<div>I used minicom directly on the TTY (0 and 2), the failures remain on both models for the AT commands used during MM device init and they are systematic (like MM).</div>
<div><br>
</div>
<div>On ttyUSB2 interface, I see periodically unsolicited responses such as:</div>
<div>^RSSI: 18</div>
<div>^CERSSI:0,0,255,-101,-12,7,32639,32639,32639,</div>
<div>^ANLEVEL:0,99,18,4,101,12</div>
<div>^HCSQ:"LTE",45,40,136,16</div>
<div><br>
</div>
<div>On both TTY, some other AT commands such as ^SYSCFGEX, ^SYSINFOEX or +CREG work but most (even basic ones) don't.</div>
<div><br>
</div>
<div>AT^SYSINFOEX</div>
<div>^SYSINFOEX:2,3,0,1,0,6,"LTE",101,"LTE"</div>
<div>OK</div>
<div>AT+CSQ</div>
<div>+CSQ: 17,99</div>
<div>OK</div>
<div>ATI</div>
<div>ERROR</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">Louis-Alexis</span><br>
</div>
<br>
<hr tabindex="-1" style="display: inline-block; width: 98%; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;" data-ogsc=""><b>From:</b> Aleksander Morgado <aleksander@aleksander.es><br>
<b>Sent:</b> 29 July 2020 10:45<br>
<b>To:</b> Louis-Alexis Eyraud <louis-alexis.eyraud@sigfox.com><br>
<b>Cc:</b> ModemManager (development) <modemmanager-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: Huawei MS2372h-158/518 initialisation issues</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div class="x_gmail_default" style="font-family:monospace,monospace">Hey,<br>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div class="x_gmail_quote">
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>My team and I tried multiples Huawei MS2372h variants and two of them (the 158 and 518) show similar initialisation errors.</div>
<div><br>
</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <info> [1595945084.395531] [device /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3] creating modem with plugin 'huawei' and '3' ports</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <warn> [1595945084.411342] [plugin/huawei] could not grab port ttyUSB1: Cannot add port 'tty/ttyUSB1', unhandled serial type</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <info> [1595945084.416027] [base-manager] modem for device '/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3' successfully created</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <warn> [1595945084.971664] [modem0] modem couldn't be initialized: couldn't load current capabilities: Failed to determine modem capabilities.</div>
<div><br>
</div>
<div>After init, the modems are in an unavailable state from Network Manager point of view and of course they cannot establish a connection.</div>
<div><span>No info (model, firmware...) is present in mmcli output:</span><br>
</div>
<div> -------------------------</div>
<div> General | dbus path: /org/freedesktop/ModemManager1/Modem/1</div>
<div> -------------------------</div>
<div> System | device: /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2</div>
<div> | drivers: option1</div>
<div> | plugin: huawei</div>
<div> | primary port: ttyUSB2</div>
<div> | ports: ttyUSB0 (at), ttyUSB2 (at)</div>
<div> -------------------------</div>
<div> Status | signal quality: 0% (cached)</div>
<div> -------------------------</div>
<div> Modes | supported: allowed: any; preferred: none</div>
<div> | current: allowed: any; preferred: none</div>
<div><br>
</div>
<div>In ModemManager debug logs, there are many AT command errors like this one:</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.962262] [modem0/ttyUSB2/at] --> 'AT+CGMM<CR>'</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.970688] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'</div>
<div>Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.971016] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)</div>
<div><br>
</div>
<div>The attached debugs logs and lsusb output for the MS2372h-158 are from a test done on a RPI3 with a ModemManager build from git on master branch (reproduced with 1.10, 1.12 and 1.14 too).</div>
<div><br>
</div>
<div>Have you an idea where the issue could come from?</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>
<div class="x_gmail_default" style="font-family:monospace,monospace">The modem is really reporting a ton of ERRORs on most AT commands we try to use:</div>
<div class="x_gmail_default" style="font-family:monospace,monospace"><br>
</div>
<div class="x_gmail_default" style="font-family:monospace,monospace">Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.421452] [modem0/ttyUSB2/at] --> 'ATE0<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.908627] [modem0/ttyUSB2/at] <-- '<CR><LF>OK<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.909130] [modem0/ttyUSB2/at] --> 'ATV1<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.914240] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.914580] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.914776] [modem0/ttyUSB2/at] --> 'AT+CMEE=1<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.925467] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.925801] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.925989] [modem0/ttyUSB2/at] --> 'ATX4<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.931025] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.931517] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.931730] [modem0/ttyUSB2/at] --> 'AT&C1<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.937987] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.938329] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.938526] [modem0/ttyUSB2/at] --> 'AT+GCAP<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.946952] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.947296] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.947536] [modem0/ttyUSB2/at] --> 'ATI<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.951462] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.951803] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.952049] [modem0/ttyUSB2/at] --> 'AT+CPIN?<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.961680] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.962019] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.962262] [modem0/ttyUSB2/at] --> 'AT+CGMM<CR>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.970688] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>'<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <debug> [1595945084.971016] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)<br>
Jul 28 15:04:44 raspberrypi ModemManager[416]: <warn> [1595945084.971664] [modem0] modem couldn't be initialized: couldn't load current capabilities: Failed to determine modem capabilities.</div>
<div class="x_gmail_default" style="font-family:monospace,monospace"><br>
</div>
<div class="x_gmail_default" style="font-family:monospace,monospace"><br>
</div>
<div class="x_gmail_default" style="font-family:monospace,monospace">Would you be able to run these commands manually without MM using minicom, and see if the commands keep on failing constantly? Also, do these commands fail if they're run in ttyUSB0 instead
of ttyUSB2?</div>
<br>
</div>
<br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">Aleksander<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Faleksander.es%2F&data=02%7C01%7Clouis-alexis.eyraud%40sigfox.com%7C6dffa8a8617940d910a708d8339bd476%7Cfcbc8bb1061e4b949f703ad917b0c8d3%7C0%7C0%7C637316091660335155&sdata=NSpyFg78wUE9RzYU4yt1%2FlAzsfOp3kwQ8o23Z1q1uT4%3D&reserved=0" originalsrc="https://aleksander.es/" shash="Wway0B+kas8OPwv2NzWcmsCOq7DAp7p0B+aJ8rkSXMErUGOmG/83ABSIZETVA8TfVPCaKcpnNd8kJFCl7fWVCFGxLBfHNCuBcgcrSJBMdjXH2UPWVIXzHaoc98TuBGcKdasGUTmo4PdGUZdcsfGZg5NpZ5aJNffeQ1r4lF98AKs=" target="_blank">https://aleksander.es</a></div>
</div>
</div>
</body>
</html>