RF
ADSB
General
Replay
HackRF
# capture on 315'000.000kHz (315.000 MHz) and save to a file called "unlock.rx" and sample rate of 2'000.000 kHz (2 MHz)
sudo hackrf_transfer -s 2000000 -f 315000000 -r unlock.rx
# transmit file contents with 47 db (maximum) gain
sudo hackrf_transfer -s 2000000 -f 315000000 -t unlock.rx -x 47
Resources
Spectrum analysis
General
HackRF
hackrf_sweep can be manually called as follows:
hackrf_sweep -f 1800:1900 -r output.csv
QSpectrumAnalyzer is more convenient to use. File -> Settings -> Backend == hackrf_sweep to use hackrf_sweep.
Tested on hackrf FW 2024.02.1
Utils
HackRF
flash
grab from here - https://github.com/mossmann/hackrf
# just run the following command and reconnect the board
sudo hackrf_spiflash -w firmware-bin/hackrf_one_usb.bin
# run to ensure firmware got flashed
sudo hackrf_info