All of lore.kernel.org
 help / color / mirror / Atom feed
* SocketCAN stops read after RX overflow, is it normal?
@ 2015-09-02 10:17 Guillaume Picquet
  2015-09-03  9:01 ` Marc Kleine-Budde
  2015-09-03  9:16 ` Alexander Stein
  0 siblings, 2 replies; 9+ messages in thread
From: Guillaume Picquet @ 2015-09-02 10:17 UTC (permalink / raw)
  To: linux-can

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.

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

end of thread, other threads:[~2015-10-12  9:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.