Fw: question about qmicli

Aleksander Morgado aleksander at aleksander.es
Tue Oct 27 08:49:55 UTC 2020


Hey,

>
> I've execute : ./configure --prefix=/usr --disable-static
>
> if i execute the command
>
>  sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info --client-cid=1 --client-no-release-cid
> [/dev/cdc-wdm0] Successfully got signal info
> LTE:
>         RSSI: '-75 dBm'
>         RSRQ: '-14 dB'
>         RSRP: '-106 dBm'
>         SNR: '-0.4 dB'
> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_nas_get_signal_info_output_get_tdma_signal_strength_extended
>
> but no problem, if it works ...
>

No, you shouldn't leave that setup like that, qmicli is still crashing.

It looks like your distribution isn't using /usr/lib by default for
libdir, which is why this is breaking like this. Instead of the
configure with only --prefix, do the following:

// clear your previous installation that you did with --prefix=/usr
$ sudo make uninstall

// now configure also specifying --libdir, e.g. I would bet you're
using Ubuntu or similar, so:
$ ./configure --prefix=/usr --disable-static --libdir=/usr/lib/x86_64-linux-gnu
$ make -j8 && sudo make install

// and now retry the qmicli command, e.g.
$ sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info


> another question is
>
> for dms executions qmi commands
>
> --dms-get-revision and --dms-get-ids specifically
>
> i need a cid to execute too?  ie execute a similar command "sudo qmicli -d /dev/cdc-wdm0 -p --nas-noop --client-no-release-cid" to get cid and then use the cid in te commnad inside the loop ?
>

You could allocate a DMS client also for those, e.g. using --dms-noop
instead, but well, if it's only 2 commands and you're not going to
poll them over and over, you could just run them without the explicit
client allocation logic.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list