Moin, the socket CAN implementation allows sending of CAN frames with RTR set and dlc != 0. My question is what should be received?
I've tested several CAN cores (sja1000, mcp2515, at91_can) and all receive the RTR bit and set the dlc correct, but the data is not handled as expected. On the at91 and mcp2515 it seems that we get the old mailbox data, on the sja1000 we get the old data but shifted by several bytes. Our options are: leave as it is, or combinations of these: 1) drop frames with RTR && dlc != 0 2) set dlc = 0 if RTR is set 3) set data = to 0 if RTR is set a) during RX b) during TX cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
