Hi,

I have been facing an issue with connman, When I have multiple connections
(2 Wi-FI and 3G connection), there is a problem in switching (The wifi
service is not changing to online state).

*The basic settings:*

1. Having two configuration files under (/var/lib/connman) with AP1 and AP2
credentials.
2. Preferences are wifi and 3G

*Procedure followed:*

1. AP1, AP2 are on 3G dongle connected - AP1 is connected and online as
signal strength is more.
2. If AP1 goes down, connection will switch to AP2 and comes online.
3. If AP2 also goes down. Connection will switch to 3G and comes online.
4. If AP2 comes available connection will be established properly and comes
online (It was the one which connected before 3G connection),If suppose AP1
comes available instead of AP2, the AP1 stays in ready state always.

*Clue I got: *To verify the connection, connman checks "URL:
http://ipv4.connman.net/online/status.html"; and for that it will route
before doing this. This adding route is not happening properly(Please find
the logs)

*Can anyone help on this*


*logs :*

connmand[7349]: src/wispr.c:wispr_portal_detect() interface wlan0
connmand[7349]: Failed to find URL:
http://ipv4.connman.net/online/status.html
connmand[7349]: src/wispr.c:proxy_callback() proxy (null)
connmand[7349]: src/wispr.c:connman_wispr_message_init()
connmand[7349]: src/wispr.c:wispr_portal_request_portal()
*connmand[7349]: src/wispr.c:wispr_route_request() address 82.165.8.211 if
7 gw 192.168.0.1**, This gw is not correct, it is older AP's*
connmand[7349]: src/wispr.c:wispr_route_request() The route address is
(null)
connmand[7349]: src/wispr.c:wispr_route_request() After sleep
connmand[7349]: src/wispr.c:wispr_route_request() IPCONFIG TYPE IS IPV4
connmand[7349]: Adding host route failed (Network is unreachable)
connmand[7349]: src/wispr.c:wispr_route_request() SRIRAM: Returning from
here because of error
connmand[7349]: src/wispr.c:wispr_route_request() IPCONFIG TYPE IS IPV4
connmand[7349]: Adding host route failed (Network is unreachable)
connmand[7349]: src/wispr.c:wispr_route_request() SRIRAM: Returning from
here because of error
connmand[7349]: src/wispr.c:wispr_route_request() IPCONFIG TYPE IS IPV4
connmand[7349]: Adding host route failed (Network is unreachable)
connmand[7349]: src/wispr.c:wispr_route_request() SRIRAM: Returning from
here because of error

root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts# connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
ping -I wlan0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.1.100 wlan0: 56(84) bytes of data.
>From 192.168.1.100 icmp_seq=1 Destination Host Unreachable
>From 192.168.1.100 icmp_seq=2 Destination Host Unreachable
>From 192.168.1.100 icmp_seq=3 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5023ms
pipe 3
root@OpenWrt:/var/scripts# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
10.133.77.102   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.174.81.84    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.174.81.85    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
wlan0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0
wlan0
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0
wlan1
192.168.101.1   192.168.1.1     255.255.255.255 UGH   0      0        0
wlan0
root@OpenWrt:/var/scripts# connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 108
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: src/wispr.c:wispr_portal_web_result()
connmand[7349]: src/wispr.c:wispr_portal_web_result() status: 400
connmand[7349]: Online check failed for 0xc2e18 Hotspot_2
connmand[7349]: src/wispr.c:wispr_portal_error() Failed to proceed
wispr/portal web request
connmand[7349]: src/wispr.c:free_connman_wispr_portal_context() context
0xc8230
connmand[7349]: src/wispr.c:connman_wispr_message_init()
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: src/wispr.c:__connman_wispr_stop() service 0xc7170
connmand[7349]: src/wispr.c:free_connman_wispr_portal()
connmand[7349]: src/wispr.c:free_connman_wispr_portal_context() context
(nil)
connmand[7349]: src/wispr.c:free_connman_wispr_portal_context() context
(nil)
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
wlan1: STA 3c:91:57:3c:ae:e3 WPA: group key handshake completed (WPA)
connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56

root@OpenWrt:/var/scripts# connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56

root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts# connmand[7349]: netlink_event
connmand[7349]: rtnl_message : buf 0x7ee93b98 len 56
connmand[7349]: src/wispr.c:__connman_wispr_stop() service 0xcd278

root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts#
root@OpenWrt:/var/scripts# connmanctl services
*AO Vodafone IN          cellular_404844222578778_context1
*AR Hotspot_2            wifi_30144a7fa744_486f7473706f745f32_managed_psk
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to