Initial QMI commands with Huawei cards
Marcel Holtmann
marcel at holtmann.org
Wed Jun 20 20:39:52 PDT 2012
Hello,
I am testing QMI on various Huawei cards and I have a problem when
sending the first QMI command to early. It never gets answered.
Either we have to withhold the POLLOUT from the kernel until the device
is really ready. Or it has to do with QMI_CTL_SYNC command/indication,
but I have no idea what it is suppose to do. On the Gobi 2000 cards it
is not even supported.
ofonod[15847]: plugins/gobi.c:gobi_probe() 0x14e2820
ofonod[15847]: plugins/gobi.c:gobi_enable() 0x14e2820
ofonod[15847]: QMI: > 01 0b 00 00 00 00 00 01 21 00 00 00 ........!...
ofonod[15847]: QMI: CTL_req msg=33 len=0 [client=0,type=0,tid=1,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: plugins/gobi.c:discover_cb()
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
ofonod[15847]: QMI: < 01 0b 00 80 00 00 02 00 27 00 00 00 ........'...
ofonod[15847]: QMI: CTL_ind msg=39 len=0 [client=0,type=2,tid=0,len=11]
When sending QMI_CTL_GET_VERSION_INFO too early it does not get
answered. I let the command timeout after 8 seconds right now, but the
QMI_CTL_SYNC indications keep coming.
I tried to just wait for the first QMI_CTL_SYNC indication, but without
sending any command, the device is not sending QMI_CTL_SYNC either.
Any ideas?
Regards
Marcel
More information about the libqmi-devel
mailing list