From beb70cb89c6665db4466f68d165a778e0f7cd5dc Mon Sep 17 00:00:00 2001 From: Walter Hagstrom Date: Wed, 17 Jun 2020 11:13:21 -0400 Subject: nas, qmicli: Added 5G signal info TLV's Added 5G signal info and 5G signal info extended TLV's, which contain RSRP, RSRQ and SNR when the 5G signal is active, if the signal is not active the value -32768 is returned. This has been tested with a Quectel RM500Q modem connected to a 5G Amari callbox in 5G NSA mode, the values returned by the TLV's where verified against the AT+ENG="servingcell" command. > qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info [/dev/cdc-wdm0] Successfully got signal info LTE: RSSI: '-47 dBm' RSRQ: '-5 dB' RSRP: '-70 dBm' SNR: '30.0 dB' 5G: RSRP: '-75 dBm' SNR: '18.5 dB' RSRQ: '-11 dB' >mmcli -m 0 --command=+qeng=\"servingcell\" response: '+QENG: "servingcell","NOCONN" +QENG: "LTE","FDD",1,01,1A2D001,1,1575,3,3,3,1,-70,-9,-46,25,- +QENG:"NR5G-NSA",1,01,500,-75,180,-11' (cherry picked from commit 0137a0c4c466c4e1dd18b30bb3fb57a1a9926aac) --- data/qmi-service-nas.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'data/qmi-service-nas.json') diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json index 60d7d28..b490a4d 100644 --- a/data/qmi-service-nas.json +++ b/data/qmi-service-nas.json @@ -3263,7 +3263,34 @@ "id" : "0x15", "type" : "TLV", "since" : "1.0", - "format" : "gint8" } ] }, + "format" : "gint8" } , + { "name" : "TDMA Signal Strength Extended", + "id" : "0x16", + "type" : "TLV", + "since" : "1.28", + "format" : "sequence", + "contents" : [ { "name" : "RSSI", + "format" : "gint32" }, + { "name" : "RSCP", + "format" : "gint32" }, + { "name" : "ECIO", + "format" : "gint32" }, + { "name" : "SINR", + "format" : "gint32" } ] }, + { "name" : "5G Signal Strength", + "id" : "0x17", + "type" : "TLV", + "since" : "1.28", + "format" : "sequence", + "contents" : [ { "name" : "RSRP", + "format" : "gint16" }, + { "name" : "SNR", + "format" : "gint16" } ] }, + { "name" : "5G Signal Strength Extended", + "id" : "0x18", + "type" : "TLV", + "since" : "1.28", + "format" : "gint16" } ] }, // ********************************************************************************* { "name" : "Config Signal Info", -- cgit v1.2.3