Documentation chapters

How-to

Quick start

Three steps from the unpacked board to a spectrogram of one receive channel: connect the board, set up the host, run one script. The board runs the reference firmware it is supplied with.

What is needed

ItemRequirement
Power supply12 V DC, 2.5 A (10 V to 14 V)
Coolinga fan on the FAN header; the board needs forced airflow
HostLinux x86-64 PC with a dual-port 10 GbE SFP+ card in a PCIe 3.0 slot with four lanes or more: Tested 10 GbE hardware
LinksSFP+ on both sides: 10GBASE-SR modules with fibre, active optical cables or passive direct-attach copper cables
Signalan antenna or a generator on an SMP cable, at most −10 dBm at the input
SoftwareGNU Octave or MATLAB, the vortarian MEX file, the example scripts

FO1 alone is enough for the first capture: it carries RX A, RX B and the board control. FO2 adds RX C and RX D.

1. Connect the board

Block diagram: 12 V supply and fan on the VORTARIAN 4R2T-10G board, signal source on RX A to RX D, link FO1 with 192.168.67.2 to host port 192.168.67.10, link FO2 with 192.168.68.2 to host port 192.168.68.10
  1. Fan: connect it to the FAN header and direct the airflow over the board. The board takes 19 W; do not run it without airflow.
  2. Links: FO1 to the first port of the network card, FO2 to the second.
  3. Signal: connect the source to RX A. The inputs of the standard build take 250 MHz to 500 MHz. Keep the level at or below −10 dBm; a higher level can permanently damage the input. With an RF front-end the antenna goes to the front-end.
  4. Power: 12 V to INPUT POWER. The POWER LED shows the input voltage, the DONE LED the configured FPGA. The links come up about 5 s after power-on; the board answers ping and accepts commands after about 20 s.

Every connector with its limits: Board ports.

2. Set up the host

Factory default addresses:

LinkBoardHostCarries
FO1192.168.67.2192.168.67.10/24RX A and RX B (UDP 10700), board control (TCP 5025)
FO2192.168.68.2192.168.68.10/24RX C and RX D (UDP 10701)
sudo ip addr add 192.168.67.10/24 dev <FO1 interface>
sudo ip addr add 192.168.68.10/24 dev <FO2 interface>
sudo ip link set <FO1 interface> up
sudo ip link set <FO2 interface> up
sudo ./optimize_eth_config.sh <FO1 interface> <FO2 interface>
ping -c 3 192.168.67.2
  • optimize_eth_config.sh is in host-tools, next to the example scripts. It sets what the full stream rate needs: MTU 9000, the largest receive ring, Ethernet pause frames off, 256 MB socket buffers.
  • The settings and the addresses are lost on a restart of the host: run the commands again.
  • A firewall must let UDP ports 10700 and 10701 in.

The settings one by one, and the PCIe slot: Host setup.

3. Capture

FileSource
vortarian.mex (GNU Octave) or vortarian.mexa64 (MATLAB)vortarian-octave releases
vortarian_spectrogram.mhost-tools

Put the MEX file into the folder of the script, start GNU Octave or MATLAB in that folder and run:

vortarian_spectrogram

The script initializes the board (init), sets the NCO to 375 MHz, starts the streams, takes 221 samples of RX A (16.8 ms at 125 MS/s), stops the streams and draws the spectrogram. On the test host the run takes about 4 s, the start of GNU Octave included.

Parameter at the top of the scriptDefaultMeaning
host’192.168.67.2’board address
ch11 = RX A to 4 = RX D; RX C and RX D need FO2
f_nco375e6NCO frequency: the input frequency in the centre of the 125 MHz wide spectrum
f_rf2450e6RF frequency at that centre with a front-end; without a front-end set it to f_nco

Result

Spectrogram of RX A over 16.8 ms and 125 MHz around 2450 MHz, drawn by vortarian_spectrogram.m: Wi-Fi frames of several transmitters, a pulsed carrier and two continuous carriers

vortarian_spectrogram.m in GNU Octave, unchanged: RX A with the 4R2C-2G5 front-end (2450 MHz at IF 375 MHz) and an antenna, RF gain 20 dB. Wi-Fi frames of several transmitters, the strongest one from about 3.0 to 5.4 ms around 2458 MHz; a pulsed carrier at 2450.5 MHz as a dotted line; two continuous carriers at 2400 and 2500 MHz, which are present without an antenna too.

  • Horizontal axis: frequency, as IF at the ADC and as RF; 122 kHz per FFT bin.
  • Vertical axis: time, one spectrum every 8.19 µs.
  • Colour: level in dBFS, from 10 dB below the median to the maximum of the capture. Scaling: Spectrum scaling.
  • Without a signal the picture shows the noise floor only.

If it does not work

SymptomCause
ping gets no answerless than about 20 s since power-on, board not powered, link on the wrong port, host address not set, interface down
vortarian:busyanother program holds the control port: only one client at a time
vortarian:nodata, timeoutno datagrams arrive: MTU below 9000, firewall on UDP 10700 and 10701, wrong host address
no ... contiguous packets present in all streamsdatagrams lost on the host: run optimize_eth_config.sh, check the PCIe slot

More symptoms: Host setup.

Next steps

GoalChapter
All four channels in one capture, own processingGNU Octave, MATLAB
Live spectra and waterfallsMATLAB, GNU Radio
Python with NumPyPython
Other SDR programsSoapySDR driver
The stream on the wireWireshark dissector, I/Q datagram header
Own receiver or control programBoard control, I/Q datagram header
Tuning, gain and frequency planReceive signal path