<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hello Paul,<div><br></div><div>Yes, sure, I have seen such behavior.</div><div>Check out: <a href="https://osmocom.org/projects/quectel-modems/wiki">https://osmocom.org/projects/quectel-modems/wiki</a></div><div><br></div><div><br></div><div>Cheers,</div><div>Domi<br><div><br>2018. szept. 26. dátummal, 17:04 időpontban Paul Gildea <<a href="mailto:gildeap@tcd.ie">gildeap@tcd.ie</a>> írta:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I've patched my 4.7.8 kernel with the patch above, referenced by Aleksander, and now I get somewhat expected and somewhat unexpected behaviour.<div>Firstly, the modem at times does appear and a wwan and cdc-wdm interface is created. The cdc-wdm can be queried with libqmi successfully.</div><div><br></div><div><br></div><div><div><font face="monospace, monospace">qmicli --device-open-qmi -p -d /dev/cdc-wdm0 --dms-get-operating-mode                     </font></div><div><font face="monospace, monospace">[/dev/cdc-wdm0] Operating mode retrieved:                                                            </font></div><div><font face="monospace, monospace">        Mode: 'online'                                                                               </font></div><div><font face="monospace, monospace">        HW restricted: 'no'  </font></div></div><div><br></div><div>The first issue is that no USB interfaces are enumerated, and I expect the usual three should be:</div><div><br></div><div><div><font face="monospace, monospace">[  236.545123] usb 3-4: new high-speed USB device number 12 using xhci_hcd    </font></div><div><font face="monospace, monospace">[  236.713281] usb 3-4: config 1 has an invalid interface number: 8 but max is 3</font></div><div><font face="monospace, monospace">[  236.713285] usb 3-4: config 1 has no interface number 1                                           </font></div><div><font face="monospace, monospace">[  236.715902] usb 3-4: New USB device found, idVendor=1199, idProduct=9091              </font></div><div><font face="monospace, monospace">[  236.715906] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3</font></div><div><font face="monospace, monospace">[  236.715909] usb 3-4: Product: Sierra Wireless EM7565 Qualcomm\xffffffc2\xffffffae Snapdragon\xffffffe2\xffffff84\xffffffa2 X16 LTE-A</font></div><div><font face="monospace, monospace">[  236.715911] usb 3-4: Manufacturer: Sierra Wireless, Incorporated                                  </font></div><div><font face="monospace, monospace">[  236.715912] usb 3-4: SerialNumber: d470b623                                </font></div><div><font face="monospace, monospace">[  236.725823] qmi_wwan 3-4:1.8: cdc-wdm0: USB WDM device                                     </font></div><div><font face="monospace, monospace">[  236.726017] qmi_wwan 3-4:1.8 wwan0: register 'qmi_wwan' at usb-0000:06:00.0-4, WWAN/QMI device, 1e:3c:de:67:26:b1</font></div></div><div><br></div><div>Second issue is that the modem sometimes does not come up at all, instead it appears a s a google/android device, this is what is shown:</div><div><br></div><div><div><font face="monospace, monospace">[   18.565516] usb 3-4: new high-speed USB device number 6 using xhci_hcd     </font></div><div><font face="monospace, monospace">[   18.684849] usb 3-4: New USB device found, idVendor=18d1, idProduct=d00d      </font></div><div><font face="monospace, monospace">[   18.684852] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3</font></div><div><font face="monospace, monospace">[   18.684855] usb 3-4: Product: Android                                      </font></div><div><font face="monospace, monospace">[   18.684857] usb 3-4: Manufacturer: Google                                     </font></div><div><font face="monospace, monospace">[   18.684858] usb 3-4: SerialNumber: d470b623                                </font></div><div><font face="monospace, monospace">[   18.919606] usb 3-4: USB disconnect, device number 6                       </font></div><div><font face="monospace, monospace">[   20.523473] usb 3-4: new high-speed USB device number 7 using xhci_hcd        </font></div><div><font face="monospace, monospace">[   20.642849] usb 3-4: New USB device found, idVendor=18d1, idProduct=d00d   </font></div><div><font face="monospace, monospace">[   20.642853] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3</font></div><div><font face="monospace, monospace">[   20.642856] usb 3-4: Product: Android                                                     </font></div><div><font face="monospace, monospace">[   20.642858] usb 3-4: Manufacturer: Google                                </font></div><div><font face="monospace, monospace">[   20.642859] usb 3-4: SerialNumber: d470b623  </font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Anybody seen this or any ideas?</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">--</font></div><div><font face="monospace, monospace">Paul</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 25 Sep 2018 at 12:19, Paul Gildea <<a href="mailto:gildeap@tcd.ie">gildeap@tcd.ie</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">I tried that thanks, this is what I got:<div><br></div><div><br></div><div><div><font face="monospace, monospace">[68728.191271] qmi_wwan: probe of 1-4:1.0 failed with error -22               </font></div><div><font face="monospace, monospace">[68728.191290] qmi_wwan 1-4:1.2: bogus CDC Union: master=0, slave=0         </font></div><div><font face="monospace, monospace">[68728.191982] qmi_wwan 1-4:1.2: cdc-wdm0: USB WDM device</font></div><div><font face="monospace, monospace">[68728.192178] qmi_wwan 1-4:1.2 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6</font></div><div><font face="monospace, monospace">[68728.192198] qmi_wwan 1-4:1.3: bogus CDC Union: master=0, slave=0                       </font></div><div><font face="monospace, monospace">[68728.192676] qmi_wwan 1-4:1.3: cdc-wdm1: USB WDM device                  </font></div><div><font face="monospace, monospace">[68728.192872] qmi_wwan 1-4:1.3 wwan1: register 'qmi_wwan' at usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6</font></div><div><font face="monospace, monospace">[68728.193522] qmi_wwan 1-4:1.8: cdc-wdm2: USB WDM device          </font></div><div><font face="monospace, monospace">[68728.193708] qmi_wwan 1-4:1.8 wwan2: register 'qmi_wwan' at usb-0000:00:14.0-4, WWAN/QMI device, 2a:35:d7:51:79:b6</font></div></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 September 2018 at 19:52, 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">Hey,<br>
<br>
>>> > [   36.007167] usb 3-4: new high-speed USB device number 11 using xhci_hcd<br>
<span>>>> > [   36.175364] usb 3-4: config 1 has an invalid interface number: 8 but max is 3<br>
>>> > [   36.175368] usb 3-4: config 1 has no interface number 1<br>
>>> > [   36.177987] usb 3-4: New USB device found, idVendor=1199, idProduct=9091<br>
>>> > [   36.177991] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3<br>
>>> > [   36.177993] usb 3-4: Product: Sierra Wireless EM7565 Qualcomm\xffffffc2\xffffffae Snapdragon\xffffffe2\xffffff84\xffffffa2 X16 LTE-A<br>
>>> > [   36.177995] usb 3-4: Manufacturer: Sierra Wireless, Incorporated<br>
>>> > [   36.177997] usb 3-4: SerialNumber: d470b623<br>
>>> ><br>
>>> ><br>
>>> > I had a look through the archive for mentions of EM7565 and I saw some talk of patches to support it but nothing solid about what was added or if anything was, some stuff about GPS and also qmi-firmware-update and so on. At this stage do I just need to patch the vendor and product ID's in some files for this modem to be functional?<br>
>>> ><br>
>>><br>
>>> What kernel version are you using? The necessary support in the kernel<br>
>>> should be available since v4.15 (commit<br>
>>> aceef61ee56898cfa7b6960fb60b9326c3860441).<br>
>>><br>
<br>
</span>Try to insert the id in runtime:<br>
# echo "1199 9091" > /sys/bus/usb/drivers/qmi_wwan/new_id<br>
<span class="m_8878154314214254934HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>
</blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>libqmi-devel mailing list</span><br><span><a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a></span><br><span><a href="https://lists.freedesktop.org/mailman/listinfo/libqmi-devel">https://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a></span><br></div></blockquote></div></body></html>