SDR receiver
Interesting links
Some interesting links on digital signal processing and software defined radio:
Hardware
The FPGA configuration consists of eight identical digital down-converters (DDC). Their structure is shown in the following diagram:
The I/Q data rate is configurable and four settings are available: 48, 96, 192 kSPS.
The tunable frequency range covers from 0 Hz to 490 MHz.
The projects/sdr_receiver directory contains two Tcl files: block_design.tcl, rx.tcl. The code in these files instantiates, configures and interconnects all the needed IP cores.
The projects/sdr_receiver/filters directory contains the source code of the R scripts used to calculate the coefficients of the FIR filters.
Software
The projects/sdr_receiver/server directory contains the source code of the TCP server (sdr-receiver.c) that receives control commands and transmits the I/Q data streams to the SDR programs.
The SDR SMEM repository contains the source code of the TCP client (tcp_smem.lpr), ExtIO plug-in (extio_smem.lpr) and other programs and plug-ins. The following diagram shows an example of how these programs and plug-ins can be used:
The tcp_smem
program runs on a computer. It receives the I/Q data streams over the network and transfers them to other programs and plugins via shared memory.
Antenna
I use simple indoor antennas made from a single loop of non-coaxial wire. Their approximate scheme is shown in the following diagrams:
Getting started
- Connect an antenna to the IN1 connector on the Red Pitaya board.
- Download SD card image zip file (more details about the SD card image can be found at this link).
- Copy the contents of the SD card image zip file to a micro SD card.
- Optionally, to start the application automatically at boot time, copy its
start.sh
file fromapps/sdr_receiver
to the topmost directory on the SD card. - Install the micro SD card in the Red Pitaya board and connect the power.
- Download and install SDR# or HDSDR.
- Download and unpack the SDR SMEM zip file.
- Copy
extio_smem.dll
into the SDR# or HDSDR installation directory. - Start SDR# or HDSDR.
- Select SMEM from the Source list in SDR# or from the Options [F7] → Select Input menu in HDSDR.
- Press Configure icon in SDR# or press SDR-Device [F8] button in HDSDR, then enter the IP address of the Red Pitaya board.
- Press Play icon in SDR# or press Start [F2] button in HDSDR.
Running CW Skimmer Server and Reverse Beacon Network Aggregator
- Install CW Skimmer Server.
- Download and unpack the SDR SMEM zip file.
- Start
tcp_smem.exe
, enter the IP address of the Red Pitaya board and press the Connect button. - Copy
intf_smem.dll
to the CW Skimmer Server program directory (C:\Program Files (x86)\Afreet\SkimSrv
). - Install Reverse Beacon Network Aggregator.
- Start CW Skimmer Server, configure frequencies and your call sign.
- Start Reverse Beacon Network Aggregator.
Building from source
The installation of the development machine is described at this link.
The structure of the source code and of the development chain is described at this link.
Setting up the Vitis and Vivado environment:
source /opt/Xilinx/Vitis/2023.1/settings64.sh
Cloning the source code repository:
git clone https://github.com/pavel-demin/red-pitaya-notes
cd red-pitaya-notes
Building sdr_receiver.bit
:
make NAME=sdr_receiver bit
Building SD card image zip file:
source helpers/build-all.sh