Sebastian Smolorz wrote:
> Oliver Hartkopp:
>> The problem is to define what a dlc > 8 provided by the CAN controller
>> (which IS a BUG inside the CAN controller!) should mean to the rest of
>> the data inside the registers containing the received CAN frame:
>>
>> - do we assume the rest to be a valid CAN frame?
>> - should we drop the frame ?
>
> The Bosch CAN specification revison 2.0 part B says that a reaction to a DLC
>> 8 is not defined but the reference CAN model defines as de-facto standard
> the assumption that if DLC > 8 then DLC := 8.
Ah, OK. Then
if (dlc > 8)
dlc = 8;
would just be fine. Thank's for the hint.
Wolfgang.
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core