Hello all
I’m trying to use ConnMan to take care of network arbitration for my automotive embedded system. I had a question regarding session. Now the question is whether some of technologies get “online” simultaneously. I’d like to configure available bearers per application (per user) by using session_policy_local_plugin. For instance while “etherner_user” is connecting to the internet via Ethernet, “wifi_user” is connecting to the internet via WiFi. I’m expecting a usecase like this. I think wifi_user’s session does not get online even if wifi internet connection gets available. I suppose that is because “ethernet” is preferred technology. “wifi_user” can’t receive notification through session. session_policy_local_plugin configure ip route when get “online”. Therefore I think in above case “wifi_user” can’t connect to the internet. Is my understanding correct? If so, how can I realize above usecase? Here are settings and logs for connmanctl. # less /var/lib/connman/session_policy_local/ethernet_user.policy [policy_ethernet_user] uid = ethernet_user AllowedBearers = ethernet RoamingPolicy = forbidden # less /var/lib/connman/session_policy_local/wifi_user.policy [policy_wifi_user] uid = wifi_user AllowedBearers = wifi RoamingPolicy = forbidden ethernet_user$ connmanctl connmanctl> services *AO Wired ethernet_0800272156c9_cable *A Wired ethernet_080027243b60_cable connmanctl> session on Session /sessions/_1_92/net/connman/connmanctl3008 created Session Update = { State = online Name = Wired IPv4 = [ Method=dhcp, Address=10.71.112.171, Netmask=255.255.255.0, Gateway=10.71.112.254 ] IPv6 = [ ] Interface = eth0 Bearer = ethernet ConnectionType = internet AllowedBearers = [ ethernet ] } Session /sessions/_1_92/net/connman/connmanctl3008 connected connmanctl> wifi_user$ connmanctl connmanctl> services *AO Wired ethernet_0800272156c9_cable *A Wired ethernet_080027243b60_cable *A WiFi wifi_003a9daaf132_57694669_managed_psk connmanctl> session on Session /sessions/_1_94/net/connman/connmanctl3073 created Session Update = { State = disconnected Name = IPv4 = [ ] IPv6 = [ ] Interface = Bearer = ConnectionType = internet AllowedBearers = [ wifi ] } connmanctl> session connect connmanctl> services *AO Wired ethernet_0800272156c9_cable *AR WiFi wifi_003a9daaf132_57694669_managed_psk *A Wired ethernet_080027243b60_cable connmanctl> It would be extremely helpful if I could receive some advice about this matter Best Regards, Yusuke Nakamura 中村 勇介 Advanced Driver Information Technology Software Group (SWG) Engineer Tel: 0566-61-5117(ext:551-43641) Fax:0566-25-4774 Email:ynakam...@jp.adit-jv.com <mailto:ynakam...@jp.adit-jv.com> _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman