libqmi / Quectel EC21/EC25
Sebastian Sjoholm
sebastian.sjoholm at gmail.com
Tue Sep 20 06:32:33 UTC 2016
Hi,
What would be best way for me to debug qmi_wwan.c to see what I am missing
regarding the QMI communication with EC25. The EC25 (as the EC21) support
does not exists in the 4.7.4 kernel, but I have added it to option.c as
well as in the qmi_wwan.c.
I have also tried to include the quirk added (in qmi_wwan.c) for EC20, but
can't really see any difference with or without it.
root at EC25:~# qmicli -d /dev/cdc-wdm0 --nas-get-system-info -v
[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Opening device with flags
'none'...
[20 Sep 2016, 08:24:30] [Debug] QMI Device at '/dev/cdc-wdm0' ready
[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Assuming service 'nas' is
supported...
[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Allocating new client ID...
[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Sent message...
<<<<<< RAW:
<<<<<< length = 16
<<<<<< data = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03
[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Sent message (translated)...
<<<<<< QMUX:
<<<<<< length = 15
<<<<<< flags = 0x00
<<<<<< service = "ctl"
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 4
<<<<<< message = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<< type = "Service" (0x01)
<<<<<< length = 1
<<<<<< value = 03
<<<<<< translated = nas
error: couldn't create client for the 'nas' service: CID allocation failed
in the CTL client: Transaction timed out
root at EC25:~#
I have added debug in the kernel, but I don't get much data;
[ 2045.748535] qmi_wwan_manage_power: qmi_wwan 2-1.2:1.4:
qmi_wwan_manage_power() pmcount=0, on=1
[ 2045.770015] wdm_write: qmi_wwan 2-1.2:1.4: Tx URB has been submitted
index=4
[ 2055.862822] wdm_release: qmi_wwan 2-1.2:1.4: wdm_release: cleanup
[ 2055.871927] qmi_wwan_manage_power: qmi_wwan 2-1.2:1.4:
qmi_wwan_manage_power() pmcount=1, on=0
The QMI device is found at boot;
[ 14.259944] qmi_wwan 2-1.2:1.4: cdc-wdm0: USB WDM device
[ 14.264015] qmi_wwan 2-1.2:1.4 wwan0: register 'qmi_wwan' at
usb-ci_hdrc.1-1.2, WWAN/QMI device, aa:2c:3e:0c:b4:81
root at EC25:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class,
Driver=option, 480M
|__ Port 2: Dev 3, If 1, Class=Vendor Specific Class,
Driver=option, 480M
|__ Port 2: Dev 3, If 2, Class=Vendor Specific Class,
Driver=option, 480M
|__ Port 2: Dev 3, If 3, Class=Vendor Specific Class,
Driver=option, 480M
|__ Port 2: Dev 3, If 4, Class=Vendor Specific Class,
Driver=qmi_wwan, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
root at EC25:~#
root at EC25:~# uname -a
Linux EC25 4.7.4-quectelv7-debug-dirty #1 SMP Tue Sep 20 07:42:57 CEST 2016
armv7l GNU/Linux
root at EC25:~#
There is a thread regarding the EC21 on
https://lists.freedesktop.org/archives/modemmanager-devel/2016-September/003402.html
But I am also interested for future reference and modems what would be the
best way to provide as much info as possible when having issues with the
QMI communication.
-Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20160920/f4631413/attachment.html>
More information about the libqmi-devel
mailing list