Setting RAT preference in MBIM?
Aleksander Morgado
aleksander at aleksander.es
Wed Mar 25 13:22:58 PDT 2015
On Wed, Mar 25, 2015 at 9:07 PM, Markus Gothe <nietzsche at lysator.liu.se> wrote:
> I found out today by reading the spec that you can set prefered (read: best-case) RAT via the MBIM_CID_REGISTER_STATE.
>
> No brainer to implement in umbim, albeit some minor issues with time to wait before trying first time to register after a change.
>
> I hope someone implements this in libmbim as well.
>
libmbim already supports this, see the MbimDataClass being passed in
mbim_message_register_state_set_new():
http://www.freedesktop.org/software/libmbim/libmbim-glib/latest/libmbim-glib-Basic-Connect.html#mbim-message-register-state-set-new
I guess you mean that mbimcli doesn't support it; it doesn't yet.
Anyway, not sure how well that will play, being the data class enum so
very specific. I guess it only makes sense to request a specific data
class if we have previously retrieved the list of networks and made
sure that such a network with that specific data class exists. That
logic would not play very well with e.g. what ModemManager does; as we
don't want an explicit network scan every time the user wants to
change access tech. For now ModemManager always avoids specifying a
data class value when using MBIM_CID_REGISTER_STATE:
http://cgit.freedesktop.org/ModemManager/ModemManager/tree/src/mm-broadband-modem-mbim.c#n2449
>
> Den 4 nov 2014 22:04 skrev Dan Williams <dcbw at redhat.com>:
>>
>> On Tue, 2014-11-04 at 19:59 +0100, Markus Gothe wrote:
>> > Interesting since umbim prints availble data classes and capabilities.
>> >
>> > I havent tried the dashboard from Huawei yet but I bet it can set
>> > prefered RAT...
>>
>> Sometimes they even do this with AT commands through a serial port if
>> the modem has one, or even shoving QMI or AT through vendor-specific
>> MBIM channels. Tracing the dashboard with a USB snooper would be the
>> best way to figure this out.
>>
>> Dan
>>
>> > //M
>> >
>> > Skickat ifrån min mobil.
>> > Den 4 nov 2014 02:38 skrev Greg Suarez <gpsuarez2512 at gmail.com>:
>> > >
>> > > On Mon, Nov 3, 2014 at 3:42 PM, Markus Gothe
>> > <nietzsche at lysator.liu.se> wrote:
>> > >>
>> > >> Is there any standard method to do this?
>> > >> I couldn’t find one when rain-checking the MBIM spec.
>> > >>
>> > >
>> > > The RAT will have to be set via an extension service to the MBIM
>> > spec.
>> > > Currently I only know of one chip supplier that supports setting the
>> > RAT, but Bjorn and Aleksander
>> > > has access to many more devices than I do.
>> > >
>> > > Greg
>> > >
>> >
>> >
>> > _______________________________________________
>> > libmbim-devel mailing list
>> > libmbim-devel at lists.freedesktop.org
>> > http://lists.freedesktop.org/mailman/listinfo/libmbim-devel
>>
>> _______________________________________________
>> libmbim-devel mailing list
>> libmbim-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libmbim-devel
> _______________________________________________
> libmbim-devel mailing list
> libmbim-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libmbim-devel
--
Aleksander
https://aleksander.es
More information about the libmbim-devel
mailing list