qmicli / fn980 / slow response without proxy

Sebastian Sjoholm sebastian.sjoholm at gmail.com
Thu Sep 9 05:19:56 UTC 2021


Hi,

Using FN980 with MHI/PCI on aarch64 system with latest qmicli 1.30.2.
(kernel 5.14.0)

If I run "qmicli -d /dev/wwan0qmi0 --nas-get-serving-system" it will take
almost 1 minute to finish, it will printout the result, but then wait for
1min before returning the prompt, but if I add the "--verbose" then it will
finish instantly, also if using "-p" it will finish instantly.

I guess the normal operation should use a proxy, but thought to bring up
this delay anyway.

No modemmanager installed or other processes that are using QMI.

Summary:
time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
real 0m0.146s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
real 0m0.138s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
real 0m0.133s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose -p
real 0m0.240s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
real 1m0.250s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
real 0m0.134s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
real 1m1.290s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system -p
real 0m0.119s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system -p --verbose
real 0m0.123s

time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
real 1m0.946s

Complete log below.

Regards,
Sebastian

[root at ten64-3-fn980 ~] 2021-09-09 05:05:32
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Opening device with flags
'auto'...
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:05:37] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:05:37] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:37] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:37] [Debug] Client released
[09 Sep 2021, 05:05:37] [Debug] Closed

real 0m0.146s
user 0m0.010s
sys 0m0.005s
[root at ten64-3-fn980 ~] 2021-09-09 05:05:37
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] Opening device with flags
'auto'...
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:05:40] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:05:40] [Debug] [/dev/wwan0qmi0] 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

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:05:41] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:41] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:41] [Debug] Client released
[09 Sep 2021, 05:05:41] [Debug] Closed

real 0m0.138s
user 0m0.008s
sys 0m0.007s
[root at ten64-3-fn980 ~] 2021-09-09 05:05:41
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] Opening device with flags
'auto'...
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:05:44] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:05:44] [Debug] [/dev/wwan0qmi0] 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

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:05:45] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:05:45] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:45] [Debug] Client released
[09 Sep 2021, 05:05:45] [Debug] Closed

real 0m0.133s
user 0m0.004s
sys 0m0.011s
[root at ten64-3-fn980 ~] 2021-09-09 05:05:45
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose -p
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Opening device with flags
'proxy, auto'...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:05:47] [Debug] cannot connect to proxy: Could not connect:
Connection refused
[09 Sep 2021, 05:05:47] [Debug] spawning new qmi-proxy (try 1)...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 29
<<<<<<   data   =
01:1C:00:00:00:00:00:01:00:FF:11:00:01:0E:00:2F:64:65:76:2F:77:77:61:6E:30:71:6D:69:30

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 28
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 17
<<<<<<   message     = "Internal Proxy Open" (0xFF00)
<<<<<< TLV:
<<<<<<   type       = "Device Path" (0x01)
<<<<<<   length     = 14
<<<<<<   value      = 2F:64:65:76:2F:77:77:61:6E:30:71:6D:69:30
<<<<<<   translated = /dev/wwan0qmi0

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 19
<<<<<<   data   = 01:12:00:80:00:00:01:01:00:FF:07:00:02:04:00:00:00:00:00

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 18
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 7
<<<<<<   message     = "Internal Proxy Open" (0xFF00)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS

[09 Sep 2021, 05:05:47] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:02:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 2
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 03
<<<<<<   translated = nas

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 24
<<<<<<   data   =
01:17:00:80:00:00:01:02:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:03

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 23
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 2
<<<<<<   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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:05:47] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:03:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 16
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 3
<<<<<<   tlv_length  = 5
<<<<<<   message     = "Release CID" (0x0023)
<<<<<< TLV:
<<<<<<   type       = "Release Info" (0x01)
<<<<<<   length     = 2
<<<<<<   value      = 03:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 24
<<<<<<   data   =
01:17:00:80:00:00:01:03:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:03

[09 Sep 2021, 05:05:47] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 23
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 3
<<<<<<   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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:05:47] [Debug] Client released
[09 Sep 2021, 05:05:47] [Debug] Closed

real 0m0.240s
user 0m0.016s
sys 0m0.002s
[root at ten64-3-fn980 ~] 2021-09-09 05:05:47
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'

real 1m0.250s
user 0m0.017s
sys 0m0.012s
[root at ten64-3-fn980 ~] 2021-09-09 05:06:51
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system --verbose
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Opening device with flags
'auto'...
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:07:26] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:07:26] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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:03

[09 Sep 2021, 05:07:26] [Debug] [/dev/wwan0qmi0] 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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:07:26] [Debug] Client released
[09 Sep 2021, 05:07:26] [Debug] Closed

real 0m0.134s
user 0m0.009s
sys 0m0.005s
[root at ten64-3-fn980 ~] 2021-09-09 05:07:26
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'

real 1m1.290s
user 0m0.017s
sys 0m0.012s
[root at ten64-3-fn980 ~] 2021-09-09 05:08:31
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system -p
[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'

real 0m0.119s
user 0m0.007s
sys 0m0.007s
[root at ten64-3-fn980 ~] 2021-09-09 05:08:57
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system -p --verbose
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Opening device with flags
'proxy, auto'...
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] automatically selecting
QMI mode
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] created endpoint
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 29
<<<<<<   data   =
01:1C:00:00:00:00:00:01:00:FF:11:00:01:0E:00:2F:64:65:76:2F:77:77:61:6E:30:71:6D:69:30

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 28
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 17
<<<<<<   message     = "Internal Proxy Open" (0xFF00)
<<<<<< TLV:
<<<<<<   type       = "Device Path" (0x01)
<<<<<<   length     = 14
<<<<<<   value      = 2F:64:65:76:2F:77:77:61:6E:30:71:6D:69:30
<<<<<<   translated = /dev/wwan0qmi0

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 19
<<<<<<   data   = 01:12:00:80:00:00:01:01:00:FF:07:00:02:04:00:00:00:00:00

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 18
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 7
<<<<<<   message     = "Internal Proxy Open" (0xFF00)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS

[09 Sep 2021, 05:09:02] [Debug] QMI Device at '/dev/wwan0qmi0' ready
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Assuming service 'nas' is
supported...
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Allocating new client ID...
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:02:22:00:04:00:01:01:00:03

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 2
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 03
<<<<<<   translated = nas

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 24
<<<<<<   data   =
01:17:00:80:00:00:01:02:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:03

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 23
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 2
<<<<<<   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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Registered 'nas' (version
unknown) client with ID '3'
[09 Sep 2021, 05:09:02] [Debug] Asynchronously getting serving system...
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:01:00:24:00:00:00

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Serving System" (0x0024)

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 67
<<<<<<   data   =
01:42:00:80:03:03:02:01:00:24:00:36:00:02:04:00:00:00:00:00:01:06:00:01:02:01:00:01:0C:10:01:00:01:11:01:00:00:12:05:00:06:01:50:00:00:15:03:00:01:0C:01:21:05:00:02:02:00:00:00:27:05:00:06:01:50:00:00

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 66
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 54
<<<<<<   message     = "Get Serving System" (0x0024)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 00:00:00:00
<<<<<<   translated = SUCCESS
<<<<<< TLV:
<<<<<<   type       = "Serving System" (0x01)
<<<<<<   length     = 6
<<<<<<   value      = 01:02:01:00:01:0C
<<<<<<   translated = [ registration_state = 'registered' cs_attach_state =
'detached' ps_attach_state = 'attached' selected_network = 'unknown'
radio_interfaces = '{ [0] = '5gnr '}' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator" (0x10)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = off
<<<<<< TLV:
<<<<<<   type       = "Data Service Capability" (0x11)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = {}
<<<<<< TLV:
<<<<<<   type       = "Current PLMN" (0x12)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' description = '' ]
<<<<<< TLV:
<<<<<<   type       = "Roaming Indicator List" (0x15)
<<<<<<   length     = 3
<<<<<<   value      = 01:0C:01
<<<<<<   translated = { [0] = '[ radio_interface = '5gnr' roaming_indicator
= 'off' ] '}
<<<<<< TLV:
<<<<<<   type       = "Detailed Service Status" (0x21)
<<<<<<   length     = 5
<<<<<<   value      = 02:02:00:00:00
<<<<<<   translated = [ status = 'available' capability = 'ps' hdr_status =
'none' hdr_hybrid = 'no' forbidden = 'no' ]
<<<<<< TLV:
<<<<<<   type       = "MNC PCS Digit Include Status" (0x27)
<<<<<<   length     = 5
<<<<<<   value      = 06:01:50:00:00
<<<<<<   translated = [ mcc = '262' mnc = '80' includes_pcs_digit = 'no' ]

[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Releasing 'nas' client
with flags 'release-cid'...
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Unregistered 'nas' client
with ID '3'
[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:03:23:00:05:00:01:02:00:03:03

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Sent generic request
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 16
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 3
<<<<<<   tlv_length  = 5
<<<<<<   message     = "Release CID" (0x0023)
<<<<<< TLV:
<<<<<<   type       = "Release Info" (0x01)
<<<<<<   length     = 2
<<<<<<   value      = 03:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received message...
<<<<<< RAW:
<<<<<<   length = 24
<<<<<<   data   =
01:17:00:80:00:00:01:03:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:03:03

[09 Sep 2021, 05:09:02] [Debug] [/dev/wwan0qmi0] Received generic response
(translated)...
<<<<<< QMUX:
<<<<<<   length  = 23
<<<<<<   flags   = 0x80
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 3
<<<<<<   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:03
<<<<<<   translated = [ service = 'nas' cid = '3' ]

[09 Sep 2021, 05:09:02] [Debug] Client released
[09 Sep 2021, 05:09:02] [Debug] Closed

real 0m0.123s
user 0m0.010s
sys 0m0.006s
[root at ten64-3-fn980 ~] 2021-09-09 05:09:02
# time qmicli -d /dev/wwan0qmi0 --nas-get-serving-system
[/dev/wwan0qmi0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: 'unknown'
Radio interfaces: '1'
[0]: '5gnr'
Roaming status: 'off'
Data service capabilities: '0'
Current PLMN:
MCC: '262'
MNC: '80'
Description: ''
Roaming indicators: '1'
[0]: 'off' (5gnr)
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
Full operator code info:
MCC: '262'
MNC: '80'
MNC with PCS digit: 'no'

real 1m0.946s
user 0m0.014s
sys 0m0.015s
[root at ten64-3-fn980 ~] 2021-09-09 05:10:07
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20210909/5a76b2f7/attachment-0001.htm>


More information about the libqmi-devel mailing list