Sierra wireless modem network selection preference

Erik Kazandjian erik.kazandjian at accelleran.com
Sat May 5 06:55:47 UTC 2018


Thanks for your reply, I digged into the the code and found the solution 
like you described it.

Erik


On 05/04/2018 06:39 PM, Dan Williams wrote:
> On Thu, 2018-05-03 at 12:45 +0200, Erik Kazandjian wrote:
>> Hi I.m trying to add this feature. I started by changing the
>> nas.json
>> defintion. For there on I get some code generated. I also added in
>> the
>> qmicli_nas.c and extra command. But I'm stucked now because first of
>> all
>> I'm not sure which call I have to do to actually set this option in
>> the
>> modem and secondly I don't see where in the generated a call to the
>> driver is done to execute the function I want.
>> Could you guide me a little to say where I have to add the
>> modifications ?
> Most of the code and JSON is already there for the manual/auto bits
> except the parts that parse the qmicli input and add the TLV.
>
> What I was thinking of here was to change the format of set-system-
> selection-preference to be something like:
>
> --nas-set-system-selection-preference=[cdma-1x|cdma-
> 1xevdo|gsm|umts|lte|td-scdma][,[auto|manual=MCCMNC]]
>
> eg, you could:
>
> --nas-set-system-selection-preference=lte,manual=310260
> --nas-set-system-selection-preference=auto
> --nas-set-system-selection-
> preference=gsm|umts,auto
>
> or something like that.
>
> We'd need to change set_system_selection_preference_input_create() to
> parse that new format, instead of just calling
> qmicli_read_rat_mode_pref_from_string().  Something like the attached
> rough patch, perhaps?  Any chance you could test that out and clean it
> up?
>
> Thanks!
> Dan
>
>> Thanks
>>
>> Erik
>>
>>
>> On 04/30/2018 08:36 PM, Dan Williams wrote:
>>> On Fri, 2018-04-27 at 16:27 +0200, Erik Kazandjian wrote:
>>>> Hi,
>>>>
>>>> I have 2 identical Sierra Wireless modems. If I call sudo qmicli
>>>> -d
>>>> /dev/cdc-wdm0 --nas-get-system-selection-preference on the first
>>>> modem I get
>>>>
>>>>
>>>>        Emergency mode: 'no'
>>>>        Mode preference: 'umts, lte'
>>>>        Band preference: 'wcdma-2100, wcdma-850-us, wcdma-800,
>>>> wcdma-
>>>> 900,
>>>> wcdma-1700-japan'
>>>>        LTE band preference: '1, 3, 5, 7, 8, 18, 19, 21, 38, 39,
>>>> 40, 41'
>>>>        TD-SCDMA band preference: 'f'
>>>>        Roaming preference: 'any'
>>>>        Network selection preference: '*automatic*'
>>>>        Service domain preference: 'cs-ps'
>>>>        Service selection preference: 'automatic'
>>>>
>>>>
>>>> on the second I get
>>>>
>>>>        Emergency mode: 'no'
>>>>        Mode preference: 'umts, lte'
>>>>        Band preference: 'wcdma-2100, wcdma-850-us, wcdma-800,
>>>> wcdma-
>>>> 900,
>>>> wcdma-1700-japan'
>>>>        LTE band preference: '1, 3, 5, 7, 8, 18, 19, 21, 38, 39,
>>>> 40, 41'
>>>>        TD-SCDMA band preference: 'f'
>>>>        Roaming preference: 'any'
>>>>        Network selection preference: '*manual*'
>>>>        Service domain preference: 'cs-ps'
>>>>        Service selection preference: 'automatic'
>>>>
>>>>
>>>> Is there a way to change the Network selection preference
>>> With libqmi yes, but we don't currently have the auto/manual
>>> exposed
>>> through qmicli unfortunately.  I took a quick look and it's not a
>>> 10
>>> minute task unfortunately due to the existing --nas-set-system-
>>> selection-preference syntax.
>>>
>>> If you're just looking to switch this modem to 'auto' and be done
>>> though, that wouldn't be too hard with a one-off patch.
>>>
>>> Dan
>> _______________________________________________
>> libqmi-devel mailing list
>> libqmi-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel



More information about the libqmi-devel mailing list