usage of nas-set-preferred-networks
Dan Williams
dan at ioncontrol.co
Mon Mar 17 23:18:28 UTC 2025
On Mon, 2025-03-17 at 23:20 +0100, Andreas Tobler wrote:
>
>
> On 17.03.2025 21:13, Dan Williams wrote:
>
> > 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?
>
> Sure, attached.
>
> >
> > 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"?
Dan
>
> Thanks,
> Andreas
>
>
>
>
More information about the libqmi-devel
mailing list