ABC Office Errors, DC-2/MC-1 Receive Buffer, DC-2/MC-1 Hardware Verification, Data Link Layer

Page 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 start of packet byte.

All Error codes are listed in Appendix B Error Codes.

5.4 DC-2/MC-1 Receive Buffer

The DC-2/MC-1 has an internal receive buffer. The buffer is 256 Bytes and will transmit a NAK packet with an error code of DC_ERR_BUFFER_FULL to the HOST if the buffer is full. If the buffer is full, all data transmitted to the DC-2/MC-1 will be ignored. Therefore, making the currently transmitted packet, if partially transmitted invalid.

5.5 DC-2/MC-1 Hardware Verification

This test verifies the RS232 ports are working by comparing the transmitted signal (at pin 2) to the received signal (at pin 3) . The DC-2/MC-1 transmits a know test signal just following a power up. The DC-2/MC-1 monitors the serial port receivers while transmitting the test signal. If the signals are the same, the test passes. In order to test this circuit, (1 for Dc-2 and 2 for MC-1) RS232 Wraparound plug(s) are needed and must be installed at the female D9 connector(s) on the rear panel of the DC-2/MC-1/SDP-3 labeled “RS232”. The wraparound plug shorts pins 2 to 3, allowing for the MC-1 to receive the signal it is transmitting. Once installed, power cycle the DC-2/MC-1/SDP-3 and verify the following message is displayed on the VFD about 20 seconds after power up:

SERIAL PORT A PASSED

SERIAL PORT B PASSED

This message is displayed for about 2 seconds before entering normal operating mode. If either or both messages are not displayed, the test failed.

6 Data Link Layer

The data link layer is used to define a transmission packet. The layer appends a header and tail that encloses the transmitted application packet data. The data link header will contain the start of packet byte and count of bytes to follow. The data link tail will contain the end of packet byte.

6 of 44

Image 6
Contents Serial Communications Protocol Definition Data Link Layer Internal Use Abbreviations DocumentsDefinitions General DescriptionDB-9 RS232 Connector Physical LayerSerial Port Driver DC-2/MC-1 Hardware Verification ErrorsDC-2/MC-1 Receive Buffer Data Link LayerWakeup Notification Application LayerDC-2/MC-1 Asynchronous Notification Packets Notification Packet DescriptionHost Response Expected Sleep NotificationFront Panel Display Buffer Data DescriptionHost Response Supported System ParametersAcknowledgment Packets AcknowledgeNo Acknowledge Restore Defaults Host Initiated Command PacketsReset Unit Send IR Command3.3 DC-2/MC-1 Response Get DC-2/MC-1 Unit Configuration4.2 DC-2/MC-1 Unit Configuration Response Packet Data ValidationTHX AC3 DTS Product IDSW Type SW LevelGet System Status System Status Response PacketDcrespsysstatus RATE96 Get Record/Zone 2 StatusRateunknown RATE44 RATE48 RATE88 INSTREAMAC351Record/Zone2 Status Response Packet Get System Parameter Definition by Id Command PacketGet System Parameter Definition DccmdgetrecstatusDccmdgetsysparambyname Get System Parameter Definition by Name Command PacketSystem Parameter Definition Response Packet DcrespsysparamdefSystem Parameter Values Response Packet Get System Parameter ValuesGet Effect Definition by Id Effect Definition Response PacketDcrespeffectdef Get Effect Parameter DefinitionEffect Parameter Definition Response Packet DccmdgeteffectparamdefEffect Parameter Values Response Packet Get Effect Parameter Values10.5 Data Description 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 15.3 DC-2/MC-1 Response Set System Parameter ValuesSet Effect Parameter Values Dcrespfpdcontrol17.3 DC-2/MC-1 Response Set Effect Name by Effect Id16.3 DC-2/MC-1 Response Dccmdseteffectparamvalues18.3 DC-2/MC-1 Response Set System VolumeSet Main Balance 19.3 DC-2/MC-1 ResponsePacket Description Set Front/Back BalanceSet Active Effect by Id 20.3 DC-2/MC-1 Response22.3 DC-2/MC-1 Response Data Validation Set Record/Zone2 InputClear Record/Zone2 Input 23.3 DC-2/MC-1 Response Data ValidationSet Custom Name Set Zone2 VolumeSet Zone2 Left/Right Balance 24.3 DC-2/MC-1 Response27.3 DC-2/MC-1 Response Set Input Name by Id26.3 DC-2/MC-1 Response Dccmdsetcustname28.3 DC-2/MC-1 Response Set FPD Control RegistersHost Wakeup Data Description 29.3 DC-2/MC-1 ResponseGet Communication Configuration Host Sleep31.3 Data Description Set Mute Set Communication ConfigurationDccmdsetcomconfig 32.2 Data Description34.2 Data Description Set Output Level Adjustments33.3 DC-2/MC-1 Response Dccmdsetmute35.2 Data Description Send Display String Command34.3 DC-2/MC-1 Response 35.3 DC-2/MC-1 ResponseAppendix a Command Codes Peek CommandPoke Command Internal UseResponses AcknowledgmentsAppendix B Error Codes Error CodeHexAppendix C DC-2/MC-1 IR-Codes Hex Function Code Shift Functions Hex Code Rec FunctionInput Name Input Id Appendix D Input Id’sAppendix E Protocol Constants Constant ValueDecBox initializations Appendix F FPD Control RegistersApplication Notes and Examples 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 SOP DLL DC CMD Get Unit ConfigurationExamples DATA0 DATA1 DATA2 DATA3 DATA4 DATA5 DATA6 DATA7 DATA8Get Effect Definition 15.5.3 Set Input NameSend IR Command Example Cmd