Remote Command Message Overview

Modules

Remote Command Message - message based remote function execution

The Remote Command Message (RCM) package provides a client/server implementation for executing functions on a remote processor. The package contains the following modules.

This package provides modules for a client/server based implementation for executing functions on a remote processor. The IPC layer is based on messages. The application uses the RcmClient module to allocate a message, specify the remote function and its arguments, and then send the message to the server for execution. When the message returns, it contains the remote function's return values. The server is typically on a remote processor, but local server instances (on the same processor as the client) are also supported.

The following image provides an overview of a typical use case. An application running on the local cpu creates an RcmClient instance. Using the RcmClient instance handle, the application has access to all the necessary operations for executing a message on the remote server. The application must fill in the message with the remote function index, as supplied by the server, and the context needed by the remote function to execute. For higher level operations such as RPC, see the link ti.sdo.rpc.gen package which provides support for generating the stub and skeleton functions.

Overview.png

Diagram 1: RCM Overview

The RcmClient module is used to create instance objects. Each instance can send messages only to the server specified at create time. You create an instance for each server you want to send messages to. At create time the heap must be specified. The heap is used by the instance for allocating messages.

There are four types of execute commands:

Here is an overview of the exec commands. See the RcmClient module for more details on each function.

RTSC Configuration

When using XDCtools to build your executable, use the following module to define the build time configuration options.

RCM Settings Module

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated