Wifi Dropping Out

Moderator: flatmax

brett
Posts: 9
Joined: Wed Mar 22, 2017 10:44 pm

Wifi Dropping Out

Post by brett » Sun Apr 30, 2017 9:54 pm

Hi
Last few days i have been trying to use my raspberry pi 3 Headless. It seems to work fine until i play audio. It turns out that my pi looses internet. Connect my pi back with kboard mouse monitor, then in command line i run mpg321 mysong.mp3 song starts playing fine, but then i think, lets see if internet works while playing song, cant load any web-pages. If i connect ethernet no problems. Fresh install of Raspbian-pixels
17-4-10 Audioinjector removed,
sudo apt-get update
sudo apt-get -y upgrade
reboot
enable vnc
sudo apt-get install mpg321
mpg321 mysong.mp3 Sound is played and vnc viewer doesnt crash. Internet works aswell

Shutdown and installed audioinjector
package installed
audioInjector-setup.sh
then reboot
mpg321 mysong.mp3 song is played. crashes vnc viewer or no internet if viewer wasnt even connected.

Is there a work around for this it seems like the wifi looses its resources

Thank-You

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Wifi Dropping Out

Post by flatmax » Mon May 01, 2017 2:43 pm

Can you do a test with the ethernet connection as well ?

thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

brett
Posts: 9
Joined: Wed Mar 22, 2017 10:44 pm

Re: Wifi Dropping Out

Post by brett » Mon May 01, 2017 4:28 pm

Hi Matt
It works fine with ethernet can play music and browse on internet,it will also connect to the viewer.

brett
Posts: 9
Joined: Wed Mar 22, 2017 10:44 pm

Re: Wifi Dropping Out

Post by brett » Sat May 06, 2017 12:54 pm

Hi
Can the audioinjector play music and have a Wifi connection? I need to know this! The Robot i am building with voice control needs to be wireless, not ethernet .Have the cheap $3 usb-sound-dongle, which i now have working in my code, with wifi ,but would prefer the audioinjector, as it frees up the needed usb slots.
Thank-You

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Wifi Dropping Out

Post by flatmax » Mon May 08, 2017 4:41 pm

Not sure about this. However if it is dropping out because the hat is on, we are going to release the AudioInjector zero soon :
viewtopic.php?f=5&t=736#p2149

thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

brett
Posts: 9
Joined: Wed Mar 22, 2017 10:44 pm

Re: Wifi Dropping Out

Post by brett » Tue May 09, 2017 10:27 am

Hi
so no 1 can do a test to see ? Not that difficult, play a song see if you loose wireless. Or do i need to purchase another and do my own R&D?

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Wifi Dropping Out

Post by flatmax » Wed May 10, 2017 4:29 pm

OK, I have done a test. With my test conditions, I have no dropouts ... for a period of the entire song (almost 4 minutes).

Here is my setup :
1] Vncserver.
2] setup wifi

Code: Select all

pi@raspberrypi:~ $ iwconfig wlan0 | grep -i --color quality
          Link Quality=48/70  Signal level=-62 dBm  
3] Download an mp3 :

Code: Select all

wget https://ogg.jamendo.com/download/track/206408/ogg1/ -O AndroidWar.ogg
4] Install mplayer :

Code: Select all

sudo apt-get install mplayer
5] play it :

Code: Select all

mplayer  AndroidWar.ogg
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

ktb
Posts: 23
Joined: Thu Apr 27, 2017 11:04 am

Re: Wifi Dropping Out

Post by ktb » Wed May 10, 2017 5:34 pm

Just a thought... I don't know if it will make any difference, but maybe you should check if power saving/management is enabled.

Check the current value

Code: Select all

pi@raspberrypi:~ $ iw wlan0 get power_save
Power save: on

Code: Select all

pi@raspberrypi:~ $ iwconfig wlan0
wlan0     IEEE 802.11  Mode:Master  Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
I think the following command just disables it temporarily and will not survive a reboot:

Code: Select all

pi@raspberrypi:~ $ sudo iw wlan0 set power_save off
There are a variety of ways to turn this off more permanently/automatically.

Also, what power supply are you using?

brett
Posts: 9
Joined: Wed Mar 22, 2017 10:44 pm

Re: Wifi Dropping Out

Post by brett » Wed May 10, 2017 7:00 pm

Thank-you
My power supply is a 12v battery connected to a 5A buck voltage regulator running at 5.62V. I will check out the solution offered here, and get back to you, I have another raspberry pi ill try on that too .The audioInjector works flawlessly on everything else, thank-you for the test and solutions.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Wifi Dropping Out

Post by flatmax » Wed May 10, 2017 8:41 pm

No worries. Just wanted to also point out that I disconnected my ethernet cable to make sure it was ONLY running on WiFi.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests