Wolfgang Grandegger wrote:
> Sebastian Smolorz wrote:
> > Wolfgang Grandegger wrote:
> >> The Socket-CAN
> >> implementation actually restarts the CAN controller after a certain
> >> amount of bus error interrupts (200 by default) which matches your first
> >> policy above. But in RT-Socket-CAN, we do not automatically re-start the
> >> device by purpose. Therefore I tend to just stop the device. It's then
> >> up to the application to restart it. What do you think?
> >
> > No fundamental objections but it would be best if an application would be
> > informed of this special situation e.g. through an error frame with the
> > meaning "controller was stopped because of a disconnected bus after
> > trying to send 200 times the same message".
>
> D'accord, but we need another error definition for it, e.g.
> CAN_ERR_BUSERROR_FLOOD.

Agreed.

> I also plan to reset the error count in case of 
> a successful transmission (counting only successive errors).

That would make sense.

-- 
Sebastian

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to