All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander GQ Gerasiov <gq@cs.msu.su>
To: linux-can@vger.kernel.org
Subject: Re: SJA1000 loopback feature
Date: Thu, 19 Jun 2014 22:07:10 +0400	[thread overview]
Message-ID: <20140619220710.580a0879@snail> (raw)
In-Reply-To: <53A32133.7050300@hartkopp.net>

Thu, 19 Jun 2014 19:43:15 +0200
Oliver Hartkopp <socketcan@hartkopp.net> wrote:
> So your hosts are absolutely synchronized (via ntp)??
Offtopic: yes, ntp for dirty synchronization and then LinuxPPS
for +/-5 microseconds precision.

> > On vcan you will see A (on T+dt1), B (on T+dt1+dt2).
> 
> How do you get the timestamp information then?

I put timestamps here just for example.

I just need that events traced by testbench software (on vcan in your
example) should go in the same order as events real hardware (we are
testing) will see on its interface.

> E.g. you can configute the routing rule with '-t' option to preserve
> the src_dev rx timestamp. You would see the timestamp from the real
> CAN tnen.
> 
> > On bus you will see B (on T+dt3), A (on T+dt3+dt4).
> 
> Hm - i wonder if you would really see a difference as the networking
> stack is not real-time anyway.

Timestamps are not a problem (in real life they are :) ). I'm speaking
about event's order 

> When sending on vcan (which has no
> receive queue) the rx is performed instantly which leads to en-queue
> the frame into the real CAN interface immediately.

Yes, after frame will be transmitted via vcan our soft will trace
successfull send, but then this frame will go into tx-queue and here it
could stuck because another (e.g. high prio) frame is transmitted by
other host (real hardware) the same time.


  reply	other threads:[~2014-06-19 18:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16 16:20 SJA1000 loopback feature Nikita Edward Baruzdin
2014-06-16 18:56 ` Oliver Hartkopp
2014-06-17 11:41   ` Nikita Edward Baruzdin
2014-06-17 12:13     ` Alexander GQ Gerasiov
2014-06-18 19:51       ` Oliver Hartkopp
2014-06-19 12:44         ` Alexander GQ Gerasiov
2014-06-19 14:55           ` Oliver Hartkopp
2014-06-19 16:01             ` Alexander GQ Gerasiov
2014-06-19 17:43               ` Oliver Hartkopp
2014-06-19 18:07                 ` Alexander GQ Gerasiov [this message]
2014-06-19 20:32                   ` vcan to can0 bridging Kurt Van Dijck

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=20140619220710.580a0879@snail \
    --to=gq@cs.msu.su \
    --cc=linux-can@vger.kernel.org \
    /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.