Re-implementation of rustbootd's ecat_el6695_* examples as a single binary with fixes found in review and on hardware: - DC-follow PLL hardened against period-2 hunting: slew-limited anchor (+/-50us/cycle), bistable-trap snap re-anchor, re-prime on stale deadline - drift-free absolute-grid ticker mode; probe mode for timestamp forensics - bounded-memory online stats (histograms), graceful SIGINT/SIGTERM shutdown with full report, error-streak abort - timestamp plausibility filter comparing against the previous raw sample (avoids the deadlock after a startup outlier) - XFC scope waveform options: --el2202 (with --el2202-dual), --el2262, --el1252 latch timestamp readback with per-channel edge statistics - register access unified in regs.rs: named bit constants everywhere, read-modify-write for enable/activation bytes - vendored patched ethercrab 0.7.1 (sdo_write_complete, send_raw_coe) Verified on J1900 (PREEMPT_RT 6.6.135): 600k cycles/600s exact 1 kHz, tx/rx zero errors, phase_err p50=164us std=5us; EL2202<->EL1252 loopback edge interval mean 2000.24us std=24.65us.
48 lines
934 B
Gnuplot
48 lines
934 B
Gnuplot
set datafile separator comma
|
|
|
|
set term wxt size 1920,1080
|
|
|
|
set key autotitle columnhead
|
|
|
|
|
|
|
|
FILE = "dc-pd.csv"
|
|
|
|
set multiplot
|
|
set size 1.0,0.25
|
|
|
|
# For time in seconds
|
|
# set xlabel 'Elapsed (seconds)'
|
|
# set xrange [0.0:10.0]
|
|
|
|
# For cycle count
|
|
set xlabel 'Cycle'
|
|
# set xrange [700:800]
|
|
|
|
# Milliseconds
|
|
# set yrange [0:10]
|
|
set origin 0.0,0.75
|
|
set title "SubDevice system time u32"
|
|
plot for [n=4:23:4] FILE using 2:(column(n)) with lines
|
|
|
|
# Milliseconds
|
|
# set yrange [0:10]
|
|
set origin 0.0,0.50
|
|
set title "SubDevice system time u64"
|
|
plot for [n=5:23:4] FILE using 2:(column(n)) with lines
|
|
|
|
# set yrange [0:3]
|
|
set ylabel "Millis"
|
|
# set logscale y
|
|
set origin 0.0,0.25
|
|
set title "Time to next SYNC0"
|
|
plot for [n=6:23:4] FILE using 2:(column(n)) with lines
|
|
|
|
# Milliseconds
|
|
# set yrange [0:10]
|
|
unset logscale y
|
|
set ylabel "Nanoseconds"
|
|
set origin 0.0,0.0
|
|
set title "Next SYNC0 raw value"
|
|
plot for [n=7:23:4] FILE using 2:(column(n)) with lines
|