EM7565 AT Commands

Jared Bents jared.bents at rockwellcollins.com
Fri Dec 1 19:37:53 UTC 2017


Update:

I noticed the archived conversation from last month where it was implied
that the AT commands worked after just adding the new USB ID.  I am working
with an older version of the linux kernel due to being on a qoriq processor
so I manually patched qcserial.c, usb-wwan.h, and usb_wwan.c to bring them
up to date with the mainline kernel.  I can now talk to the modem on the
ttyUSB device and AT commands are working.

On Fri, Dec 1, 2017 at 10:23 AM, Jared Bents <
jared.bents at rockwellcollins.com> wrote:

> I am attempting to replace an EM7455 with an EM7565.  I have added the new
> USB ID (1199:9091) to qmi_wwan.c and qcserial.c as well as the
> bInterfaceNumber (8) to qmi_wwan.c.  The qmicli commands appear to be
> working but when I try to use the modem port for AT commands, the port has
> no response to any key presses.  I have verified with Sierra Wireless'
> Windows Driver that the interface is at least somewhat functional by
> sending AT commands to the module and getting responses.  Has anyone
> attempted to use the EM7565 yet?  And if so, were you able to get AT
> commands working?
>
> Below is some USB interface information that I have gather.  It looks like
> the interfaces are being assigned correctly.
>
> EM7455
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=fsl-ehci/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 2, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 3, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 8, Class=, Driver=qmi_wwan, 480M
>     |__ Port 1: Dev 2, If 10, Class=, Driver=qmi_wwan, 480M
>
> EM7565
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=fsl-ehci/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 2, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 3, Class=, Driver=qcserial, 480M
>     |__ Port 1: Dev 2, If 8, Class=, Driver=qmi_wwan, 480M
>
> dmesg printout with debug prints for qcserial.c
>
> EM7455
> [  505.942433] usb 2-1: new high-speed USB device number 3 using fsl-ehci
> [  506.058709] usb 2-1: config 1 has an invalid interface number: 8 but
> max is 4
> [  506.058724] usb 2-1: config 1 has an invalid interface number: 10 but
> max is 4
> [  506.058732] usb 2-1: config 1 has no interface number 1
> [  506.058738] usb 2-1: config 1 has no interface number 4
> [  506.061174] usb 2-1: Num Interfaces = 5
> [  506.061189] usb 2-1: This Interface = 0
> [  506.061195] usb 2-1: DM/DIAG interface found
> [  506.061948] qcserial 2-1:1.0: Qualcomm USB modem converter detected
> [  506.062419] usb 2-1: Qualcomm USB modem converter now attached to
> ttyUSB0
> [  506.062654] usb 2-1: Num Interfaces = 5
> [  506.062661] usb 2-1: This Interface = 2
> [  506.062667] usb 2-1: NMEA GPS interface found
> [  506.063525] qcserial 2-1:1.2: Qualcomm USB modem converter detected
> [  506.063966] usb 2-1: Qualcomm USB modem converter now attached to
> ttyUSB1
> [  506.064196] usb 2-1: Num Interfaces = 5
> [  506.064203] usb 2-1: This Interface = 3
> [  506.064210] usb 2-1: Modem port found
> [  506.065587] qcserial 2-1:1.3: Qualcomm USB modem converter detected
> [  506.066064] usb 2-1: Qualcomm USB modem converter now attached to
> ttyUSB2
> [  506.067800] qmi_wwan 2-1:1.8: cdc-wdm0: USB WDM device
> [  506.069040] qmi_wwan 2-1:1.8 wwan0: register 'qmi_wwan' at
> usb-fsl-ehci.1-1, WWAN/QMI device, d6:a3:9c:81:d4:d2
> [  506.070176] qmi_wwan 2-1:1.10: cdc-wdm1: USB WDM device
> [  506.071021] qmi_wwan 2-1:1.10 wwan1: register 'qmi_wwan' at
> usb-fsl-ehci.1-1, WWAN/QMI device, d6:a3:9c:81:d4:d2
>
>
> EM7565
> [  506.724416] usb 1-1: new high-speed USB device number 3 using fsl-ehci
> [  506.839185] usb 1-1: config 1 has an invalid interface number: 8 but
> max is 3
> [  506.839197] usb 1-1: config 1 has no interface number 1
> [  506.841210] usb 1-1: Num Interfaces = 4
> [  506.841223] usb 1-1: This Interface = 0
> [  506.841230] usb 1-1: DM/DIAG interface found
> [  506.841587] qcserial 1-1:1.0: Qualcomm USB modem converter detected
> [  506.841841] usb 1-1: Qualcomm USB modem converter now attached to
> ttyUSB3
> [  506.842040] usb 1-1: Num Interfaces = 4
> [  506.842048] usb 1-1: This Interface = 2
> [  506.842054] usb 1-1: NMEA GPS interface found
> [  506.842511] qcserial 1-1:1.2: Qualcomm USB modem converter detected
> [  506.842733] usb 1-1: Qualcomm USB modem converter now attached to
> ttyUSB4
> [  506.842914] usb 1-1: Num Interfaces = 4
> [  506.842921] usb 1-1: This Interface = 3
> [  506.842927] usb 1-1: Modem port found
> [  506.843218] qcserial 1-1:1.3: Qualcomm USB modem converter detected
> [  506.843443] usb 1-1: Qualcomm USB modem converter now attached to
> ttyUSB5
> [  506.844336] qmi_wwan 1-1:1.8: cdc-wdm2: USB WDM device
> [  506.844892] qmi_wwan 1-1:1.8 wwan2: register 'qmi_wwan' at
> usb-fsl-ehci.0-1, WWAN/QMI device, d6:a3:9c:81:d4:d2
>
>
> Thank you,
> Jared
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20171201/8553392e/attachment-0001.html>


More information about the libqmi-devel mailing list