Hey,

I opened the CAN 2.0B spec (from Bosch, part A, page 26). 
an error counter can go to 256, which equals
bus-off. Any CAN chip that goes beyond 256 is not according this spec.

Kurt

On Sun, Feb 07, 2010 at 05:53:52PM +0100, christian pellegrin wrote:
> On Sun, Feb 7, 2010 at 11:38 AM, Marc Kleine-Budde <[email protected]> 
> wrote:
> > One of these errors can go to 255 which is 0x100, and doesn't fit into
> 
> > an u8.
> >
> 
> Huh sorry, for the mcp251x they are just 8 bit, I guess you mean that
> other controllers might have larger values, don't you? I checked a
> book about CAN and all examples show 255 like the maximum value *but*
> then I read in the text "If the transmission counter value exceeds 255
> (! 256), the CAN station (node) is said to have". So I guess you are
> right, they should be more than u8.
> 
> -- 
> Christian Pellegrin, see http://www.evolware.org/chri/
> "Real Programmers don't play tennis, or any other sport which requires
> you to change clothes. Mountain climbing is OK, and Real Programmers
> wear their climbing boots to work in case a mountain should suddenly
> spring up in the middle of the computer room."
> _______________________________________________
> Socketcan-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/socketcan-users
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to