Raspberry Pi Wi-Fi performance boost

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
miroslavpetrov
Posts: 33
Joined: Wednesday 03 February 2016 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Raspberry Pi Wi-Fi performance boost

Post by miroslavpetrov »

Hi everyone,

I want to share something (which some of you may already know) about Raspberry Pi's wireless performance.
I recently bought a Pi 3 and I noticed that the ping from my PC to the Pi is around 70-80ms, while all the devices and the router are within 1 meter radius. Also I wasn't able to access domoticz web server(getting domoticz offline page) from the first try, sometimes I had to refresh few times.

It turned out the problem comes from the wireless power management of the Pi, which turns of the Wifi(or switches to low-power mode) when the device is unused for certain amount of time(some forums say 1minute)

if you type

Code: Select all

 iwconfig
in the command line you will get something like:
power management.PNG
power management.PNG (12.07 KiB) Viewed 1764 times
You can see whether or not your wireless power management is on.(In my case it is OFF)

To turn it off do the following:

1. Open the file in nano

Code: Select all

sudo nano /etc/network/interfaces
2. add the line:

Code: Select all

post-up iw dev $IFACE set power_save off
at the place showed below
interfaces.PNG
interfaces.PNG (18.37 KiB) Viewed 1764 times
3.Reboot the Pi

Code: Select all

sudo reboot
4.After reboot check the output of

Code: Select all

iwconfig
to see if the Power Management is OFF

After I turned off the power management the ping went from 70-80ms to a stable 4-5ms.

Hope you find the information usefull!!!
PS: Since I am new to the forum, I might not placed the thread at the correct place. Please excuse me for this.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
cobra045
Posts: 46
Joined: Friday 12 February 2016 20:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Raspberry Pi Wi-Fi performance boost

Post by cobra045 »

Thanks for this important information

Cobra
hammertime
Posts: 1
Joined: Saturday 22 October 2016 18:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry Pi Wi-Fi performance boost

Post by hammertime »

Thank you so much! I've been struggling with this issue for a few weeks.. now I can use the pi wirelessly.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest