On 10/14/2010 11:26 AM, Alexander Stein wrote: > Hello, > > On Wednesday 13 October 2010, 11:02:33 Wolfgang Grandegger wrote: >>> http://old.nabble.com/Self-reception-and-more-td29760073.html >>> http://old.nabble.com/Self-reception-td29932236.html >> >> 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 >> doing the local loopback in software when the TX done interrupt is >> handled. Also some USB devices are not able to do that properly. > > Is it possible, that at91_can does also hardware loopback? If I use the
No, currently only the flexcan controller can do it properly in hardware. > default socket options (CAN_RAW_LOOPBACK = 1, CAN_RAW_RECV_OWN_MSGS = 0), I > also receive my own frames on the same socket. setting CAN_RAW_RECV_OWN_MSGS > to 1 doesn't change anything. But if I set CAN_RAW_LOOPBACK to 0, I don't get > any frame I sent. I guess the latter is intended. Yes, it's explained in section 3.2, 4.1.3 and 4.1.4 of: http://lxr.linux.no/#linux+v2.6.35.7/Documentation/networking/can.txt Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
