Hello Patrik,

Thanks for clarification.

I made my assumption from: https://01.org/connman/documentation

[General]
PreferredTechnologies = ethernet,wifi,cellular

With PreferredTechnologies enabled, the autoconnected services depend on the 
order in which they are created. Let's say there is one service for ethernet 
and another one for WiFi. If the WiFi service is detected before the ethernet 
one, both will get connected as ethernet, connected later, is preferred over 
WiFi. And as described above, WiFi can still have the default route if it goes 
to state 'online' while the ethernet one stays in 'ready'. If the ordering is 
the opposite with ethernet discovered first, the WiFi service will never be 
considered as ethernet is preferred over WiFi and already connected.


->Converting this to my use case where: PreferredTechnologies = 
wifi,ethernet,Bluetooth

With PreferredTechnologies enabled, the autoconnected services depend on the 
order in which they are created. Let's say there is one service for ethernet 
and another one for WiFi. If the Ethernet  service is detected before the WiFi 
one, both will get connected as WiFi, connected later, is preferred over 
Ethernet. And as described above, Ethernet can still have the default route if 
it goes to state 'online' while the WiFi one stays in 'ready'.

If the ordering is the opposite with WiFi discovered first, the ethernet 
service will never be considered as WiFi is preferred over ethernet and already 
connected.

But as I understood from you, priority ordering is decided by:

i) online service over ready service
ii) In case of same connection status(online or ready), then 
PreferredTechnologies ordering will be considered.
Sometime better connectivity state (better signal strength) also considered. 
Default gateway should not drop its connection status
                iii) Services of same technology will be ordered according to 
online status and then  order in which they are created
                iv) Order in which service created really matters?


Thanks in advance.

Best Regards,
PriyaranjanS


-----Original Message-----
From: connman [mailto:[email protected]] On Behalf Of Patrik Flykt
Sent: Friday, January 30, 2015 1:49 PM
To: [email protected]
Subject: Re: Issue found in service connman ordering


Hi,

On Fri, 2015-01-30 at 07:55 +0000, Priyaranjan Singh wrote:
> PreferredTechnologies = wifi,ethernet,Bluetooth

If the services end up with equal states, i.e. all in 'ready' or all can 
possbly go 'online' the order is wifi first, ethernet second and bluetooth 
third.

The start of a documentation at https://01.org/connman/documentation
tries to explain this.

> Step 2) Connect Ethernet device/phone (data usage on) with target
>
>                                Actual Service ordering:
> #connmanctl services
> List of all services:
> *AO Wired                { ethernet_22d3f9d281a8_cable }
> *AR uttejSir             { wifi_001cc1a25dff_757474656a536972_managed_none }
>
>                                Expected Service ordering:
> #connmanctl services
> List of all services:
> *AR uttejSir             { wifi_001cc1a25dff_757474656a536972_managed_none }
> *AR Wired                { ethernet_22d3f9d281a8_cable }

If the services had both stayed at 'ready' the expected service ordering would 
be the one used. But now ethernet successfully finished the online check, and 
entered 'online' state as a result. PreferredTechnologies is valid for services 
in the same state, and 'online' state is always preferred over 'ready'. If 
there are more than one services that can go 'online', PreferredTechnologies is 
consulted again and the most preferred technology type is the one that is 
selected as the one and only 'online' service at that time.

So this case works as expected.

Cheers,

Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman
This message contains information that may be privileged or confidential and is 
the property of the KPIT Technologies Ltd. It is intended only for the person 
to whom it is addressed. If you are not the intended recipient, you are not 
authorized to read, print, retain copy, disseminate, distribute, or use this 
message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message. KPIT 
Technologies Ltd. does not accept any liability for virus infected mails.
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to