Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

Real Time Streaming to HackRF

Nguyễn Mạnh Toàn edited this page Mar 21, 2018 · 15 revisions

Step 1: Create FIFO for GPS Simulation Data

mkfifo gpsstream

Step 2: Invoke GPS Simulator with current ephemeries file and current time/date and stream to FIFO

./gps-sdr-sim -e brdcXXXX.17X -l 50.059330, 0.008319,100 -b 8 -t $(date -u +%Y/%m/%d,%H:%M:%S) -i -o gpsstream
  • GPS-SDR-SIM only accepts the input variable as UTC time for "-t" option
  • Here is details of function date2gps
  • To see the current UTC time/date, you can execute the command:
date -u +%Y/%m/%d,%H:%M:%S

Step 3: Broadcast GPS Simulation Data from FIFO

hackrf_transfer -t ./gpsstream -f 1575420000 -s 2600000 -a 1 -x 0
Clone this wiki locally