I want to learn CAN RTR (Remote Transmission Request) basic coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-22 1:30 PM - last edited on ‎2025-05-23 2:24 AM by Andrew Neil
I've be trying to learn CAN for the past few days for a project using 2 Nucleo F103RB and 2 CAN transceivers. I made a very basic code using normal mode and without using RTR. Now I want to learn how to code using RTR, can someone help me please?
(I already know what is RTR, I want to use it and can't find where to learn it).
Solved! Go to Solution.
- Labels:
-
CAN
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-24 4:49 AM
Sorry, I didn't catch the scenario.
@Bruno_Hessman_Ramos wrote:
the receiver(RTR)is going to send a request with an ID using TxHeader.StdId = ID right?With this id,the other other board will see the id and send a message,wich the reciver can store right? Thank you for the answer!
The receiver will receive an RTR message with an ID (standard or extended). It will answer by a data message that the sender needs to catch (the filter needs to be configured accordingly in both sides: sender (ID) and the receiver (RTR+ID)).
Hope it's clear now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-23 2:19 AM - edited ‎2025-05-23 2:52 AM
Hello,
Since you know what the RTR is, don't expect to use it to make the receiver to automatically responds the request.
You can send an RTR frame with this parameter:
TxHeader.RTR = CAN_RTR_REMOTE;
On the receive, if you want, to set one of the filters to accept the RTR frames, while received you need to send back a frame manually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-23 2:35 PM - edited ‎2025-05-23 3:17 PM
I am very new on coding and CAN,so can I respond the frame using the button in the Nucleo F103RB?For example,the receiver(RTR)is going to send a request with an ID using TxHeader.StdId = ID right?With this id,the other other board will see the id and send a message,wich the reciver can store right? Thank you for the answer!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-24 4:49 AM
Sorry, I didn't catch the scenario.
@Bruno_Hessman_Ramos wrote:
the receiver(RTR)is going to send a request with an ID using TxHeader.StdId = ID right?With this id,the other other board will see the id and send a message,wich the reciver can store right? Thank you for the answer!
The receiver will receive an RTR message with an ID (standard or extended). It will answer by a data message that the sender needs to catch (the filter needs to be configured accordingly in both sides: sender (ID) and the receiver (RTR+ID)).
Hope it's clear now.
