MDK-ARM Keil, MDK-ARM Datasheet - Page 150

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
150
The node that sends this message will immediately reply to the remote frame
with a message frame matching the identifier and its current data.
When sending the remote frame you must be careful with the DLC setting.
Although the remote frame does not contain any data, the DLC should not be set
to zero. Rather, it should be set to the length of the data packet in the reply
message frame.
Once the remote frame has been defined, we can use it to request a message
frame from the network.
CAN_request (1,&msg_rmt, 0xFFFF);
All nodes on the network will receive the remote frame. The node that sends
message frames for the requested ID will then send a reply data frame with the
requested ID and its current data. The RL_CAN driver contains a CAN_set()
function, which allows a CAN node to respond automatically to a remote request.
First, you must define a CAN message frame in the same way as for the
CAN_send() function.
CAN_msg msg_for_remote = {
};
The message frame is then passed to the CAN_set() function.
CAN_set (1, &msg_for_remote, 0x00ff);
This message frame will now be transmitted when a remote request with a
matching ID is received.
Exercise: Remote Request
This exercise configures a message object to send a remote frame and prepares
another to reply.
21,
{0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
1,
2,
STANDARD_FORMAT,
DATA_FRAME
Chapter 6. RL-CAN Introduction

Related parts for MDK-ARM