Simple QMI proxy application example.

Bjørn Mork bjorn at mork.no
Mon Oct 25 12:16:42 UTC 2021


Aleksander Morgado <aleksander at aleksander.es> writes:

> 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 been using the proxy in my own extremely hackish perl test
scripts.  This isn't something anyone should use as-is, but might serve
as an example of how to use the proxy without libqmi-glib (or even C):

https://git.mork.no/wwan.git/tree/scripts/qmi.pl#n2636

Please don't laugh at my perl code... ;-)

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

Precisely.  It's a very simple interface.

I also started on the attached implementation for uqmi a long time ago,
but never finished it...  Lost interest since it mostly makes more sense
to run a full fledged ModemManager on emebedded devices too.  Those that
are not powerful enough are just not interesting ajnyway.

But attaching as a semi-working example implementation


Bjørn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-WiP-initial-proxy-support-sort-of-working-for-MBIM.patch
Type: text/x-diff
Size: 8865 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20211025/c0005a04/attachment.patch>


More information about the libqmi-devel mailing list