-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconnecting to WiFi network #926
Comments
Yes, I have same issue. |
Temporarily I got back to 1.55 version, I found it far more stable and reliable despite I very like version 2.x |
Yes I've got the same problem. I power off my router and on every morning. And Volumio can't reconnect the network. |
I wrote a plugin that reconnect wifi. Please have look here to test : https://github.com/balbuze/volumio-plugins/tree/master/plugins/system_controller/wifireconnect |
But I have tested it on two device and for me it works ! |
I wonder if would be better to test just local connectivity - ie can you get to the local router, than going to an external address; this makes it easier to tell if problems are with volumio or the local router/wifi access point. |
Actually the output of |
I agree with you for local IP. But I can't guess IP for each case. It's because I set as default IP Google one. But you can set the IP you want in the plugin setting. But I have a problem in some cases. It seems to conflict with hotspot. I have to investigate.. |
I've done a lot of test. The script used in the plugin works for a short network drop. But remains for a long network down. It seems due to dhcp that not is not renewed. When I stop my router, wait more than one hours and restart, Volumio can't reconnect even when restarting interface. Only a reboot do the job. and it seems something is wrong with dhcp. I use a dynamic address. I'm not a network specialist.... If someone knows.... |
In fact, this is done by design. |
Or perhaps an option to alter the reconnection time?? 30s seems very short to me, but ofc it depends on an individual's circumstances/needs. |
What if Volumio simply does not start hotspot if user did set Hotspot to OFF and saved settings as such? In general Volumio should probably keep doing what user did specifically setup within Preferences, and not intervene with different initiatives which may be very confusing for users that are not "in the know". Makes sense? |
I set that by default in /etc/dhcp/dhcpd.conf |
Now my device is still connected for two days even with the wifi router off all the night :-) |
Interesting workaround. User may want Hotspot:
|
That's clever! I will implement it this way |
Cool! Still considering create_ap? |
I did some research to see if it would be possible to run both HotSpot and AccessPoint simultaneously. This would be a great solution since each wireless network would run independently. Unfortunately, the ability to run hostapd and wpa_supplicant depends critically on the feature supported by the hardware and driver: http://www.0xf8.org/2016/02/using-your-raspberry-pi-zeros-usb-wifi-adapter-as-both-wifi-client-and-access-point/. This means that this solution cannot be used in the general case. |
I would say that your original plan might be the best option... |
I am experiencing this issue as well (RPi3 w/Volumio 2). Eagerly awaiting a solution to the Wifi restoring. |
As far as I can tell, the current volumio code does not restart the hotspot if the setting is OFF: if (hotspotjson != undefined
&& hotspotjson.enable_hotspot != undefined
&& hotspotjson.enable_hotspot.value != undefined
&& !hotspotjson.enable_hotspot.value) {
console.log('Hotspot is disabled, not starting it');
launch(ifconfigWlan, "configwlanup", true, function(err) {
console.log("ifconfig " + err);
});
} else {
launch(ifconfigHotspot, "confighotspot", true, function(err) {
console.log("ifconfig " + err);
launch(starthostapd,"hotspot" , false, function() {
wstatus("hotspot");
});
}); |
I've written a description of work in progress. |
My wifi is off during the nights. So i have to restart my volumio every day to make it reconnect. I tried the plugin https://github.com/balbuze/volumio-plugins/tree/master/plugins/system_controller/wifireconnect and i disabled the hotspot mode but there's no difference. Is there another way to make wifi reconnect automatically? |
Same issue here. I put the script I found here onto the Raspberry Pi but can't seem to bring up the |
@bvp663 see balbuze/volumio-plugins#64 (comment) |
Hi! My wifi is scheduled to turn off during work and sleep time. I didn't want to test the entire Internet connection but only the wifi state because I still wanted to be able to use AirPlay on my local network. So I use the following script for that purpose and it works well on my rpi3 (even after several hours of wifi off):
Hope it helps... |
Added |
Hello,
I have an issue with reconnecting Volumio to Wifi network. Sometimes can happen that the WiFi router reboot and the WiFi network goes down. After the restart of the router and after the WiFi network goes up again, Volumio does not reconnect automatically to the network, but I have to reboot the RP since I am accessing through the web interface. Does anyone had the similar issue and how did it solve it? With previous version of Volumio it took sometime to reconnect automatically, but it reconnected at the end.
I am using RP 2 with the latest Volumio2 update. The network card is EDIMAX EW-7811UN.
Thank you and regards.
The text was updated successfully, but these errors were encountered: