linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Precise timestamping
@ 2014-01-01 15:25 Pavel Kirienko
  2014-01-02 14:10 ` Oliver Hartkopp
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Kirienko @ 2014-01-01 15:25 UTC (permalink / raw)
  To: linux-can

Hi Linux CAN,

I am looking for an optimal way to implement two CAN interfaces for a
carrier board for COM Express 2.0 computer-on-module (arch AMD64). The
CAN network this computer will be connected to has few nodes that will
periodically publish sensor measurements, and the application running
on the computer will need to receive these measurements with precise
timestamps (desired precision is around 1 ms).

The computer has the following interfaces: USB 2.0/3.0, PCIe, SPI, I2C.

Note that this device is going to work in a space constrained
environment prone to intensive vibrations, thus solutions like an
external PCIe board are unfeasible; external USB-CAN adapters (e.g.
Peak System PCAN) are undesirable.

Most obvious and most simple solution is to put a CAN-enabled
microcontroller on the board, connect in to the computer via USB and
use slcan transport (i.e. typical USB-CAN adapter embedded on the
board). I like this approach for its straightforwardness. What kind of
resolution I can expect in this case with stock Ubuntu kernel (12.04
and higher)?

Other options I considered are to use an SPI CAN controller, like
MCP251x or whatever supported by the Linux CAN backends. This should
significantly reduce the read latency, but downside is that I'll need
to use a custom built driver (with custom platform description files
for SPI interface) (correct me if I am wrong). How much better the
timestamping resolution can be with this approach, compared to slcan?

Essentially, my question is: What are my options to implement
low-latency (under 1 ms) CAN interface for a COM Express 2.0 device?

Thanks in advance,
Pavel.

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

end of thread, other threads:[~2014-01-02 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-01 15:25 Precise timestamping Pavel Kirienko
2014-01-02 14:10 ` Oliver Hartkopp

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).