Wifi instability on RPi 0.3-alpha

Raspberry Pi related support

Wifi instability on RPi 0.3-alpha

Postby Stwert » 19 Sep 2014, 02:26

Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Wifi instability on RPi 0.3-alpha

Postby johnbanks » 19 Sep 2014, 16:55

@Stwert ...
I can’t offer any suggestion on your Ethernet connection problem but I too use the Edimax wireless adapter and it is now working fine for me.

I found this on the RPi forum ... it stopped the Edimax losing connection after periods of non-use/overnight.
==========
by MrEngman » Sun Nov 24, 2013 5:47 pm
Try this. Make a file 8192cu.conf in directory /etc/modprobe.d/ with the command

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

and add the following lines

# Disable power management
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

Later explanation by MrEngman ...
I've no idea why it works, other than it interacts directly with the driver, but there appear to be some oddities regarding so called power management. Command iwconfig always shows power management is off regardless. But the 8192cu driver for the EW7811Un is compiled by default with minimum power management enabled, and appears unaffected by the general power management setting, so could drop power after some time but shouldn't turn off, and this is even when power management is reportedly turned off. It could be the distance to the AP may come in to it and when power is reduced the connection could be lost. Just a guess though.
==============================

Adopting a belt & braces approach, I also followed Maurice Svay’s RPi blog suggestion to the ping router every minute by setting up a cron job ....
Do systemctl enable cronie.service
Do systemctl unmask cronie.service
Do systemctl start cronie.service
Do export EDITOR=nano
Do crontab –e and insert following line then save & exit

*/1 * * * * ping -c 1 192.168.0.1
[i](NOTE: substitute your router IP address)[/i]

Now do crontab –l to check that the cron job is there
Now do systemctl status cronie to check that cronie is running

Hope this helps – good luck
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Wifi instability on RPi 0.3-alpha

Postby Stwert » 19 Sep 2014, 18:21

John, thanks very much for your offered solution.
I did come across this information in previous searching and added the conf file right away to disable power management. Unfortunately, that doesn't seem to be the source of this issue.
I'm happy to provide debug information or other info. I'm doubtful that it is actually a 0.3-alpha bug, because others have got the wifi working with the same hardware and software, I think. Wondering if perhaps I have some faulty hardware somewhere? It's hard to know.

To summarize, I'm using Raspberry Pi B+ with Edimax 7811Un and a fresh install of RuneAudio 0.3-alpha with a 8192cu.conf file.

Edit: I should add that there's no spaces in the SSID, since that seems to be something others have had issues with. Finally, I'm trying to get a static IP configured. I will try a DHCP IP to see if I have a different experience.
Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Wifi instability on RPi 0.3-alpha

Postby cmh714 » 19 Sep 2014, 21:48

yes power management needs to be turned off is my experience on an RA5730 wifi as well. basically if theres no activity it goes to sleep :)
cmh714
 
Posts: 470
Joined: 04 May 2014, 03:06

Re: Wifi instability on RPi 0.3-alpha

Postby johnbanks » 19 Sep 2014, 22:01

@Stwert ...
It could be your lucky day :)
A guy wick has just posted a lengthy step by step diagnostic guide for wifi.
It's in the main 0.3 topic.
Might be worth a try.
PS - I second his comments about an adequate power supply so you might want to try this ...

http://elinux.org/R-Pi_Troubleshooting# ... r_problems

You'll need a voltmeter
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Wifi instability on RPi 0.3-alpha

Postby johnbanks » 19 Sep 2014, 22:12

johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Wifi instability on RPi 0.3-alpha

Postby cmh714 » 19 Sep 2014, 22:34

cmh714
 
Posts: 470
Joined: 04 May 2014, 03:06

Re: Wifi instability on RPi 0.3-alpha

Postby Stwert » 19 Sep 2014, 23:23

Thank you again for the input.

Again, I'm fairly sure it's not a power management issue (i.e. going to sleep) because there is no time for it to go to sleep, as the connection is lost in seconds, and I've added the conf file regardless. I will look through the diagnostic steps in the other thread.

Edit: Unfortunately I don't have a voltmeter, so it would be a few days before I can find one and try that diagnostic.
Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Wifi instability on RPi 0.3-alpha

Postby Stwert » 19 Sep 2014, 23:56

Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Wifi instability on RPi 0.3-alpha

Postby Stwert » 20 Sep 2014, 01:09

Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 5 guests