wifi-connect icon indicating copy to clipboard operation
wifi-connect copied to clipboard

Wifi forgetting network settingd

Open mishave opened this issue 4 years ago • 5 comments

Installed on RPI3 Bv1.2 running Buster

In general, the package works fine, installed okay and when ran it connects to wifi.

But having an issue every now and then on reboot, it will forget the wifi credentials and ask to reconnect. Any tips on making sure the details are saved?

Cheers

mishave avatar Nov 10 '21 08:11 mishave

same here with buster. it doesn't actually start, but when manually started it asks for root and it doesn't remember the credentials from the previous connection.

aomanchuria avatar Nov 27 '21 17:11 aomanchuria

can anybody suggest a solution to this?

Nidhiup avatar Feb 17 '22 06:02 Nidhiup

I ended up just following the instructions here: https://www.raspberryconnect.com/projects/65-raspberrypi-hotspot-accesspoints/157-raspberry-pi-auto-wifi-hotspot-switch-internet you get a lot more control and the connection is automatic. The only down side is that there isn't a way to change the wifi you connect to unless you change the files in the pi. I think this would be easily solved using something like a plotly sever to pick wifi spots.

aomanchuria avatar Feb 20 '22 19:02 aomanchuria

I thought the same, but it turned out not to be the case.

It seems that when the device starts up, it doesn't always find the configured SSID right away, so it ends up starting the access point. That access point will be there until the ACTIVITY_TIMEOUT expires. Upon timeout, it will again try to connect to Wifi.

The problem (aside from not being able to connect to the wifi in the first place) is that the default for ACTIVITY_TIMEOUT is infinity. This means it will forever be trapped in access point mode until the wifi is reconfigured or the device is turned off.

Try setting this to something reasonable (perhaps 60 or 120 seconds.) The thing to be aware of is that when the timeout expires, the captive portal will disappear. So be sure to give yourself enough time to locate the access point, connect to it, and configure your wifi.

nettlep avatar Sep 15 '22 18:09 nettlep

Just a +1 that the behavior @nettlep described was common on my balena wifi connect devices and resolved the issue for me!

keenanjohnson avatar Dec 09 '22 20:12 keenanjohnson