Airspy USB on Raspberry Pi model 2B, doesn't work in Buster?

Aug 08, 2019 23 Replies

I've been using the Airspy ADS-B decoder on a model 2B with an early OS (Jessie?) for some time, without problems. The software is described here:



formatting link
=> Using the ADSB decoder in embedded ARM boards



As an experiment, I tried a new SD card with the latest Buster OS, but the program no longer works correctly. The program does run, but doesn't function - i.e. it doesn't produce decodes of aircraft. Perhaps it cannot connect to the USB device, but it doesn't issue any error message (I know!).



Are there any things I should set in Buster to allow an Airspy device to work? Any issues with e.g. the RTL-SDR sticks (this is a different device). Any issues with Buster on a model 2B?



I have asked the developer but he's currently busy with a major new product launch. I'm not quite how to debug this!


Thanks, David Web: http://www.satsignal.eu

Obvious question: is there anything relevant in the logs?

Related point: Buster seems to make rather more use of logging than Stretch and predecessors, so you might want to see if the logrotate and logwatch packages are installed: I did an in-situ upgrade from Stretch to Buster which did not install them, so I added them manually. Then again I'm used to having these packages installed on my bigger Fedora boxes and I have also modified /etc/aliases so root's mail for every host on my LAN gets redirected to my normal login on the laptop that I usually work from.

Martin | martin at Gregorie | gregorie dot org

Martin,

Thanks for that suggestion. dmesg showed just the existence of the USB device, and that looked correct. That's really the only log inspection command I've used. Should I be looking elsewhere?

Cheers, David Web: http://www.satsignal.eu

I've found it useful to have tail running on the messages log in a terminal window if I'm having trouble accessing a USB device. This has helped a lot when trouble-shooting USB serial adapters and also when discovering and reporting a USB mass-storage bug which prevented my laptop from seeing both the built-in memory and an SD-card in a Medion S.3747 PNA when it was connected to the laptop via USB.

Just run "sudo tail -f /var/log/messages" in the terminal window. Kill tail with Ctrl-C when you've finished using it.

Martin | martin at Gregorie | gregorie dot org

On 09/08/2019 12:08, Martin Gregorie wrote: [] > I've found it useful to have tail running on the messages log in a > terminal window if I'm having trouble accessing a USB device. This has > helped a lot when trouble-shooting USB serial adapters and also when > discovering and reporting a USB mass-storage bug which prevented my > laptop from seeing both the built-in memory and an SD-card in a Medion > S.3747 PNA when it was connected to the laptop via USB. > > Just run "sudo tail -f /var/log/messages" in the terminal window. Kill > tail with Ctrl-C when you've finished using it.

Thanks for that suggestion! I ran that, and tried starting the program, but no new messages appeared. In fact, the time of the last message was midnight "today". But that tip will be also useful for the future.

Cheers, David Web: http://www.satsignal.eu

Its worthwhile grepping /var/log/* - providing that you know a program name and/or log-format timestamp to search on - if there's nothing in messages.

Martin | martin at Gregorie | gregorie dot org

There's a lot to be said for tail -F - which tracks when the log file cycles.

-- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. |

formatting link

Since it is not mentioned in this thread yet: have you checked for correct permissions? The user running the program needs to have correct permissions to access the device. This is a very common problem with usb devices other than the most common devices like keyboards, mice and so on.

A quick test to check if this is the problem is to try to run the program as the root user (example: sudo program ...) if it works, then you most likely have a permissions problem.

And then you get to fix that via udevadm and friends...

Torfinn Ingolfsen, Norway

Ah well, the joys of shared computing. That was why personal comuting was such a great hit while it lasted. One user, my machine. No need to negotiate rights with anyone.

/ \ Mail | -- No unannounced, large, binary attachments, please! --

...for Virus writers...

while it lasted. One user, my machine. No need to

In todays liberal progressive conflict-free education system, everyone gets full Marx.

There are lots of kinds of protection against malware. The only reliable one could I ever find was Brain 1.0. So far it has kept me safe and never failed me once. All the others cause lots of hassle and extra effort, but none of them is reliable. On the contrary, by making everything more complicated and harder to grasp and keep on top of, they make it easier for unintended immigrants to slip through.

/ \ Mail | -- No unannounced, large, binary attachments, please! --

Adding a well-thought-out file ownership and access permission system helps a lot, provided users don't do terminally stupid things like assigning superuser properties to their normal login. This is where Unix introduced a sensible access control system, which Linux also uses, while Windows in inherently insecure by design.

The only major item missing from *nix implementations is more rigorous hardware implemented controls on memory access by running processes. Intel has a minimal, but seemingly adequate set of hardware protection rings but no current operating systems appear to make full use of it: among other things, proper use of the hardware rings of protection would prevent scripted nasties, etc in e-mails and web pages from accessing any memory outside their immediate environment.

I've used mainframe operating systems that could do exactly what I've described, so know it can be done and, what's more, do that without interfering with legitimate users doing what they need to do.

Martin | martin at Gregorie | gregorie dot org

Windose was designed as a single user non networked design. What Gates SHOULD have done is intsead of NT, adapted and written a pretty face for unix/linux

"It is an established fact to 97% confidence limits that left wing conspirators see right wing conspiracies everywhere"

Quite - because until NT arrived Windows nothing more than a graphical desktop sat on top of MSDOS 7, and MSDOS had never heard of security, and even networking was just a 3rd party add-on until Windows 3.11 appeared.

Exactly so. The real surprise is that OS/2, the joint project with IBM, wasn't better than it was: by then IBM was starting to write decent operating systems, starting with Future Series, (which morphed into OS/

400) and AIX. I used OS/400 quite extensively: it was reliable, bug-free and very logical to use once you overlooked its two major deficiencies: 9 character names without extensions and it didn't have a hierarchic filing system. Maybe better features of these couldn't be beaten into the thick heads in Microsoft?
Martin | martin at Gregorie | gregorie dot org

Thanks, Torfinn!

That fixed it. I'm annoyed I didn't think to try that before! For the moment, I'll pass that into the developer, and I've added a sudo in the script I use to run the software.

Cheers, David Web: http://www.satsignal.eu

Yes, the name is known. I just tried that after a successful start, but if there were any earlier error messages (due to lack of permission) they weren't present. Oh, well. But next time.....

Cheers, David Web: http://www.satsignal.eu
[]

Fixed:

formatting link

Cheers, David Web: http://www.satsignal.eu

On Sat, 10 Aug 2019 12:26:56 -0000 (UTC), Martin Gregorie declaimed the following:

Some of them did get in... Since some of WinNT was inspired by DEC's VMS... And I doubt anyone would claim VMS is an insecure OS given how heavily it was used for defense related work.

Unfortunately, they didn't scrap the MS-DOS command line and file naming... (Come on... Why allow drives/partitions to have volume NAMES when you can't use the name to reference them! Strangely, AmigaOS better matched VMS when it came to things like volume and logical [which are NOT related to UNIX/Windows environment variables] names) and the requirement to maintain 16-bit compatibility probably made the user-level much weaker for security.

formatting link
formatting link

Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

DEC's

An interesting read: thanks. I've done little to no development using NT, though I did a project or two using VAX VMS and DEC's database RDB.

The main things I remember about VMS were not much liking the concept of having a few massive utility programs and that noticing that there were a lot of similarities between the way the VMS command interpreter works and ICL's George 3 command interpreter - I liked this because I'd been a G3 sysadmin and found the similarities helpful when getting to grips with using VMS for development and writing scripts for it.

I knew a lot more about DEC's UNIX on Alphaserver boxes than I ever knew about VMS, but this was because by the time I met the Alphaserver I'd used several Unices and Unix workalikes (TSC Uniflex, Microware's OS-9 and Stratus VOS) and gotten to grips with Tandem's Guardian OS - not one of my favourites, but at least it was better than IBM's horrid MVS/370.

Martin | martin at Gregorie | gregorie dot org

He'd already passed XENIX on to SCO by then.

Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required