usage of nas-set-preferred-networks
Dan Williams
dan at ioncontrol.co
Mon Mar 17 20:13:52 UTC 2025
On Thu, 2025-03-13 at 07:10 +0100, Andreas Tobler wrote:
> All,
>
> I am trying the --nas-set-preferred-networks with the qmicli tool and
> I
> fail.
>
> qmicli -d /dev/cdc-wdm0 --nas-set-preferred-networks=22802,all
> error: couldn't set preferred networks: QMI protocol error (37):
> 'UimUninitialized'
>
> I'm not sure if I use the command correctly and was looking for a
> sample
> 'session' which is able to set the preferred networks.
>
> Is the 'UimUninitialized' error due to my arguments or how do I
> interpret the error?
>
> I'm able to establish a network connection with the SIM card w/o
> problems.
>
> Do I need some preparation steps to execute this command?
>
> Any pointers are welcome, doc etc.
Would you be able to add the "-v" flag to qmicli and copy in the full
QMI request/response data that it prints out?
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"?
Dan
More information about the libqmi-devel
mailing list