<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div><div>root@EC25:~# qmicli -d /dev/cdc-wdm0 --nas-get-system-info -v<br></div><div>[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Opening device with flags 'none'...</div><div>[20 Sep 2016, 08:24:30] [Debug] QMI Device at '/dev/cdc-wdm0' ready</div><div>[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Assuming service 'nas' is supported...</div><div>[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Allocating new client ID...</div><div>[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Sent message...</div><div><<<<<< RAW:</div><div><<<<<< length = 16</div><div><<<<<< data = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03</div><div><br></div><div>[20 Sep 2016, 08:24:30] [Debug] [/dev/cdc-wdm0] Sent message (translated)...</div><div><<<<<< QMUX:</div><div><<<<<< length = 15</div><div><<<<<< flags = 0x00</div><div><<<<<< service = "ctl"</div><div><<<<<< client = 0</div><div><<<<<< QMI:</div><div><<<<<< flags = "none"</div><div><<<<<< transaction = 1</div><div><<<<<< tlv_length = 4</div><div><<<<<< message = "Allocate CID" (0x0022)</div><div><<<<<< TLV:</div><div><<<<<< type = "Service" (0x01)</div><div><<<<<< length = 1</div><div><<<<<< value = 03</div><div><<<<<< translated = nas</div><div><br></div><div>error: couldn't create client for the 'nas' service: CID allocation failed in the CTL client: Transaction timed out</div><div>root@EC25:~#</div><div><br></div><div>I have added debug in the kernel, but I don't get much data;</div><div><br></div><div><div>[ 2045.748535] qmi_wwan_manage_power: qmi_wwan 2-1.2:1.4: qmi_wwan_manage_power() pmcount=0, on=1</div><div>[ 2045.770015] wdm_write: qmi_wwan 2-1.2:1.4: Tx URB has been submitted index=4</div><div>[ 2055.862822] wdm_release: qmi_wwan 2-1.2:1.4: wdm_release: cleanup</div><div>[ 2055.871927] qmi_wwan_manage_power: qmi_wwan 2-1.2:1.4: qmi_wwan_manage_power() pmcount=1, on=0</div></div><div><br></div><div>The QMI device is found at boot;</div><div><br></div><div><div>[ 14.259944] qmi_wwan 2-1.2:1.4: cdc-wdm0: USB WDM device</div><div>[ 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</div></div><div><br></div><div><div>root@EC25:~# 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 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=option, 480M</div><div> |__ Port 2: Dev 3, If 1, Class=Vendor Specific Class, Driver=option, 480M</div><div> |__ Port 2: Dev 3, If 2, Class=Vendor Specific Class, Driver=option, 480M</div><div> |__ Port 2: Dev 3, If 3, Class=Vendor Specific Class, Driver=option, 480M</div><div> |__ Port 2: Dev 3, If 4, 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@EC25:~# </div></div><div><br></div><div><div>root@EC25:~# uname -a</div><div>Linux EC25 4.7.4-quectelv7-debug-dirty #1 SMP Tue Sep 20 07:42:57 CEST 2016 armv7l GNU/Linux</div><div>root@EC25:~#</div></div><div><br></div><div>There is a thread regarding the EC21 on <a href="https://lists.freedesktop.org/archives/modemmanager-devel/2016-September/003402.html">https://lists.freedesktop.org/archives/modemmanager-devel/2016-September/003402.html</a></div><div><br></div><div>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.</div><div><br></div><div>-Sebastian</div>
</div></div>