RaspberryConnect / AutoHotspot-Installer

For the RaspberryPi computers. Allows switching between a Raspberry Pi Access Point and Wifi Network connection without a reboot.
GNU General Public License v3.0
69 stars 24 forks source link

Slow WLAN when multible devices connect #20

Open Yanni8 opened 8 months ago

Yanni8 commented 8 months ago

Your script works great. Thanks!

But I have a smal Issue when I try to connect 3-4 Devices with the same hotspot. The network speed drops significant. I don't need a high Networkspeed around 5 MB/s @ 4 Devices should be enough. Do you know how I coud fix this? I'm using a raspberry Pi 4

RaspberryConnect commented 8 months ago

Hi Yanni8

There can be various factors for slow wifi. One area is to make sure the power supply covers the Pi's requirements. When the supplied amps are getting near the demand, then its the Wifi that takes the hit in performance.

The Access Point is set to use channel 6. If there are several Networks in your area that are also using channel 6 then they may cause interference. In /etc/hostapd/hostapd.conf you can change the channel to anything between 1 and 11 with the line channel=6. As far as I am aware it is not recommended to use the channels above 11 for 2.4ghz channels.

If the devices connecting to the Access Point are all 5ghz compatible then you can change the Access Point to 5ghz. in /etc/hostapd/hostapd.conf change hw_mode=g to hw_mode=a channel=6 to channel=36 wmm_enabled=0 to wmm_enabled=1

and add the line: ieee80211ac=1

5ghz available in channels 36 to 48 and 52 to 68 on even numbers. Generally use the lower set.

Hopefully this is useful.