Unexpected Mode Preference when using --nas-set-system-selection-preference
Markus Gothe
nietzsche at lysator.liu.se
Wed Apr 15 16:31:26 PDT 2015
If you don’t have ‘git’ and ‘cmake’ installed then use your package manager to install both of them.
Then issue ‘git clone git://nbd.name/uqmi.git' on the command-line in your console.
Change the directory to the new ‘uqmi’-direactoy. Then issue ‘cmake -I .’ after that just compile it normally by running ‘make’.
//M
On 15 Apr 2015, at 20:56 , Garrett Doorenbos <gdoorenbos at yahoo.com> wrote:
> That is great news! I am also using firmware rev 1.48. How do I get uqmi installed on my system?
>
> Thanks,
> Garrett
>
>
>
> On Wednesday, April 15, 2015 1:22 PM, Markus Gothe <nietzsche at lysator.liu.se> wrote:
>
>
> OK... I got RAT selection working at the office by using 'uqmi --set-network-modes'.
>
> Looks like you are correct about GSM/UMTS Dan, albeit the VZmanager does not approve it. Neither did any other QMI client so I guess it has some obscure network / operator lock since it is not SIM locked.
>
> Btw I used fw 1.48 on my device FWIW.
>
> //M
>
> Den 15 apr 2015 16:09 skrev Dan Williams <dcbw at redhat.com>:
> >
> > On Tue, 2015-04-14 at 23:05 +0200, Markus Gothe wrote:
> > > Well the AT$NWRAT command might work…
> >
> > Yes, it would.
> >
> > Dan
> >
> > > //M
> > >
> > > On 14 Apr 2015, at 21:55 , Dan Williams <dcbw at redhat.com> wrote:
> > >
> > > > On Tue, 2015-04-14 at 21:43 +0200, Markus Gothe wrote:
> > > >> Err: I meant '‘—nas-set-technology-preference’ ofc :-)
> > > >
> > > > The firmware doesn't support that command, which was added in a later
> > > > QMI version than the USB551L's 1.41 firmware. Not surprising for a 4
> > > > year old device :)
> > > >
> > > > Dan
> > > >
> > > >> //M
> > > >>
> > > >> On 14 Apr 2015, at 21:35 , Markus Gothe <nietzsche at lysator.liu.se> wrote:
> > > >>
> > > >>> Try using ‘--nas-get-technology-preference’ instead. It might work better.
> > > >>>
> > > >>> //M
> > > >>>
> > > >>> On 13 Apr 2015, at 22:43 , Markus Gothe <nietzsche at lysator.liu.se> wrote:
> > > >>>
> > > >>>> There is something wrong with your modem... Sorry to say. The Verizon USB551L doesnt support neither GSM nor UMTS. :-(
> > > >>>> There are two known ways to get/set rat...
> > > >>>>
> > > >>>> The NAS set selection preference methinks is be uses when to choose between CDMA and GSM.
> > > >>>>
> > > >>>> I will check this up when I have the source code at hand.
> > > >>>>
> > > >>>> //M
> > > >>>>
> > > >>>> Den 10 apr 2015 22:10 skrev Garrett Doorenbos <gdoorenbos at yahoo.com>:
> > > >>>>>
> > > >>>>> Hello,
> > > >>>>>
> > > >>>>> I am using qmicli with a Novatel USB551L modem. When I try to use the --nas-set-system-selection-preference command to set my preference to ‘lte’, I get a ‘DeviceUnsupported’ error. I noticed that if I run the command with the verbose tag, the Mode Preference sent to the modem is ‘gsm, lte, td-scdma’. I think this causes problems since my modem doesn’t support td-scdma (--dms-get-capabilities shows only cdma20001x, evdo, gsm, umts, lte). I also noticed that whatever input I give to --nas-set-system-selection-preference, it seems to OR it with gsm, lte, and td-scdma. Is there a way to get --nas-set-system-selection-preference to only send ‘lte’ for the Mode Preference? I’ve copy/pasted results from my machine below.
> > > >>>>>
> > > >>>>> Thanks,
> > > >>>>> Garrett
> > > >>>>>
> > > >>>>> -----
> > > >>>>>
> > > >>>>> sh-4.2# qmicli -d /dev/cdc-wdm0 --dms-get-capabilities
> > > >>>>> [/dev/cdc-wdm0] Device capabilities retrieved:
> > > >>>>> Max TX channel rate: '5742000'
> > > >>>>> Max RX channel rate: '7200000'
> > > >>>>> Data Service: 'simultaneous-cs-ps'
> > > >>>>> SIM: 'supported'
> > > >>>>> Networks: 'cdma20001x, evdo, gsm, umts, lte'
> > > >>>>> sh-4.2# qmicli -d /dev/cdc-wdm0 --nas-set-system-selection-preference=lte
> > > >>>>> error: couldn't set operating mode: QMI protocol error (25): 'DeviceUnsupported'
> > > >>>>> sh-4.2# qmicli -d /dev/cdc-wdm0 --nas-set-system-selection-preference=lte -v
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] QMI Device at '/dev/cdc-wdm0' ready
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Assuming service 'nas' is supported...
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Allocating new client ID...
> > > >>>>> [13 Sep 2000, 03:43:25] [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
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (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
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [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:0A
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (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:0A
> > > >>>>>>>>>>> translated = [ service = 'nas' cid = '10' ]
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Registered 'nas' (version unknown) client with ID '10'
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] Asynchronously setting system selection preference...
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message...
> > > >>>>> <<<<<< RAW:
> > > >>>>> <<<<<< length = 29
> > > >>>>> <<<<<< data = 01:1C:00:00:03:0A:00:01:00:33:00:10:00:19:04:00:00:00:00:00:17:01:00:01:11:02:00:B4:5B
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (translated)...
> > > >>>>> <<<<<< QMUX:
> > > >>>>> <<<<<< length = 28
> > > >>>>> <<<<<< flags = 0x00
> > > >>>>> <<<<<< service = "nas"
> > > >>>>> <<<<<< client = 10
> > > >>>>> <<<<<< QMI:
> > > >>>>> <<<<<< flags = "none"
> > > >>>>> <<<<<< transaction = 1
> > > >>>>> <<<<<< tlv_length = 16
> > > >>>>> <<<<<< message = "Set System Selection Preference" (0x0033)
> > > >>>>> <<<<<< TLV:
> > > >>>>> <<<<<< type = "GSM WCDMA Acquisition Order Preference" (0x19)
> > > >>>>> <<<<<< length = 4
> > > >>>>> <<<<<< value = 00:00:00:00
> > > >>>>> <<<<<< translated = automatic
> > > >>>>> <<<<<< TLV:
> > > >>>>> <<<<<< type = "Change Duration" (0x17)
> > > >>>>> <<<<<< length = 1
> > > >>>>> <<<<<< value = 01
> > > >>>>> <<<<<< translated = permanent
> > > >>>>> <<<<<< TLV:
> > > >>>>> <<<<<< type = "Mode Preference" (0x11)
> > > >>>>> <<<<<< length = 2
> > > >>>>> <<<<<< value = B4:5B
> > > >>>>> <<<<<< translated = gsm, lte, td-scdma
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message...
> > > >>>>>>>>>>> RAW:
> > > >>>>>>>>>>> length = 20
> > > >>>>>>>>>>> data = 01:13:00:80:03:0A:02:01:00:33:00:07:00:02:04:00:01:00:19:00
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (translated)...
> > > >>>>>>>>>>> QMUX:
> > > >>>>>>>>>>> length = 19
> > > >>>>>>>>>>> flags = 0x80
> > > >>>>>>>>>>> service = "nas"
> > > >>>>>>>>>>> client = 10
> > > >>>>>>>>>>> QMI:
> > > >>>>>>>>>>> flags = "response"
> > > >>>>>>>>>>> transaction = 1
> > > >>>>>>>>>>> tlv_length = 7
> > > >>>>>>>>>>> message = "Set System Selection Preference" (0x0033)
> > > >>>>>>>>>>> TLV:
> > > >>>>>>>>>>> type = "Result" (0x02)
> > > >>>>>>>>>>> length = 4
> > > >>>>>>>>>>> value = 01:00:19:00
> > > >>>>>>>>>>> translated = FAILURE: DeviceUnsupported
> > > >>>>>
> > > >>>>> error: couldn't set operating mode: QMI protocol error (25): 'DeviceUnsupported'
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Unregistered 'nas' client with ID '10'
> > > >>>>> [13 Sep 2000, 03:43:25] [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:0A
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (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:0A
> > > >>>>> <<<<<< translated = [ service = 'nas' cid = '10' ]
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [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:0A
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (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:0A
> > > >>>>>>>>>>> translated = [ service = 'nas' cid = '10' ]
> > > >>>>>
> > > >>>>> [13 Sep 2000, 03:43:25] [Debug] Client released
> > > >>>>> sh-4.2#
> > > >>>>>
> > > >>>> _______________________________________________
> > > >>>> libqmi-devel mailing list
> > > >>>> libqmi-devel at lists.freedesktop.org
> > > >>>> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
> > > >>>
> > > >>> //Markus - The panama-hat hacker
> > > >>>
> > > >>> _______________________________________________
> > > >>> libqmi-devel mailing list
> > > >>> libqmi-devel at lists.freedesktop.org
> > > >>> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
> > > >>
> > > >> //Markus - The panama-hat hacker
> > > >>
> > > >> _______________________________________________
> > > >> libqmi-devel mailing list
> > > >> libqmi-devel at lists.freedesktop.org
> > > >> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
> > > >
> > > >
> > >
> > > //Markus - The panama-hat hacker
> > >
> >
> >
>
>
//Markus - The panama-hat hacker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20150416/adcf6f0c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20150416/adcf6f0c/attachment-0001.sig>
More information about the libqmi-devel
mailing list