Linux CAN drivers development
 help / color / mirror / Atom feed
* Full Buffers and the Passive bus
@ 2012-08-31 16:36 Andrew Bell
  2012-08-31 16:49 ` Oliver Hartkopp
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Bell @ 2012-08-31 16:36 UTC (permalink / raw)
  To: linux-can

Is there some way within socket CAN to detect the state when no nodes
are on the BUS?  I do get CAN_ERR_TX_TIMEOUT error frames after some
time, but I'm writing to the BUS faster than frames drain from the
buffers, so eventually buffers fill up and writes start failing.  In
this case, write does return ENOBUFS.  But I'd like to be able to
differentiate between the case where buffers are full because of some
transient condition (I'm writing too fast for the BUS) and the
condition when nobody is home to receive anything at all.

Suggestions appreciated.

--
Andrew Bell
andrew.bell.ia@gmail.com

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

end of thread, other threads:[~2012-08-31 17:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31 16:36 Full Buffers and the Passive bus Andrew Bell
2012-08-31 16:49 ` Oliver Hartkopp
2012-08-31 16:52   ` Andrew Bell
2012-08-31 16:53     ` Andrew Bell
2012-08-31 17:32     ` Oliver Hartkopp
2012-08-31 17:37   ` Kurt Van Dijck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox