From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Austin Schuh <austin@peloton-tech.com>,
linux-can <linux-can@vger.kernel.org>,
Philipp Schrader <philipp@peloton-tech.com>
Subject: Re: CAN message timestamping
Date: Wed, 23 Mar 2016 08:00:47 +0100 [thread overview]
Message-ID: <56F23F1F.6040101@hartkopp.net> (raw)
In-Reply-To: <CANGgnMbLhYDdiK_tff0cEW+umuMOPN0h9x7t7cMK-xjMAMNBmQ@mail.gmail.com>
Hi Austin,
On 23.03.2016 06:12, Austin Schuh wrote:
> We recently tried doing CAN timestamping with the ioctl(s, SIOCGSTAMP,
> &tv) call.
Did you ever try to use the recvmsg() call with enabled SO_TIMESTAMPING socket
option?
See:
https://www.kernel.org/doc/Documentation/networking/timestamping.txt
https://www.kernel.org/doc/Documentation/networking/timestamping/
The candump tool also uses recvmsg() - but only with SO_TIMESTAMP so far which
does not provide the other RX timestamps (link HW TS).
Regards,
Oliver
next prev parent reply other threads:[~2016-03-23 7:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 5:12 CAN message timestamping Austin Schuh
2016-03-23 7:00 ` Oliver Hartkopp [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56F23F1F.6040101@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=austin@peloton-tech.com \
--cc=linux-can@vger.kernel.org \
--cc=philipp@peloton-tech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.