cdlPreamble

cdlPreamble - configure the transmit CDL preamble

SYNOPSIS

cdlPreamble sub-command options

DESCRIPTION

The cdlPreamble command is used to set the CDL preamble values when txRxPreamble enableCiscoCDL is set to true. It is also used to receive the decoded value from a captured frame.

STANDARD OPTIONS
applicationSpecific

Four bytes of application specific data. For example, "0x11223344". (default = "55 55 555 55")

cdlHeader

Read-only. The resultant combined CDL header, as a hex list. For example, "55 55 55 55 55 55 D5".

enableHeaderCrc

Overwrite true | false

If true, then the value in headerCrc is used to overwrite the calculated value of the header CRC in the CDL preamble. (default = true)

headerCrc

If enableHeaderCrcOverwrite is true, then this value is used to replace the automatically calculated CRC.

messageChannel

The in-band message channel, a one byte quantity. (default = 0x55)

oam

The packet type and OAM field, a one byte quantity. (default = 0x55)

startOfFrame

Read-only. The Start of Frame indicator, always 0xFB.

COMMANDS

The cdlPreamble command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

cdlPreamble cget option

Returns the current value of the configuration option cdlPreamble by option. Option may have any of the values accepted by the cdlPreamble command, subject to the setting of the enableValidStats option.

cdlPreamble config option value

Modify the configuration options of the time server. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS) for cdlPreamble.

cdlPreamble decode capFrame chasID cardID portID

Decodes a captured frame in the capture buffer and makes the values of the decoded header available in the options of this command. Specific errors are:

cdlPreamble get chasID cardID portID

Gets the current preamble configuration of the port with id portID on card cardID, chassis chasID. Call this command before calling cdlPreamble cget option to get the value of the configuration option.

cdlPreamble set chasID cardID portID

Sets the preamble configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the cdlPreamble config option value command.

cdlPreamble set Default

Sets to IxTclHal default values for all configuration options.

EXAMPLES

set chasID 1

set cardID 4

set portID 1

txRxPreamble setDefault

txRxPreamble config -txMode preambleByteCount

txRxPreamble config -rxMode preambleSameAsTransmit

if [port isValidFeature $chasID $cardID $portID /

portFeatureCiscoCDL]

{

txRxPreamble config -enableCiscoCDL true

if [txRxPreamble set $chasID $cardID $portID] {

ixPuts $::ixErrorInfo

}

cdlPreamble config -oam 55

cdlPreamble config -applicationSpecific {11 22}

if [cdlPreamble set $chasID $cardID $portID] {

ixPuts $::ixErrorInfo

}

}

SEE ALSO

stream, txRxPreamble