Sylphase SDGPS
The software-defined GPS(/GNSS) toolkit
Synchronizing to GPSDO (relative phase lock)

Example 1: Phase locking the internal OCXO to GPS time from the GPSDO antenna port

The following example demonstrates:

  • Simulating a static trajectory on a single antenna.
  • Phase locking the internal OCXO to GPS time from the GPSDO antenna port.
    • Note: The use of static-kf2 assumes that the antenna connected to the GPSDO antenna port is stationary.
  • Note: The initial phase offset between GNSS simulation time and GPS time remains present throughout the entire simulation, and deviations from it will typically be on the order of ±1 ns (as long as the simulator's internal GNSS receiver maintains a GNSS fix).
  • Note: If, instead of relative phase alignment, you want to absolutely align GNSS simulation time to GPS time obtained from the internal GNSS receiver, please see the instructions on Synchronizing to GPSDO (absolute time alignment) (new in v0.46.4).
sdgps \
    generate-simple-trajectory --rate inf --position-ecef '[-3884259, 4607249, 2082592]' \
    ! simulate-raw sylphase-simulator: --cn0 40 --start-stream-time 0 \
    ! sylphase-simulator-txrx --antenna-lna-gain 25 \
    ! tracker \
    ! decoder \
    ! static-kf2 --abort-signals-ignored-for 2 --p-log 1e-9 --p-ignore 1e-12 \
    ! gpsdo --force-zero-frequency-offset --disable-fast-slew

In the above pipeline:

  • Note: The sylphase-simulator-txrx node is used (instead of the more standard sylphase-simulator node), in order to enable the simulator's internal GNSS receiver, which is fed from the "GPSDO antenna" port and used for GPSDO functionality.
  • Note: The pipeline prior to the sylphase-simulator-txrx node is a normal simulator pipeline.
  • The portion of the pipeline after the sylphase-simulator-txrx node enables GPSDO functionality, which phase locks the internal OCXO to GPS time.
  • The GPSDO functionality has been enabled and will phase lock the internal OCXO once static-kf2 obtains a GNSS fix.