Raspberry Pi 3 loosing wifi - busy status - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Hardware (/forum-7.html) +--- Forum: Network (/forum-25.html) +--- Thread: Raspberry Pi 3 loosing wifi - busy status (/thread-3643.html) Pages: 1 2 |
Raspberry Pi 3 loosing wifi - busy status - mgouin - 1st Jul, 2016 09:01 AM Hello, I have a strange Wifi problem with my Raspberry Pi 3 setup using Xbian. I'm connected to my home router using the onboard wifi adapter. I have a good connection and wifi works at normal speed. After some time (it ranges from one to a few days), the wifi connection drops. The results are the following: - SSH not working (incoming wifi down) - Weather, Internet radio, Youtube... not working from kodi (outgoing WiFi down) - In Kodi: when I go to System, Information: multiple status are shown as busy: Internet Status, Uptime, etc... If I reboot, everything is back to normal for a few days again. I would really appreciate to have ideas on how to debug this. Thanks in advance! Mathieu RE: Raspberry Pi 3 loosing wifi - busy status - rikardo1979 - 1st Jul, 2016 03:36 PM (1st Jul, 2016 09:01 AM)mgouin Wrote: Hello, to troubleshoot you would need to provide log file RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 1st Jul, 2016 09:48 PM @mgouin What's the kernel version you are running? Terminal unname -a I have similar issues since one week and I have kernel version 4.4.13 and 4.4.14 under suspicion (the raspbian kernel guys did make some changes for 8192CU driver, maybe they killed brcmfmac driver with those commits). My wlan connection is only stable for a few seconds (before Kodi starts) and then connection is down and never comes back until reboot Have to investigate more at evening RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 1st Jul, 2016 10:15 PM Terminal Linux xbian 4.4.14+ #1 SMP PREEMPT Wed Jun 29 13:04:58 CEST 2016 armv7l GNU/Linux Thanks @rikardo Do you mean the xbian log (with command xl ) ? RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 2nd Jul, 2016 04:27 AM So, did not fixed my issue with onboard wlan device. After changing wlan channel it is more stable but still not perfect Your issue may be related to wlan power saving. You could try disabling power management by command Terminal sudo iw wlan0 set power_save off or adding one line to /etc/network/interfaces (I did this on my RPi3 now) Code: -- snip -- Seems not to be kernel issue > 4.4.12 and not firmware issue. Reverted back to older versions but did not make any difference. HTH RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 4th Jul, 2016 10:55 AM (2nd Jul, 2016 04:27 AM)Nachteule Wrote: So, did not fixed my issue with onboard wlan device. After changing wlan channel it is more stable but still not perfect Power saving is already disabled... Thanks anyway. Could you be more specific about what log file would you need ? RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 4th Jul, 2016 09:57 PM This is good question. You will nothing find in Kodi log, I suppose you have to install and run a syslog daemon (I'm using rsyslog, but syslog and syslog-ng should be ok also) Did you already checked if your RPi automatically reconnects to network after rebooting AP? AFAIR I had issues here few years ago so I wrote script running in background doing this RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 7th Jul, 2016 05:47 AM (4th Jul, 2016 09:57 PM)Nachteule Wrote: ... AP : You mean my wifi access point? My wifi router? What I still don't understand is the busy status reported in Kodi... Also, regarding your script, I'm ok fiddling with cron jobs, however I'm not sure which commands would work for resetting/reconnecting the wifi. Thanks! I'll try to post a screenshot later when this happens. RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 7th Jul, 2016 08:09 AM (7th Jul, 2016 05:47 AM)mgouin Wrote: AP : You mean my wifi access point? My wifi router? Yes, AP == AccessPoint Quote:What I still don't understand is the busy status reported in Kodi... Kodi tries to check online status, and if no network is working, it takes a little bit longer ... Quote:Also, regarding your script, I'm ok fiddling with cron jobs, however I'm not sure which commands would work for resetting/reconnecting the wifi. This should work for you: Code: #!/bin/bash ROUTERIP is the IP of your access point/router Don't forget to make this script executable and put it then into cronjob (sudo crontab -e) RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 8th Jul, 2016 02:17 PM Thanks for the script I'll try it. However, I remember last time it hang, I found the option in XBian to click the shutdown button, then select exit. This way, without network connectivity, I was able to login directly on they Pi with the TV screen to try reconnecting it live. I had tried the following with no success: Terminal sudo ifdown wlan0 sudo ifup wlan0 Next time, I'll try with "-a" flag and see if it helps... Also, if it can help: the output of "ifconfig" when disconnected vs operational is identical (except for rx,tx byte count). However, iwconfig operational (I prepended stars to lines only present when up): Code: wlan0 IEEE 802.11bgn ESSID:"mgmg" iwconfig down is: Code: wlan0 IEEE 802.11bgn ESSID:"mgmg" RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 8th Jul, 2016 08:41 PM Uh, looks not nice. Seems driver is being confused. In this case -a option does not help Try this script on next failure: Code: #!/bin/bash This reloads module brcmfmac. Last command (/sbin/ifup -a is optional and should not be necessary) RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 10th Jul, 2016 12:08 PM Thanks for the commands, I will try that next failure... I don't know if it's related, but I also noticed that recently, my ssh connections are becoming unreliable. I explain: Usually, I can connect with no problem. On some rare occasion, just after password entry, there is a long delay of about 30 seconds. But the most frequent issue is that regularly, while typing, the ssh session seems to not accept any keys. The session is still open, I can ping the PI so network is not down. However the session does not respond to any keypress. After about 30s to 1min (approx), this usually comes to normal and the "buffered" keys appear in the bash prompt. Then, I can type without lag for 1min, then freeze again. This is driving me nuts... RE: Raspberry Pi 3 loosing wifi - busy status - Nachteule - 10th Jul, 2016 08:03 PM AFAIR I had similar strange behavior before I changed wlan channel at my AP 2 weeks ago. Since I did this, connection seems to be stable again (I switched from 6 to 1). Could you try this? RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 12th Jul, 2016 08:37 AM I did not change my AP channel, I'm not even sure my router supports that... I will try, but if that was the problem, not just SSH would be flaky, right? Repeated pings are working fine... I start to suspect the latest apt upgrade I did from xbian-config utility. RE: Raspberry Pi 3 loosing wifi - busy status - mgouin - 21st Jul, 2016 11:31 PM (8th Jul, 2016 08:41 PM)Nachteule Wrote: Try this script on next failure: I tried it and it at the "modprobe brcmfmac" command, it resulted in internal error oops 17. Refer to the attached screen shot. Sorry for poor quality, I took a picture of my TV at that point because no wifi, so no ssh access... EDIT: I cannot add an attachment to the post? Is this normal? |