AnswerBun.com

Raspberry PI random connection interruptions

Raspberry Pi Asked by Ben on September 22, 2020

i am running a raspberry pi B+ headless and losing network connection irregulary.
I am living with that since a few years, but now want to fix the problem.
What would be a good approach to find out the reason?

Problem

  • ssh connection to PI not possible sometimes (today failing nearly constantly, otherwise every few days)
  • Active ssh connection aborted
  • PI cannot get internet data (pinging google fails)

Setup

  • Raspberry PI B+
  • WIFI USB Adapter EDIMAX EW 7811Un
  • My own app (digital picture frame) is running on python 3 and QT5.7

My countermeasures so far

  • self implemented software wachdog that checks some connection parameters and reboots if necessary (i would say works in 95% of the cases)
  • Auto PowerOff deactivated for the Wifi adapter by setting rtw_power_mgnt=0 and rtw_enusbss=0 in /etc/modprobe.d/8192cu.conf

Comments

  • My WIFI connection at home sometimes gets interrupted as well. But far less often than the connection to the PI fails
  • I know that similar questions have been asked before, but i was not able to adapt them to my specific problem, sorry.

Thanks for any directions

Ben

One Answer

A few thoughts :-

  • This post shows a couple of possibilities. https://www.raspberrypi.org/forums/viewtopic.php?t=129021 MrEngman I gather wrote a helpful installer script for the Edmix range of Wifis. Research a bit more yourself before trying these perhaps.

    1) Remove ifplugd

    apt-get purge ifplugd
    

    2) Disable any conflicting drivers, read in more detail before doing anything, but e.g.

    blacklist rtl8192cu
    blacklist rtl8xxxu.conf
    
  • Have you tried updating your raspbian/kernel/firmware? It might help fix the situation. https://www.raspberrypi.org/documentation/raspbian/updating.md

    sudo apt update
    sudo apt full-upgrade
    
  • It may be possible that your power supply may be a bit too weak/unreliable to drive the USB wifi.

  • I remember my EDIMAX clone wifi being quite cheap and a pain to setup and use. Buying a different brand may help, though I notice the Pi brand can have this problem too.

  • Treat yourself to a newer Pi with built-in Wifi ;)

Good luck!

Answered by Alex on September 22, 2020

Add your own answers!

Related Questions

Apt: apt update command fails to update

2  Asked on November 5, 2021 by shiddiqi

       

How to clean up my /boot partition?

3  Asked on November 5, 2021

   

Do i need a fan, or will ventilation holes suffice?

1  Asked on October 5, 2021 by user121626

   

Raspberry Pi Zero SSH issues

1  Asked on October 5, 2021 by user122249

   

REINSTALL THE NOOBS to another OS

1  Asked on October 5, 2021 by nam-nguyn-hi

 

Setting USB current limit on Raspberry Pi 4

1  Asked on October 5, 2021 by kkx07805

   

tightvncserver and autocutsel not starting via xstartup

0  Asked on October 5, 2021 by asylumax

 

What is the default cmdline.txt for Raspberry Pi 4

1  Asked on October 5, 2021 by mike-c

   

HDMI port won’t work on Raspberry Pi

2  Asked on October 5, 2021 by yankue-team

 

IP address missing from router DCHP table

5  Asked on October 5, 2021 by tim-gilchrist

 

popen() vs netcat

1  Asked on October 5, 2021 by weirdgyn

   

RPI-Clone an SSD to an SSD – Fails with I/O Error

0  Asked on October 5, 2021 by hackxit

   

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP