<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
the distribution of the linux i'm using is linux raspbian buster (the last version) in a raspberry pi CM3+</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
if i specifically put the path in /usr/lib all commands work ok and withput errors.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
in respect to the use of dms-noop, i do this because are many commands with wds, dms and nas services </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
inside a while True:  (really this is a thread that call this services evere 10 seconds)</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i hace another thread that make pings to the google dns 8.8.8, and check if the connection is alive</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">if the thread lose the connection, power cycle the modem and execute a wds service for</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">connection </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"> </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
sudo  LD_LIBRARY_PATH=/usr/lib qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' --wds-start-network="apn='APN',ip-type=4" --client-no-release-cid<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
in the case of wds service,  What is the right way to get CID and  not release them. i need to execute a wds-noop first and then execute the connection?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and what happen with the CID when the connection are losed? i need to request another CID with wds-noop or i can reuse the existent ?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
thank's and best regards</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Galo</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
 </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> Aleksander Morgado <aleksander@aleksander.es><br>
<b>Sent:</b> Tuesday, October 27, 2020 1:49 AM<br>
<b>To:</b> Galo Irarrazabal <girarraz@hotmail.com><br>
<b>Cc:</b> libqmi-devel@lists.freedesktop.org <libqmi-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: Fw: question about qmicli</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hey,<br>
<br>
><br>
> I've execute : ./configure --prefix=/usr --disable-static<br>
><br>
> if i execute the command<br>
><br>
>  sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info --client-cid=1 --client-no-release-cid<br>
> [/dev/cdc-wdm0] Successfully got signal info<br>
> LTE:<br>
>         RSSI: '-75 dBm'<br>
>         RSRQ: '-14 dB'<br>
>         RSRP: '-106 dBm'<br>
>         SNR: '-0.4 dB'<br>
> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_nas_get_signal_info_output_get_tdma_signal_strength_extended<br>
><br>
> but no problem, if it works ...<br>
><br>
<br>
No, you shouldn't leave that setup like that, qmicli is still crashing.<br>
<br>
It looks like your distribution isn't using /usr/lib by default for<br>
libdir, which is why this is breaking like this. Instead of the<br>
configure with only --prefix, do the following:<br>
<br>
// clear your previous installation that you did with --prefix=/usr<br>
$ sudo make uninstall<br>
<br>
// now configure also specifying --libdir, e.g. I would bet you're<br>
using Ubuntu or similar, so:<br>
$ ./configure --prefix=/usr --disable-static --libdir=/usr/lib/x86_64-linux-gnu<br>
$ make -j8 && sudo make install<br>
<br>
// and now retry the qmicli command, e.g.<br>
$ sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info<br>
<br>
<br>
> another question is<br>
><br>
> for dms executions qmi commands<br>
><br>
> --dms-get-revision and --dms-get-ids specifically<br>
><br>
> 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 ?<br>
><br>
<br>
You could allocate a DMS client also for those, e.g. using --dms-noop<br>
instead, but well, if it's only 2 commands and you're not going to<br>
poll them over and over, you could just run them without the explicit<br>
client allocation logic.<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es">https://aleksander.es</a><br>
</div>
</span></font></div>
</div>
</body>
</html>