PX_CUST_REQUEST

code: 486

# get

<module-index>/<port-index> PX_CUST_REQUEST [<cdb_instance_index>] <value>

Description

Defines the custom request to be sent to the CDB instance.

Actions

set

Indices

  1. cdb_instance_index: integer, index of the CDB instance to access.

  • 0 for CDB Instance 1

  • 1 for CDB Instance 2

Parameters

  1. value: json, JSON formatted string containing the following fields:

{
    "cmd_header": {
        "cmd_id": "0x00",
        "epl_length": 0,
        "lpl_length": 0,
        "rpl_length": 0,
        "rpl_check_code": 0
    },
    "cmd_data": {
        "data": "0x00"
    }
}

where,

  • cmd_header: JSON object, contains the command header fields.

    • cmd_id: hex string, command ID.

    • epl_length: integer, length of the EPL.

    • lpl_length: integer, length of the LPL.

    • rpl_length: integer, length of the RPL. (optional)

    • rpl_check_code: integer, check code for the RPL. (optional)

  • cmd_data: JSON object, contains the command data fields.

    • data: hex string, command data.

Example

# set

input: 0/0 PX_CUST_REQUEST [0] {"cmd_header": {"cmd_id": "0x00", "epl_length": 0, "lpl_length": 0, "rpl_length": 0, "rpl_check_code": 0}, "cmd_data": {"data": "0x00"}}
output: <OK>