Quectel EP06 Support
Reinhard Speyerer
rspmn at arcor.de
Wed Mar 27 19:05:06 UTC 2019
On Wed, Mar 27, 2019 at 04:59:49PM +0000, Paul Gildea wrote:
> Hi,
>
> I'm trying to get one of these working with libqmi and just a quick query.
> When I plug it in, the USB interfaces get enumerated and I can query with
> AT commands:
>
> [ 5011.373590] usb 2-2: new SuperSpeed USB device number 7 using xhci_hcd
> [ 5011.387064] usb 2-2: New USB device found, idVendor=2c7c, idProduct=0306
> [ 5011.387068] usb 2-2: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [ 5011.387070] usb 2-2: Product: LTE-A Module
> [ 5011.387073] usb 2-2: Manufacturer: Quectel
> [ 5011.387075] usb 2-2: SerialNumber: 0123456789ABCDEF
> [ 5011.388207] usb 2-2: Enable of device-initiated U1 failed.
> [ 5011.388433] usb 2-2: Enable of device-initiated U2 failed.
> [ 5011.388560] option 2-2:1.0: GSM modem (1-port) converter detected
> [ 5011.388724] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB3
> [ 5011.388896] option 2-2:1.1: GSM modem (1-port) converter detected
> [ 5011.389046] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB9
> [ 5011.389231] option 2-2:1.2: GSM modem (1-port) converter detected
> [ 5011.389348] usb 2-2: GSM modem (1-port) converter now attached to
> ttyUSB13
> [ 5011.389549] option 2-2:1.3: GSM modem (1-port) converter detected
> [ 5011.389663] usb 2-2: GSM modem (1-port) converter now attached to
> ttyUSB14
>
>
> However no wwan or cdc-wdm interface appears. I'm poked around and added
> the ID's to the live system and they've appeared:
>
> echo "2c7c 0306" > /sys/bus/usb/drivers/qmi_wwan/new_id
>
> [ 6526.508140] usb 2-2: Disable of device-initiated U1 failed.
> [ 6526.508474] usb 2-2: Disable of device-initiated U2 failed.
> [ 6526.510142] qmi_wwan 2-2:1.4: cdc-wdm6: USB WDM device
> [ 6526.510755] qmi_wwan 2-2:1.4 wwan6: register 'qmi_wwan' at
> usb-0000:00:14.0-2, WWAN/QMI device, 52:32:30:ea:0a:e6
> [ 6526.511242] usb 2-2: Enable of device-initiated U1 failed.
> [ 6526.511645] usb 2-2: Enable of device-initiated U2 failed.
>
>
> I could add this ID to drivers/usb/serial/qcserial.c if that is that all
> that is needed to add support for it, or would I need to modify it in a
> different way? Quectel aren't in the struct with the other modems.
> https://github.com/torvalds/linux/blob/master/drivers/usb/serial/qcserial.c
>
> At the moment my queries to the cdc-wdm are timing out, but I will try and
> build in support to see what happens, instead of doing it live.
>
> qmicli --device-open-qmi -p -d /dev/cdc-wdm6 --dms-get-operating-mode
> error: couldn't create client for the 'dms' service: CID allocation failed
> in the CTL client: Transaction timed out
>
Hi Paul,
support for the Quectel EP06 has already been added by Kristian Evensen and
a follow-up patch by Johan Hovold here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c0b91a56a2e57a5a370655b25d677ae0ebf8a2d0
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71a0483d56e784b1e11f38f10d7e22d265dbe244
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7c5cca3588545e7f255171e28e0dd6e384ebb91d
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=36cae568404a298a19a6e8a3f18641075d4cab04
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35aecc02b5b621782111f64cbb032c7f6a90bb32
Since the EP06 requires QMI_QUIRK_SET_DTR the new_id mechanism can't
be used for it. You would at least have to backport the qmi_wwan.c
changes to make the QMI interface work.
Regards,
Reinhard
More information about the libqmi-devel
mailing list