On 14.02.2011 09:42, Marc Kleine-Budde wrote:
> On 02/13/2011 04:01 PM, Wolfgang Grandegger wrote:
>> If "candump" is called with the option "-e", the error messages are
>> dumped in human readable format:
> 
> \o/ - I wanted to have something like this a looong time ago..
> 
>>
>>
>> # candump -e any,0:0,#FFFFFFFF
>>   ...
>>   can0  20000088  [8] 00 00 80 19 00 00 00 00   ERRORFRAME
>>         protocol-violation{{error-on-tx}{acknowledge-slot}}
>>         bus-error
>>         error-counter{tx{128}rx{97}}
>>   ...
>>   can0  2000008C  [8] 00 08 80 19 00 00 00 00   ERRORFRAME
>>         controller-problem{tx-error-warning}
>>         protocol-violation{{error-on-tx}{acknowledge-slot}}
>>         bus-error
>>         error-counter{tx{128}rx{97}}
>>
>> "candump" actually calles a library function sprintf_can_error_frame()
>> to do the formatting. It could be used for other purposes as well.

Goog idea.

Feel free to commit it once Marc is happy with his remarks :-)

Thanks,
Oliver
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to