<div dir="ltr"><div dir="ltr"><div dir="ltr"><h3 class="gmail-iw" style="overflow:hidden;white-space:nowrap;font-size:0.75rem;margin:inherit;text-overflow:ellipsis;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span class="gmail-qu" role="gridcell" tabindex="-1" style="outline:none"><span name="Nicholas Smith" class="gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px"><span style="vertical-align:top;font-weight:normal"><font face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif">Nicholas Smith, how do you change the mode manually?</font><br><font face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif">I try to:</font><br><code style=""><span id="gmail-LC1" class="gmail-line" lang="plaintext" style="">sudo flock -x /dev/ttyUSB2 minicom -D /dev/ttyUSB2</span>
</code><br></span></span></span></h3><div><div><font size="2" face="monospace">AT!ENTERCND="A710"</font></div><div><font size="2" face="monospace">AT!USBCOMP="1,3,10D"</font></div><div><font size="2" face="monospace">AT!RESET</font></div></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif">But it does not help.</span></font></div><div><font size="2"><span style="font-family:arial,sans-serif">In addition am I correct that I can re-flash the Quectel only by using qmu-firmware-update?</span></font></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><br></div><h3 class="gmail-iw" style="overflow:hidden;white-space:nowrap;font-size:0.75rem;margin:inherit;text-overflow:ellipsis;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><font face="arial, sans-serif"><span class="gmail-qu" role="gridcell" tabindex="-1" style="outline:none"><span name="Bjørn Mork" class="gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px"><span style="vertical-align:top;font-weight:normal">Bjørn Mork</span></span></span> considering</font><span style="font-family:arial,sans-serif;font-size:small;font-weight:normal;letter-spacing:normal;color:rgb(34,34,34)"> the qmicli:</span></h3><div><font face="monospace">sudo mbimcli -d /dev/cdc-wdm2 --query-device-services<font size="2"><br></font></font></div><div><font face="monospace">Service: 'qmi'<br>UUID: [d1a30bc2-f97a-6e43-bf65-c7e24fb0f0d3]:<br>DSS payload: 0<br>Max DSS instances: 0<br>CIDs: msg (1)</font><br></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif">So it seems that it should work but:</span></font></div><div><font face="monospace">sudo qmicli -p -d /dev/cdc-wdm2 --device-open-mbim --nas-get-signal-strength<br>[/dev/cdc-wdm2] Successfully got signal strength<br>Current:<br> Network 'umts': '-110 dBm'<br>RSSI:<br> Network 'umts': '-110 dBm'<br>ECIO:<br> Network 'umts': '-15.0 dBm'<br>IO: '-106 dBm'<br>SINR (8): '9.0 dB'</font><br></div><div><br></div><div>Yes, it is ok but the commands like:</div><div><font face="monospace">sudo qmicli -p -d /dev/cdc-wdm2 --device-open-mbim --dms-list-stored-images<br>error: couldn't list stored images: QMI protocol error (57): 'Wms.InvalidMessageId'</font></div><div>They do not work. Is it a bug or am I doing something not correctly?</div><div><br></div><div>Thanks for the help.</div><div><br></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="2"><span style="font-family:arial,sans-serif"><br></span></font></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 25 июн. 2021 г. в 03:24, Nicholas Smith <<a href="mailto:nicholas@nbembedded.com">nicholas@nbembedded.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Actually that QMI service is there....<br>
<br>
Service: 'qmi'<br>
UUID: [d1a30bc2-f97a-6e43-bf65-c7e24fb0f0d3]:<br>
DSS payload: 0<br>
Max DSS instances: 0<br>
CIDs: msg (1)<br>
<br>
... but when I try to use qmicli with --device-open-mbim I get this...<br>
<br>
qmicli -p -d /dev/cdc-wdm0 --device-open-mbim --nas-get-signal-strength<br>
[25 Jun 2021, 10:17:27] -Warning ** [/dev/cdc-wdm0] requested MBIM<br>
mode but no MBIM QMUX support available<br>
error: couldn't open the QmiDevice: Could not create endpoint<br>
<br>
... Even though I am compiling libqmi with --enable-mbim-qmux (on OpenWrt)<br>
<br>
<br>
All the best,<br>
Nick<br>
<br>
<br>
<br>
<br>
On Fri, 25 Jun 2021 at 09:22, Bjørn Mork <<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>> wrote:<br>
><br>
> Nicholas Smith <<a href="mailto:nicholas@nbembedded.com" target="_blank">nicholas@nbembedded.com</a>> writes:<br>
><br>
> > I can confirm that the Quectel EM12-G most certainly does not play<br>
> > nice with qmi_wwan (at least on the vendor firmware versions I have<br>
> > tested, which includes several, including the latest). The module<br>
> > always inexplicably crashes after anywhere from between a couple of<br>
> > hours to a couple of days of uptime. When in MBIM mode it is stable,<br>
> > but you cannot use qmicli to get detailed NAS information, or select<br>
> > bands, etc... so you lose a huge amount of useful functionality. So,<br>
> > if I want to do anything out of the ordinary, I temporarily switch it<br>
> > into QMI mode before switching back to MBIM mode.<br>
><br>
> So it doesn't export the QMI service in MBIM mode? That's pretty<br>
> unusual for a Qualcomm based modem.<br>
><br>
> You can check this with e.g<br>
><br>
> mbimcli -d /dev/cdc-wdm0 --query-device-services<br>
><br>
> We normally expect an entry like:<br>
><br>
> Service: 'qmi'<br>
> UUID: [d1a30bc2-f97a-6e43-bf65-c7e24fb0f0d3]:<br>
> DSS payload: 0<br>
> Max DSS instances: 0<br>
> CIDs: msg (1)<br>
><br>
><br>
> This MBIM service can be used by libqmi/qmicli for full QMI access. See<br>
> the --device-open-mbim option. Actually, it defaults to autodetecting,<br>
> so accessing QMI services should just work.<br>
><br>
><br>
><br>
> Bjørn<br>
_______________________________________________<br>
libqmi-devel mailing list<br>
<a href="mailto:libqmi-devel@lists.freedesktop.org" target="_blank">libqmi-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libqmi-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With best regards,<div>Alexander</div></div></div>