SDR transceiver compatible with HPSDR
The High Performance Software Defined Radio (HPSDR) project is an open source hardware and software project that develops a modular Software Defined Radio (SDR) for use by radio amateurs and short wave listeners.
This version of the Red Pitaya SDR transceiver makes it usable with the software developed by the HPSDR project and other SDR programs that support the HPSDR/Metis communication protocol.
This SDR transceiver emulates a HPSDR transceiver similar to Hermes with a network interface, two receivers and one transmitter.
The HPSDR/Metis communication protocol is described in the following documents:
The implementation of this SDR transceiver is similar to the previous version of the SDR transceiver that is described in more details at this link.
The main problem in emulating the HPSDR hardware with Red Pitaya is that the Red Pitaya ADC sample rate is 125 MSPS and the HPSDR ADC sample rate is 122.88 MSPS.
To address this problem, this version contains a set of FIR filters for fractional sample rate conversion.
The resulting I/Q data rate is configurable and four settings are available: 48, 96, 192, 384 kSPS.
The tunable frequency range covers from 0 Hz to 61.44 MHz.
This SDR transceiver consists of four digital down-converters (DDC) and one digital up-converter (DUC). The first two digital down-converters are connected to two ADC channels. Two additional digital down-converters are required for the amplifier linearization system. One of them is connected to the second ADC channel and the other one is connected to the output of the digital up-converter.
The basic blocks of the digital down-converters are shown on the following diagram:
The digital up-converter consists of similar blocks but arranged in an opposite order:
The projects/sdr_transceiver_hpsdr/server directory contains the source code of the UDP server (sdr-transceiver-hpsdr.c) that receives control commands and transmits/receives the I/Q data streams to/from the SDR programs.
RF, GPIO and XADC connections
- input for RX1 is connected to IN1
- inputs for RX2 and RX3 are connected to IN2
- output for TX is connected to OUT1
- output for a RX/TX switch control (PTT-out) is connected to pin DIO0_P of the extension connector E1
- output for a pre-amplifier/attenuator control is connected to pin DIO1_P of the extension connector E1 (this pin is controlled by the first ATT combo-box in PowerSDR mRX PS)
- outputs for 10 dB and 20 dB attenuators control are connected to the pins DIO2_P - DIO3_P of the extension connector E1
- outputs for Hermes Ctrl pins are connected to the pins DIO4_P - DIO7_P of the extension connector E1
- inputs for PTT, DASH and DOT are connected to the pins DIO0_N, DIO1_N and DIO2_N of the extension connector E1
- slow analog inputs can be used for the forward (Analog input 0) and reverse (Analog input 1) power measurement
The I2S interface is sharing pins with the ALEX interface. So, the two can’t be used simultaneously. The supported I2S audio codecs are TLV320AIC23B and WM8731. The I2S audio codecs should be clocked with a 12.288 MHz oscillator crystal.
The ALEX module can be connected to the pins DIO4_N (Serial Data), DIO5_N (Clock), DIO6_N (RX Strobe) and DIO7_N (TX Strobe) of the extension connector E1. The board and the protocol are described in the ALEX manual.
The HPSDR signals sent to the TPIC6B595 chips are shown on the following diagram:
HPSDR signals sent to the PCA9555 chip at address 0:
|PCA9555 pins||HPSDR signals|
|P00 - P06||Open Collector Outputs on Penelope or Hermes|
|P07 - P10||Attenuator (00 = 0dB, 01 = 10dB, 10 = 20dB, 11 = 30dB)|
|P11 - P12||Rx Antenna (00 = none, 01 = Rx1, 10 = Rx2, 11 = XV)|
|P13 - P14||Tx Relay (00 = Tx1, 01= Tx2, 10 = Tx3)|
HPSDR signals sent to the PCA9555 chip at address 1:
|PCA9555 pins||HPSDR signals|
|P00||select 13MHz HPF (0 = disable, 1 = enable)|
|P01||select 20MHz HPF (0 = disable, 1 = enable)|
|P02||select 9.5MHz HPF (0 = disable, 1 = enable)|
|P03||select 6.5MHz HPF (0 = disable, 1 = enable)|
|P04||select 1.5MHz HPF (0 = disable, 1 = enable)|
|P05||bypass all HPFs (0 = disable, 1 = enable)|
|P06||6M low noise amplifier (0 = disable, 1 = enable)|
|P07||disable T/R relay (0 = enable, 1 = disable)|
|P10||select 30/20m LPF (0 = disable, 1 = enable)|
|P11||select 60/40m LPF (0 = disable, 1 = enable)|
|P12||select 80m LPF (0 = disable, 1 = enable)|
|P13||select 160m LPF (0 = disable, 1 = enable)|
|P14||select 6m LPF (0 = disable, 1 = enable)|
|P15||select 12/10m LPF (0 = disable, 1 = enable)|
|P16||select 17/15m LPF (0 = disable, 1 = enable)|
More information about the I2C interface can be found at this link.
This SDR transceiver should work with most of the programs that support the HPSDR/Metis communication protocol:
QUISK with the
ghpsdr3-alex client-server distributed system
Java desktop application based on openHPSDR Android Application
- Download SD card image zip file (more details about the SD card image can be found at this link).
- Copy the content of the SD card image zip file to an SD card.
- Optionally, to start the application automatically at boot time, copy its
apps/sdr_transceiver_hpsdrto the topmost directory on the SD card.
- Insert the SD card in Red Pitaya and connect the power.
- Install and run one of the HPSDR programs.
PowerSDR mRX PS includes an amplifier linearization system called PureSignal. The following screenshots show what settings should be adjusted when using it with Red Pitaya. To access the “Calibration Information” panel press Ctrl+Alt+i. The attenuated feedback signal from the amplifier should be connected to IN2.
The following spectra illustrate how the amplifier linearization works with the Red Pitaya output (OUT1) connected to the Red Pitaya input (IN2) with a 50 Ohm termination.
The CW keyer can be used with a straight or iambic key connected to the pins DIO1_N and DIO2_N of the extension connector E1. The CW signal is generated when one of the CW modes is selected in PowerSDR mRX PS and the pins DIO1_N and DIO2_N are connected to GND.
The ramp generator is programmable. The default ramp’s shape is the step response of the 4-term Blackman-Harris window. It’s inspired by the “CW Shaping in DSP Software” article appeared in the May/June, 2006 issue of QEX.
The measured delay between the key press and the start of the RF signal is about 2 ms. The 10%-90% rise time of the signal is about 3.5 ms.
The following figure shows the spectrum of the CW signal keyed at 50 WPM.
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 Vivado environment:
Cloning the source code repository:
Building SD card image zip file: