×

INDI Library v1.9.5 Released (08 Mar 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

RPI4 keeps losing wifi connection

  • Posts: 117
  • Thank you received: 1
Hi all,

First off, apologies if this isn't the correct forum to post this.

I'm running KStars on a RPI4 (8gb RAM). I access it via VNC from a Windows laptop. I have 2 problems:

1. Randomly I will lose connection the RPI and the only way I can get the connection back is to reboot the RPI.
2. Sometimes when I boot the RPI, the wifi doesn't come on and I have to unplug/replug one of my accessories to get it working (this happened on a previous RPI4).

I have four accessories plugged into the usb ports (focuser, mount, Pegasus Powerbox Advanced, ASI294MC Pro). So could it  be a power issue? Power is drawn from the PPBA using the supplied 5v adaptor.

Any help would be appreciated.

Rene
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
1 year 1 month ago #69262

Please Log in or Create an account to join the conversation.

  • Posts: 169
  • Thank you received: 28
If you can, connect your Rpi to a screen via HDMI (and keyboard). This will show you what is happening when losing VNC connection and will help debugging the problem.
In my case, the raspi is frequently working fine and the problem is the vnc connection (I use realVNC in my PC). Often it automatically reconnects after a while but sometimes I have to close the VNC screen and connect again.
Celestron AVX
Celestron SCT 8” Edge HD, Primaluce ESATTO
TS Optics Photoline 80mm f/6 FPL53 Triplet-Apo, Primaluce SESTO SENSO 2
Celestron OAG, Lodestar X2 guide
Pegasus PowerBox Advanced
Stellarmate Gadget
AstroPhotography Tool (APT)
Nikon D90
1 year 1 month ago #69264

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 1
I'll have to try that. Is there another application I can use to remote in?
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
1 year 1 month ago #69267

Please Log in or Create an account to join the conversation.

  • Posts: 792
  • Thank you received: 370
Rene,

My recent thread about a headless RPi indilib.org/forum/general/8994-headless-...pberry-pi.html#68256 wound up discussing related issues.
I had connection issues (though my RPi wasn't on WiFi, and I was on Ubuntu, not Raspbian--though I saw the same thing previously on Raspbian).

I believe they're a bit better now using NoMachine. Check out the posts, probably mostly on page 2 of that thread.

There definitely seems to be something related to the RPi, or the network, losing interest in my remote connection from time to time...

Hy
AP1100 & Orion Atlas Pro, WO/ZS105 w/Moonlight V2 focus, GSO RC10 w/RSF focus
ZWO ASI1600, Astronomik Filters, ST80, QHY 5L-IIm.
KStars/Ekos/Indi on NUC10 & RPi4 w/SSD -- Ubuntu
Projects: Greedy Scheduler, Terrain, Polar Align, Analyze, Linear Focuser, SEP MultiStar & GPG Guide, FITS autostretch.
1 year 1 month ago #69268

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 137
I would say your issue is due to using the 2.4ghz wifi connection, this is a known issue when using that and the USB 3.0 ports...so change the RPI to use the 5ghz wifi and also to Chanel 44 this should solve the issues......
Stellarmate OS on Raspberry pi4b
Skywatcher EQ8 pro, on steel pier
Takahashi FSQ85, FS60cb & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar x2 Guide Camera
Pegasus Ultimate Hub V2 for all USB & Power
Pegasus focus motors on all scopes
1 year 1 month ago #69270

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 1
Thanks. I'll give it a go.
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
1 year 1 month ago #69271

Please Log in or Create an account to join the conversation.

  • Posts: 39
  • Thank you received: 3
Another potential source that I found for my box after having the same symptoms that I kept losing the VNC connection:.
I was able in a problematic session to connect a LAN cable for an A/B test in the backyard and still lost connection in VNC
In the syslog file a crash has been recorded around the times when I lost connection

“612 Comm: Xorg Tainted: G C 5.10.17-v7l+ #1403
stellarmate kernel: [ 189.589306] Hardware name: BCM2711
stellarmate kernel: [ 189.589310]”

Advice from people who know how to find such things was to disable the audio driver (BMC2711). This problem might have arised with a system software update as I just use this box for Stellarmate.
Advice to solve was to open /etc/modprobe.d/raspi-blacklist.conf and add a line
blacklist snd_bcm2711

Just one clear night since to confirm it is a permanent fix yet but the audio device was not an issue in the last session.

So maybe in addition to check your Wifi connection is ok you check the syslog if you find similar entries that indicate it might not be a WiFi issue,

Alex
Standard setup: EQ6R, Williams Megrez 72- ASI 533MC -ZWO EAF, 50 mm viewfinder - ASI 120MM
1 year 1 month ago #69580

Please Log in or Create an account to join the conversation.

  • Posts: 379
  • Thank you received: 113
Hi Rene, You could easily be suffering from a couple issues. The first and most likely is USB3 vs 2.4Ghz wireless interference (search for this and you'll find a related post/thread). The second issue is less likely but I thought I'd comment that you are putting pressure on your PI's power supply by running all 4 USB connections on the PI4 (if I read that right from your OP). You would be well served to get a powered USB hub for your devices and then only connect the Hub to the PI's USB 3 port. That way, there will be no doubt that the power adapter for the PI4 will only service the PI and not need to supply power to USB devices. The symptoms you describe (item #2) is exactly what I describe in the post about 2.4Ghz WIFI interference with USB3. Finally, when the PI4 disconnects (until fixed), you should wait for about 1-2 minutes and check to see if you can reconnect via the hotspot (10.250.250.1). That may let you connect & gracefully shutdown/disconnect via VNC. Until this is fully resolved, I hope it's obvious that you need a backup of your SD or SSD so you don't have to start completely over if unexpected power off sequences scramble your config! Cheers, Doug S.
RASA11, Celestron CGX-L, ASI183mc Pro, 60mm guider + ASI290mm mini, ASI EAF focuser, PPB, Rpi4-4Gb+SSD, Powered USB3 hub, hardwire Ethernet.
Last edit: 1 year 1 month ago by Doug S.
1 year 1 month ago #69590

Please Log in or Create an account to join the conversation.

  • Posts: 1116
  • Thank you received: 182
I have had the same issues for the better part of a year now. My Pi4 also loses connection, but interestingly ONLY to my router. When I run the Pi4 in Hotspot mode, it never disconnects.
I have now added an external dongle through which I connect to my home network on the 5GHz band. That also loses connection at the same frequency as the onboard WiFi, so this has nothing to do with a weak Pi4 onboard transmitter. This is also exemplified by the fact that I continuously run the Hotspot in parallel through the onboard WiFi and that never disconnects.
That way at least, I can always connect to the hotspot and continue to control my Pi4, if the connection to my router drops out. All my peripherals, including the dongle, are attached to a powered USB3 hub.
Also, just in case you are wondering, restarting the network manager does not fix the problem, only a reboot does. This is all on Ubuntu20.04.
I suggest adding this external WiFi dongle, it works great for me and is very fast (867 Mbps connection speed):
smile.amazon.com/gp/product/B07FCNP2VL/r..._title?ie=UTF8&psc=1

Jo
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
1 year 1 month ago #69608

Please Log in or Create an account to join the conversation.

  • Posts: 103
  • Thank you received: 6
I used to have connection issues constantly on my pi3 and pi4. I ended up just flashing the astroberry image and it's been rock solid since.

www.astroberry.io/

Cheers
1 year 1 month ago #69704

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 1
I wonder whether it’s the case I’m using for the RPI that is affecting the wifi signal. It’s a metal case with a cooling fan and holes in the top top allow air-flow. Thinking is I’ve been using that case for over a year with no problems. It’s only been recently that I’ve had issues.
Sky-Watcher AZ-EQ6
Sky-Watcher Esprit 100
Sky-Watcher EvoGuide 50 (guide-scope)
ZWO ASI294MC Pro
ZWO ASI120MM mini (guide cam)
Pegasus PPB
Pegasus Focus Cube v2
1 year 1 month ago #69727

Please Log in or Create an account to join the conversation.

  • Posts: 1116
  • Thank you received: 182
I doubt it. If the metal case interferes you will have a very weak signal to start with. It would not explain the intermittent disconnects, IMO.

Also, as I wrote, I have similar problems, but only with the connection to my home network. The connection would be fine for hours with a strong signal and excellent data transfer rates of > 400 Mbps, only to drop from one moment to the next. Killing the network manager and restarting it won't restore the connection, only rebooting does. It also makes no difference whether I am using the onboard wifi or an external dongle that is hanging free from any interference. Another indication that this has nothing to do with the onboard wif is that I can run the Pi4 in Hotspot mode from the internal wifi and I NEVER lose connection.

I suspect this has to do with the Ubuntu OS I am using.

What OS are you using?
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
1 year 1 month ago #69729

Please Log in or Create an account to join the conversation.

Time to create page: 0.874 seconds