From cfbd925e537b34da32af41cd79ea1c9ed34a14c1 Mon Sep 17 00:00:00 2001 From: Akash Aggarwal Date: Fri, 18 Nov 2022 17:06:09 +0530 Subject: nas: add UMTS RSCP TLV in "Signal Info" --- data/qmi-service-nas.json | 10 ++++++++++ src/qmicli/qmicli-nas.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json index c1fb621..9379995 100644 --- a/data/qmi-service-nas.json +++ b/data/qmi-service-nas.json @@ -3893,6 +3893,11 @@ "id" : "0x18", "type" : "TLV", "since" : "1.26.2", + "format" : "gint16" }, + { "name" : "WCDMA RSCP", + "id" : "0x19", + "type" : "TLV", + "since" : "1.34", "format" : "gint16" } ] }, // ********************************************************************************* @@ -4272,6 +4277,11 @@ "id" : "0x18", "type" : "TLV", "since" : "1.32", + "format" : "gint16" }, + { "name" : "WCDMA RSCP", + "id" : "0x19", + "type" : "TLV", + "since" : "1.34", "format" : "gint16" } ] }, // ********************************************************************************* diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c index e995af6..2349501 100644 --- a/src/qmicli/qmicli-nas.c +++ b/src/qmicli/qmicli-nas.c @@ -16,6 +16,7 @@ * along with this program. If not, see . * * Copyright (C) 2012-2017 Aleksander Morgado + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. */ #include "config.h" @@ -353,6 +354,7 @@ get_signal_info_ready (QmiClientNas *client, gint16 rsrp; gint16 snr; gint8 rscp; + gint16 wcdma_rscp; gint16 rsrq_5g; gint32 rssi_tdma; gint32 rscp_tdma; @@ -434,6 +436,14 @@ get_signal_info_ready (QmiClientNas *client, (-0.5)*((gdouble)ecio)); } + /* WCDMA Signal Code Power... */ + if (qmi_message_nas_get_signal_info_output_get_wcdma_rscp (output, + &wcdma_rscp, + NULL)) { + g_print ("\tRSCP: '%d dBm'\n", + (-1)*wcdma_rscp); + } + /* LTE... */ if (qmi_message_nas_get_signal_info_output_get_lte_signal_strength (output, &rssi, -- cgit v1.2.3