Command Framework Overview

You can use the Command Framework service to send commands to applications that are running on a device.

For example, the Edge Manager device management application in the Predix cloud can send commands to individual applications for any device that uses the Command Framework service.

To pass a command from the Edge Manager, Predix Edge needs a command handler for each application it tries to reach. Each command handler should be implemented to communicate with a specific application.

Workflow

This example shows a workflow where a machine command handler executes a getlogs command.
  1. Cloud Gateway performs a regular poll to check for commands.
  2. Device Management sends the get logs command to the device.
  3. Agent dispatches the get logs command.
  4. Command Dispatcher identifies the command as intended for the Machine and sends a message to the Machine Handler.
  5. The Machine Handler performs the requested action by posting the logs to the Device Management endpoint.
  6. Command Dispatcher sends a SUCCESS status message to Agent.

The below figure illustrates the workflow.