Hi,
On Thu, 2016-06-30 at 18:04 +0300, Alexander Smirnov wrote:
Dear all,
I'm trying to setup ConnMan to have cellular always enabled despite
on
other services state.
What I did:
- Create oFono context with APN settings
- Set AutoConnect=true for cellular
- Tested manual cellular network bring up (connmanctl connect
cellular...)
What I've observed:
- If ehternet cable is plugged - cellular is in idle state
- If I down ethernet - cellular becomes available
I've enabled debugging, and found that "auto_connect_service()"
always
return true on the ethernet service:
src/service.c:
3772: if (service->pending ||
3773 is_connecting(service) ||
3774: is_connected(service)) {
3775: if (!active_count)
3776: return true;
Is there any way to get cellular always connected?
ConnMan will use the best technology when more than one choice is
available. The default ordering of the best technologies is ethernet,
wifi and cellular.
When ethernet is already connected, no attempt is made to connect any
of the other technologies. While ethernet is connected, connecting wifi
or cellular manually via dbus with 'connmanctl connect ...', will
result in the service getting connected to its next hop subnet, but the
default route will stay with ethernet - unless ethernet is in state
'ready', and the new service is in the more preferred state 'online'.
At that point the new service in state 'online' is selected over the
one in state 'ready', as 'online' has by definition verified
connectivity to the Internet.
The ordering of technologies can be modified with PreferredTechnologies
in /etc/connman/main.conf.
Cheers,
Patrik