I have a RPI 4 which drops out of the wireless contact at random. Sometimes it reconnects other times not. Sometimes it seems to freeze. I could not find any errors on the RPI server.
I have looked at the logs of the wireless access point.
Would anyone of you be able to give a hint what could be wrong?
TIA
It seems that RPI switches between different WiFi radios a lot. And it seems it's not using the mobility enhancements, logs are saying "disconnected, registered to other interface" ... when device uses mobility enhancement functions, log says "roamed to".
And many of those AP switches don't seem to make much sense as signal strength before and after is nearly the same ... the only sensible explanation would be that device is switching from 2.4GHz to 5GHz (but the reverse direction doesn't make much sense).
In any case (mobility enhancements or not), it's always station's decision to switch/roam to another AP. So troubleshooting should focus on station (AP's logs can help but they won't tell the whole story).
With all wifi equipment you need to set the country code, to reflect what channels being available and what power level of transmitting.
So my question becomes, have you set the country code in the Raspberry PI ?
I will check in the morning to see how it has performed. I have connected a RPI with a media streamer and it has caused a bit of a headache lately so it would be nice if your suggestions are helping.
You could try to execute the command: iw reg get
And if you don't have iw you can install it with the Package manager
if Debian based dist. apt install iw
And if Alpine apk add iw
Sometimes the router set the country code, so if you can test with iw command first and when connect and run the iw command again.
You will see if the country code set correctly.