osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.75k stars 773 forks source link

Sample rate for HackRF #338

Closed fener1efes2 closed 2 years ago

fener1efes2 commented 2 years ago

As can be seen from https://github.com/greatscottgadgets/hackrf/blob/master/host/hackrf-tools/src/hackrf_transfer.c, HackRF supports sample rate up to 20MHz. #define SAMPLE_RATE_MIN_HZ (2000000) /* 2MHz min sample rate */ #define SAMPLE_RATE_MAX_HZ (20000000) /* 20MHz max sample rate */ #define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */

But on the GPS-SDR-SIM, it states that it need 2.6MHz sample rate, as can be seen from below.

image

Why do we need to use HackRF with 2.6MHz sample rate?

osqzss commented 2 years ago

It is not required. You can use any sample rate higher than a single-side bandwidth of the GPS baseband. The README file has been update.