QMI service versions in different devices

Bjørn Mork bjorn at mork.no
Mon Jul 30 02:26:42 PDT 2012


Aleksander Morgado <aleksander at lanedo.com> writes:

> I pushed now a commit which makes it show "unknown" plus the hex value
> of the service ID whenever we find one we don't know about.
>
> http://cgit.freedesktop.org/libqmi/commit/?id=b7cc74dde39f1b3ee975499c8deabe0cc45a0112

Great!  Just FYI, I needed this:

bjorn at nemi:/usr/local/src/git/libqmi$ git diff libqmi-glib/Makefile.am 
diff --git a/libqmi-glib/Makefile.am b/libqmi-glib/Makefile.am
index 7c65916..8e958ba 100644
--- a/libqmi-glib/Makefile.am
+++ b/libqmi-glib/Makefile.am
@@ -33,7 +33,7 @@ qmi-enum-types.h:  $(ENUMS) $(top_srcdir)/build-aux/templates/qmi-enum-types-tem
                --ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_H__ */\n" \
                $(ENUMS) > $@
 
-qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c
+qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c qmi-flags64-types.h
        $(AM_V_GEN) $(GLIB_MKENUMS) \
                --fhead "#include \"qmi-enum-types.h\"\n" \
                --template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c \


to avoid this build error:


Making all in .
make[3]: Entering directory `/usr/local/src/git/libqmi/libqmi-glib'
  CC     libqmi_glib_la-qmi-enum-types.lo
In file included from qmi-enum-types.h:10:0,
                 from qmi-enum-types.c:4:
qmi-ctl.h:32:31: fatal error: qmi-flags64-types.h: No such file or directory
compilation terminated.
make[3]: *** [libqmi_glib_la-qmi-enum-types.lo] Error 1
make[3]: Leaving directory `/usr/local/src/git/libqmi/libqmi-glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/git/libqmi/libqmi-glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/git/libqmi'
make: *** [all] Error 2



I have no idea if that is the correct dependency or not...

The feature works fine:

[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1] QMI Device supports 17 services:
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    ctl (1.5)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    wds (1.12)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    dms (1.7)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    nas (1.16)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    qos (1.3)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    wms (1.4)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    pds (1.10)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    auth (1.1)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    at (1.1)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    voice (2.1)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    cat2 (2.0)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    uim (1.4)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    pbm (1.4)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    sar (1.0)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    unknown [0x1a] (1.0)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    cat (2.0)
[30 Jul 2012, 11:25:56] [Debug] [/dev/cdc-wdm1]    rms (1.0)
[30 Jul 2012, 11:25:56] [Debug] QMI Device at '/dev/cdc-wdm1' ready




Bjørn


More information about the libqmi-devel mailing list