candbc_ccp_cmd

Purpose:

Instruct the CanDbc Driver to send a CCP command message.

Enter:

candbc_ccp_cmd <CCP_COMMAND> [data] [-c=<channel>] [name=<regname>]

Where:

CCP_COMMAND

Specify one of the following commands: 

  • CCP_CONNECT
  • CCP_SET_MTA
  • CCP_DISCONNECT
  • CCP_ENABLE_DEBUG
  • CCP_DISABLE_DEBUG
  • CCP_START_DAQ
  • CCP_STOP_DAQ

data

Optional. Specify a hex string that represents data for applicable commands.

-c

Optional. Specify the channel number (0 or 1).

name

Optional. Specify the registered name of the CanDbc.

Example:

candbc_ccp_cmd CCP_CONNECT
Send the message on the default channel.

candbc_ccp_cmd CCP_SET_META “0x01000000” -c=1
Send the message on a second channel.

candbc_ccp_cmd CCP_DISCONNECT
Send the message the on the default channel.

Notes:

Channel number must be 0 or 1. Values of 2 or higher will result in an error. Some commands like CCP_SET_MTA may require the data argument.

See Also:

Can Bus Interface Setup and Use