nas-get-signal-info incorrect values for NSA 5G
Hi.
I am currently using the nas-get-signal-info feature to map the coverage of a NSA 5G network and discovered that the signal info reported is not correct (given the values it looks like an overflow of a signed short?)
LTE:
RSSI: '-64 dBm'
RSRQ: '-7 dB'
RSRP: '-89 dBm'
SNR: '15.8 dB'
5G:
RSRP: '-32768 dBm'
SNR: '-3276.8 dB'
RSRQ: '-32768 dB'
And at other times it reports it correctly.
LTE:
RSSI: '-64 dBm'
RSRQ: '-7 dB'
RSRP: '-89 dBm'
SNR: '17.4 dB'
5G:
RSRP: '-106 dBm'
SNR: '5.0 dB'
RSRQ: '-12 dB'
I suspect it may be related to whether there is an ongoing data connection or not. Debug output below.
pi@gw16:~ $ sudo qmicli -d /dev/cdc-wdm0 --nas-get-signal-info --verbose
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Opening device with flags 'auto'...
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] automatically selecting QMI mode
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] created endpoint
[23 Sep 2020, 14:19:49] [Debug] QMI Device at '/dev/cdc-wdm0' ready
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Assuming service 'nas' is supported...
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Allocating new client ID...
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 16
<<<<<< data = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent generic request (translated)...
<<<<<< QMUX:
<<<<<< length = 15
<<<<<< flags = 0x00
<<<<<< service = "ctl"
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 4
<<<<<< message = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<< type = "Service" (0x01)
<<<<<< length = 1
<<<<<< value = 03
<<<<<< translated = nas
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:04
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received generic response (translated)...
<<<<<< QMUX:
<<<<<< length = 23
<<<<<< flags = 0x80
<<<<<< service = "ctl"
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 12
<<<<<< message = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
<<<<<< TLV:
<<<<<< type = "Allocation Info" (0x01)
<<<<<< length = 2
<<<<<< value = 03:04
<<<<<< translated = [ service = 'nas' cid = '4' ]
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Registered 'nas' (version unknown) client with ID '4'
[23 Sep 2020, 14:19:49] [Debug] Asynchronously getting signal info...
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 13
<<<<<< data = 01:0C:00:00:03:04:00:01:00:4F:00:00:00
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent generic request (translated)...
<<<<<< QMUX:
<<<<<< length = 12
<<<<<< flags = 0x00
<<<<<< service = "nas"
<<<<<< client = 4
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 0
<<<<<< message = "Get Signal Info" (0x004F)
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 41
<<<<<< data = 01:28:00:80:03:04:02:01:00:4F:00:1C:00:02:04:00:00:00:00:00:14:06:00:BA:F8:A0:FF:70:00:17:04:00:00:80:00:80:18:02:00:00:80
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received generic response (translated)...
<<<<<< QMUX:
<<<<<< length = 40
<<<<<< flags = 0x80
<<<<<< service = "nas"
<<<<<< client = 4
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 28
<<<<<< message = "Get Signal Info" (0x004F)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
<<<<<< TLV:
<<<<<< type = "LTE Signal Strength" (0x14)
<<<<<< length = 6
<<<<<< value = BA:F8:A0:FF:70:00
<<<<<< translated = [ rssi = '-70' rsrq = '-8' rsrp = '-96' snr = '112' ]
<<<<<< TLV:
<<<<<< type = "5G Signal Strength" (0x17)
<<<<<< length = 4
<<<<<< value = 00:80:00:80
<<<<<< translated = [ rsrp = '-32768' snr = '-32768' ]
<<<<<< TLV:
<<<<<< type = "5G Signal Strength Extended" (0x18)
<<<<<< length = 2
<<<<<< value = 00:80
<<<<<< translated = -32768
[/dev/cdc-wdm0] Successfully got signal info
LTE:
RSSI: '-70 dBm'
RSRQ: '-8 dB'
RSRP: '-96 dBm'
SNR: '11.2 dB'
5G:
RSRP: '-32768 dBm'
SNR: '-3276.8 dB'
RSRQ: '-32768 dB'
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Releasing 'nas' client with flags 'release-cid'...
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] Unregistered 'nas' client with ID '4'
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 17
<<<<<< data = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:04
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] sent generic request (translated)...
<<<<<< QMUX:
<<<<<< length = 16
<<<<<< flags = 0x00
<<<<<< service = "ctl"
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 2
<<<<<< tlv_length = 5
<<<<<< message = "Release CID" (0x0023)
<<<<<< TLV:
<<<<<< type = "Release Info" (0x01)
<<<<<< length = 2
<<<<<< value = 03:04
<<<<<< translated = [ service = 'nas' cid = '4' ]
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:80:00:00:01:02:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:04
[23 Sep 2020, 14:19:49] [Debug] [/dev/cdc-wdm0] received generic response (translated)...
<<<<<< QMUX:
<<<<<< length = 23
<<<<<< flags = 0x80
<<<<<< service = "ctl"
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 2
<<<<<< tlv_length = 12
<<<<<< message = "Release CID" (0x0023)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
<<<<<< TLV:
<<<<<< type = "Release Info" (0x01)
<<<<<< length = 2
<<<<<< value = 03:04
<<<<<< translated = [ service = 'nas' cid = '4' ]
[23 Sep 2020, 14:19:49] [Debug] Client released
[23 Sep 2020, 14:19:49] [Debug] Closed
My access to this network is limited however I will have it available again next Tuesday (29/09) if further information is needed. Thanks in advance.
Regards.
Rasmus Suhr Mogensen