Skip to content
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

Wifi reconnect after disconnect #259

Closed
Budman1758 opened this issue Sep 12, 2022 · 6 comments
Closed

Wifi reconnect after disconnect #259

Budman1758 opened this issue Sep 12, 2022 · 6 comments
Labels
awaiting for feedback More details or tests needed Core related It improves or changes RPIEasy core functions. enhancement New feature or request

Comments

@Budman1758
Copy link

Something I have been noticing quite a bit lately with my irrigation controller is the WIFI connection seems to disconnect randomly, and the device stays disconnected. Apparently, no attempt is made to reconnect. I don't know why these disconnects keep happening and the only way to reconnect to the device is to force a reboot by power cycling it as it runs headless.

I would like to see the device reconnect on its own but not sure if this is a "PI" thing or a "RPI" thing. Is there an easy solution to this?

Pi Zero W running Stretch latest RPI version.

@enesbcs
Copy link
Owner

enesbcs commented Sep 13, 2022

Interesting, however network layer is not under RPIEasy control. It is controlled by the Linux kernel. RPIEasy just writes Wifi SSID and password to a config file.
Disconnection may occur when the wifi signal is low or interference is high.
dmesg and syslog may contain information about disconnection reasons. Is it an USB Wifi dongle, or the integrated wifi?

For a quick fix: you can add a Ping device into RPIEasy that will ping your wifi router's IP address and its State can be monitored in Rules, if it is 0 you can execute a Reboot command.

@Budman1758
Copy link
Author

WiFi is the integrated chip on the pi. Any way to use a rule to just restart the WiFi service instead of complete reboot?

@enesbcs
Copy link
Owner

enesbcs commented Sep 13, 2022

wificonnect, wifidisconnect and wifireconnect currently not implemented, but can be in the future through some linux shell scripts

@Budman1758
Copy link
Author

wificonnect, wifidisconnect and wifireconnect currently not implemented, but can be in the future through some linux shell scripts

Methinks that would be a pretty handy thing.

@enesbcs enesbcs added enhancement New feature or request Core related It improves or changes RPIEasy core functions. labels Sep 17, 2022
@enesbcs
Copy link
Owner

enesbcs commented Aug 6, 2023

'wifireconnect' command added to current release, although it may or may not work, as on Linux a lots of things uses network cards beyond the standard ifconfig, ip, iw commands, dhcpcd, and various network managers... this wifireconnect command may work if the integrated power management causes the wifi disconnection.
a7d1219

The fool-proof solution is a reboot, honestly i am using integrated watchdog on Pi's, as it has a dedicated watchdog hardware.
https://diode.io/raspberry%20pi/running-forever-with-the-raspberry-pi-hardware-watchdog-20202/

@enesbcs enesbcs added the awaiting for feedback More details or tests needed label Aug 6, 2023
@enesbcs
Copy link
Owner

enesbcs commented Sep 26, 2023

Closed as no feedback

@enesbcs enesbcs closed this as completed Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting for feedback More details or tests needed Core related It improves or changes RPIEasy core functions. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants