From: Guillaume Picquet <guillaume@picquet.fr>
To: linux-can@vger.kernel.org
Subject: SocketCAN stops read after RX overflow, is it normal?
Date: Wed, 2 Sep 2015 12:17:44 +0200 [thread overview]
Message-ID: <55E6CCC8.7010908@picquet.fr> (raw)
Hi every one.
I’m not sure to post to the correct list, if so please correct me.
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.
The only way to recover the interface is to set it down and up again.
Thanks in advance.
Regards.
next reply other threads:[~2015-09-02 10:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 10:17 Guillaume Picquet [this message]
2015-09-03 9:01 ` SocketCAN stops read after RX overflow, is it normal? 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
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=55E6CCC8.7010908@picquet.fr \
--to=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 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.