Simple QMI proxy application example.

Christian Melki christian.melki at t2data.com
Mon Oct 25 11:52:33 UTC 2021


On 10/25/21 12:58 PM, Aleksander Morgado wrote:
> 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.

I have noticed the lack of such programs. But a raw libqmi-proxy-usage 
example would be an excellent thing.

> 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.
> 

Doesn't sound overly complex, but hmm. An example would be a good 
starting point. :)

Regards,
Christian


More information about the libqmi-devel mailing list