Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. Re: Support LTE and WiFi network switch (JH)
2. Re: Support LTE and WiFi network switch (Daniel Wagner)
3. Re: Support LTE and WiFi network switch (JH)
----------------------------------------------------------------------
Message: 1
Date: Wed, 20 Feb 2019 09:54:58 +1100
From: JH <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: "Eswaran Vinothkumar (BEG/PJ-IOT-D)"
<[email protected]>, "[email protected]"
<[email protected]>
Subject: Re: Support LTE and WiFi network switch
Message-ID:
<CAA=hcWQRR6kTS4=q=7oHBwCRTyEeH9wKJjxf68Z1nP=fA=c...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Thanks Daniel and Vinothkumar,
Certainly both LTE and WiFi modem drivers need be added to Linux
kernel, the BlueZ and Dbus should be used as well.
> Check the connman.conf page for all the config options, in particular
> SingleConnectedTechnology.
Yes, I am aware of set up main.conf:
DefaultAutoConnectTechnologies = wifi,cellular
PreferredTechnologies = wif,cellular
SingleConnectedTechnology = false
My main concern is just like Vinothkumar said that "The switch between
LTE and Wifi is not automatic and immediate as like in mobile phone",
is that comment correct even I set up correct in main.conf above, the
switch between LTE and WiFi won't be automatically and immediately
like mobile phone?
Thank you.
Kind regards,
jupiter
On 2/20/19, Daniel Wagner <[email protected]> wrote:
>>>> I also need network switching capability, the LTE is the default
>>>> network interface, when the system detects WiFi is available, it
>>>> switches from LTE to WiFi network connection immediately which is
>>>> similar to the mobile phone to automatically switch from LTE to the
>>>> WiFi. I think the connman must has that capacity as well, but correct
>>>> me if I am wrong.
>>>
>>> Yes, that is what ConnMan is doing. Though this depends on how good
>>> the hardware and the drivers work.
>>>
>> Please correct me if I am wrong. The switch between LTE and Wifi is
>> not automatic and immediate as like in mobile phone. For example,
>> during the system startup if I have only cellular connectivity,
>> Connman uses this interface(provided by ofono) for data
>> connection. If after sometime, wifi network is available, Connman
>> add this interface(provided by bluez) but in ready state and not in
>> online state. This still means that the data connection is still
>> through cellular network. Connman doesn't change to wifi network
>> just because it's available. The switch to wifi happens, if the
>> cellular communication breaks completely or a manual interruption
>> using connmanctl disconnect cellular_* and connmanctl connect
>> wlan_*
>
> The auto connect algorithm can be tweaked via a set of configuration
> option. Furhtermore, you can even implement your own connection
> algorithm via the plugin interface.
>
> Check the connman.conf page for all the config options, in particular
> SingleConnectedTechnology.
>
> Note the online check (ready -> online state) is only executed
> once. None limitation.
>
------------------------------
Message: 2
Date: Wed, 20 Feb 2019 09:05:48 +0100
From: Daniel Wagner <[email protected]>
To: JH <[email protected]>
Cc: "Eswaran Vinothkumar (BEG/PJ-IOT-D)"
<[email protected]>, "[email protected]"
<[email protected]>
Subject: Re: Support LTE and WiFi network switch
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Hi,
> Certainly both LTE and WiFi modem drivers need be added to Linux
> kernel, the BlueZ and Dbus should be used as well.
>
>> Check the connman.conf page for all the config options, in particular
>> SingleConnectedTechnology.
>
> Yes, I am aware of set up main.conf:
>
> DefaultAutoConnectTechnologies = wifi,cellular
> PreferredTechnologies = wif,cellular
^^^
typo
> SingleConnectedTechnology = false
And if you want to have only one link up use 'true' here.
> My main concern is just like Vinothkumar said that "The switch between
> LTE and Wifi is not automatic and immediate as like in mobile phone",
Switching between the technologies is supposed to work automatically.
The term 'immediate' is hard to grasp. My personal experience with iOS
and Android is that even on high end phones the switching takes a few
seconds. Anyway, the whole connection algorithm is event driven, that
means if the under laying technology and driver send the disconnect/new
network events, ConnMan will act immediately.
> is that comment correct even I set up correct in main.conf above, the
> switch between LTE and WiFi won't be automatically and immediately
> like mobile phone?
ConnMan is supposed to do this, but depends on hardware and driver
support. I stress this point because we have got a lot of fun with
wpa_supplicant and even worse are the modems. oFono does an excellent
job but it can only do so much.
Thanks,
Daniel
------------------------------
Message: 3
Date: Wed, 20 Feb 2019 21:25:49 +1100
From: JH <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: "Eswaran Vinothkumar (BEG/PJ-IOT-D)"
<[email protected]>, "[email protected]"
<[email protected]>
Subject: Re: Support LTE and WiFi network switch
Message-ID:
<CAA=hcwqzrna83ymrnx5yka7rpvm4bv+tgqp2ygjz9lpb0ja...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hi Daniel,
>> PreferredTechnologies = wif,cellular
^^^
> typo
Hmm, that is in main.conf from current git branch ev3dev-stretch
>> SingleConnectedTechnology = false
>
> And if you want to have only one link up use 'true' here.
Good point, I do want to have only one link up either connected by LTE
or by WiFi.
> Switching between the technologies is supposed to work automatically.
> The term 'immediate' is hard to grasp. My personal experience with iOS
> and Android is that even on high end phones the switching takes a few
> seconds. Anyway, the whole connection algorithm is event driven, that
> means if the under laying technology and driver send the disconnect/new
> network events, ConnMan will act immediately.
No, there is no time constraint, as long as it can do the switching
reliably, taking a coupe of seconds or even longer is not the problem.
> ConnMan is supposed to do this, but depends on hardware and driver
> support. I stress this point because we have got a lot of fun with
> wpa_supplicant and even worse are the modems. oFono does an excellent
> job but it can only do so much.
That should be fine, I'll add the hardware and drivers to Linux kernel
and let the ConnMan to do the rest of the job.
Does the ConnMan provide C/C++ API for setting up WiFi connection?
Right now (I don't have any network manager), I use the shell command
in the program to call system to run wpa_supplicant commands to
configure WiFi client to connect to the WiFi router, it is awful.
Thank you very much.
JH
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 40, Issue 10
***************************************