<div dir="ltr">Hi,<div><br></div><div>Here is some printouts from EM7565 that might be of interest. The addition in qcserial/qmi_wwan was enough, but I will do some more testing before I settle for the changes (and post them here).</div><div><br></div><div>As default it shows only one ethernet interface, but there is a mismatch between the USB configuration which is 50D and the interfaces available. I will test to change these and see if has any effect. Still, it looks like default, but not according to USBCOMP. I check further.</div><div><div><br></div><div>at+cgmm</div><div>EM7565</div><div><br></div><div>OK</div><div><br></div></div><div><div>AT!USBCOMP?</div><div>Config Index: 1</div><div>Config Type:  3 (Generic)</div><div>Interface bitmask: 0000050D (diag,nmea,modem,rmnet0,rmnet1) </div><div><br></div><div>OK</div><div>AT!USBCOMP=?</div><div>!USBCOMP: </div><div>AT!USBCOMP=<Config Index>,<Config Type>,<Interface bitmask></div><div>  <Config Index>      - configuration index to which the composition applies, should be 1</div><div><br></div><div>  <Config Type>       - 1:MBIM USBIF, 2:PCIE USBIF, 3:Legacy-Generic, 4:RNDIS</div><div><br></div><div>  <Interface bitmask> - DIAG     - 0x00000001,</div><div>                        NMEA     - 0x00000004,</div><div>                        MODEM    - 0x00000008,</div><div>                        RMNET0   - 0x00000100,</div><div>                        RMNET1   - 0x00000400,</div><div>                        MBIM     - 0x00001000,</div><div>  e.g.</div><div>  10D  - diag, nmea, modem, rmnet interfaces enabled</div><div>  1009 - diag, modem, mbim interfaces enabled</div><div><br></div><div>  The default configuration is:</div><div>  at!usbcomp=1,3,10F</div><div><br></div><div>OK</div><div><br></div><div>root@SBC-121:~# lsusb -t</div><div>/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M</div><div>    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M</div><div>        |__ Port 3: Dev 7, If 0, Class=Vendor Specific Class, Driver=qcserial, 480M</div><div>        |__ Port 3: Dev 7, If 2, Class=Vendor Specific Class, Driver=qcserial, 480M</div><div>        |__ Port 3: Dev 7, If 3, Class=Vendor Specific Class, Driver=qcserial, 480M</div><div>        |__ Port 3: Dev 7, If 8, Class=Vendor Specific Class, Driver=qmi_wwan, 480M</div><div>/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M</div><div>root@SBC-121:~#</div><div><br></div><div>[10848.564805] usb 2-1.3: new high-speed USB device number 7 using ci_hdrc</div><div>[10848.715709] usb 2-1.3: config 1 has an invalid interface number: 8 but max is 3</div><div>[10848.715731] usb 2-1.3: config 1 has no interface number 1</div><div>[10848.809963] usbcore: registered new interface driver usbserial</div><div>[10848.810103] usbcore: registered new interface driver usbserial_generic</div><div>[10848.819141] usbserial: USB Serial support registered for generic</div><div>[10848.836865] usbcore: registered new interface driver qcserial</div><div>[10848.836999] usbserial: USB Serial support registered for Qualcomm USB modem</div><div>[10848.856466] usbcore: registered new interface driver cdc_wdm</div><div>[10848.856620] qcserial 2-1.3:1.0: Qualcomm USB modem converter detected</div><div>[10848.857303] usb 2-1.3: Qualcomm USB modem converter now attached to ttyUSB0</div><div>[10848.860395] qcserial 2-1.3:1.2: Qualcomm USB modem converter detected</div><div>[10848.863448] usb 2-1.3: Qualcomm USB modem converter now attached to ttyUSB1</div><div>[10848.879937] qcserial 2-1.3:1.3: Qualcomm USB modem converter detected</div><div>[10848.880268] usb 2-1.3: Qualcomm USB modem converter now attached to ttyUSB2</div><div>[10848.884589] qmi_wwan 2-1.3:1.8: cdc-wdm0: USB WDM device</div><div>[10848.885800] qmi_wwan 2-1.3:1.8 wwan0: register 'qmi_wwan' at usb-ci_hdrc.1-1.3, WWAN/QMI device, 9a:83:6a:a8:d9:2e</div><div>[10848.889188] usbcore: registered new interface driver qmi_wwan</div><div><br></div></div><div>-Sebastian</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 11:03 AM, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Great.  Please do.  I'll leave it to you then.<br>
<br>
Please note that this modem should be added to the "qcserial" driver and<br>
not to "option".  It appears to use the same function layout as all<br>
other modern Sierra Wireless modems.<br>
<br>
One extra item to check out: Can it be configured to expose addional<br>
QMI/RMNET functions on interface number 10 and possibly 11?  I guess it<br>
might not, if they decided to use the new QMI muxing functionality<br>
instead. But this need verification<br>
<br>
<br>
Bjørn<br>
<div><div class="h5"><br>
Sebastian Sjoholm <<a href="mailto:sebastian.sjoholm@gmail.com">sebastian.sjoholm@gmail.com</a>> writes:<br>
<br>
> Hi,<br>
><br>
> I should receive EM7565 end of this week, if I am lucky. And since I am<br>
> starting be on roll with this patching (or soon), I could do this one as<br>
> well. If there is no critical rush on it, of course.<br>
><br>
> -Sebastian<br>
><br>
> On Mon, Nov 20, 2017 at 10:50 AM, dailijin <<a href="mailto:dailijin126@126.com">dailijin126@126.com</a>> wrote:<br>
><br>
>><br>
>> Hi Bjorn,<br>
>><br>
>> I don't know how to commit the patch. so  need you  do that.<br>
>><br>
>> The modem information as below :<br>
>><br>
>> [   11.420430] usb 1-5.6: new high-speed USB device number 9 using xhci_hcd<br>
>> [   11.513262] usb 1-5.6: config 1 has an invalid interface number: 8 but<br>
>> max is 3<br>
>> [   11.513265] usb 1-5.6: config 1 has no interface number 1<br>
>> [   11.514059] usb 1-5.6: New USB device found, idVendor=1199,<br>
>> idProduct=9091<br>
>> [   11.514061] usb 1-5.6: New USB device strings: Mfr=1, Product=2,<br>
>> SerialNumber=3<br>
>> [   11.514062] usb 1-5.6: Product: Sierra Wireless EM7565 Qualcomm®<br>
>> Snapdragon™ X16 LTE-A<br>
>> [   11.514063] usb 1-5.6: Manufacturer: Sierra Wireless, Incorporated<br>
>> [   11.514064] usb 1-5.6: SerialNumber: dbb8769f<br>
>> [   11.516208] qmi_wwan 1-5.6:1.8: cdc-wdm1: USB WDM device<br>
>> [   11.516330] qmi_wwan 1-5.6:1.8 wwan0: register 'qmi_wwan' at<br>
>> usb-0000:00:14.0-5.6, WWAN/QMI device, e2:e8:55:d3:8a:cc<br>
>> [   11.520855] GobiSerial 1-5.6:1.0: GobiSerial converter detected<br>
>> [   11.520913] usb 1-5.6: GobiSerial converter now attached to ttyUSB1<br>
>> [   11.521378] GobiSerial 1-5.6:1.2: GobiSerial converter detected<br>
>> [   11.521420] usb 1-5.6: GobiSerial converter now attached to ttyUSB2<br>
>> [   11.521974] GobiSerial 1-5.6:1.3: GobiSerial converter detected<br>
>> [   11.522026] usb 1-5.6: GobiSerial converter now attached to ttyUSB3<br>
>><br>
>> Now only ttyUSB3 can respond AT command, should be modem port. not sure<br>
>> the other two serial is NMEA port or DM port<br>
>><br>
>><br>
>> --<br>
</div></div>>> *Best Regards,*<br>
>> *Dai,Lijin*<br>
<div class="HOEnZb"><div class="h5">>><br>
>><br>
>> 在 2017-11-20 17:34:12,"Bjørn Mork" <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>> 写道:<br>
>> >Great!  Thanks.  Will you submit a patch, or should I?  How about the<br>
>> >serial functions? Er they mapped similar to previous Sierra modems<br>
>> >(0 - diag, 2 - nmea, 3 - modem)?  If so, then the ID should also be<br>
>> >added as DEVICE_SWI to qcserial.<br>
>> ><br>
>> ><br>
>> >Bjørn<br>
>> ><br>
>> >dailijin  <<a href="mailto:dailijin126@126.com">dailijin126@126.com</a>> writes:<br>
>> ><br>
>> >> Hi Bjorn,<br>
>> >><br>
>> >><br>
>> >> Only update investigation result.<br>
>> >><br>
>> >><br>
>> >> After add 1199:9091 into qmi_wwan,  the modem will create one wwan interface and one cdc-wdmx interface. then I can make it work with RAW-IP mode.<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >><br>
>> >> Best Regards,<br>
>> >> Dai,Lijin<br>
>> >><br>
>> >><br>
>> >><br>
>> >> At 2017-11-14 22:27:34, "Bjørn Mork" <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>> wrote:<br>
>> >>>dailijin  <<a href="mailto:dailijin126@126.com">dailijin126@126.com</a>> writes:<br>
>> >>><br>
>> >>>> I just tested GobiNet driver for the modem, seems only the latest<br>
>> >>>> GobiNet driver can support the modem. so not sure whether also need<br>
>> >>>> new qmi_wwan driver to support it. the modem pid:vid is 1199:9091<br>
>> >>>> which is not included in qmi_wwan driver now.<br>
>> >>>><br>
>> >>>><br>
>> >>>> I have no environment now. will update my investigation result when I<br>
>> >>>> have the modem again.<br>
>> >>><br>
>> >>>Looking forward to that.  Please post as much details as you can about<br>
>> >>>the modem and testing. I guess it will take some time before this modem<br>
>> >>>is generally available, based on the MC/EM7455 experiences.<br>
>> >>><br>
>> >>>Adding a new ID to qmi_wwan should be no problem if you are able to<br>
>> >>>build GobiNet.  It's also possible to test the modem by adding the ID<br>
>> >>>dynamically, using the new_id attribute.  But then you have to take<br>
>> >>>special care to make sure only the QMI interface(s) are bound to the<br>
>> >>>qmi_wwan driver.<br>
>> >>><br>
>> >>>If you can do any testing in MBIM mode, then those results would also be<br>
>> >>>interesting.  This should just work without any driver or userspace<br>
>> >>>changes.  In theory...<br>
>> >>><br>
>> >>><br>
>> >>>Bjørn<br>
>> >>>___________________________<wbr>____________________<br>
>> >>>libqmi-devel mailing list<br>
>> >>><a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.<wbr>freedesktop.org</a><br>
>> >>><a href="https://lists.freedesktop.org/mailman/listinfo/libqmi-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.<wbr>org/mailman/listinfo/libqmi-<wbr>devel</a><br>
>> >_____________________________<wbr>__________________<br>
>> >libqmi-devel mailing list<br>
>> ><a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.<wbr>freedesktop.org</a><br>
>> ><a href="https://lists.freedesktop.org/mailman/listinfo/libqmi-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.<wbr>org/mailman/listinfo/libqmi-<wbr>devel</a><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> libqmi-devel mailing list<br>
>> <a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.<wbr>freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/libqmi-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/libqmi-devel</a><br>
>><br>
>><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small">Sebastian Sjöholm</span><br style="font-size:small"><br style="font-size:small"><span style="font-size:small">Simborgarvägen 116</span><br style="font-size:small"><span style="font-size:small">SE-18439 Åkersberga</span><br style="font-size:small"><span style="font-size:small">Sverige</span><br style="font-size:small"><br style="font-size:small"><span style="font-size:small">Mobile : +46 76 335 0667</span><br style="font-size:small"><span style="font-size:small">Email : </span><a href="mailto:sebastian.sjoholm@gmail.com" style="color:rgb(17,85,204);font-size:small" target="_blank">sebastian.sjoholm@gmail.com</a><br style="font-size:small"><span style="font-size:small">Skype : ssjoholm</span><br></div></div></div>
</div>