HI,
I am using a imx8mm and Kirstone Yocto.
I have a requirement to delay the transmission of every CAN message by 1ms.
I have discovered I can't simply use msleep() in the mcp251xfd_start_xmit() function as that function does not execute in a thread. When I tried this, the kernel crashed.
I have found another way to use traffic control as described here linux - Netem - how to delay packets sent to/received from some host - Unix & Linux Stack Exchange but it relies on a qdisc kind of netem. This netem doesn't seem to be something that can be brought in to my Yocto build - at least I have been able to figure out how. Has anyone successfully been able to use netem with tc?
Of course I can have a delay at the application level, and I am looking at that but it introduces other issues that I'd like to avoid.
Thanks.
Hello,
You can see the FlexCAN driver for MX8 in the documentation https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf you can find the proper delay un CAN message, but the MX8MM don;t have CAN.
Regards