question about qmicli

Galo Irarrazabal girarraz at hotmail.com
Thu Oct 22 22:05:11 UTC 2020


I'm writing some questions to Aleksander in the web page https://sigquit.wordpress.com/2012/08/20/an-introduction-to-libqmi/

 i have a problem executing one especific qmi commnad inside a python script with the call
content = subprocess.run("sudo qmicli -p -d /dev/cdc-wdm0 --wds-get-packet-statistics  --device-open-sync | awk '/TX packets dropped:/,/RX packets dropped:/'", check=True, shell=True,stdout=subprocess.PIPE)

I've probe without -p and without --device-open-sync  but the problem is the same
always receive as response : error: couldn't get packet statistics: QMI protocol error (15): 'OutOfCall'

aleksander anser that the modem must be connected to receive response, but the modem is connected
with ip, sending pings to google and sending http posts to another site

but the real problem is after some minutes the response is
[22 Oct 2020, 17:16:40] -Error ** __qmi_message_ctl_sync_response_parse: assertion 'qmi_message_get_message_id (message) == QMI_MESSAGE_CTL_SYNC' failed

(qmicli:8618): GLib-GIO-CRITICAL **: 17:16:40.933: g_task_return_error: assertion 'error != NULL' failed

the command is inside a try exception block but this block the execution of next qmicli commands, and really clock the connection of the modem (cell comm)
the module user is a SIMCOM SIM7600G-H

if i execute the same qmi command in the command line every one of then intents i get the result expected. in other terminal i run a ping to google to verify the connection

how to prevent this problem? i need the params rx_dropped and tx_dropped given by this command.

another problem is for example in the execution of this qmicli command
contenido = subprocess.run("sudo qmicli -p -d /dev/cdc-wdm0 --nas-get-signal-strength --device-open-sync | awk '/RSSI:/,/SINR/'", check=True, shell=True,stdout=subprocess.PIPE)

the result is always:
qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_nas_get_signal_info_output_get_tdma_signal_strength_extended

this not make any problem with the awk filter and i can get the parameters rssi and Ecio, but how can i get no error in the execution?

thanks in advance
Galo Irarrazabal O.

[https://secure.gravatar.com/blavatar/304c183969eb52cba464a4b8b7551ea0?s=200&ts=1602824772]<https://sigquit.wordpress.com/2012/08/20/an-introduction-to-libqmi/>
An introduction to libqmi | SIGQUIT<https://sigquit.wordpress.com/2012/08/20/an-introduction-to-libqmi/>
What is QMI? QMI is a binary protocol designed to replace the AT command based communication with modems, and is available in devices with Qualcomm chipsets from multiple vendors (Novatel, Huawei, Sierra Wireless, ZTE... and of course Qualcomm itself). The protocol defines different 'services', each of them related to different actions that may be requested…
sigquit.wordpress.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20201022/52e5de28/attachment.htm>


More information about the libqmi-devel mailing list