phoq · examples/clock_sync.py

Clock Recovery, Line by Line

How Bob, whose time tagger runs on its own clock, finds Alice's symbol clock and its phase in his time stamps alone: step 1 of examples/clock_sync.py. The walk follows synchronize() into recover_clock() and the periodogram() it calls, then symbol_phase(), where steps 2 and 3 start. Every mark on the screen comes from the arrays those lines produced on the bench below: the lines were replayed and checked against the functions themselves, and what the screen draws of Alice's side was checked against the bench.


  
BOB · TIME STAMPS → ALICE'S CLOCKRUN
1 / 1
synchronize() recover_clock() periodogram() symbol_phase()