Bug 57627

Summary: qmicli returns error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out
Product: libqmi Reporter: Piotr <petrus007.1>
Component: libqmiAssignee: Dan Williams <dcbw>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: aleksander
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Piotr 2012-11-27 20:45:31 UTC
I’ve tried to use modules libqmi-glib and qmi4g with Huawei E398 u-1 on OpenWrt Attitude Adjustment 12.09-rc1 (r34302) – packages was provided by http://eko.one.pl for kernel: 3.3.8.

1. cdc_wdm returns errors “Ignoring extra header …”
[ 0.000000] Linux version 3.3.8 (cezary@eko.one.pl) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #31 Fri Nov 23 23:04:15 CET 2012
[ 0.000000] MyLoader: sysp=4b1bf7b5, boardp=9002c600, parts=6bde8914
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.000MHz,
Ref:40.000MHz

[ 41.120000] usb 1-1.1: new high-speed USB device number 4 using ehci-platform
[ 41.230000] option 1-1.1:1.0: GSM modem (1-port) converter detected
[ 41.240000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 41.250000] option 1-1.1:1.1: GSM modem (1-port) converter detected
[ 41.250000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 41.260000] option 1-1.1:1.2: GSM modem (1-port) converter detected
[ 41.270000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 41.270000] cdc_wdm 1-1.1:1.3: Ignoring extra header, type 15, length 13
[ 41.280000] cdc_wdm 1-1.1:1.3: Ignoring extra header, type 6, length 5
[ 41.290000] cdc_wdm 1-1.1:1.3: cdc-wdm0: USB WDM device
[ 41.310000] qmi_wwan 1-1.1:1.4: Use “cdc_wdm” for QMI interface 1-1.1:1.3
[ 41.330000] qmi_wwan 1-1.1:1.4: wwan0: register ‘qmi_wwan’ at usb-ehci-platform-1.1, QMI speaking wwan device, 00:a0:c6:00:00:00
[ 41.350000] scsi1 : usb-storage 1-1.1:1.5
[ 41.350000] scsi2 : usb-storage 1-1.1:1.6
[ 42.350000] scsi 1:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
[ 42.360000] scsi 2:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 42.380000] sd 2:0:0:0: [sda] Attached SCSI removable disk

Nov 27 20:18:14 OpenWrt kern.err kernel: [76976.170000] cdc_wdm 1-1.1:1.3: Ignoring extra header, type 15, length 13
Nov 27 20:18:14 OpenWrt kern.err kernel: [76976.170000] cdc_wdm 1-1.1:1.3: Ignoring extra header, type 6, length 5
Nov 27 20:18:14 OpenWrt kern.info kernel: [76976.180000] cdc_wdm 1-1.1:1.3: cdc-wdm0: USB WDM device
Nov 27 20:18:14 OpenWrt kern.info kernel: [76976.190000] usbcore: registered new interface driver cdc_wdm
Nov 27 20:18:14 OpenWrt kern.info kernel: [76976.260000] qmi_wwan 1-1.1:1.4: Use "cdc_wdm" for QMI interface 1-1.1:1.3
Nov 27 20:18:14 OpenWrt kern.info kernel: [76976.270000] qmi_wwan 1-1.1:1.4: wwan0: register 'qmi_wwan' at usb-ehci-platform-1.1, QMI speaking wwan device, 00:a0:c6:00:00:00
Nov 27 20:18:14 OpenWrt kern.info kernel: [76976.280000] usbcore: registered new interface driver qmi_wwan

2. qmicli returns “error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out”
root@OpenWrt:~# qmicli -v -d /dev/cdc-wdm0 --wds-start-network=  --client-no-release-cid
[01 Jan 1970, 01:45:20] [Debug] QMI Device at '/dev/cdc-wdm0' ready
[01 Jan 1970, 01:45:20] [Debug] [/dev/cdc-wdm0] Assuming service 'wds' is supported...
[01 Jan 1970, 01:45:20] [Debug] [/dev/cdc-wdm0] Allocating new client ID...
[01 Jan 1970, 01:45:20] [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:01

[01 Jan 1970, 01:45:20] [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      = 01
<<<<<<   translated = wds

error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out

The list of packages installed together with qmi4g::
Package: qmi4g
Version: 0.0.1-1
Depends: libc, kmod-usb-net-qmi-wwan, libqmi-glib
Provides:
Status: install user installed
Architecture: all
Installed-Time: 1354043894


Package: kmod-usb-net-qmi-wwan
Version: 3.3.8-1
Depends: kernel (= 3.3.8-1-3b70fc7d412617eb97c6bdc7d8fb7844), kmod-usb-net, kmod-usb-wdm
Provides:
Status: install hold installed
Architecture: ar71xx
Installed-Time: 1354043867


Package: kmod-usb-net
Version: 3.3.8-1
Depends: kernel (= 3.3.8-1-3b70fc7d412617eb97c6bdc7d8fb7844), kmod-usb-core
Provides:
Status: install hold installed
Architecture: ar71xx
Installed-Time: 1354043867


Package: kmod-usb-wdm
Version: 3.3.8-1
Depends: kernel (= 3.3.8-1-3b70fc7d412617eb97c6bdc7d8fb7844), kmod-usb-core
Provides:
Status: install hold installed
Architecture: ar71xx
Installed-Time: 1354043868


Package: libqmi-glib
Version: 1.0-1cj
Depends: libc, glib2, zlib
Provides:
Status: install ok installed
Architecture: ar71xx
Installed-Time: 1354043877


Package: glib2
Version: 2.34.3-1
Depends: libc, zlib, libpthread, libffi
Provides:
Status: install ok installed
Architecture: ar71xx
Installed-Time: 1354043893


Package: libffi
Version: 3.0.11-1
Depends: libc
Provides:
Status: install ok installed
Architecture: ar71xx
Installed-Time: 1354043894
Comment 1 Aleksander Morgado 2012-12-04 20:39:08 UTC
When you run the qmicli command, are you completely sure that there is no other qmicli command still running around? Only one qmicli process can grab the port for R/W at a given time.
Comment 2 Aleksander Morgado 2013-08-13 13:23:45 UTC
Piotr; any update?
Comment 3 Aleksander Morgado 2015-01-25 20:28:40 UTC
Closing as no further info has been provided.

Anyway, this Transaction timed out issue is very common when multiple qmicli commands are running at the same time without the qmi-proxy, as only one such qmicli is able to receive the responses.
Comment 4 surya 2016-10-26 05:22:47 UTC
Hi,
I am also facing the same issues & i make sure that there is no other qmicli commands running in the background. But still getting the issue as below.

root@phycore-ge-am335x:~# qmi-network /dev/cdc-wdm0 start
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=  --client-no-release-cid'...

error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out
error: network start failed, client not allocated
Comment 5 Aleksander Morgado 2016-10-26 08:16:47 UTC
(In reply to surya from comment #4)
> Hi,
> I am also facing the same issues & i make sure that there is no other qmicli
> commands running in the background. But still getting the issue as below.
> 
> root@phycore-ge-am335x:~# qmi-network /dev/cdc-wdm0 start
> Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network= 
> --client-no-release-cid'...
> 
> error: couldn't create client for the 'wds' service: CID allocation failed
> in the CTL client: Transaction timed out
> error: network start failed, client not allocated

What about ModemManager or qmi-proxy? Are those running at the same time you try to run qmi-network?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.