Using Raspbian (Debian) Linux on a Raspberry Pi 2, how can I view data from my software-defined radio via the command line over SSH? Is there an RTL-SDR client with terminal emulation?
This is actually implementable, as specified, but you may have to code your own app.
I wanted to measure whether 2 signals were present. So I ran rtl_tcp on my Pi 3 to serve RTL-SDR IQ samples over a socket. I then wrote 2 DSP filters (in C) that connected to rtl_tcp and measured the magnitudes of the two signals, ran the filters on the Pi 3, and printed the results to stdout over ssh. I suppose I could have presented the 2 magnitudes as ASCII art of a 2 bar waterfall spectrograph.
My benchmarks show that a Pi 3 could also easily run an FFT on the IQ data as well as 2 simpler filters for a wider waterfall.
You didn't specify the OS of the client from which you would like to view the remote session.
On the Pi side, use the built in RealVNC to allow remote access.
If your remote client is Linux based, take a look at Remmina. It is a free, open source project with support for several Linux variants.
If your remote client is Windows based, evaluate TightVNC. It is free download if you don't need any extensions.
This is two questions.
I will presume the answer to the first is to simply start your
Then, to see it remotely, you need an xterm-compatible connection.
I suggest that your best option is to install a graphical remote-viewing setup.
Three ways to do this:
First, enable X11 over ssh
Procedure is to
sudo vi /etc/ssh/ssh_config and change it to allow X11 connections.
Then, you can use
ssh -Y hostname
The response should be
Then you can issue the command to start the software
tightvnc so you can control the console of the system. Once that works you can open a terminal window and do the same.
Third, install Remote Desktop Protocol, which allows you to make virtual connections to the system which are compatible with Windows Remote Desktop client, or remmina.
sudo apt-get install xrdp
Then do the same.
If you are on Windows, you should be able to install OpenSSH, then use
SSH -X clientname
to get it to pull up an xterm.