mrcowhead
Posts: 2
Joined: Fri Jun 05, 2020 10:30 pm

Pi 4 WiFi bit rate dropping exactly every 1 minute

Fri Jun 05, 2020 10:35 pm

I just received a Pi 4 2GB today. Everything is working great except for the wifi. I'm connected to a 5ghz AC network. It connects fine and the connection never disconnects, but exactly every 1 minute the bit rate will drop from 200mbps to 25mbps and stay there for ~5 seconds then return back to 200mbps. For my use case, I need the high bit rate to be maintained and the drops are killing me. No other device on my network is experiencing this problem. Ethernet works perfectly.

Any ideas what might be causing this issue?

Info:
- Running latest Raspian 32 bit with latest packages installed
- Tried switching the channels my wifi access point is broadcasting on
- Tried disconnecting every other device on my wifi network

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 30118
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Fri Jun 05, 2020 11:10 pm

Might be worth turning off bluetooth - might be doing a BT scan and because they use the same aerial that might be causing problems. Just a guess though. Or it might be a normal wireless scan for AP's or similar. Might be options to change that value to help narrow down the issue.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Working in the Applications Team.

rpi4.local
Posts: 25
Joined: Thu Jun 04, 2020 8:20 am

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Sat Jun 06, 2020 7:40 am

Have a look at Kismet. It's a tool to passively record all wifi packets. Record packets for a few minutes, then compare the moment when your link speed is dropping to the same moment in Kismet and see, what is actually going on in the air around you. If this is exactly every minute, there has to be an activity you can identify with Kismet as there must be a reason, why the Pi 4 needs to reduce transfer speed.

https://en.wikipedia.org/wiki/Kismet_(software)

mrcowhead
Posts: 2
Joined: Fri Jun 05, 2020 10:30 pm

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Sat Jun 06, 2020 1:46 pm

Hey all, thanks so much for the help!

jamesh your thought about periodic wireless AP scan was spot-on. Using the `iw event` command I was able to see wifi scans were occurring at exactly the same time as the bit rate drops every 1 minute.

I did a bit of research and discovered a bunch of other people were having the same problem with wpa_supplicant on pi. The scans were causing network issues but there doesn't seem to be a way to change the interval or disable scans.

My solution was to disable wpa_supplicant and use networkmanager instead. Since then I've seen zero issues.

Thanks again for the help!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 30118
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Sun Jun 07, 2020 11:16 am

Had this from our GUI guy.
"The scan interval is a config parameter. If he adds the following fields to the Config section inside the dhcpcdui section of .config/lxpanel/LXDE-pi/panels/panel

BgScan=xxx
BgScanMenu=xxx

they control how often a scan takes place. Value is in ms, so 60000 is scan once a minute. BgScan is how often it scans when the wifi menu is closed; BgScanMenu is how often it scans when it is open (more frequent to find networks faster)."
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Working in the Applications Team.

ptkim.raspi
Posts: 16
Joined: Sat Aug 11, 2018 3:07 am

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Thu Dec 31, 2020 11:05 pm

having a similar issue. not every 1 minutes but more often than not the rx bitrate drops to 1.0 MBit/s or so, so practically rendering the wifi unusable. the when it works, it gives 50~70MBit/s but it is for a few seconds or so.

also, having trouble connecting RPi4 to Amazon EERO router(mesh) at 802.11ac 5GHz. it scans it but it only connects to 802.11g/n 2.4GHz... I think. it scans the 5GHz though.

Connected to xx:xx:xx:xx:xx:xx (on wlan0)
SSID: dnp
freq: 2412
RX: 2407387221 bytes (8909895 packets)
TX: 991183409 bytes (5064775 packets)
signal: -38 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 72.2 MBit/s

bss flags: short-preamble short-slot-time
dtim period: 2
beacon int: 100


I have two RPi4s, and they both have WiFi issue, its speed is unpredictable and very unreliable. ping to wifi router showing lots of packet loss.



any help on how to use networkmanager instead of wpa_supplicant? newbie here.

ptkim.raspi
Posts: 16
Joined: Sat Aug 11, 2018 3:07 am

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Sun Jan 03, 2021 1:24 am

I got another RPi4 and ran the same test, and it was working a lot better.

so I finally gave up and returned the RPi4 for a replacement. maybe something was wrong w/ the RPi4 board or something.

bmcahill
Posts: 3
Joined: Sat Apr 03, 2021 12:34 am

Re: Pi 4 WiFi bit rate dropping exactly every 1 minute

Fri Apr 09, 2021 8:47 pm

I found 3 independent sources for automatic WiFi scans. See:
viewtopic.php?t=175480

Return to “Troubleshooting”