canbus remote request #78994
-
Hello everybody, how is it possible to
Thanks, Edi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You set the
You need to enable Hardware support for RTR is very, very different between various CAN controllers (quite a few controllers don't even support RTR and its use is discouraged), making it very difficult to come up with a common Zephyr CAN API abstraction for handling automatic RTR replies. |
Beta Was this translation helpful? Give feedback.
You set the
CAN_FRAME_RTR
flag inflags
member in thestruct can_frame
TX instance.You need to enable
CONFIG_CAN_ACCEPT_RTR=y
to allow incoming RTR frames, add a CAN RX filter for the specific CAN ID and check for theCAN_FRAME_RTR
flag in matching RX frames in your callback. If the CAN ID matches and the RTR flag is present, you need to queue up a response TX frame (which can be prepared in advance, if needed).Hardware support for RTR is very, very different between var…