PS_EXTPAYLOAD

code: 199

# set
<module-index>/<port-index> PS_EXTPAYLOAD [<stream_index>] <hex_data>

# get
<module-index>/<port-index> PS_EXTPAYLOAD [<stream_index>] ?

Description

This command controls the extended payload feature. The PS_PAYLOAD command described above only allow the user to specify an 18-byte pattern (when PS_PAYLOAD is set to PATTERN). The PS_EXTPAYLOAD command allow the definition of a much larger (up to MTU) payload buffer for each stream. The extended payload will be inserted immediately after the end of the protocol segment area. The feature requires the P_PAYLOADMODE command on the parent port being set to EXTPL. This enables the feature for all streams on this port.

Actions

set, get

Parameters

  1. hex_data: hex list, the extended payload in bytes of a stream

Example

# set
input:  0/1 PS_EXTPAYLOAD [0] 0x123AA123BB123CC123AA123BB123CC123AA123BB123CC
output: <OK>

# get
input:  0/1 PS_EXTPAYLOAD [0] ?
output: 0/1 PS_EXTPAYLOAD [0] 0x123AA123BB123CC123AA123BB123CC123AA123BB123CC