Simple QMI proxy application example.

Aleksander Morgado aleksander at aleksander.es
Mon Oct 25 10:58:48 UTC 2021


Hey Christian,

>
> Looking for a simple QMI proxy application example.
> Ideally as few external dependencies as possible.
>
> Afaiu the proxy was constructed for sharing with all types of
> applications. So if the example makes as few assumptions about existing
> libraries, event driven constructions and dependencies as possible, the
> better.
>

So far, I believe all the applications using the qmi-proxy are using
it via libqmi-glib (either as a C program linking to the library
directly, or as python programs using the library via GObject
introspection), so all based on glib2.

If you're looking for a "raw" program that uses the qmi-proxy
connection directly without using libqmi-glib, I'm not sure there is
any out there yet.

Shouldn't be too difficult to setup one though; the qmi-proxy just
listens on an abstract unix socket (:qmi-proxy) and then relies on a
custom operation in the CTL service named "Internal Proxy Open", with
command ID 0xFF00, and which receives as input a TLV with id 0x01
formatted as a string and including the device path to open. After
that, it's all plain QMI back and forth.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list