<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1428931902210_82934"><span>Thanks everyone for the helpful information. <br></span></div><div id="yui_3_16_0_1_1428931902210_82935" dir="ltr"><br><span></span></div><div id="yui_3_16_0_1_1428931902210_82936" dir="ltr"><span id="yui_3_16_0_1_1428931902210_87883">Markus, I get a 'InvalidQmiCommand' error when I try to use that command. I'm also trying to set the technology preference. Is there an alternative to --nas-set-system-selection-prefrence for that?</span></div><div id="yui_3_16_0_1_1428931902210_87886" dir="ltr"><br><span id="yui_3_16_0_1_1428931902210_87883"></span></div><div id="yui_3_16_0_1_1428931902210_89977" dir="ltr"><span id="yui_3_16_0_1_1428931902210_87883">I haven't tried updating the libqmi version yet, but I hope to soon.<br></span></div><div id="yui_3_16_0_1_1428931902210_87884" dir="ltr"><br><span></span></div><div id="yui_3_16_0_1_1428931902210_89975" dir="ltr"><span>Thanks,</span></div><div id="yui_3_16_0_1_1428931902210_89976" dir="ltr"><span id="yui_3_16_0_1_1428931902210_89978">Garrett</span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, April 14, 2015 2:36 PM, Markus Gothe <nietzsche@lysator.liu.se> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">Try using ‘--nas-get-technology-preference’ instead. It might work better.<br clear="none"><br clear="none">//M<br clear="none"><div class="yqt8796894812" id="yqtfd53050"><br clear="none">On 13 Apr 2015, at 22:43 , Markus Gothe <<a shape="rect" ymailto="mailto:nietzsche@lysator.liu.se" href="mailto:nietzsche@lysator.liu.se">nietzsche@lysator.liu.se</a>> wrote:<br clear="none"><br clear="none">> There is something wrong with your modem... Sorry to say. The Verizon USB551L doesnt support neither GSM nor UMTS. :-(<br clear="none">> There are two known ways to get/set rat...<br clear="none">> <br clear="none">> The NAS set selection preference methinks is be uses when to choose between CDMA and GSM.<br clear="none">> <br clear="none">> I will check this up when I have the source code at hand.<br clear="none">> <br clear="none">> //M<br clear="none">> <br clear="none">> Den 10 apr 2015 22:10 skrev Garrett Doorenbos <<a shape="rect" ymailto="mailto:gdoorenbos@yahoo.com" href="mailto:gdoorenbos@yahoo.com">gdoorenbos@yahoo.com</a>>:<br clear="none">>> <br clear="none">>> Hello,<br clear="none">>>  <br clear="none">>> 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.<br clear="none">>>  <br clear="none">>> Thanks,<br clear="none">>> Garrett<br clear="none">>> <br clear="none">>> -----<br clear="none">>>  <br clear="none">>> sh-4.2# qmicli -d /dev/cdc-wdm0 --dms-get-capabilities<br clear="none">>> [/dev/cdc-wdm0] Device capabilities retrieved:<br clear="none">>>         Max TX channel rate: '5742000'<br clear="none">>>         Max RX channel rate: '7200000'<br clear="none">>>                Data Service: 'simultaneous-cs-ps'<br clear="none">>>                         SIM: 'supported'<br clear="none">>>                    Networks: 'cdma20001x, evdo, gsm, umts, lte'<br clear="none">>> sh-4.2# qmicli -d /dev/cdc-wdm0 --nas-set-system-selection-preference=lte<br clear="none">>> error: couldn't set operating mode: QMI protocol error (25): 'DeviceUnsupported'<br clear="none">>> sh-4.2# qmicli -d /dev/cdc-wdm0 --nas-set-system-selection-preference=lte -v<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] QMI Device at '/dev/cdc-wdm0' ready<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Assuming service 'nas' is supported...<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Allocating new client ID...<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message...<br clear="none">>> <<<<<< RAW:<br clear="none">>> <<<<<<   length = 16<br clear="none">>> <<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:03<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (translated)...<br clear="none">>> <<<<<< QMUX:<br clear="none">>> <<<<<<   length  = 15<br clear="none">>> <<<<<<   flags   = 0x00<br clear="none">>> <<<<<<   service = "ctl"<br clear="none">>> <<<<<<   client  = 0<br clear="none">>> <<<<<< QMI:<br clear="none">>> <<<<<<   flags       = "none"<br clear="none">>> <<<<<<   transaction = 1<br clear="none">>> <<<<<<   tlv_length  = 4<br clear="none">>> <<<<<<   message     = "Allocate CID" (0x0022)<br clear="none">>> <<<<<< TLV:<br clear="none">>> <<<<<<   type       = "Service" (0x01)<br clear="none">>> <<<<<<   length     = 1<br clear="none">>> <<<<<<   value      = 03<br clear="none">>> <<<<<<   translated = nas<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message...<br clear="none">>>>>>>>> RAW:<br clear="none">>>>>>>>>    length = 24<br clear="none">>>>>>>>>    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<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (translated)...<br clear="none">>>>>>>>> QMUX:<br clear="none">>>>>>>>>    length  = 23<br clear="none">>>>>>>>>    flags   = 0x80<br clear="none">>>>>>>>>    service = "ctl"<br clear="none">>>>>>>>>    client  = 0<br clear="none">>>>>>>>> QMI:<br clear="none">>>>>>>>>    flags       = "response"<br clear="none">>>>>>>>>    transaction = 1<br clear="none">>>>>>>>>    tlv_length  = 12<br clear="none">>>>>>>>>    message     = "Allocate CID" (0x0022)<br clear="none">>>>>>>>> TLV:<br clear="none">>>>>>>>>    type       = "Result" (0x02)<br clear="none">>>>>>>>>    length     = 4<br clear="none">>>>>>>>>    value      = 00:00:00:00<br clear="none">>>>>>>>>    translated = SUCCESS<br clear="none">>>>>>>>> TLV:<br clear="none">>>>>>>>>    type       = "Allocation Info" (0x01)<br clear="none">>>>>>>>>    length     = 2<br clear="none">>>>>>>>>    value      = 03:0A<br clear="none">>>>>>>>>    translated = [ service = 'nas' cid = '10' ]<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Registered 'nas' (version unknown) client with ID '10'<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] Asynchronously setting system selection preference...<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message...<br clear="none">>> <<<<<< RAW:<br clear="none">>> <<<<<<   length = 29<br clear="none">>> <<<<<<   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<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (translated)...<br clear="none">>> <<<<<< QMUX:<br clear="none">>> <<<<<<   length  = 28<br clear="none">>> <<<<<<   flags   = 0x00<br clear="none">>> <<<<<<   service = "nas"<br clear="none">>> <<<<<<   client  = 10<br clear="none">>> <<<<<< QMI:<br clear="none">>> <<<<<<   flags       = "none"<br clear="none">>> <<<<<<   transaction = 1<br clear="none">>> <<<<<<   tlv_length  = 16<br clear="none">>> <<<<<<   message     = "Set System Selection Preference" (0x0033)<br clear="none">>> <<<<<< TLV:<br clear="none">>> <<<<<<   type       = "GSM WCDMA Acquisition Order Preference" (0x19)<br clear="none">>> <<<<<<   length     = 4<br clear="none">>> <<<<<<   value      = 00:00:00:00<br clear="none">>> <<<<<<   translated = automatic<br clear="none">>> <<<<<< TLV:<br clear="none">>> <<<<<<   type       = "Change Duration" (0x17)<br clear="none">>> <<<<<<   length     = 1<br clear="none">>> <<<<<<   value      = 01<br clear="none">>> <<<<<<   translated = permanent<br clear="none">>> <<<<<< TLV:<br clear="none">>> <<<<<<   type       = "Mode Preference" (0x11)<br clear="none">>> <<<<<<   length     = 2<br clear="none">>> <<<<<<   value      = B4:5B<br clear="none">>> <<<<<<   translated = gsm, lte, td-scdma<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message...<br clear="none">>>>>>>>> RAW:<br clear="none">>>>>>>>>    length = 20<br clear="none">>>>>>>>>    data   = 01:13:00:80:03:0A:02:01:00:33:00:07:00:02:04:00:01:00:19:00<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (translated)...<br clear="none">>>>>>>>> QMUX:<br clear="none">>>>>>>>>    length  = 19<br clear="none">>>>>>>>>    flags   = 0x80<br clear="none">>>>>>>>>   service = "nas"<br clear="none">>>>>>>>>    client  = 10<br clear="none">>>>>>>>> QMI:<br clear="none">>>>>>>>>    flags       = "response"<br clear="none">>>>>>>>>    transaction = 1<br clear="none">>>>>>>>>    tlv_length  = 7<br clear="none">>>>>>>>>    message     = "Set System Selection Preference" (0x0033)<br clear="none">>>>>>>>> TLV:<br clear="none">>>>>>>>>    type       = "Result" (0x02)<br clear="none">>>>>>>>>    length     = 4<br clear="none">>>>>>>>>    value      = 01:00:19:00<br clear="none">>>>>>>>>    translated = FAILURE: DeviceUnsupported<br clear="none">>>  <br clear="none">>> error: couldn't set operating mode: QMI protocol error (25): 'DeviceUnsupported'<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Unregistered 'nas' client with ID '10'<br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message...<br clear="none">>> <<<<<< RAW:<br clear="none">>> <<<<<<   length = 17<br clear="none">>> <<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:03:0A<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Sent message (translated)...<br clear="none">>> <<<<<< QMUX:<br clear="none">>> <<<<<<   length  = 16<br clear="none">>> <<<<<<   flags   = 0x00<br clear="none">>> <<<<<<   service = "ctl"<br clear="none">>> <<<<<<   client  = 0<br clear="none">>> <<<<<< QMI:<br clear="none">>> <<<<<<   flags       = "none"<br clear="none">>> <<<<<<   transaction = 2<br clear="none">>> <<<<<<   tlv_length  = 5<br clear="none">>> <<<<<<   message     = "Release CID" (0x0023)<br clear="none">>> <<<<<< TLV:<br clear="none">>> <<<<<<   type       = "Release Info" (0x01)<br clear="none">>> <<<<<<   length     = 2<br clear="none">>> <<<<<<   value      = 03:0A<br clear="none">>> <<<<<<   translated = [ service = 'nas' cid = '10' ]<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message...<br clear="none">>>>>>>>> RAW:<br clear="none">>>>>>>>>    length = 24<br clear="none">>>>>>>>>    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<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] [/dev/cdc-wdm0] Received message (translated)...<br clear="none">>>>>>>>> QMUX:<br clear="none">>>>>>>>>    length  = 23<br clear="none">>>>>>>>>    flags   = 0x80<br clear="none">>>>>>>>>    service = "ctl"<br clear="none">>>>>>>>>    client  = 0<br clear="none">>>>>>>>> QMI:<br clear="none">>>>>>>>>    flags       = "response"<br clear="none">>>>>>>>>    transaction = 2<br clear="none">>>>>>>>>    tlv_length  = 12<br clear="none">>>>>>>>>    message     = "Release CID" (0x0023)<br clear="none">>>>>>>>> TLV:<br clear="none">>>>>>>>>    type       = "Result" (0x02)<br clear="none">>>>>>>>>    length     = 4<br clear="none">>>>>>>>>    value      = 00:00:00:00<br clear="none">>>>>>>>>    translated = SUCCESS<br clear="none">>>>>>>>> TLV:<br clear="none">>>>>>>>>    type       = "Release Info" (0x01)<br clear="none">>>>>>>>>    length     = 2<br clear="none">>>>>>>>>    value      = 03:0A<br clear="none">>>>>>>>>    translated = [ service = 'nas' cid = '10' ]<br clear="none">>>  <br clear="none">>> [13 Sep 2000, 03:43:25] [Debug] Client released<br clear="none">>> sh-4.2#</div><br clear="none">>> <br clear="none">> _______________________________________________<br clear="none">> libqmi-devel mailing list<br clear="none">> <a shape="rect" ymailto="mailto:libqmi-devel@lists.freedesktop.org" href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br clear="none">> <a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br clear="none"><br clear="none">//Markus - The panama-hat hacker<div class="yqt8796894812" id="yqtfd74473"><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>