Odd QMI devices - ZTE MF60

Aleksander Morgado aleksander at lanedo.com
Thu Jul 5 02:54:22 PDT 2012


>> Hope this info is useful.  I am currently wondering if maybe the "set
>> instance id" is a missing magic command, explaining some of the firmware
>> crashes we see.  If so, then it should probably be included somewhere in
>> the connection setup. 
> 
> I pushed a new 'instance-id' branch to the upstream libqmi repo at fd.o
> 
> The instance ID is specified in qmi_device_new(), and can be configured
> to be sent to the device when passing QMI_DEVICE_OPEN_FLAGS_INSTANCE_ID
> in qmi_device_open().
> 
> I wonder if it's really worth to require passing an instance id in
> qmi_device_new(), or if we should just use '0' always, given that we
> don't know what it's for :-)
> 
> If you want to give it a try, qmicli now supports it as well, e.g.:
> $> sudo qmicli -d /dev/cdc-wdm0 \
>                --device-open-instance-id=5 \
>                --dms-get-manufacturer \
>                --verbose
> 

So, new approach now. Instead of a flag for qmi_device_open(), I
prepared a new qmi_device_set_instance_id() which does all the job. Much
cleaner as no need to define the instance id value when creating the
QmiDevice. qmicli also supports `--device-set-instance-id=X' as well.
It's already in libqmi git master, so you can forget about that previous
branch.

Cheers!

-- 
Aleksander




More information about the libqmi-devel mailing list