linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What are you doing if the TX buffer overflows?
@ 2012-09-17 13:58 Heinz-Jürgen Oertel
  2012-09-17 19:19 ` Oliver Hartkopp
  2012-09-18 12:37 ` Wolfgang Grandegger
  0 siblings, 2 replies; 42+ messages in thread
From: Heinz-Jürgen Oertel @ 2012-09-17 13:58 UTC (permalink / raw)
  To: linux-can@vger.kernel.org


Hello,
is there a way to empty the tx buffer ?
Or read out the occupied size of it
to get the mumber of CAN frames waiting for transmission?

Best regards
 Heinz-Jürgen Oertel

^ permalink raw reply	[flat|nested] 42+ messages in thread
* Re: What are you doing if the TX buffer overflows?
@ 2013-01-08 10:09 Alexander Stein
  2014-01-27 20:47 ` Jason White
  0 siblings, 1 reply; 42+ messages in thread
From: Alexander Stein @ 2013-01-08 10:09 UTC (permalink / raw)
  To: linux-can

Sorry for "new" thread, I don't have the old messages for reply

Jason White wrote:
> Kurt Van Dijck <kurt.van.dijck <at> eia.be> writes:
> > > Officially the TX-timeout has been removed as the controller just sends
> > > out
> > > the CAN frames, when it comes back to life ...
> > > 
> > > The question is, if the controller gets into the BUS_OFF state and if
> > > the
> > > restart-ms option (see ip tool) would help here.
> > 
> > FYI:
> > A CAN chip that sits alone on a proper bus, trying to transmit a frame,
> > will never go into BUS_OFF. It can only go in BUS_OFF when a bad network
> > is encountered, i.e. the chip does not see it's TX activity on its RX.
> > 
> > I think this scenario (chip alone, going in BUS_OFF) is no different
> > than regular BUS_OFF, and should be treated likewise.
> 
> This sounds like something I would be interested in.  Just a couple of
> questions.  What do you mean TX-timeout has been removed?  Also does
> it work in error passive state (scenario where the ECU is alone on
> the bus - no ack from another ECU).  Does it just reset the CAN
> hardware or does the queues get flushed as well?

Is there any progress on this topic? I would be particilar interested in clearing the socket queue, especially in case a BUS-OFF happens or when no device is on the bus (no ACK).

Best regards,
Alexander


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

end of thread, other threads:[~2014-01-27 20:47 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 13:58 What are you doing if the TX buffer overflows? Heinz-Jürgen Oertel
2012-09-17 19:19 ` Oliver Hartkopp
2012-09-17 19:26   ` Andrew Bell
2012-09-17 19:33     ` Oliver Hartkopp
2012-09-18 13:36       ` Andrew Bell
2012-09-18 13:46         ` Wolfgang Grandegger
     [not found]   ` <4283CE44E963D741A50240F32D185B9F109AA1@SBSPORT3.portgmbh.local>
2012-09-17 19:40     ` Heinz-Jürgen Oertel
2012-09-18 11:44       ` Kurt Van Dijck
2012-09-18 12:14   ` Wolfgang Grandegger
2012-09-18 12:34     ` Marc Kleine-Budde
2012-09-18 12:49       ` Wolfgang Grandegger
2012-09-18 13:00         ` Marc Kleine-Budde
2012-09-18 13:39           ` Wolfgang Grandegger
2012-09-18 13:42             ` Marc Kleine-Budde
2012-09-18 18:50               ` Wolfgang Grandegger
2012-09-18 19:01                 ` Marc Kleine-Budde
2012-09-18 19:13                   ` Wolfgang Grandegger
2012-09-18 20:20                     ` Kurt Van Dijck
2012-09-19  5:42                       ` Oliver Hartkopp
2012-09-19  7:47                         ` Marc Kleine-Budde
2012-09-19  9:04                         ` Kurt Van Dijck
2012-09-19  6:50                       ` Wolfgang Grandegger
2012-09-19  7:39                         ` Marc Kleine-Budde
2012-09-19  8:10                           ` Wolfgang Grandegger
2012-09-19  7:31                       ` Marc Kleine-Budde
2012-09-19 10:18           ` Steffen Rose
     [not found]           ` <34567791.oZ5dyCnTQA@lisa>
2012-09-19 10:26             ` [Socketcan-users] " Kurt Van Dijck
2012-09-19 11:32               ` Steffen Rose
2012-11-14 20:48       ` Jason White
2012-11-15 12:54         ` Marc Kleine-Budde
2012-11-15 17:12           ` Oliver Hartkopp
2012-11-15 19:11             ` Jason White
2012-11-15 21:04               ` Oliver Hartkopp
2012-11-16 15:13             ` Kurt Van Dijck
2012-11-16 17:09               ` Jason White
2012-11-15 19:07           ` Jason White
2012-09-18 12:37 ` Wolfgang Grandegger
2012-09-18 13:22   ` Marc Kleine-Budde
2012-09-18 13:24   ` Marc Kleine-Budde
2012-09-18 13:25   ` Wolfgang Grandegger
  -- strict thread matches above, loose matches on Subject: below --
2013-01-08 10:09 Alexander Stein
2014-01-27 20:47 ` Jason White

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).