News for hackers. Stuff that matters.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by H8crilA on Tuesday July 11, 2023 @03:04AM (#36677411)
Oh, I am so happy someone posted about this topic here.

Does anyone know whether I can use a GPSDO with an SDR to have very accurate timestamps of each I/Q sample? I don't just want the sampling to run at the correct phase, and without drift, I want a timestamp. Could be any SDR, but I'd prefer something reasonably priced (under $1000). Most SDRs will happily take the 10MHz reference clock, but are not be able to ingest or output time.

Re:Teardown of the TM4313 GPS Disciplined Oscillator by johschmitz on Tuesday July 11, 2023 @03:38AM (#36677652)
I did this back in the day using a ublox LEA-M8F module for my PhD work following the instructions posted here: http://www.opendigitalradio.org/lea-m8f-gpsdo I also experimented with RTK which this module is capable of. Now there's probably a more up to date ublox module available which could provide even better results using multi frequency GNSS etc.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by H8crilA on Tuesday July 11, 2023 @04:53AM (#36678172)
Thanks. Does the USRP B200 know how to timestamp individual samples? Or I guess just one sample, the rest is easy.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by Cerium on Tuesday July 11, 2023 @05:34AM (#36678469)
Now that you mention it, I remember doing this now. Mine was not for SDR, but data acquisition all the same. I had the PPS and 10MHz signals go into an fpga, while the GNSS UART went to the CPU. The FPGA could be programmed with the current time which was then kept up to date internally. As data was acquired the timestamp was married to each sample and passed around one to one.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by H8crilA on Tuesday July 11, 2023 @06:38AM (#36679035)
Yeah this should work. I was hoping to avoid having to add an FPGA.

On the other hand, BladeRF has an FPGA on board, perhaps it can ingest PPS. It will still be quite a bit if work to write for the FPGA, but at least I'll not have to design PCBs, which is way above my skill level.

Re:Teardown of the TM4313 GPS Disciplined Oscillator by Cerium on Tuesday July 11, 2023 @01:55PM (#36684687)
I thought about it some more, you might be able to do this entirely with an off the shell SDR.

If you have a device that can record multiple bands simultaneously, and preserve timing between them, then you may be able to record both your target band and the GPS band and then use software later to reconstruct the time out of the GPS recording.

See: https://www.rtl-sdr.com/rtl-sdr-tutorial-gps-decoding-plotti...

Re:Teardown of the TM4313 GPS Disciplined Oscillator by H8crilA on Tuesday July 11, 2023 @04:16PM (#36686656)
This is a very interesting idea. I think I could use a BladeRF, it has two input channels. I hope the two channels are perfectly synchronized, by glancing at people's projects it seems that they are.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by eqvinox on Tuesday July 11, 2023 @09:46AM (#36680894)
If you want to build something, ITU-T G.703 + G.8271 (both available for free) outline how this works for telco equipment. There's a low-speed serial channel alongside the PPS / 10MHz signals, carrying the actual wallclock time. It's transported over RS422 on a RJ45 connector for PPS + side channel, SMA (or other coaxial connector) for 10MHz reference. Some devices also accept plain NMEA stanzas as input to read the clock from.

(I always thought RS422 for the PPS signal is a bit fishy, not sure how jitter-y those transceivers are. That said the hardware I've seen uses >25Mbaud high-speed transceivers [ISL3180, THVD1452], maybe those are fine in that regard.)

A modern 5G base station kinda does what you describe. All SDR these days anyway :)

Re:Teardown of the TM4313 GPS Disciplined Oscillator by rfdave on Tuesday July 11, 2023 @09:22PM (#36689356)
I believe the GNURadio folks have implemented at least some of this, so it might be worth poking around GNURadio for a bit, Tags are what you're looking for.
Re:Teardown of the TM4313 GPS Disciplined Oscillator by H8crilA on Wednesday July 12, 2023 @02:01AM (#36690939)
I obviously need specific hardware for this first. The rest is not a problem.