ABC Office Set Effect Name by Effect Id, 16.3 DC-2/MC-1 Response, 17.3 DC-2/MC-1 Response

Page 24

Lexicon, Inc.

 

DC-2/MC-1 Serial Communications Protocol

Printed on: 10/19/00

7.3.16.1 Command Packet Description

Application Header:

Command

DC_CMD_SET_EFFECT_PARAM_VALUES

0x1F

Data Count

EFFECT_COUNT[EffectId] + 1

nn

Application Data:

 

 

Data[0]

EffectId

nn

Data[1]

effect_param_value[0]

nn

Data[…]

effect_param_value[…]

nn

Data[DataCount-1]

effect_param_value[EFFECT_COUNT-1]

nn

7.3.16.2 Data Description

EffectId:

 

Data Type:

Unsigned 8 bit integer.

Max:

Set by the Effect Count in the “Unit Configuration Packet”.

effect_param_value:

 

Data Type:

Unsigned 8 bit integer array.

Max:

Dependent on the parameter definition

7.3.16.3 DC-2/MC-1 Response

The DC-2/MC-1 will assign the values from the packet to the effect parameter values in Nonvolatile RAM. If the effect is active the DC-2/MC-1 will reload the effect to activate all the parameter values.

7.3.16.4 Data Validation

If a value is passed that exceeds the maximum value of that parameter the DC-2/MC-1 will ignore the command and transmit a DC_NAK command with an error code DC_ERR_INVALID_DATA.

7.3.17 Set Effect Name by Effect Id

Sets an effect name to the transmitted value for a given effect.

7.3.17.1 Command Packet Description

Application Header:

Command

DC_CMD_SET_EFFECT_NAME

0x20

Data Count

strlen(EffectName) + 2

nn

Application Data:

 

 

Data[0]

EffectId

nn

Data[1]-Data[DataCount-1]

EffectName

ch ch ch … 0x00

7.3.17.2 Data Description

EffectId:

 

Data Type:

Unsigned 8 bit integer

Max:

Set by the Effect Count in the “Unit Configuration Packet”.

EffectName:

 

Data Type:

Null(0x00) terminated ASCII character string.

Max Length:

EFFECT_NAME_LENGTH defined in Appendix E Protocol Constants.

7.3.17.3 DC-2/MC-1 Response

The DC-2/MC-1 will copy the Effect Name to Nonvolatile RAM. If the effect being adjusted is active the effect will be reloaded for the changes to be initialized.

7.3.17.4 Data Validation:

24 of 44

Image 24
Contents Serial Communications Protocol Definition Data Link Layer Internal Use Documents DefinitionsAbbreviations General DescriptionDB-9 RS232 Connector Physical LayerSerial Port Driver Errors DC-2/MC-1 Receive BufferDC-2/MC-1 Hardware Verification Data Link LayerApplication Layer DC-2/MC-1 Asynchronous Notification PacketsWakeup Notification Notification Packet DescriptionSleep Notification Front Panel Display BufferHost Response Expected Data DescriptionHost Response Supported System ParametersAcknowledgment Packets AcknowledgeNo Acknowledge Host Initiated Command Packets Reset UnitRestore Defaults Send IR CommandGet DC-2/MC-1 Unit Configuration 4.2 DC-2/MC-1 Unit Configuration Response Packet3.3 DC-2/MC-1 Response Data ValidationProduct ID SW TypeTHX AC3 DTS SW LevelGet System Status System Status Response PacketDcrespsysstatus Get Record/Zone 2 Status Rateunknown RATE44 RATE48 RATE88RATE96 INSTREAMAC351Get System Parameter Definition by Id Command Packet Get System Parameter DefinitionRecord/Zone2 Status Response Packet DccmdgetrecstatusGet System Parameter Definition by Name Command Packet System Parameter Definition Response PacketDccmdgetsysparambyname DcrespsysparamdefGet System Parameter Values Get Effect Definition by IdSystem Parameter Values Response Packet Effect Definition Response PacketGet Effect Parameter Definition Effect Parameter Definition Response PacketDcrespeffectdef DccmdgeteffectparamdefGet Effect Parameter Values 10.5 Data DescriptionEffect Parameter Values Response Packet ApplicationHeaderGet Custom Name Get Input Name by IdData Description Custom Name Response Packet Get FPD Control Registers Input Name Response PacketFPD Control Register Response Packet Set System Parameter Values Set Effect Parameter Values15.3 DC-2/MC-1 Response DcrespfpdcontrolSet Effect Name by Effect Id 16.3 DC-2/MC-1 Response17.3 DC-2/MC-1 Response DccmdseteffectparamvaluesSet System Volume Set Main Balance18.3 DC-2/MC-1 Response 19.3 DC-2/MC-1 ResponseSet Front/Back Balance Set Active Effect by IdPacket Description 20.3 DC-2/MC-1 ResponseSet Record/Zone2 Input Clear Record/Zone2 Input22.3 DC-2/MC-1 Response Data Validation 23.3 DC-2/MC-1 Response Data ValidationSet Zone2 Volume Set Zone2 Left/Right BalanceSet Custom Name 24.3 DC-2/MC-1 ResponseSet Input Name by Id 26.3 DC-2/MC-1 Response27.3 DC-2/MC-1 Response DccmdsetcustnameSet FPD Control Registers Host Wakeup28.3 DC-2/MC-1 Response Data Description 29.3 DC-2/MC-1 ResponseGet Communication Configuration Host Sleep31.3 Data Description Set Communication Configuration DccmdsetcomconfigSet Mute 32.2 Data DescriptionSet Output Level Adjustments 33.3 DC-2/MC-1 Response34.2 Data Description DccmdsetmuteSend Display String Command 34.3 DC-2/MC-1 Response35.2 Data Description 35.3 DC-2/MC-1 ResponsePeek Command Poke CommandAppendix a Command Codes Internal UseResponses AcknowledgmentsAppendix B Error Codes Error CodeHexAppendix C DC-2/MC-1 IR-Codes Hex Function Code Shift Functions Hex Code Rec FunctionAppendix D Input Id’s Appendix E Protocol ConstantsInput Name Input Id Constant ValueDecAppendix F FPD Control Registers Application Notes and ExamplesBox initializations 15.1.1 DC-2/MC-1Getting System Wide Status and Setup Downloading the System Setup to the DC-2/MC-1Simple System Control & System Status Get Unit Configuration ExamplesSOP DLL DC CMD DATA0 DATA1 DATA2 DATA3 DATA4 DATA5 DATA6 DATA7 DATA8Get Effect Definition 15.5.3 Set Input NameSend IR Command Example Cmd