greatscottgadgets / hackrf

low cost software radio platform
https://greatscottgadgets.com/hackrf/
GNU General Public License v2.0
6.49k stars 1.52k forks source link

Time stamp information extraction #1377

Closed swapnachallagundla closed 7 months ago

swapnachallagundla commented 10 months ago

What feature would you like to see and why?

Hi, I want to record the FM signal along with its time stamps. Is it possible to do it in hackrf commands? When I plot the data in MATLAB, i have to see the timestamps of each sample.

Thanks.

martinling commented 10 months ago

The best way to do this is to use an external signal which you know the timing of (e.g. the 1PPS signal from a GPS), as a hardware trigger to start the sampling. Then since you know the sampling rate, you can get the timestamps of each sample by multiplying each sample index by the sampling period, and adding the start time.