Close

Software Setup Notes

A project log for Remoticon: Basics of RF Emissions Debugging

RF is black magic and we're going to learn about it here!

alexwhittemorealexwhittemore 11/07/2020 at 01:450 Comments

Setting up a SDR toolchain can be kind of a pain, in all my experience.

Start Here

The very baseline to start with is Nooelec's getting started guide for their RTL-SDRs. You should be able to set up CubicSDR with those instructions/driver installations, open it, and get a spectrum with your RTL-SDR.

  1. Launch CubicSDR
  2. File>SDR Devices and select RTL-SDR

3. Click Start. 

4. Set a center frequency of 100,000,000 Hz (100MHz), which is in the range of FM radio. Click on one of the obvious bright bands, and click FM top left to turn on FM audio demodulation. Listen to your favorite radio station!

If you can get AT LEAST this far, you can participate in the workshop, so we're in good shape. 

Set up your tools natively (Option 1)

The next step beyond this is to try to get other tools set up. In particular, the tools I'm most interested in are QSpectrumAnalyzer and SDRAngel, if you want to try to set those up natively on your main system. If you can accomplish this, that would be best, but don't pull your hair out trying. In my experience, it might be very easy on one system and very impossible on another.

Use a pre-built VM (Option 2)

I've had good luck running DragonOS LTS in a vm, and it seems acceptably performant even in VirtualBox. Here's a copy of that. Username/password is "dragon/dragon." That said, I strongly recommend per notes below that you don't actually use VirtualBox if you can avoid it - import this VM into Parallels Desktop if you're on MacOS, or VMWare Workstation on Windows. Workstation I believe should be free, and Parallels you can try the trial.

An older copy I installed of DragonOS Focal worked well too, but I set up Focal R7 today and had terrible luck with it, so I'm not sure what's up. I did upload a copy of that VM in VirtualBox format if you want to try it but I wouldn't recommend it. If you do, the username/password is "dragon/dragon," and I wouldn't click "update" when it prompts you until after you've had a chance to try tools. Maybe if you "update" stuff starts working correctly, I'm not sure.

If you install DragonOS LTS yourself, be aware that it comes without rtl_power_fftw, which you'll have to install. Run the following in a terminal, and you'll be good to go:

cd
sudo apt-get install libfftw3-dev libtclap-dev librtlsdr-dev pkg-config
git clone https://github.com/AD-Vega/rtl-power-fftw.git
cd rtl-power-fftw/
mkdir build
cd build
cmake ..
make
sudo make install

General VM notes:

Last but not least, TinyFPGA:

Follow https://tinyfpga.com/bx/guide.html to install Atom and get a TinyFPGA toolchain set up.

Being on Mac, my preference is for installing Python and other commandline-y things with Homebrew. You don't have to if you don't want to. The key takeaway here is that your python environment isn't really critical, it's just used during those instructions for installing tools. If you can follow the instructions successfully, you're gold. 

Then clone the project we'll be using from github to somewhere you can easily access it!

Discussions