On 10/13/2010 11:16 AM, Kurt Van Dijck wrote:
> Wolfgang, Marc,
> 
> On Wed, Oct 13, 2010 at 11:12:13AM +0200, Marc Kleine-Budde wrote:
>> Moin Wolfgang,
>>
>> On 10/13/2010 11:02 AM, Wolfgang Grandegger wrote:
>>>>> is there a way to detect whether the CAN frame actually was sent on the 
>>>>> bus? I 
>>
>> [...]
>>
>>> I'm following the discussion and realized that it will not work for
>>> devices doing the local loopback in hardware, like the flexcan
>>> controller. Strictly speaking it will only work properly for drivers
>>
>> I realized that (yesterday while taking a shower), too. But that can be
>> fixed. The TX-path of the flexcan only uses one buffer, that can be
>> improved, too.
> 
> The patch on socketCAN I presented yesterday will work on
> any driver that is capable of preserving the sk_buff->sk member on
> TX skbuffs. If that is not preserved, then CAN_RAW_RECV_OWN_MSGS
> won't work neiter, or am I wrong?

No, you are right. The flexcan controller can do the local loopback in
hardware and you will not be able to distinguish it from a message from
the CAN bus. I briefly check the manual and did not find any flag
labeling a looped back message. But the usual software loopback could be
implemented for that device as well.

Wolfgang.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to