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

Raspberry Pi 3 high IO

3  Asked on December 28, 2021 by cx24

   

Run application with other user than root

2  Asked on December 28, 2021

       

Raspberry Pi Zero W Semi Freeze

0  Asked on December 26, 2021 by david-kester

     

How to change the Menu Icon in Raspbian

3  Asked on December 24, 2021 by yanko

 

LED matrix won’t light up properly

1  Asked on December 22, 2021 by maiki

   

How to autostart Kodi at boot?

7  Asked on December 21, 2021 by mario-serda

     

Resolution Issue

2  Asked on December 19, 2021 by matt-mas

   

How to disable wifi in Raspberry Pi 4

3  Asked on December 14, 2021 by jb

     

Booting up feh at launch

2  Asked on December 12, 2021 by simyo-paris

 

pigpio I2C reply value

2  Asked on December 12, 2021 by user3435167

     

Ask a Question

Get help from others!

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