You need to install GPS-SDR-SIM,HackRF host tools, and WireringPi on RaspberryPi.
Rapsberry Pi3 is highly recomended for better performance of the real time signal generation.
It requires apache2 and php5 if you wish to use web based UI.
The installation instruction links are as follows.
RaspberryPi:
https://www.raspberrypi.org/
GPS-SDR-SIM:
https://github.com/osqzss/gps-sdr-sim
HackRF:
https://github.com/mossmann/hackrf
WireringPi:
http://wiringpi.com/download-and-install/
Additional info to control hackrf via HTTP server.
(1)Add /etc/udev/rules.d/52-hackrf.rules as follows.
ATTR{idVendor}=="1d50", ATTR{idProduct}=="604b", SYMLINK+="hackrf-jawbreaker-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1fc9", ATTR{idProduct}=="000c", SYMLINK+="hackrf-dfu-%k", MODE="660", GROUP="plugdev"
(2) Refrect udev rules.
$sudo udevadm control --reload-rules
(3) Add www-data user into plugdev.
$sudo usermod -aG plugdev www-data
(4) Restart Apache2
$sudo systemctl restart apache2
/home/pi/
/IQ-files ... binary I/Q files to pass hackRF or text files used for genaration of I/Q file by
dedicated real time signal generation program such as enhanced GPS-SDR-SIM, or ADS-B_gen
/bin/gps-sdr-sim ... enhanced GPS-SDR-SIM binary file and ephemeris file(s).
replay2 ... Main startup program of the WALB
menu2.txt ... Main menu items displayed on LCD
level2.txt ... Sub menu-1: transmit power setteing
date2.txt ... Sub menu-2: date&time setting for GPS time spoofing
scripts/
sim_start.sh ... Script to start I/Q signal generation and kick HackRF to transmit
ic2-disp.sh ... Script to control LCD
stat.sh ... Script to check if hackrf_transfer is active
kill_proc.sh ... Script to kill gps-sdr-sim and/or hackrf_transfer
eth.sh ... Script to display eth0 IP address on LCD
wlan.sh ... Script to display wlan0 IP address on LCD
/python/ ... Python port file from replay2.c
/var/www/html/webui/ ... Sctipt files to set GPS-SDR-SIM location via Web UI.
LatLon.php ... Web UI
LatLon.ini.php ...
LatLon.tmpl.php ... Template file.
LatLon.js ...
start2.php ... Start/Stop GPS signal generation
kill_proc.php ... Kill process of hackrf_transfer, gps-sdr-sim and smooth.php for terminate signal generation.
smooth2.php ... Script for location interpolation between previos position and latest clicked position.
gcc replay2.c -I/usr/local/include -L/usr/local/lib -lwiringPi -o replay2
(You may need to adjust -I/Lxxxxx for the location of wireringPi)