Dropping wireless connection hEX PoE RB960PG S and Cap AC,

Greeting to all,

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 ?

thanks @patrikg

I thought I had. Just to be sure, I went through the config again.

thanks @mkx

I have disabled it though it looks like the disconnection continues, though havent had a look after going through the country setting.

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.

Thanks to both of you for now!

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.

what is the ‘iw reg get’ for?

btw, I just noticed that it disconnected and reconnected again.

You get the country code that have being set on the wifi card.

And you can also set the country code with that command.

iw reg set IT

The IT is the country code in ISO Format.

pi@raspberrypi:~ $ iw reg get
global
country NZ: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 36), (N/A)
(5150 - 5250 @ 80), (N/A, 30), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 27), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 27), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 36), (N/A)
(5925 - 6425 @ 320), (N/A, 24), (N/A), NO-OUTDOOR
(57000 - 71000 @ 2160), (N/A, 40), (N/A)

phy#0
country 99: DFS-UNSET
(2402 - 2482 @ 40), (6, 20), (N/A)
(2474 - 2494 @ 20), (6, 20), (N/A)
(5140 - 5360 @ 160), (6, 20), (N/A)
(5460 - 5860 @ 160), (6, 20), (N/A)

Country is correct and the rest I just don’t know what it all means.

1 Like

It seems that disabling the 5Ghz hasn’t changed anything