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
| Item | Requirement |
|---|---|
| Power supply | 12 V DC, 2.5 A (10 V to 14 V) |
| Cooling | a fan on the FAN header; the board needs forced airflow |
| Host | Linux 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 |
| Links | SFP+ on both sides: 10GBASE-SR modules with fibre, active optical cables or passive direct-attach copper cables |
| Signal | an antenna or a generator on an SMP cable, at most −10 dBm at the input |
| Software | GNU 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
- 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.
- Links: FO1 to the first port of the network card, FO2 to the second.
- 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.
- 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
pingand accepts commands after about 20 s.
Every connector with its limits: Board ports.
2. Set up the host
Factory default addresses:
| Link | Board | Host | Carries |
|---|---|---|---|
| FO1 | 192.168.67.2 | 192.168.67.10/24 | RX A and RX B (UDP 10700), board control (TCP 5025) |
| FO2 | 192.168.68.2 | 192.168.68.10/24 | RX 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.shis 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
| File | Source |
|---|---|
vortarian.mex (GNU Octave) or vortarian.mexa64 (MATLAB) | vortarian-octave releases |
vortarian_spectrogram.m | host-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 script | Default | Meaning |
|---|---|---|
host | ’192.168.67.2’ | board address |
ch | 1 | 1 = RX A to 4 = RX D; RX C and RX D need FO2 |
f_nco | 375e6 | NCO frequency: the input frequency in the centre of the 125 MHz wide spectrum |
f_rf | 2450e6 | RF frequency at that centre with a front-end; without a front-end set it to f_nco |
Result
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
| Symptom | Cause |
|---|---|
ping gets no answer | less than about 20 s since power-on, board not powered, link on the wrong port, host address not set, interface down |
vortarian:busy | another program holds the control port: only one client at a time |
vortarian:nodata, timeout | no datagrams arrive: MTU below 9000, firewall on UDP 10700 and 10701, wrong host address |
no ... contiguous packets present in all streams | datagrams lost on the host: run optimize_eth_config.sh, check the PCIe slot |
More symptoms: Host setup.
Next steps
| Goal | Chapter |
|---|---|
| All four channels in one capture, own processing | GNU Octave, MATLAB |
| Live spectra and waterfalls | MATLAB, GNU Radio |
| Python with NumPy | Python |
| Other SDR programs | SoapySDR driver |
| The stream on the wire | Wireshark dissector, I/Q datagram header |
| Own receiver or control program | Board control, I/Q datagram header |
| Tuning, gain and frequency plan | Receive signal path |