christian pellegrin wrote: > On Sun, Feb 7, 2010 at 1:45 PM, Wolfgang Grandegger <[email protected]> > wrote: >> I found this useful information in the AT91 CAN manual: >> >> <begin quote> > .... >> <end qoute> >> > > Yes this is exactly what I see in practice. Anyway my initial question > was much simpler: the user level application can see an error-warning, > error-passive or buss-off state when it gets an error frame (so, let's > say, it's "interrupt" driven). To be able to sense that the bus is > back to error-active I don't see any other way than polling the state. > Is this right or I'm missing something?
When it's in bus-off, you need to perform a bus-off recovery to get back to the error active state. If the state changes from error passive to error active or error warning), an interrupt should be triggered but we may not handle that properly in software (which expects the state in increase). Can you confirm that? Normal state changes are interrupt driver. So, if the hardware does not trigger an interrupt, we have a problem. Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
