Краткое содержание страницы № 1
Lexicon, Inc.
DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00
Serial Communications Protocol Definition
Project: DC-2/MC-1
Updated: May 15,2000
Major rev 0
Minor rev 5
Lexicon, Inc.
3 Oak Park
Bedford, MA 01730-1441
(781) 280-0300
1 of 44
Краткое содержание страницы № 2
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 1Documents 4 2 Definitions 4 3 Abbreviations 4 4 General Description 4 5 Physical Layer 5 5.1 DB-9 RS232 Connector 5 5.2 Serial Port Driver 5 5.3 Errors 6 5.4 DC-2/MC-1 Receive Buffer 6 5.5 DC-2/MC-1 Hardware Verification 6 6 Data Link Layer 6 6.1 Errors 7 7 Application Layer 7 7.1 DC-2/MC-1 Asynchronous Notification Packets 7 7.1.1 Wakeup Notification 7 7.1.2 Sleep Notification 8 7.1.3 Front Panel Display Buffer 8 7.1.4
Краткое содержание страницы № 3
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.3.26 Set Custom Name 28 7.3.27 Set Input Name by Id 29 7.3.28 Set FPD Control Registers 30 7.3.29 Host Wakeup 30 7.3.30 Host Sleep 31 7.3.31 Get Communication Configuration 31 7.3.32 Set Communication Configuration 32 7.3.33 Set Mute 32 7.3.34 Set Output Level Adjustments 33 7.3.35 Send Display String Command 34 8 Internal Use 35 8.1.1 Debug Character 35 8.1.2 PEEK Command 35 8.1.3 POKE Command 35 9 Appendix A Command
Краткое содержание страницы № 4
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 1 Documents The following documents should also be used with this document to understand how this protocol can be used with a DC-2/MC-1. 070-13227 MANUAL,OWNER'S,DC2 070-13278 MANUAL,OWNER'S,MC1 2 Definitions System Parameter: A user changeable variable that stores a specific value that describes an operating condition for the DC-2/MC-1 system. Effect: An effect describes a particular type of processing on the audio dat
Краткое содержание страницы № 5
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 The DC-2/MC-1 uses simple notification, command, response and acknowledgment packets to have communication transactions with a given HOST. This protocol is designed for point to point communication between a HOST and DC-2/MC-1. The DC-2/MC-1 Protocol is a 3 layered system. The DC-2/MC-1 serial protocol allows for the DC-2/MC-1, or the HOST to initiate a communication transaction. Most transactions are initiated by t
Краткое содержание страницы № 6
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 5.3 Errors The DC-2/MC-1 will detect parity, framing and data overrun errors. If an error is detected by the DC- 2/MC-1, the DC-2/MC-1 will transmit an NAK packet with a error code of: DC_ERR_PARTIY, DC_ERR_FRAME, DC_ERR_OVER, corresponding to the error detected. If any of the physical layer errors are detected, the complete packet is corrupted and the DC-2/MC-1 will reset the transaction and begin to look for a sta
Краткое содержание страницы № 7
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Data Link Header: Byte Number Description Value First Byte(0) Start of Packet(SOP) 0xF1 Byte(1) DLL Data Count nn Application Header: Byte(2) Command nn Byte(3) APP Data Count(number of application data bytes to Follow) nn Application Data: Byte(4) Data[0] nn Byte(5) Data[1] nn … Data[…] nn Last Data Byte -1 Data[Data Count -1] nn Data Link Tail: Last Byte End of Packet (EOP) 0xF2 6.1 Errors If the number of DLL data b
Краткое содержание страницы № 8
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.1.1.2 Host Response Expected Following the transmission of the Wakeup notification DC-2/MC-1 will wait for an ACK. 7.1.1.2.1 Actions to Response Codes ACK DC-2/MC-1 continues to operate. NAK Error Code DC-2/MC-1 will retransmit the Wakeup Notification until it receives an ACK or it reaches the RETRANSMIT_COUNT. If the RETRANSMIT_COUNT is exceeded then DC-2/MC-1 continues to operate. 7.1.2 Sleep Notification By transm
Краткое содержание страницы № 9
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 The DC-2/MC-1 includes 8 custom characters that are defined to display increments of a display block. (i.e. Volume Bar) The custom characters are ASCII character codes 08 - 0F(hex). The codes are used as follows: '08' - left 1 bar '09' - left 2 bars '0A' - left 3 bars '0B' - left 4 bars '0C' - Full Cell '0D' - Underscore '0E' - right 3 bars '0F' - not in use 7.1.3.3 HOST Response The DC-2/MC-1 does not look for
Краткое содержание страницы № 10
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Zone 2 Balance Z2_BAL Zone 2 Mute Z2_MUTE Bass BASS Treble TREBLE Loudness LOUDNESS Tilt TILT Menu Background On/Off MENU_BKGND The parameter definitions for each of these parameters can be obtained by querying the DC-2/MC-1 with the DC_CMD_GET_SYS_PARAM_BY_NAME command. The DC_RESP_SYS_PARAM_DEF will contain the ParamId for each of the parameters. The ParamId may change with s/w version changes, but the Parameter Name
Краткое содержание страницы № 11
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.3 Host Initiated Command Packets The DC-2/MC-1 serial communication protocol has been designed to respond to the following commands as described below. Each command is transmitted to the DC-2/MC-1 with the identified parameters. If the command is successfully received and processed by the DC-2/MC-1, the unit will respond with the described response packet or action. 7.3.1 Reset Unit Commands the DC-2/MC-1 to soft re
Краткое содержание страницы № 12
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.3.3.3 DC-2/MC-1 Response The KeyCode is processed as a valid IR code. No acknowledgment will be sent from DC-2/MC-1. 7.3.3.4 Data Validation The KeyCode data will be verified as a legal IR code. If the Code is not valid the DC-2/MC-1 will not respond. 7.3.4 Get DC-2/MC-1 Unit Configuration Request to DC-2/MC-1 for it’s current unit configuration. DC-2/MC-1 will respond with “Unit Configuration Packet”. The HOST sho
Краткое содержание страницы № 13
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.3.4.3 Data Description ProductId: This unsigned 8 bit value describes the product. Product ID Lexicon Dc-2 1 Lexicon MC-1 2 JBL Synthesis SDP-3 3 Software Type: An unsigned 8 bit value indicating the current configuration of the unit’s software. The following table shows the values assigned to the available types: SW Type THX 1 AC3 2 DTS 3 Software Level: The following table shows the values assigned to the possible s
Краткое содержание страницы № 14
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 TimeStamp: Is a null terminated ASCII text string describing the build date and time of the current ROM. The Format of this text string is: “yy/mm/dd(sp)hh:mm” yy- is the last two digits of the year (i.e. year 1999 = 99, year 2000 = 00) mm - is the month dd- is the day (sp) - is an ASCII space character (0x20) hh - is the hour mm - is the minute 7.3.5 Get System Status Request to DC-2/MC-1 for it’s current system status
Краткое содержание страницы № 15
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Data Type: Unsigned 8 bit integer. Maximum Value: Set by “Total Number of Effects” in the “Unit Configuration” Packet. Current Input Sample Rate Data Type: Unsigned 8 bit integer. SAMPLE RATE RATE_UNKNOWN 0 RATE_44 1 RATE_48 2 RATE_88 3 RATE_96 4 Current Input Format: Data Type: Unsigned 8 bit integer. DATA STREAM TYPE INSTREAM_UNKNOWN 0 INSTREAM_AC3 1 INSTREAM_PCM 2 INSTREAM_ANALOG 3 INSTREAM_DTS 4 INSTREAM_AC3_20 5 INS
Краткое содержание страницы № 16
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Application Header: Command DC_CMD_GET_REC_STATUS 0x17 Data Count 0 0x00 Application Data: N/A 7.3.6.2 Record/Zone2 Status Response Packet Application Header: Command DC_RESP_REC_ZONE2_STATUS 0x82 Data Count 5 0x05 Application Data: Data[0] Zone2 Volume nn Data[1] Assigned Input nn Data[2] Zone2 Mute Active nn Data[3] Record Active nn Data[4] Zone2 Balance nn 7.3.6.3 Data Description Zone2 Volume: Data Type: Unsigned 8 b
Краткое содержание страницы № 17
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Max: Set by the System Parameter Count in the “Unit Configuration Packet”. 7.3.7.3 Data Validation: The ParamId must be a valid parameter number. If it is not the DC-2/MC-1 will respond with a NAK packet and error code DC_ERR_ INVALID_PARAM_NUMBER. 7.3.7.4 Get System Parameter Definition by Name Command Packet Application Header: Command DC_CMD_GET_SYS_PARAM_BY_NAME 0x19 Data Count strlen(ParamName) + 1 nn Application D
Краткое содержание страницы № 18
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 7.3.8 Get System Parameter Values Request to DC-2/MC-1 for all current system parameter values. DC-2/MC-1 will respond with the “System Parameter Values Packet”. 7.3.8.1 Command Packet Description Application Header: Command DC_CMD_GET_SYS_PARAM_VALUES 0x1A Data Count 0 0x00 Application Data: N/A 7.3.8.2 System Parameter Values Response Packet Application Header: Command DC_RESP_SYS_PARAM_VALUES 0x84 Data Count SYS_PARAM
Краткое содержание страницы № 19
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Application Header: Command DC_RESP_EFFECT_DEF 0x85 Data Count 2 + strlen(EffectName) + 1 nn Application Data: Data[0] EffectId nn Data[1] MaxParameters nn Data[2]- Data[DataCount-1] EffectName ch ch ch … 0x00 7.3.9.5 Data Description EffectId: Data Type: Unsigned 8 bit integer Max: Set by the Effect Count in the “Unit Configuration Packet”. MaxParameters: Maximum number of parameters assigned to this effect. EffectName
Краткое содержание страницы № 20
Lexicon, Inc. DC-2/MC-1 Serial Communications Protocol Printed on: 10/19/00 Application Header: Command DC_RESP_EFFECT_PARAM _DEF 0x86 Data Count 4 0x04 Application Data: Data[0] EffectId nn Data[1] ParamId nn Data[2] M axValue nn Data[3] Value nn 7.3.10.5 Data Description EffectId: Data Type: Unsigned 8 bit integer. Max: Set by the Effect Count in the “Unit Configuration Packet”. ParamId: Data Type: Unsigned 8 bit integer. Max: Set by the Parameter Count in the “Effect Definition Packet”. MaxVa