due_can icon indicating copy to clipboard operation
due_can copied to clipboard

ACK bit should be 0?

Open spudmu opened this issue 4 years ago • 3 comments

I am trying to emulate some CAN frames on my due with my very limited C++ abilities, my background is more hardware oriented and I am very new to the due. When I scope the CAN output of my due I see that the ACK bit is always 1 whereas on the frames I am trying to emulate the ACK bit is always 0 which I believe is correct. Is there a command in due_can to clear the ACK bit

spudmu avatar Mar 24 '21 16:03 spudmu

The ACK bit is automatically handled in hardware. If the hardware accepts a frame it asserts ACK and sends it over the wire. There really isn't any way to set that bit explicitly in the library other than to accept a frame that is received.

collin80 avatar Mar 24 '21 19:03 collin80

Thanks for the quick reply Collin, In that case it looks like I will not be able to emulate these frames with the due.

Jim

spudmu avatar Mar 24 '21 20:03 spudmu

You might consider looking here: https://github.com/kentindell

collin80 avatar Mar 24 '21 22:03 collin80