Initial QMI commands with Huawei cards
Marcel Holtmann
marcel at holtmann.org
Tue Jun 26 08:41:24 PDT 2012
Hi Aleksander,
> > so I gave up on trying to figure out what QMI_CTL_SYNC indications
> > really mean. Since they have no relation to when the device is ready to
> > respond to commands.
> >
>
> :-/ I really hoped you would end up realizing what they are for :-)
so what I am thinking is that for every service that gets started up,
the control point sends out a QMI_CTL_SYNC. But without any TLV or
service type it is useless information.
Could be also the reason why for examples the PDS service has a separate
PDS ready indication. Since I have seen issues with using the PDS
service too early. It will just fail on you.
Instead of having proper error codes for this, it seems QMI is utterly
stupid and just doesn't respond to you at all.
The only workable solution that I have found so far is to timeout and
try again. I have not worked out the exact numbers, but the Gobi 2000
cards need between 5-10 seconds before they are fully ready. And the
newer Gobi 3000 cards with more services need 10-15 seconds. The numbers
could be most likely fine tuned, but I do not care at this point.
Based on this, I assume it related to the number of services available
and when they are started.
Regards
Marcel
More information about the libqmi-devel
mailing list