Portsdown Band Viewer
Introduction
The "Band Viewer" software is included with the Portsdown 4 and Portsdown 2020 and can be used to provide a basic spectrum display of band occupancy using the receive section of a LimeSDR, Pluto (Portsdown 4 only), SDRPlay RSPdx (Portsdown 4 only), Airspy R2 or RTL-SDR. It only works effectively with the specified SDRs and the 7 inch screen (or the DSI-connected 5 inch screen). It has a limited capability with the Waveshare 3.5 inch screen on the Portsdown 2020, but only with the RTL-SDR. See here for details.
To start the software, connect the SDR by USB select Menu 2, Band Viewer. The capabilities of each SDR are as follows:
SDR | Frequency Coverage | Span Widths | Notes |
---|---|---|---|
LimeSDR | 30 MHz - 3.5 GHz | 500 kHz, 1, 2, 5, 10, 20 MHz | LimeSDR Mini, LimeSDR USB or LimeNET Micro |
Pluto | 70 MHz - 6 GHz | 2, 5, 10, 20, 50 MHz | Portsdown 4 only |
Pluto 5th | 6 GHz - 30 GHz | 2, 5, 10, 20, 50 MHz | Much Reduced Sensitivity |
RSPdx | 1 kHz - 2 GHz | 100, 200, 500 kHz, 1, 2, 5, 10 MHz | Portsdown 4 only |
Airspy R2 | 24 MHz - 1.7 GHz | 1, 2, 5, 10 MHz | Only Airspy R2 supported |
RTL-SDR | model-dependent | 500 kHz, 1, 2 MHz |
Pluto Set-up
BandViewer has only been tested with USB-connected Plutos. If you have changed the IP Address of your USB-connected Pluto, you also need to set it in the Portsdown Menu 3, Pluto Config, Set Pluto IP for Portsdown.
Starting the Software
BandViewer can be selected from Portsdown Menu 2, BandViewer. The BandViewer for specific SDRs can also be selected from Menu 2, Test Equipment. On selection of the generic BandViewer button, the software checks for the presence of the SDRs in the order: Airspy, LimeSDR, Pluto, RTL-SDR. It uses the first SDR that it finds, or displays an error message if it cannot find an SDR.
BandViewer can also be selected from the Terrestrial (not QO-100) Receiver menu. In this case, the BandViewer is automatically set to the selected receive frequency.
To Exit the software back to Portsdown, press the "Exit to Portsdown" button twice.
Frequency
The centre frequency can be directly entered from the keyboard (selected from the Settings menu) and a number of programmable presets are available. The centre frequency can be shifted down or up by 10% of the span width by using the left and right buttons on the main menu. The presets can be configured from the Mode, Set Config, Set Freq Presets Menu. Stored frequency and presets are specific to each SDR type.
The Pluto 5th Harmonic mode extends BandViewer coverage into the range 6 GHz - 30 GHz. This mode has much reduced sensitivity and a lot of spurious responses, but can be useful for checking the spectrum of microwave receiver LOs and microwave transmitter outputs. The mode is automatically selected when a frequency above 6 GHz is set as the centre frequency.
Gain Control and Accuracy of Level Display
Although the display is calibrated over 80 dB of dynamic range, it not all is usable - particularly with the RTL-SDR. The SDR gain can be adjusted from the settings menu to optimise the display. Careful screening and grounding of the SDR can reduce the noise level and spurii, although not all can be eliminated.
The relative levels displayed at a single frequency are accurate within about 1dB. However, the absolute level is uncalibrated, and there is some variation in level calibration at the outer edges of the scan.
From the Mode menu, it is possible to reconfigure the display to show only 20dB of range. This is ideal for fine alignment of systems.
Measurements and Recording
A measurement marker is available to track peaks in the spectrum. There is also a "Peak Hold" function. The display can also be frozen and/or captured to a .jpg file which is saved in the /home/pi/snaps folder. These can be viewed using the Snap Viewer selected from the System Menu, or transferred to another computer using a network connection.
Web Viewing
The displayed spectrum can be viewed from a browser on the same network as the BandViewer. Simply type in the Portsdown's IP address and select "Touchscreen" and you should see the spectrum, which is updated once a second.
For this to work, "Web Control" needs to be enabled in th Portsdown software (Menu 2, System Config, Web Control Enable/Disable). Note that, unlike the Portsdown and Signal Generator software, web control of the Band Viewer is not possible - it is display only. Settings need to be adjusted using the touchscreen.
Resolution
The software uses a Fast Fourier Transform with a Bin Size of 1/500th of the display width. So, for example, on the 500 kHz span width the resolution is 1 kHz.
Known Bugs and Limitations
On the Portsdown 2020, the first start of the Band Viewer after each boot is delayed to prevent a conflict with other screen-writing activity. Subsequent starts are unaffected.
If the 20 MHz span does not work on your LimeSDR Mini, it is a symptom of low supply voltage at the LimeSDR. Measure the voltage at the LimeSDR Mini edge terminals - it needs to be at least 4.9 volts. To cure such problems, make sure that your Raspberry Pi is supplied with exactly 5.2 volts and use a good quality (not necessarily expensive - just low resistance) USB cable.
The software sometimes crashes when the span width is changed. Simply restart the BandViewer and it should restart with the new Span Width.
The BandViewer software was written to only support the 7 inch screen with an 800x480 picture size. The Waveshare 3.5 inch screen has a framebuffer size of 720x576, so there is no room for the control buttons on the right hand side. However, the RTL-SDR BandViewer can be run in fixed-frequency, fixed span width and fixed gain mode by using the following procedure:
- Connect an RTL-SDR and start Portsdown
- Select RX. If you have no MiniTiouner connected, touch the screen to continue - it does not matter.
- On the receiver menu, Make sure that you have "Terrestrial", not "QO-100" selected in the top left button. Touch the button to change it if required.
- Select the centre frequency that you want to tune BandViewer to. If it is not on one of the presets, select the button labelled keyboard and you can enter the frequency.
- Select the bottom right button "BandViewer on RX Freq". If the button is grey, not blue, it means that you do not have an RTL-SDR connected.
- After a pause, BandViewer should start on your selected centre frequency, with a 2 MHz span width.
- You cannot adjust the settings.
- To return to Portsdown (and possibly select a new centre frequency) simply touch the screen.
- Having set the correct centre fequency, the BandViewer can be reselected directly from Portsdown Menu 2.
Advanced users can adjust the settings by editing the file /home/pi/rpidatv/src/rtlsdrview/rtlsdrview_config.txt before starting BandViewer, but this needs to be done carefully to avoid illegal settings.
Note that this Waveshare screen capability is only for the RTL-SDR, not the LimeSDR or Airspy R2.
Exit
To Exit the software back to Portsdown, press the "Exit to Portsdown" button twice. To restart BandViewer (if it freezes), use the Restart button on the System Menu.
Acknowledgements
Thanks to Phil M0DNY for the LimeSDR fft code, and to Michel HB9DUG for encouraging the development.