I am connected to my dedicated wireless N network at 95% signal on my Pi. On my other computers I can get a nice steady 40~50 mbps (~5 mb/s) copying from my Ubuntu NAS.

I am trying to stream video to a server that does motion detection,etc. The problem is that using custom mjpg on wireless gives me 0.7FPS - Wired is 7FPS(Which is good) and using RTSP on Wifi just buffers the whole time and is unwatchable while on LAN its 25FPS no probs!

enter image description here

My router reports a hand shaked conenction speed of 39mbps

enter image description here

I run iperf server on my Ubuntu NAS box that is wired directly to the WiFi router and then do a test from the Pi.

enter image description here

It is one of those mini dongles and its plugged directly into the Pi's USB port. I have the Pi powered by GPIO 2A and I removed the USB fuses. The USB are powered directly by the 5V rail from the GPIO pins so it can't be power problem. This dongle does work in Winblows very well even at 30%

enter image description here

Is this a driver issue?

-netcat results for Arne (I did not do 100mb because it went over a 10 minutes - I reduced it to 10mb)

root@nas:~# time head -c 10000000 /dev/zero | nc raspberrypi 8888

real    3m20.426s
user    0m0.000s
sys     0m0.072s
root@nas:~# time head -c 10000000 /dev/zero | nc raspberrypi 8888

real    3m23.162s
user    0m0.000s
sys     0m0.068s
  • Have you tried measuring the raw transmission speed? E.g. with netcat? Start nc on the pi: nc -l 8888. Then run nc on another computer: time head -c 100000000 /dev/zero | nc raspberrypi.local 8888. Then divide 100MB by the seconds output by time, and give us the result. – Arne Nov 14 '13 at 13:56
  • Also: repeat this experiment a couple of times, for more significant results – Arne Nov 14 '13 at 13:56
  • Also: signal level of 53 is not that good. 72 MBits sounds quite ok. However, my rtl8188 usually gets 150 MBits – Arne Nov 14 '13 at 13:56
  • Well we cannot be 100% sure if those figures reported there are correct. The firmware might be faked (this is unbranded one) and it could just show duff results. Any way signal level can be low but if quality is 100% it means there should be no lost packets at the link speed which is 70mbps (but this could also be duff). @Arne the results are about 10MB / 3.33 = 3.003 (once it went really quick though? ) 100mb wst aking long – Piotr Kula Nov 14 '13 at 14:12
  • 3m20s for 10 megabytes. That works out 50kb/s (0.4Mbps) ? Not very good ... how does nc work. It sends data to Pi and verifies the packet? Or to the Pi and back? – Piotr Kula Nov 14 '13 at 14:44

It could it be related to power management.

Perhaps turn it off in the driver

sudo nano /etc/modprobe.d/8192.cu.conf

add the line

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
  • Ask questions in the comments, not in an answer. – syb0rg Jan 14 '14 at 21:34
  • Thanks. I did not try that as you are the first to talk about this. When I get back to the Pi I will try it out. – Piotr Kula Jan 14 '14 at 21:52
  • 1
    Can you tell us what exactly this does? – Nearoo Aug 25 '16 at 17:52

I got the same problem when 802.11n not enabled at my hostapd config. More detailed explanation can be found here.

You have to append below configuration to your hostapd.conf file:


Bonus tip

Feed the usb adapter with external power supply. Even though I enabled the 802.11n, the speed was nowhere near what it supposed to be. It turns out the usb output of raspberry pi b+ is not enough to feed the adapter.

Bonus problem :)

With high wireless traffic, lets say torrent, raspberry pi stalls the wireless connection without shutting down it self. Whenever this occurs the adapter seems to be heated some amount. I am still trying to solve this problem. Probably this is related adapter itself and I should ask for a solution under different topic. Still wanted to mention it.



I noticed that when I hold the dongle in my hand the speed jumps from 5K/s to 2M/s. I made several experiments and confirmed that holding the dongle in the hand or wrapping it with aluminium foil increases the speed consistently.

I have no idea why what I said above helps. I suspect antenna designers might have some explanation.

  • Some photo would be interesting. – Piotr Kula Apr 5 '15 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.