

Unfortunately, I was unable to compile it, so i just made my own one. And if you don’t have it or left 1000+ then the cheapest way is a using HackRF as Spectrum Analyzer. Usually for such work used spectrum analyzers expensive measurement units which really cool and informative. There was another MATLAB/Simulink interface for the hackrf somewhere in the internet. During work with RF frontend, you often need some tool for indication what you really send data.

To be safe, only unplug it AFTER closing MATLAB. For receiving/transmitting signals, you need to provide appropriate callback functions to process the complex samples.īe aware that while using the hackrf within MATLAB, unplugging it will kill MATLAB instantly (At least that's the case on my computer). HackRF One from Great Scott Gadgets is a Software Defined Radio peripheral capable of transmission or reception of radio signals from 1 MHz to 6 GHz. This object will make calls to the MEX function and it will offer intuitive control over the hackrf radio. To get access to the hackrf device, create an instance of the hackrf class. Then, you need to compile the MEX gateway function by just calling the make script. Some useful instructions for compilation are found here:
#Hackrf one spectrum analyzer install
(or just install it if there's a package for your linux). This tool requires the DSP toolbox.įirst prerequisite is to compile the hackrf library which is available here: You can interactively tune the hackRF by panning and zooming into the spectrum display. It avoids writing the samples to temporary files and then calling hackrf_transfer.Īlso, there is a small graphical app "panorama" which is a simple but useful spectrum analyzer. It is nothing more than a convenient gateway to the hackrflib. It gives you buffered receive and transmit functionality and you can control parameters like frequency, gain, sample rate, receiver and transmitter gain. This submission is an interface to use the hackRF (a radio receiver/transmitter) directly in MATLAB.
