FlightAware Discussions

HOWTO: Airspy mini and Airspy R2: Piaware / dump1090-fa configuration

So actually i’ve often seen the same issue with an Airspy R2 used with a laptop.
It usually only occurs after reboot and might be a separate issue.

Is there anything to diagnose this issue further? (the below error happening after the RPi decoding for a couple of minutes)

Jun 26 10:49:38 piaware airspy_adsb[279]: Decoding stopped
Jun 26 10:49:38 piaware airspy_adsb[279]: Client disconnected (beast)
Jun 26 10:49:39 piaware airspy_adsb[279]: Acquired Airspy device with serial 260868C82A329B9B
Jun 26 10:49:39 piaware airspy_adsb[279]: airspy_start_rx() failed: AIRSPY_ERROR_LIBUSB (-1000)
Jun 26 10:49:40 piaware airspy_adsb[279]: airspy_open() failed: AIRSPY_ERROR_NOT_FOUND (-5)

This could be a power issue. Check the PSU and the cable.

1 Like

What LNA were you using?

I plugged my RPi directly into a power cable and that may have fixed the issue where it only ran for a few minutes. But I am still having the problem if I restart the Airspy_adsb service. I have to go and unplug and replug the dongle once or twice for it to show up. Here’s the error its giving again.

Jun 26 15:30:14 piaware systemd[1]: Stopped Airspy ADS-B receiver.
Jun 26 15:30:14 piaware systemd[1]: Started Airspy ADS-B receiver.
Jun 26 15:30:14 piaware airspy_adsb[24484]: airspy_adsb v1.85
Jun 26 15:30:14 piaware airspy_adsb[24484]: Listening for beast clients on port 29999
Jun 26 15:30:14 piaware airspy_adsb[24484]: Acquired Airspy device with serial 260868C82A329B9B
Jun 26 15:30:14 piaware airspy_adsb[24484]: airspy_start_rx() failed: AIRSPY_ERROR_LIBUSB (-1000)
Jun 26 15:30:15 piaware airspy_adsb[24484]: airspy_open() failed: AIRSPY_ERROR_NOT_FOUND (-5)

and then that last error repeats every second until the Mini is replugged once or twice.

Strike that. Plugged in to a normal power supply that I have no reason to doubt is still causing it to unexpectedly shut down and gives me this error:

Jun 26 15:35:08 piaware airspy_adsb[24484]: Decoding stopped

I use the Hab/Nevis/Uputronics amp with a cavity filter between it and the antenna or the rtl-sdr amp(again with cavity filter). I have so much noise in my area that I need cavity filters. I must test the airspy with just the rtl-sdr amp/filter without the cavity filter some time. I remember testing the hab/nevis/uputronics amp years ago and it had to have the cavity filter(using rtl-sdr, airspy or radarcape). I have heard reports that the rtl-sdr amp/filter is a bit better in noisy environments. I may be able to put the cavity filter between the airspy and amp. They are close enough I can run a USB cable to power it.


I am using the RTL-SDR ADS-B LNA which could use up to 150mA. Considering the Mini has a bias-tee with a 50mA limit would that cause the dongle to shut down?

I didn’t realize the Mini was only 50ma bias-t rated. Thats a huge problem. Power that bad boy through other means or you’ll wind up with a useless $100 radio in no time.

The whole USB port has 500mA capability. Maybe less on the Pi3.
So anything that needs to be fed-trough will deduct from that amount.

Considering that the outside LNA can fail in a short-circuit state, I never trusted feeding them from a $99 (or $169 in my case with R2) receiver.

Raspberry Pis don’t particularly follow the USB power standards. There is no 500mA limit per port, rather there is a total allowable USB current supply of 1.2A for the Pi 3 onwards. This total is for all ports, but can be drawn through any single one. The Pi 2 had a 600mA limit but was software switchable to 1.2A.

Ya I don’t get it. I have a Pi 3B+ with only the Mini plugged in in 12MSPS mode. It shouldn’t be a power issue unless my Pi board itself has a problem. I can run a Nooelec dongle with a built in bias-t with no problem. I’ll try an external bias-t I guess. Unless my Mini has a hardware issue.

Just as a follow up, I received an external bias-t and the problems I was having with the Airspy Mini stopped. It must have been an issue with pulling too much power from the internal bias-t in the Mini.

1 Like

On another note, is there any benefit to pointing other feeders at port 47787 that the auto script sets up for airspy_adsb instead of port 30005 that beast-splitter is using? Is beast-splitter forwarding everything coming out of airspy_adsb verbatim? Can airspy_adsb handle more than 1 connection?

Airspy_adsb can. Not sure about CPU though on slower RPI 3s and 4s.

Just wanted to follow up on this. Turns out I have a 3B+ that had gone bad and that was causing my problems. It must have an issue with either power delivery or the USB controller. I had switched everything except the RPi, so I swapped in an older RPi 3B that I had laying around and all my “Decoding Stopped” issues went away.

Another question.

I just upgraded from my RPi 3B to a 4B. I also have put the Airspy Mini in 20MSPS mode. When I do that I see a decrease in the reported RSSI for my traffic. There’s just a general decrease that you can see on the graphs. Is this a real decrease in signal strength? Should I bump the gain up a notch to compensate for running in 20MSPS mode? Previously I ran the gain such that my weakest signals were between -15 and -20dBFS. After 20MSPS they are now around -19 to -24dBFS. Is it advisable to bump the gain?


Oh and special thanks to Prog and the other contributors to the Airspy ecosystem. Works great.

Check what works best for you. Here’s an idea: Thoughts on optimizing gain

I’m running it so the weakest signals are around -36 dBFS and i’m not noticing any degradation in performance.

Having the weakest signals between -20 dbFS and -30 dBFS is what i usually recommend.

But honestly, i’ve seen people run the gain so high their weakest signals were -10 dBFS and they still had good reception.
I couldn’t really determine much difference the whole range from the weakest signal being -15 dBFS and -36 dBFS.

In other words… the airspy doesn’t give a damn! :wink:

1 Like

I have to be somewhat careful. You can overload the Airspy Mini with too much gain. I’m also running an RTL-SDR ADS-B LNA and I live close to the local airport. If I run the gain too high I’ll get dropouts of planes on final approach to one of the runways, and I’ll get dropouts when the local police are flying their Cessna 182 overhead. In both cases I have direct line of sight so I’m thinking it must be just too much signal even for the Airspy. It’s a real balancing act. I also have good distance coverage. Over 200nm in all directions. So I also want enough gain to grab that traffic. That’s why I went for the Airspy. With my old dongle it would have a lot of dropouts of close in traffic with the gain set for distance. But the Airspy is much much much better in that regard.

Not really, just lower the gain even more if you like local traffic.
Almost sure you won’t lose long range.

Try a gain of 12, see if you lose range!
(i’m running the rtl-sdr LNA as well)

What i was saying is that you have a pretty wide margin.
Though i’m not sure, i think sometimes the rtl-sdr LNA itself might be overloading itself. (very strong and very close aircraft, i sometimes have helicopters literally flying 200 ft above my house, overload only seems to be while they are within half a mile or so)