Creating multiple clients with one QMI dev
Aleksander Morgado
aleksandermj at chromium.org
Tue Dec 6 13:13:38 UTC 2022
Hey
>
> Is it allowed to create one QMI device but have multiple clients?
>
> In other words, is this kinda code flow allowed with libqmi?
>
> qmi_device_new()
> qmi_device_open()
> qmi_device_allocate_client(dev, QMI_SERVICE_DMS, ....)
>
> qmi_client_dms_swi_get_current_firmware
> qmi_client_dms_get_operating_mode
>
> qmi_device_allocate_client(dev, QMI_SERVICE_UIM, ....)
> qmi_device_allocate_client(dev, QMI_SERVICE_WDS, ....)
>
Of course it is yes, that is what ModemManager does really.
You can even have different clients for the same service (e.g. more
than one QmiClientWds) created from the same QmiDevice.
--
Aleksander
More information about the libqmi-devel
mailing list