From: Alexander Stein <alexander.stein@systec-electronic.com>
To: Guillaume Picquet <guillaume@picquet.fr>
Cc: linux-can@vger.kernel.org
Subject: Re: SocketCAN stops read after RX overflow, is it normal?
Date: Thu, 03 Sep 2015 11:16:35 +0200 [thread overview]
Message-ID: <8605150.LGJ155yN3b@ws-stein> (raw)
In-Reply-To: <55E6CCC8.7010908@picquet.fr>
Hi Guillaume,
On Wednesday 02 September 2015 12:17:44, Guillaume Picquet wrote:
> I’m doing tests on embedded hardware with integrated CAN bus interface
> (based on AT91). The driver provides Linux Socket API and I try to see
> the limits:
> I have one transmitter that writes CAN frames (CAN_RAW) as fast as
> possible and a receiver that reads continuously.
> After a moment the receiver gets an error frame signalling RX overflow.
> I have no problem with that, it's normal and expected.
> But question is why at this point no more frame is received ?
>
> read() do not return, I've tested also with select() which return timeout.
> (The restart-ms option is set)
>
> I expected some dropped frames and others RX buffer errors but not the
> end of reception.
Maybe you are hitting the same problem as I was last year: http://marc.info/?l=linux-can&m=141225364212703&w=2
It seems the at91_can driver hasn't changed essentially since that time. So please give the patches Marc sent today a try.
Best regards,
Alexander
--
Dipl.-Inf. Alexander Stein
SYS TEC electronic GmbH
alexander.stein@systec-electronic.com
Legal and Commercial Address:
Am Windrad 2
08468 Heinsdorfergrund
Germany
Office: +49 (0) 3765 38600-0
Fax: +49 (0) 3765 38600-4100
Managing Directors:
Director Technology/CEO: Dipl.-Phys. Siegmar Schmidt;
Director Commercial Affairs/COO: Dipl. Ing. (FH) Armin von Collrepp
Commercial Registry:
Amtsgericht Chemnitz, HRB 28082; USt.-Id Nr. DE150534010
prev parent reply other threads:[~2015-09-03 9:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 10:17 SocketCAN stops read after RX overflow, is it normal? Guillaume Picquet
2015-09-03 9:01 ` Marc Kleine-Budde
2015-10-12 8:05 ` Guillaume Picquet
2015-10-12 8:54 ` Marc Kleine-Budde
2015-10-12 9:04 ` Guillaume Picquet
2015-10-12 9:15 ` Marc Kleine-Budde
2015-10-12 9:46 ` Guillaume Picquet
2015-10-12 9:50 ` Marc Kleine-Budde
2015-09-03 9:16 ` Alexander Stein [this message]
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=8605150.LGJ155yN3b@ws-stein \
--to=alexander.stein@systec-electronic.com \
--cc=guillaume@picquet.fr \
--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 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).