background image

16

LecNet SERIAL PORT PROTOCOL

All LecNet devices use a modification of the typical one-to-one connection between two RS-232 compatible devices.
LecNet devices have both an RS-232 transmitter and receiver section. The transmitter section is “tri-stated”, or
placed in a high impedance mode, until the particular device is addressed. To facilitate the simple parallel connection
of multiple devices on a single RS-232 port, an addressing scheme is employed to route commands from the host to
the proper LecNet device. When a device receives its address from the host computer, it temporarily turns on its RS-
232 transmitter long enough to send whatever data is requested by the host. In this way, multiple devices may drive a
single transmit signal back to the host, because only the addressed device will turn on its transmitter.

Valid address values are 128-254 (80 hex-FE hex).  Because a LecNet device will interpret any single data byte
whose value is greater than 127 as an address, single byte data (as opposed to addresses) sent from the host must
be in the range of 0-127. If a data value needs to be sent from the host that exceeds 127, the host must format two
bytes of output such that the first byte is the lower 7 bits of the 8 bit value, and the second byte is 1 if the MSB of the
data byte is 1, or 0 if the MSB of the data byte is 0.

All interchange of commands and data with any LecNet device is done numerically rather than ASCII.  The only
exception to this is the return data on the Get Device Name command (see command description below).  Each
LecNet command must be preceded by the address of the device to be controlled. If a device with the requested
address exists on the system, it will respond by sending a 0 (0 hex, not ASCII) back to the host. Thus, each inter-
change with a LecNet device follows this pattern:

1) Host sends device address as a single byte.

2) Host receives byte of 0 hex from the LecNet device as acknowledgment.

3) Host sends command (1 byte) to the LecNet device.

4) Host and LecNet device exchange data based on particular command sent.

Note that some LecNet commands cause LecNet devices to return an additional acknowledgment byte of data to
confirm the end of a transaction. This is most typical of commands that cause the LecNet device to be busy for more
than a few milliseconds processing the command. The additional acknowledgment byte lets the host know that the
LecNet device is no longer busy and can receive more commands. If a command does return an additional acknowl-
edgment byte, this will be explicitly stated in the command description.

As an example of a specific interchange between a host and a TH3, the following general procedure would be used
to get a name string back from the TH3.

Set up the communications parameters of the device which will be the host. The correct parameters for all LecNet
devices are 9600 baud, no parity, 8 data bits, 1 stop bit. This need only be done once when the host is initialized.

1) Host sends the device address of the TH3 (133 or 85 hex, by default).

2) Host receives byte of 0 hex from the TH3 as acknowledgment.

3) Host sends command 1 hex (1 byte) to the TH3 to get the name data.

4) The TH3 sends to the host 4 bytes. The first byte is 3 hex, which is the number of bytes in the TH3’s name string.

The TH3 will then send the ASCII characters “T”, “H”, and “3” to the host.

The following section is a listing of available TH3 commands. The word “Host” in the command descriptions means
the IBM PC or compatible, AMX controller, or Crestron controller to which the TH3 is connected.  All numbers are
decimal unless otherwise specified.

Summary of Contents for TH3

Page 1: ...TH3 DigitalTelephone Hybrid LECTROSONICS INC Rio Rancho NM OPERATING INSTRUCTIONS and trouble shooting guide ...

Page 2: ...ng capability to any sound system Sophisticated featues fast setup easy operation high sound quality and low cost make the TH3 an ideal choice for board rooms conference rooms talk radio and countless other applications Product Highlights DTMF dialing capability Simultaneous 2 wire 4 wire bridging for 3 site conferencing Three way echo elimination with patented algorithm Level meters for easy setu...

Page 3: ...n mutes either the transmit signal the received signal or both depending on the interface s current privacy mode When the privacy feature is engaged the PRIVACY led flashes to indicate the current privacy mode then glows steadily Privacy may be disengaged by pressing the button again For detailed information about privacy modes please refer to the Privacy Feature topic in the chapter on BASIC OPER...

Page 4: ...l easily accommodate the most common level requirements When used as an unbalanced output ground the negative output to ensure proper operation of the COARSE LEVEL switch The relay contacts are closed when a connection is active and open otherwise The SUPPLEMENTARY ECHO CANCELLER jacks may be used to connect an external echo canceller for addi tional acoustic echo cancellation Balanced operation i...

Page 5: ...ing the serial port additional features may be controlled such as echo suppression settings telephone receive AGC auto answer and auto disconnect DTMF dialing and specialized signal routing TH3 Block Diagram LINE ECHO CANCEL PHONE INTERFACE ECHO SUPPRESSION CODEC INTERFACE ECHO SUPPRESSION TELEPHONE RX LEVEL CODEC TX TRIM CODEC RX LEVEL AUX PORT MAIN IN MIX IN MAIN OUT MIX OUT SIG IN SIG OUT SIG T...

Page 6: ...CH8 IN EXPANSION REMOTE LEVEL CONTROL 1 2 3 4 M A S T E R S L A V E 20 VAC LECTROSONICS INC LecNet RS232 DIR OUT TH3 Example 2 AM8 MIXER NO LOCAL SOUND REINFORCEMENT In this example the TH3 is connected to an AM8 mixer and only the remote signals from the TH3 are amplified The single LecNet cable passes signals both to and from the AM8 PWR IN CH40 OUT IN 20 VAC LecNet RS232 EXPANSION TELEPHONE COD...

Page 7: ...NE CODEC OUTPUT LEVEL IN OUT AUX REMOTE CONTROLS INPUT Sound Reinforcement Amplifier TH3 AUDIO EXPANSIO PWR IN PS60 OUT IN EXPANSION M A S T E R S L A V E 16 5 VAC LecNet RS232 2 1 LINE 0dB GAIN LINE 30dB GAIN ELECTRET 50dB GAIN DYNAMIC UTPUTS LINE OUTPUTS 4 3 6 5 8 7 10 9 6 5 GAIN 6 5 4 3 GAIN 4 3 2 1 GAIN 2 1 C AUDIO EXPANSIO MADE IN U S A 110 9 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 PHANTOM POW...

Page 8: ...feature of the TH3 will not work without a Lectrosonics mixer TELEPHONE CODEC OUTPUT LEVEL IN OUT AUX COARSE LEVEL FINE LEVEL RECORD OUT MIC LINE REMOTE CONTROLS OUTPUT Microphone Mixer TH3 INPUT Sound Reinforcement Amplifier RELAY Example 6 NON LECTROSONICS MIXER NO LOCAL SOUND REINFORCEMENT In this example the TH3 is connected to a third party mixer and only remote signals are amplified The LecN...

Page 9: ...will not answer telephone calls automatically To manually answer an incoming telephone call press the CONNECT button for the telephone interface on either the front panel the wired remote control or the TH3 software control panel The CONNECT led will turn on and remain illuminated for the duration of the call If the TH3 does not remain connected after answering please refer to the Troubleshooting ...

Page 10: ...l changes to the receive volume to compensate for varying conditions For this purpose the TH3 offers RECEIVE VOLUME up and down buttons on the front panel and the wired remote The software control panel offers a slider that performs the same function The receive volume up and down buttons provide a range from 12 dB to 6 dB in 1 dB steps for a total of 19 possible settings The default setting is 0 ...

Page 11: ...TRIM control for proper level as required by the codec If the codec provides no level indication in most cases setting the CODEC TX TRIM approximately the same as the CODEC RX LEVEL control will suffice 4 LecNet ANTI ECHO with Lectrosonics Mixers only If your installation uses a Lectrosonics mixer which is connected via the TH3 s LecNet Expansion Out jack use this procedure to set the LecNet ANTI ...

Page 12: ... LecNet device address appears in the title bar This is especially useful if more than one TH3 is being configured simultaneously In the upper right hand corner of the window is the LecNet Status frame which indicates whether the serial link to the TH3 is currently active A status of on means the TH3 is connected the control panel is active and the settings shown correspond with the TH3 s current ...

Page 13: ...ome central offices when the other party disconnects This feature might not work reliably if call waiting is in use or if the TH3 is connected to a PBX or other line simulator The Audible Ring Chime checkbox permits a beeping noise to be sent to the audio outputs when the telephone line is ringing The Misc frame contains controls to disable the TH3 s front panel switches for physical security of t...

Page 14: ...ues to function normally and the TH3 s other inputs are unaffected Unchecking Expansion Port prevents the TH3 from accepting input signals from any expansion port source The checkboxes below Main In and Mix Minus In offer individual muting of the expansion port inputs Unchecking Main Out or Mix Minus Out prevents the TH3 s output from reaching the indicated expansion port destinations Checking Use...

Page 15: ...Net Device Transmit LecNet Device Receive Gnd Tip Ring Sleeve 3 2 7 1 4 5 6 20 CD RX TX Gnd RTS CTS RI RX TX Sig Gnd Chassis Gnd RTS CTS Host Serial Port PC DTR DSR DSR DTR LecNet Device to AMX or Crestron LecNet Port AMX or Crestron Port 1 2 3 4 5 6 7 8 9 LecNet Device Transmit LecNet Device Receive Gnd RXD TXD Gnd Tip Ring Sleeve 3 5MM Stereo Plug 9 Pin Female D Subminiature S R T N C N C N C N ...

Page 16: ...will respond by sending a 0 0 hex not ASCII back to the host Thus each inter change with a LecNet device follows this pattern 1 Host sends device address as a single byte 2 Host receives byte of 0 hex from the LecNet device as acknowledgment 3 Host sends command 1 byte to the LecNet device 4 Host and LecNet device exchange data based on particular command sent Note that some LecNet commands cause ...

Page 17: ...t the version number of the current firmware times ten For example Version 1 0 software would be returned as byte value 10 decimal Host sends command 25 Host receives data byte firmware version Basic Operation Commands Set Phone Connect Causes the TH3 to connect or disconnect the telephone interface Host sends command 30 Host sends byte 0 to disconnect 1 to connect Get Phone Connect Retrieves conn...

Page 18: ...be used to generate a flash signal Any unrecognized character is ignored i e dashes and parentheses are acceptable The string must be terminated by a carriage return decimal 13 The string s length must not exceed 16 characters plus the carriage return Setup Commands Set Panel Disable Disables or enables the front panel switches on the TH3 Host sends command 50 Host sends byte 0 to enable panel 1 t...

Page 19: ...Routing Controls TH3 expansion port output signal routing Host sends command 62 Host sends byte 0 both exp outputs off 1 mix minus output on 2 main output on 3 both exp outputs on Get Expansion Output Routing Retrieves the current TH3 expansion port output signal routing Host sends command 63 Host receives data byte 0 both exp outputs off 1 mix minus output on 2 main output on 3 both exp outputs o...

Page 20: ...he receive volume to decrease 1 dB A value of 127 causes the receive volume to increase 1 dB Get Phone Rx Atten Retrieves current fine adjustment of telephone receive volume Host sends command 73 Host receives byte in range 0 54 0 represents 6 dB 18 represents 0 dB 54 represents 12 dB All values in between are valid representing 1 3 dB increments Set Phone Privacy Mode Selects privacy mode for tel...

Page 21: ...ast monitoring of TH3 status from control systems Get Quick Settings Retrieves information about current TH3 status that may change at any time Host sends command 100 Host receives 3 data bytes Byte 1 connect status privacy status and privacy mode for both interfaces expressed as a bitmap The low order nibble contains telephone information and the upper nibble contains codec informa tion Within ea...

Page 22: ...ne and vice versa Echo Suppression A process whereby the gains of the transmit and receive paths are altered during a conversation so that the path that is least active receives the least gain This has the effect of reducing both feedback and acoustic echo The TH3 uses a patented echo suppression algorithm for smooth transparent operation Hybrid A device that converts a two wire interface e g the ...

Page 23: ...ced 10K ohms unbalanced Record Out 5 pin depluggable terminal block connector electronically balanced output max mic level 20dBu max line level 4dBu nom impedance 600 ohms balanced 300 ohms unbalanced tape relay max current 0 25A Supplementary Echo Canceller two 5 pin depluggable terminal block connectors electronically balanced outputs nom levels 4 dBu input impedance 20K ohms balanced 10K ohms u...

Page 24: ... If all else fails try restoring the TH3 to factory settings as described at the end of this section This problem occurs when the transmit and receive levels are not set equitably or when the LecNet anti echo adjustment is set incorrectly Repeat the steps in the LEVEL SETTING PROCEDURE to correct When the TH3 is set up optimally the echo suppression and LecNet anti echo operation is fairly subtle ...

Page 25: ...s that could affect the operation of the equipment If this happens the telephone company will provide advance notice in order for you to make the necessary modifications in order to maintain uninterrupted service If trouble is experienced with this equipment please contact Lectrosonics Inc at 800 821 1121 for repair and or warranty information If the trouble is causing harm to the telephone networ...

Page 26: ...26 This page intentionally blank ...

Page 27: ...s a charge for an exact quotation We will be happy to quote approximate charges by phone for out of warranty repairs RETURNING UNITS FOR REPAIR You will save yourself time and trouble if you will follow the steps below A DO NOT return equipment to the factory for repair without first contacting us by letter or by phone We need to know the nature of the problem the model number and the serial numbe...

Page 28: ... returning your equipment to you This warranty applies only to items returned to Lectrosonics Inc shipping costs prepaid within one year from the date of purchase This Limited Warranty is governed by the laws of the State of New Mexico It states the entire liablility of Lectrosonics Inc and the entire remedy of the purchaser for any breach of warranty as outlined above NEITHER LECTROSONICS INC NOR...

Reviews: