usage of nas-set-preferred-networks
Andreas Tobler
andreas.tobler at onway.ch
Tue Mar 18 06:03:36 UTC 2025
On 18.03.2025 00:18, Dan Williams wrote:
>>> I'm not sure it'll show much useful but it would allow us to
>>> double-
>>> check what qmicli is sending to the modem.
>>>
>>> One thing to try is that perhaps the modem doesn't like the "all"
>>> access technology option and doesn't know how to handle it. Could
>>> you
>>> try explicitly listing them, like "22802,gsm|umts|lte"?
>>
>> I have tried all possible access technologies, always the same
>> answer.
>
> I see the trace you attached is still using "all" for one of the
> networks:
>
> <<<<<< translated = { [0] = '[ mcc = '228' mnc = '3'
> radio_access_technology = 'all' ] ' [1] = '[ mcc = '228' mnc = '1'
> radio_access_technology = 'utran' ] '}
>
> Did it still return UimUninitialized when you did it without "all"?
Yes, attached the trace with utran only. The same applies to eutran,
ngran, gsm, gsm-compact and unspecified.
Andreas
-------------- next part --------------
sudo qmicli -d /dev/cdc-wdm0 --nas-set-preferred-networks=22802,utran -v
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] opening device with flags 'auto'...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] automatically selecting QMI mode
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] created endpoint
[18 Mar 2025, 06:54:00] [Debug] QMI Device at '/dev/cdc-wdm0' ready
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] assuming service 'nas' is supported...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] allocating new client ID...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 16
<<<<<< data = 01:0F:00:00:00:00:00:01:22:00:04:00...
[18 Mar 2025, 06:54:00] [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
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:80:00:00:01:01:22:00:0C:00...
[18 Mar 2025, 06:54:00] [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:02
<<<<<< translated = [ service = 'nas' cid = '2' ]
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] registered 'nas' (version unknown) client with ID '2'
[18 Mar 2025, 06:54:00] [Debug] Asynchronously setting preferred networks...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 37
<<<<<< data = 01:24:00:00:03:02:00:01:00:27:00:18...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] sent generic request (translated)...
<<<<<< QMUX:
<<<<<< length = 36
<<<<<< flags = 0x00
<<<<<< service = "nas"
<<<<<< client = 2
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 24
<<<<<< message = "Set Preferred Networks" (0x0027)
<<<<<< TLV:
<<<<<< type = "Clear Previous Preferred Networks" (0x12)
<<<<<< length = 1
<<<<<< value = 01
<<<<<< translated = yes
<<<<<< TLV:
<<<<<< type = "MNC PCS Digit Include Status" (0x11)
<<<<<< length = 6
<<<<<< value = 01:E4:00:02:00:00
<<<<<< translated = { [0] = '[ mcc = '228' mnc = '2' includes_pcs_digit = 'no' ] '}
<<<<<< TLV:
<<<<<< type = "Preferred Networks" (0x10)
<<<<<< length = 8
<<<<<< value = 01:00:E4:00:02:00:00:80
<<<<<< translated = { [0] = '[ mcc = '228' mnc = '2' radio_access_technology = 'utran' ] '}
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 20
<<<<<< data = 01:13:00:80:03:02:02:01:00:27:00:07...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] received generic response (translated)...
<<<<<< QMUX:
<<<<<< length = 19
<<<<<< flags = 0x80
<<<<<< service = "nas"
<<<<<< client = 2
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 7
<<<<<< message = "Set Preferred Networks" (0x0027)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 01:00:25:00
<<<<<< translated = FAILURE: UimUninitialized
error: couldn't set preferred networks: QMI protocol error (37): 'UimUninitialized'
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] releasing 'nas' client with flags 'release-cid'...
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] unregistered 'nas' client with ID '2'
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 17
<<<<<< data = 01:10:00:00:00:00:00:02:23:00:05:00...
[18 Mar 2025, 06:54:00] [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:02
<<<<<< translated = [ service = 'nas' cid = '2' ]
[18 Mar 2025, 06:54:00] [Debug] [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:80:00:00:01:02:23:00:0C:00...
[18 Mar 2025, 06:54:00] [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:02
<<<<<< translated = [ service = 'nas' cid = '2' ]
[18 Mar 2025, 06:54:00] [Debug] Client released
[18 Mar 2025, 06:54:00] [Debug] Closed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5000 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20250318/ed76427c/attachment-0001.bin>
More information about the libqmi-devel
mailing list