linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CAN message timestamping
@ 2016-03-23  5:12 Austin Schuh
  2016-03-23  7:00 ` Oliver Hartkopp
  0 siblings, 1 reply; 10+ messages in thread
From: Austin Schuh @ 2016-03-23  5:12 UTC (permalink / raw)
  To: linux-can, Philipp Schrader

Hi,

We recently tried doing CAN timestamping with the ioctl(s, SIOCGSTAMP,
&tv) call.  It worked well, but all our timestamps internally are
based off the monotonic clock (since the realtime clock can jump and
go backwards in time.)  The conversion to the monotonic clock has been
tricky.  We already caught one bug today where it looks like our
simplistic sample both clocks and use that to compute the offset
algorithm was interrupted in the middle and resulted in the monotonic
time going backwards (which is wrong by definition).

Is there any way to get CAN timestamping with both clocks, or at least
with just the monotonic clock?  Or otherwise reliably get monotonic
time?

Thanks,
  Austin

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-12  2:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23  5:12 CAN message timestamping Austin Schuh
2016-03-23  7:00 ` Oliver Hartkopp
2016-03-29  1:51   ` Austin Schuh
2016-03-29  3:42     ` Austin Schuh
2016-03-29  4:28       ` Austin Schuh
2016-03-30 12:17         ` Oliver Hartkopp
2016-03-30 16:50           ` Austin Schuh
2016-04-04 19:45             ` Oliver Hartkopp
2016-04-04 20:32               ` Austin Schuh
2016-05-12  2:07                 ` Austin Schuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).