On 08.03.2023 15:54:37, Fink, Peter wrote: > > I'm currently adding CAN-FD support to the Candlelight firmware and looking > > at the TX echo message from the CAN device to Linux. In your firmware for > > CAN-FD frames, are you echoing the whole CAN FD structure gs_host_frame > > with 64 byte data, or the classic CAN gs_host_frame with 8 byte data? > > In our firmware the whole 64 byte data is echoed back. Thanks for the info. > > The Candlelight I use only works in full-speed USB (12 Mbit/s) max, which > > means that the maximum transmission size is 64, which results in a TX echo > > consisting of 2 USB transmissions. The Linux driver makes no use of the data > > in the TX echo frame, so a classic CAN TX echo would suffice. > > Our device supports USB high-speed USB (480Mbit/s). With 480 Mbit/s it should be less of a problem than with 12 Mbit/s. If we run into performance and/or throughput issues, we could introduce an optional "shallow echo" where only the index and the timestamp will be send back. regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature