Everything seems to be fine.But I am not sure how to use the GTE output(the figure below), please give me some suggestions, Any suggestions would be appreciated!
I use $ ./gte_mon -d gtechip0 -g 257 -r -f & use-case, We want to use GTE to sync other devices,and I wonder what "HW timestamp GPIO EVENT 7301997619552"
the “7301997619552”means? How to convert to UTC time?
Thanks!
BR.
here’s formula, clock_gettime(MONOTONIC_RAW) = cycle_ns(TSC) - offset_ns
GTE block (GPIO Timestamping Engine), which can be used to capture the TSC timestamp based on gpio interrupts or events.
and, the offset is under… # cat /sys/devices/system/clocksource/clocksource0/offset_ns
please following above to calculate the timestamp with TSC,
thanks