Sujet : Re: Weird Wifi problem Pi Zero W
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.sys.raspberry-piDate : 25. Aug 2024, 11:57:42
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vaf2n7$1rsn1$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 25/08/2024 11:07, mm0fmf wrote:
I have a Pi Zero W with a weird Wifi issue.
The Pi runs an SSH gateway and is powered from a USB port on the router. It's been running faultlessly for about 2years now with a few tweaks to the standard setup to mount regularly written to files on a ramdisk to preserve the SDcard. The system reboots every 24hrs as a simple way of stopping the ramdisk filling up.
After a new router was installed, this Pi has issues connecting to Wifi.
Power it up and there's a 75% chance it will connect. If it doesn't removing and reapplying power makes it likely to connect. If you reboot it from the command line it fails to connect most times.
I have a spare Pi Zero W and swapped the SDcard into the spare. Connects every time on reboot or on power-cycle. I place another SDcard in the intermittent one and the same Wifi connection problem exists. One card is Debian 12 with NetworkManager and one is Debian 11 with old style networking setup.
The fault moves with the Pi and doesn't seem to be software dependent. Using Debian 12 and checking with a USB Ethernet connection the Wifi fails with "could not activate connection: Activation failed: secrets were required but not provided" even though the password is set and has connected. I've checked there's no dust/dirt or other contamination on the PCB. I've powered it from several different USB ports (desktop, router, phone charger). The rest of the Pi seems to work fine when the Ethernet connection is in use. Or when it was in an original Pi Model A with a USB Wifi dongle, it boots and the Wifi connects. The software image appears OK. It's just this Pi Zero W with iffy Wifi.
Has anyone seen anything like this? Most annoying. Any ideas?
My guess, and its no more than that, is that the new router is negotiating connections in a different way than the old.
All routers have options for what they will accept and it may be that your new router is set to either deprecate or entirely reject the particular security protocol your pi uses.
Another possibility is that you have set the router to a channel that is not legally permitted as far as your Pi is concerned.
I would start by documenting what exact settings the old router was using and exactly duplicating them in the new.
I have found WPA-PSK to be a reliable security protocol to use. On channel 13 with European channels enabled
Also test the PI Zero W against other wifi access points. A moblile phone often is useful in this context.
If the Zero W does prove terminally recalcitrant, life is too short, Buy another one :-)
-- The New Left are the people they warned you about.