Xantech MX88 RS232 Control, Types of Commands, PIN # Function DSR GND DTR

Page 29

Model MX88

Page: 29

Appendix

RS232 CONTROL

This document describes the bi-directional RS232 interface of the MX88 using the two COM PORTs on the rear of the system (Fig. 3 item 29). This interface allows an external RS232 device to control the MX88 via a set of ASCII text commands. It is also possible to control any IR device connected to the MX88 system as well by triggering individual IR Commands and/or IR Macros via ASCII strings.

TYPES OF COMMANDS

There are two types of information that can be sent to the MX88 Controller: COMMANDS and QUERIES. COMMANDS are ASCII strings used to set a specific parameter in the system (i.e. Select a Source, turn a zone ON, start a DVD player etc…). QUERIES are requests for system status information and result in the MX88 controller sending back a reply to the string being sent (i.e. seeing what zones are on, which sources are selected and volume settings etc….)

INTERFACING TO THE RS232 COM PORTs

The RS232 Com Ports on the rear of the MX88 Controller, when used with the included DB15-DB9 adaptors, are wired as a „null modem‟ end, meaning the Transmit and Receive line have already been interchanged for direct communication with a PC. What this means is when connecting to a standard PC‟s Com Port, no Null Modem cable is necessary.

The pin out configuration for this connector is:

COM PORT (with DB15-DB9 adaptor)

PIN #

FUNCTION

1, 7, 8, & 9

NC

2

Tx

3

Rx

4

DSR

5

GND

6

DTR

Rear Com Port Connector Pin Out

ASCII STRING „INITIATING‟ AND „TERMINATING‟ CHARACTERS

The parsing of incoming data on the COM PORT can be disabled via a setting in the Universal Dragon project. This might be necessary if the COM port is to be used to control an external device and any incoming data from that device is to be ignored. This setting can be found with the settings for configuring the COM port.

For the MX88 system to recognize incoming ASCII command strings, the string must begin with an „!‟ and for data queries the string must begin with a „?‟. All strings must end with a „+‟. This way it can determine the beginning and end of the string for processing.

When a proper command is sent, an ASCII acknowledgement string of OK is returned to the issuing device. If an unrecognizable string is received, an ASCII string of ERROR is returned to the issuing device.

Example #1: (Issuing a Command String);

To turn Zone 7 ON:

Send ASCII string: !7PR1+

MX88 Controller Reply: OK

© 2010 Xantech LLC

Image 29
Contents MX88 Not Expose this Appliance to Rain or Moisture Xantech LLC Companion products available for the MX88 sold separately General InformationEach MX88 package contains Important Notes System Overview System Block DiagramModel MX88 Preamp level audio outputs for all eight zones CONTROLLER/AMPLIFIER FeaturesModel MX88 MX88 Front Panel Features and Connections MX88 CONTROLLER/AMPLIFIER Panel and Feature DescriptionsSystem Status Power-Up Mode Front PanelZone Status Active-Operational Mode Source Component Input Connections MX88 Rear Panel Features and ConnectionsUser Replaceable Fuse AMP L 250 VAC Source Loop-Thru ConnectionsOperation OUT-OF-THE-BOX PRE-TEST InstallationMX88 CONTROLLER/AMPLIFIER Physical Location OFFAudio Connections Zone system Connecting the MX88 CONTROLLER/AMPLIFIERExpanded, 16-zone system Video Connections MX88vi Only Zone systemEthernet jack MX88vi and MX88ai only RS232 Ports 1Model MX88 Control Out StatusConnections AT the Zone Location CO1 and CO2 Zones 7Single Keypad CAT5 Connections Multiple Keypad ConnectionsZone Expansion Connecting TWO MX88 Controllers Sensor EnableZone Termination External IR Terminal BlockConnecting Keypads or TOUCH-PANELS Composite Video Typical 8-Zone MX88 System SETTING-UP the MX88 SystemTypical 16-Zone Expanded MX88 System Firmware and Programming Model MX88 Universal Dragon QuickConfigPlanning the System RS232 Control Types of CommandsPIN # Function DSR GND DTR Ascii String „INITIATING‟ and „TERMINATING‟ CharactersModel MX88 AO+ Commands?z#PR+ QueriesVolume Level 39 Steps Keypad Button ID Level in dB MX88 Setting+14 +12Balance Level Left Speaker Right Speaker MX88 Setting AttenuationProblem Probable Cause and Solution Troubleshooting38Model MX88 Model MX88Page 40Model MX88 RS232 and Expansion PIN OUT Information Video MX88vi only SpecificationsIR Sensor GeneralModel MX88 Xantech LLC Model MX88