ABC Office MC-1, DC-2 manual Send IR Command Example, Cmd

Page 44

Lexicon, Inc.

 

 

 

 

 

 

DC-2/MC-1 Serial Communications Protocol

 

 

Printed on: 10/19/00

 

 

 

 

 

 

 

 

SOP

DLL DC

CMD

App DC

 

DATA0

EOP

 

 

 

 

 

 

Cmd

 

 

F1

04

E0

01

 

2E

F2

 

Because the DC-2/MC-1 received and processed the command successfully the DC-2/MC-1 responds with the DC_ACK packet. Here we see that the ACK packet is responding to the DC_CMD_SET_INPUT_NAME command.

15.5.4 Send IR Command Example

SOP

DLL DC

CMD

AppDC

DATA0

EOP

 

 

 

 

IR Key

 

 

 

 

 

Code

 

F1

04

14

01

17

F2

This example shows how to transmit the IR command for “Volume Up”. The bytes are transmitted from left to right and they are defined as: Byte 0: Start of Packet(F1 hex)

Byte 1: Data Link Layer(DLL) Data Count(DC); for an IR command this would be 4 bytes to follow

Byte 2: The Application Layer Command, in this case it is 14 hex indicating this is an IR command packet.

Byte 3: The Application Layer Data Count(DC); for this packet it is 1 data byte to follow.

Byte 4: The Application Command Data: This IR Command Packet is transmitting Key Code “Volume Up”(17 hex). To transmit other IR Key Codes the user would replace this byte with other IR key codes as found in Appendix C DC-2/MC-1 IR-Codes.

Byte 5: End of Packet (F2 hex)

44 of 44

Image 44
Contents Serial Communications Protocol Definition Data Link Layer Internal Use Documents DefinitionsAbbreviations General DescriptionSerial Port Driver DB-9 RS232 ConnectorPhysical Layer 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 ParametersNo Acknowledge Acknowledgment PacketsAcknowledge 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 LevelDcrespsysstatus Get System StatusSystem Status Response Packet 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 ApplicationHeaderData Description Custom Name Response Packet Get Custom NameGet Input Name by Id FPD Control Register Response Packet Get FPD Control RegistersInput Name 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 Response31.3 Data Description Get Communication ConfigurationHost Sleep 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-1Simple System Control & System Status Getting System Wide Status and SetupDownloading the System Setup to the DC-2/MC-1 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