Re: Multiple connections?

2015-05-07 Thread Jukka Rissanen
Hi Daniel,

On ke, 2015-05-06 at 16:36 +0200, Daniel Nyström wrote:
 Hi ConnMan folks!
 
 I've just started using ConnMan and figured my situation is a bit
 different than most of you.
 
 I've got a GSM module (SIM800h) run by oFono connected to ConnMan. I
 also got a LAN connection with DHCP.
 
 I need both of these connections to be available, but of course only
 one can be the primary interface (hence the one with a default
 gateway). We can say the cellular connection always has this role if
 available.
 
 How can I make this using ConnMan? How can I make the DHCP ignore the
 default gw? Or is there a better way to solve this?

You can set the preferred technology in ConnMan main.conf file
(typically found in /etc/connman directory) like this

PreferredTechnologies = cellular,ethernet

More information in ConnMan sources in src/main.conf example file.


Cheers,
Jukka


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Multiple connections?

2015-05-06 Thread Daniel Nyström
Hi ConnMan folks!

I've just started using ConnMan and figured my situation is a bit
different than most of you.

I've got a GSM module (SIM800h) run by oFono connected to ConnMan. I
also got a LAN connection with DHCP.

I need both of these connections to be available, but of course only
one can be the primary interface (hence the one with a default
gateway). We can say the cellular connection always has this role if
available.

How can I make this using ConnMan? How can I make the DHCP ignore the
default gw? Or is there a better way to solve this?

Thanks in advance!

Best regards
Daniel
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: does Connman handle multiple connections at once?

2013-05-06 Thread Patrik Flykt

Hi,

On Fri, 2013-05-03 at 18:04 -0700, js...@syncadence.com wrote:
 Does connman, by design, only automatically bring up (meaning, the
 online state) one service (i.e., the one on top of the list), and
 implement its IP configuration?

By default, with no extra settings, ConnMan will autoconnect a service
starting with the one top of the list. When one connection has been
connected, ConnMan will be happy and not autoconnect anything else that
gets plugged in later.

This in the default case.

  the main focus of ConnMan is getting you an Internet
  connection. And normally it will rest once that has been
  achieved. You can connect multiple networks in different and
  the same technology, but we have not automatic handling of.
 
 Do I do this through the net.connman.Service.Connect() method?

Yes, any other services need to be connected manually. If the manually
connected service goes to state 'online' with the current one in state
'ready', the online service will be used as the default route out.

 If I manually connect an Ethernet service, and it is plugged in,
 does that downgrade all the other services to ready?

Only if all the other services had stayed in state 'ready'.

 My understanding is that connman automatically falls back to link
 local (RFC 3927) if it fails DHCP.  How does that work when  1 DHCP
 service fails DHCP?

Good question, I'd have to read the code thoroughly to answer that one.

Now, there is the exception to autoconnect, and it's called
'PreferredTechnologies'. When set, ConnMan will alter the normal
autoconnect order as specified with that setting. If e.g. ethernet is
configured and connected later (cable plugged in), ConnMan will
autoconnect ethernet. If the preferred connection goes 'online', it will
be used as the default route and any previous 'online' connection is
downgraded to 'ready'.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


does Connman handle multiple connections at once?

2013-05-03 Thread jsung
Hi Jukka  Patrik:

 By default connman only autoconnects to one service at a
 time. If you set /etc/connman/main.conf file (see example file
 at src/main.conf) setting PreferredTechnologies=ethernet,wifi
 then you might get both ethernet and wifi autoconnected at the
 same time.  There is some exceptions like if the ethernet

Sorry, I'm still a little bit fuzzy on the connman's paradigm.

Does connman, by design, only automatically bring up (meaning, the
online state) one service (i.e., the one on top of the list), and
implement its IP configuration?

Based on Marcel's 6-2012 post:

 the main focus of ConnMan is getting you an Internet
 connection. And normally it will rest once that has been
 achieved. You can connect multiple networks in different and
 the same technology, but we have not automatic handling of.

Do I do this through the net.connman.Service.Connect() method?

If I manually connect an Ethernet service, and it is plugged in,
does that downgrade all the other services to ready?

My understanding is that connman automatically falls back to link
local (RFC 3927) if it fails DHCP.  How does that work when  1 DHCP
service fails DHCP?

Jim

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: does Connman handle multiple connections at once?

2012-09-11 Thread Jukka Rissanen

Hi Stan,

On 09/11/2012 04:54 AM, Stan Hu wrote:

I apologize if this is a commonly asked question, but I've been searching
all over the place for confirmation: Does any version of Connman handle
multiple connections at once?  I ask because I have both eth0 and wlan0
both configured as AutoConnect = true and Favorite = true, but Connman
appears to only run the DHCP client on one of the interfaces.


By default connman only autoconnects to one service at a time. If you 
set /etc/connman/main.conf file (see example file at src/main.conf) 
setting PreferredTechnologies=ethernet,wifi then you might get both 
ethernet and wifi autoconnected at the same time.
There is some exceptions like if the ethernet connection gets internet 
access (online state), then wifi will not autoconnect because there is 
already an internet connection available. See description of the setting 
in example main.conf file in connman src directory for details.



Cheers,
Jukka

___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: does Connman handle multiple connections at once?

2012-09-11 Thread Stan Hu
Jukka,

I did try putting PreferredTechnologies=**ethernet,wifi, but still only
one connection was established.  Is there a way to force multiple
connections at once? I'm trying to understand the source code, and it's not
obvious to me where the code decides only to retrieve a DHCP address from
one interface.

On Tue, Sep 11, 2012 at 12:21 AM, Jukka Rissanen 
jukka.rissa...@linux.intel.com wrote:

 Hi Stan,


 On 09/11/2012 04:54 AM, Stan Hu wrote:

 I apologize if this is a commonly asked question, but I've been searching
 all over the place for confirmation: Does any version of Connman handle
 multiple connections at once?  I ask because I have both eth0 and wlan0
 both configured as AutoConnect = true and Favorite = true, but Connman
 appears to only run the DHCP client on one of the interfaces.


 By default connman only autoconnects to one service at a time. If you set
 /etc/connman/main.conf file (see example file at src/main.conf) setting
 PreferredTechnologies=**ethernet,wifi then you might get both ethernet
 and wifi autoconnected at the same time.
 There is some exceptions like if the ethernet connection gets internet
 access (online state), then wifi will not autoconnect because there is
 already an internet connection available. See description of the setting in
 example main.conf file in connman src directory for details.


 Cheers,
 Jukka




-- 
Stan Hu
Lead Software Developer

ACLIMA INC
Direct 415 735 5034 Office 415 249 4912  |  Email stan...@aclimalabs.com
10 Lombard St. Suite 210  |  San Francisco, CA 94111
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: does Connman handle multiple connections at once?

2012-09-11 Thread Patrik Flykt

Hi,

On Tue, 2012-09-11 at 00:34 -0700, Stan Hu wrote:
 I did try putting PreferredTechnologies=**ethernet,wifi

I hope you didn't add those '**' in the main.conf file.

 but still only one connection was established.

This is a possible outcome, yes. Both ethernet and wifi will be
connected only if ethernet ends up in state 'ready' with wifi being
either 'ready' or 'online'.

 Is there a way to force multiple connections at once?

ConnMan is happy with one connected connection (no PreferredTechnologies
set) or with multiple ones depending on the ordering of
PreferredTechnologies and the order in which technologies appear. 

If some really specific connections are needed, they need to be
connected via user interaction over D-Bus.


Cheers,

Patrik


___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


does Connman handle multiple connections at once?

2012-09-10 Thread Stan Hu
I apologize if this is a commonly asked question, but I've been searching
all over the place for confirmation: Does any version of Connman handle
multiple connections at once?  I ask because I have both eth0 and wlan0
both configured as AutoConnect = true and Favorite = true, but Connman
appears to only run the DHCP client on one of the interfaces.

Thanks.
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman