ZVR0020 Smart Room Controller
Application, Installation and Programming
Q:\product\zvr0020\doc\man0044.doc Revision 1.00 1.01 1.02 1.03
Reason for update Initial release. First update PCB Rev. F, firmware Rev. 4.01 Connecting DIN rail relays
Author IR TH IR IR
Date 10:08:2002 13:11:2002 25:06:2005 19:07:2005
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Contents INTRODUCTION ................................................................................................................. ................. 3 IMPORTANT .......................................................................................................................................... 3 THE INS AND OUTS ............................................................................................................................ 4 FRONT VIEW ......................................................................................................................................... 4 REAR VIEW (EARLY MODEL) ................................................................................................................ . 4 REAR VIEW (REV. F AND LATER MODELS) ........................................................................................... . 5 WHAT'S INSIDE THE BOX? ............................................................................................................. . 6 HOW TO USE IT ................................................................................................................. .................. 8 AS A "SMART CLASSROOM" CONTROLLER. ........................................................................................... 8 a. With a TV monitor........................................................................................................ ............... 8 b. With a projector ........................................................................................................... ............... 9 SMART ROOM USING REV. F SMART ROOM CONTROLLER, MULTIMEDIA PORT AND WALLMOUNT JOEY TOUCHSCREEN .......................................................................................................................... . 10 WIRING DIN-RAIL RELAYS ........................................................................................................ ... 11 THE MEANING OF “C”, “N/C” AND “N/O” ......................................................................................... . 11 PROGRAMMING A SMART ROOM CONTROLLER SYSTEM ................................................ 12 THE TEMPLATE STRUCTURE. ............................................................................................................... 12 MENUS AND CONTROL ....................................................................................................................... . 13 GLOBAL KEYS............................................................................................................................. ........ 14 DEVICE CONTROL MACROS ................................................................................................................. 14 Screen control ................................................................................................................ ............... 14 DVD/VCR combo control.............................................................................................................. 16 Projector control macro....................................................................................................... ......... 17 DETECTING EXTERNAL ‘CLOSURES’ ........................................................................................ 18
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 2
Introduction Command Systems' ZVR0020 "Smart Room Controller" is an extension of the Video Commander RLMU set-top box, primarily intended for situations that require more in the way of local control. It is ideal for use in "smart classrooms" where a data projector has replaced a conventional TV monitor, because it includes a programmable controller. The Smart Room Controller also has the ability to control most projectors - via RS-232 or infrared. The Smart Room Controller contains an audio amplifier (sufficiently powerful for most classroom applications) combined with automated volume control – accessible via the Video Commander remote. It can be programmed to control other devices in the room, such as a local VCR, and can even drive a Modular Switcher (ZTR0100) or Utility Switcher (ZTR0002) allowing the range of inputs available to the projector to be greatly expanded. A number of separate inputs and events can be actively monitored for use as automatic triggers. These include the ability to sense the presence of a video signal (on the Video Commander input) and also the current state (on or off) of a TV or similar device. You can also monitor the state of external switches (such as PIRs, useful for detecting room occupation), control lighting and 240V power (via external relays) and intelligently manage your projector – simplifying its operation and lengthening lamp life. The Smart RLMU is compatible with the complete range of Theatre Commander control panels and software tools, allowing you to create a fully integrated control environment. If you have a TV monitor that doesn’t automatically start in ‘AV’ mode on power-up, a Smart RLMU can be used to automate its operation. In this way you can ensure that the whole system is set-up and ready to go at the press of a button. This unit can also be used independently, without being connected to a Video Commander. Practical ‘stand-alone’ applications for the Smart RLMU include automated instore displays or control of smaller AV systems. It can also be used in conjunction with our ZVR0019 stand-alone UTP AV transmitter, allowing you to incorporate pan-tilt cameras and also receive video and audio signals at distances in excess of 1kM (on voice-grade or data cable).
Important This manual assumes you are already familiar with Video Commander systems in general and RLMUs in particular, only briefly covering the function of an RLMU. Indepth information on RLMUs, Video Commander and custom programming techniques are available in the following manuals - MAN0026 (RLMU), MAN0008 (Theatre Commander), MAN0009 (Video Commander). ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 3
The ins and outs Front view 1. "Data" LED. This can be programmed to be red, green or off at different times depending on the needs of the application. 2. Power LED. 3. Infra-red receiver
1 2
3
Rear view (early model) 4. TV scan sensor input. This 5 8 6 input accepts a highfrequency signal of in excess 7 4 9 of 1mV and generates a logic signal that can be detected by the internal 10 controller. 5. Video output. 6. Audio input - signal is 11 mixed with audio from the 12 13 Video Commander input and connected to the input of the internal 14 15 volume controlled amplifier. 7. IRBus input. You can connect a wired control panel or external IR receiver (ZTR0001) here. 12 volts DC may be sourced from the socket to a maximum current of 100mA. If you exceed 100mA, the internal power supply will self-limit. Feedback signals to the control panel are not implemented. 8. RS-232 port. Used for programming the unit and controlling external RS-232 equipped devices, such as video projectors. 9. 9 to 10 volts AC input. Do not use a DC input as it will damage the unit. 10. External control port. Can control up to six DC loads, such as small relays (eg ZTT0010). There are 2 TTL-level inputs that can be detected by the controller. 24 volts DC is also available and the pinout is compatible with the Modular Switcher (ZTR0100). 11. IR output. This port is designed to drive an Optical Coupler for controlling most IR-controllable devices. You can connect up to 3 Optical Couplers in parallel for controlling more than one device. 12. Cable length compensation switches for the Video Commander input. 13. Audio output. Will drive an 8 â„Ś speaker to 6.2 watts (RMS continuous sine wave) using the supplied plug pack. 14. Intercom port. Connects to pins 7 and 8 of the Video Commander port. 15. Video Commander port. COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 4
2
1
6 5
4 3
2
3
p11p12
4
L+ L-
R+ R-
5
p6
G L
Smart Room Controller ZVR0020
R
Made in Australia by
CommBox Video out
I/com
Line
Pgm.
m.
IRBus
m.
10v.AC in
Ext. Control
- Audio In 150
- Speakers -
300
----- Serial ports -----
+12v Data Gnd
6
7
8
9
10
11
12
13
Rear view (Rev. F and later models) 1. IR/RS-232 outputs. There are 5 individually-addressable ports for driving optical couplers (for most IR-controllable devices) or direct RS-232 for projectors etc. 2. Sensor inputs. These two inputs can be used to detect external contact closures or voltages. They are active low and have an internal pullup resistor. 3. Audio outputs. Will drive two 8 Ω speakers to 6 watts RMS using the supplied plug pack. 4. Relay driver output. An uncommitted active-low output for driving a DC relay or similar, up to 12 volts @ 100mA load. An internal backswing diode is fitted, connected to the IRBus supply. 5. Audio input – This stereo input signal or the Video Commander input is switched to the input of the internal volume controlled stereo amplifier. 6. 9 to 10 volts AC or 12 to 15 volts DC input. This supply must be floating, i.e. not grounded and capable of at least 1 amp if the audio amplifiers are being used. It also supplies power to anything connected to the IRBus and the External control port – any loads used here should be taken into account. 7. External control port. Can control up to six DC loads, such as small relays (eg ZTT0010). There are 2 TTL-level inputs that can be detected by the controller. 12 volts DC (nominal) is also available and the pinout is directly compatible with the Modular Switcher (ZTR0100) and MultiMedia Port. ** Note that unlike the previous model, relays must be 12 volt operation** 8. IRBus port. You can connect a wired control panel, touchscreen or external IR receiver (ZTR0001) here. 12 volts DC (nominal) may be sourced from this socket to a maximum current of 200mA. If you exceed 200mA, an internal self-resetting fuse will disconnect the supply. All Joey range panels may be powered from this port. Note that feedback signals to the control panel are now implemented on this model. 9. RS-232 port. Used for programming the unit. Can also be used for controlling external RS-232 equipped devices, such as video projectors. 10. Video Out. This is the output from the Video Commander interface. Presence of video coming from this port can be detected by the controller. COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
11. Cable length compensation switches for the Video Commander input. 12. Intercom port. Connects to pins 7 and 8 of the Video Commander port. 13. Video Commander port. ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 5
What's inside the box? Examine the following diagrams.
Early
IR Receiver
Programmable controller
model
Volume control
Audio Amplifier
Sync Detector
TV Scan Detector
IR In DAC out
Parallel In Parallel Out RS-232
IR Out Video Commander Interface Audio out Tx Enable
Data backchannel Video out
Sensor
Smart RLMU Cat. ZVR0020
Output
addr.=100
I/com
Infra-red
Line
9v.AC in
IRBus Audio In
Audio
Ext. control
RS-232
Video
UTP line
Some points to note for early model: • The Video Commander backchannel data is controlled by the Programmable Controller, instead of just being passed through from the IR receiver as in the standard RLMU. • Audio from the Video Commander (UTP) and the Audio In socket are summed (mixed) and fed through the volume control and audio amplifier to the Audio Out socket. • IR signals can be sent to the external IR output for controlling local devices, while automatically being ‘blocked’ to prevent them from being sent back to the Video Commander system. • The RS-232 port is used for programming the unit. It can also be used for controlling virtually any RS-232 device • The Programmable Controller can detect presence of video on the Video Commander inputs. It can also detect horizontal scan or similar high frequency signals from a TV monitor. • Six outputs are available on the Ext. Control port. Each is capable of sinking up to 500mA COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
at up to 24 volts DC. The port is pin-compatible with our Modular Switcher (ZTR0100). A source of 24 volts DC is also available on this port.
ZVR0020 Smart Room Controller
Page 6
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Programmable controller
Amplifier & Volume Control
Audio Switcher
IR Receiver Out Mute
IR In Switcher Ctrl DAC out Logic In
Sync Detector
Logic In
Late
Relay driver Out
model
Video Commander Interface Audio out
- IR / RS-232 serial ports 8 7 6 5 4 3 2 1
Control backchannel Video out UTP line IRBus interface
6 5
4 3
2
p11p12
L+ L-
R+ R-
p6
G L
R
Smart Room Controller ZVR0020 Made in Australia by
CommBox
I/com
Line
Video out
m.
Pgm.
m.
IRBus
- Audio In 150
Ext. Control
- Speakers -
300
10v.AC in
----- Serial ports -----
Some points to note for late model: • The Video Commander backchannel data is controlled by the Programmable Controller, instead of just being passed through from the IR receiver as in the standard RLMU. • Audio from the Video Commander (UTP) and the Audio In are now switched (instead of mixed) and fed through the volume control and audio amplifier to the Speaker connections. Muting of Video Commander audio is now done by this switcher instead of the volume control. • The volume control now has 32 steps instead of 16 and is directly supported in firmware instead of requiring the use of a macro. • IR and RS-232 control ports are now addressable in the same way as in the Classic range. • The IRBus port now works in the same way as in the Classic range. In addition, the internal IR receiver is now automatically muted when an external signal appears on the IRBus. • The Programmable Controller can detect presence of video on the Video Commander inputs as well as logic level inputs from the Ext. Control port and the inputs on the Serial Port block. • Six relay drive outputs are available on the Ext. Control port. Each is capable of sinking COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
up to 500mA at up to 12 volts DC. The port is pin-compatible with our Modular Switcher (ZTR0100). A source of 12 volts DC (nominal) is also available on this port. • The address for programming is now 0 instead of 100. ZVR0020 Smart Room Controller
Page 7
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
How to use it As a "smart classroom" controller. a. With a TV monitor
Sensor wire taped to back of monitor
Intercom phone
IR coupler
Sensor
Smart RLMU Cat. ZVR0020
Output
addr.=100
I/com
Infra-red
Line
9v.AC in
IRBus Audio In
Audio
Ext. control
RS-232
Video
To Video Commander system
In this example, the monitor is connected in much the same way as if a standard RLMU was used. The difference is the way in which the monitor is controlled. On detection of incoming video, we wish to have the monitor switch on automatically. To do this, we program the ZVR0020 to first examine the signal on the sensor input (a short "antenna" wire will pick up a 15KHz signal from the TV's deflection circuits - see diagram above). If there is no signal detected, a single infra-red "power" command is sent to the monitor. Once the deflection signal is sensed, no further power commands are sent until after no video has been detected for a suitable period of time. The reason we need the sensor antenna is that most monitors use "toggle" codes, i.e. the same IR code is used to switch the monitor ON and OFF. So unless we can check if it is really operating, we have no way of being sure of the monitor's current state and it will quickly get out of step. The ZVR0020 comes loaded with a test program that will allow you to check that the signal pickup on the sensor antenna, once installed, is reliable.
The control method described here is particularly useful for TV monitors that COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
default to "standby" when power is first applied.
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 8
b. With a projector
Video from local
24v. relay
RGBHV from PC
RS-232 ctrl.
Video
Smart RLMU cat. ZVR0020
Infra-red
Line
Output
addr.=100
I/com
9v.AC in
Audio
Ext. control
RS-232 IRBus Audio In
Sensor
To Video Commander system
Intercom phone 12:4500:01
Optical Coupler Optional wired control panel
This example demonstrates how to replace a TV monitor with a data projector, controlled by RS-232. It also shows how a local VCR or DVD player (independent of the Video Commander system) and a PC can be added. The ZVR0020's ability to directly drive a speaker is also implemented here. The projector requires a screen - this can also be controlled, using the External Control port. A wired control panel can be added. COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 9
240v Relay RGBHV RS-232 Video
DVD-VCR combo
Desk PC
Relay
V1in
A in 1
V2in
A in 2L
PC
Cable Compensation
A in L
PC
Vout
A in R
RL1
Room Occupancy PIR Sensor
RL2
A out L
+24v
A out R
Control
Long <--> Short
A in 2R V4in
External A/V device, e.g. camcorder External PC, e.g. laptop
Projector
& power
6 5
4 3
2
p11p12
L+ L-
R+ R-
p6
G L
R
Smart Room Controller ZVR0020 Made in Australia by
CommBox Video out
I/com
Line
Pgm.
m.
IRBus
- Audio In m.
Ext. Control
- Speakers -
150
10v.AC in
----- Serial ports -----
300
Lights
240v
Video Commander Speakers
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Smart Room using Rev. F Smart Room Controller, MultiMedia Port and wallmount Joey touchscreen ZVR0020 Smart Room Controller
Page 10
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Wiring DIN-rail relays The newer Smart Room Controller uses a 12 volt (nominal) power supply, so previously-used 24 volt relays cannot reliably be used. Since Smart Room Controller installations normally require only one or two relays, a more practical solution is to use single DIN-rail relays. The one we are supplying has two sets of 5 amp changeover contacts and an indicator LED. Such relays can readily be installed in a more convenient position to minimise mains wiring. What is a relay? A relay is simply a magnetically-operated switch that can be switched ON by passing a current through a coil of wire. A relay allows a small current to control a much larger one, without a direct connection.
The meaning of “C”, “N/C” and “N/O” C N/C N/O
= Common = Normally Closed = Normally Open
Common is the terminal that gets switched between the other two terminals, depending on whether the relay is energised (i.e. has 12 volts across its control terminals) or not. The relay connects its Normally Closed terminal to its Common terminal when the relay is in its Normal (or NOT energised) state.
By law, only
N/C N/O
O M R O N M Y 2 N 12V.D C
C
Similarly, when the relay is ON, or energised, the Normally Open terminal gets switched to the Common terminal This relay has two separate sets of 5 amp contacts (shown RED and BLUE in the diagram) that may be connected in parallel for 10 amps or used to switch separate circuits.
Keep this wiring (which connects to the Smart Room Controller) away from mains wiring.
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
N/C +12v Active low N/ switch O
C licensed electricians are permitted to perform fixed mains wiring.
ZVR0020 Smart Room Controller
Page 11
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Programming a Smart Room Controller system The Smart Room Controller is based on the larger processors. You program it using the same tools, including the Wizard. The later model SRC (as shown on the previous page) is discussed here. For programming of the older model and an understanding of the diagnostic features in the program, refer to the project and macro notes in the TCW file for the older unit. If you plan to use only the Wizard, then it probably isn’t necessary for you to know any of the following. However, if you understand how it works then it’s easy to make changes to suit a client’s requirements. As with the Classic and Maxima ranges, there is a standard template for the Smart Room Controller. A template is basically a complete application program, written in a modular fashion so that different types of connected equipment can be readily substituted. Using a template saves time and effort and makes for a betterfunctioning, more reliable system. The template for the SRC differs only slightly from the template for the other processors. This difference means that control panel code assignments are also different and so control panel programs are incompatible with processors using other templates. The reason for the change is simply to allow the use of the Video Commander 32 key remote, which is not field programmable. The difference is in the use of the number keys to select sources instead of the “select” keys as in the other templates. The template structure. • There are five “Hot” or “Global” keys – two keys for Volume, two for Lights and a “Back” or Menu key to select the Main Menu. • The remaining 27 keys (of the 32 key codes that the SRC firmware can recognise) are reassigned according to the menu that is selected. • In the “Main Menu”, your user can choose the desired input. • Each “Input” has its own dedicated menu. • Each menu is tracked with a variable, the value of which determines the actions to be performed for that menu. • The current value of the menu variable is fed back to the control panel to ensure that the screen on the panel matches the actions that the keys will perform. In this way you have access to as many as 27 keys for each input device (or even more by using sub-menus). To simplify programming and facilitate easy substitution of equipment, codesets for all input devices (such as VCRs, DVD players etc.) follow a standard order that maps directly to these 27 keys. COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Letâ&#x20AC;&#x2122;s follow what happens when some keys are pressed. In the diagrams on the following pages, KEYS are shown as inverse text, macros are shown bold and jumped-to labels are shown in italics.
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 12
Menus and control Session & Shut-down macro
Any key
Start 2 hour timer Poll RGBHV presence Poll PIR presence Reset 2 hour timer if true When timer expires call Input Select macro to shut down the room.
Menu or Back key (code 31)
Menu macro Set Virtual input variable to 0 Set Current Menu variable to 0
Transport & Select keys (codes 10 to 24, 26, 30)
Input Select macro Receive the key number X Set Virtual Input variable to X Set Current Menu variable to X If X is equal to 0 goto :Shutdown Operate audio switcher Call DVD/VCR combo control Call MultiMedia port ctrl. for selected input, i.e. pass X to it. Call Screen Control for Down Call Projector Control for ON and selected input End :Shutdown Mute the audio Call Screen Control for UP Call Projector Control for OFF Call DVD/VCR combo control for OFF
Any number key (codes 0 to 9)
Reroute Number keys Are we in Menu 0?
Yes
No
Is the key number 6 or less?
Yes
No If key is 7 Call Screen Control for UP If key is 8 Call Screen Control for DOWN Control Are we in Menu 1?
No
Yes
control and pass key number to it.
Call DVD/VCR combo COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Mute the audio Send the Video Commander code with the value of key
number If key still down, keep audio muted Unmute the audio
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 13
Global keys Volume Up (code 25)
Add 1 to Program Volume
Volume Down (code 27)
Subtract 1 from Program Volume
Lights Up (code 28)
Switch “Lights” on
Lights Down (code 29)
Switch “Lights” off
These four keys are “global” keys that operate inbuilt commands (i.e. not macros) directly from the Function List. As such, they are available at any time on any menu. You may wish to replace the simple on-off lights switch with a standard Lights macro for more sophisticated lighting requirements. Device control macros Here are the inner workings of the macros that actually control the devices connected to the Smart Room Controller. By encapsulating all the functions for a device in the one place, these macros shield its inner workings from the rest of the program and present a common control interface. In this way, different brands and models of devices such as projectors and DVD/VCR combo units can be easily and quickly substituted in the program, just by importing a macro or, in simple cases, editing the existing one. Screen control The Screen Control macro is the simplest example. It accepts a single parameter (X) that can be 1 or 0. In this way, if the physical arrangement for controlling the screen needs to change, it can all be done in one place. Screen control macro If X =0 goto :Up Switch on Screen relay End :Up Switch off Screen relay COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 14
Multimedia port control This macro controls a ZTR0040 Multimedia wallplate/switcher from the "Ext. Control" port of a ZVR0020 Smart RLMU. It can also be used to control the ZTR0040 from any 10 pin relay driver port, e.g. on a PIU or CommBox Micro. Note that the Multimedia Port shares audio inputs 3 and 4 of its audio switcher with more than one input. See the table below. Kevin has asked to have the RGB switcher not change unless an input request requires it. This is to allow the monitor to stay where it was last when an audio/video input is selected. To implement this requires that we no longer do single nibble writes so the whole thing becomes a bit more verbose. MMPort switcher connections:
Pin 3 4 5
Function On â&#x20AC;&#x201C; RGBHV Front input. Off â&#x20AC;&#x201C; RGBHV Rear input AV switch LSB AV switch MSB
AV Switch logic
Input 1 2 3 4
Function VC video (and audio) VCR A+V Aux AV+ Notebook audio Camera+ Desk PC audio
Binary 00 01 10 11
Note that the whole point of this macro is to hide the messy business of operating the video, audio and RGBHV switchers (as seen in these tables) from the rest of the program. The macro simply accepts the input/menu number and takes the necessary action. The following is a simplified description of this verbose macro.
Multimedia port control Accept input from 1 to 6. Using lookup table, jump to labels for appropriate combinations of switch operations for AV and RGBHV switchers RGBHV labels Execute necessary RGBHV switching operation Goto appropriate AV label AV labels Execute necessary AV switching operations
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 15
DVD/VCR combo control This macro adds an extra level of abstraction so as to allow the easy substitution of different brands of DVD/VCR combo units. These units can be quite different from each other in the way they work in that some use a single codeset while others use two different codesets - just like 2 machines in the one box. Still others (notably Sharp) use a toggle mode changeover and so are NOT SUPPORTED by this method. The macro uses two parameters. The first (X) is the control function required and is mapped directly into the codeset(s). This is only done if the second parameter = 0. When in VCR mode, the RECORD command is trapped and disabled. When the 2nd parameter (Y) is not zero, it determines the mode for the combo unit. Y can be 2, 3 or 10. If 2 or 3, VCR or DVD mode is selected. For some models (not this example) this number also determines the codeset that will be used, i.e. 2=VCR, 3=DVD. For some brands of combo units, discrete power control is available. Power Off is supported by calling the macro with a code 10 for OFF as the 2nd parameter. A Power On is sent automatically whenever the mode is changed. Are we controlling it or choosing between DVD and VCR? Virtual Input has been previously set by the Input Select macro so when controlling it we know if VCR or DVD mode has been selected.
It has to be either VCR or DVD…
DVD/VCR combo control Accept parameters X and Y. If Y is not equal to zero goto :Mode Select If Virtual Input variable is equal to 2 goto :VCR control If Virtual Input variable is equal to 3 goto :DVD control Otherwise, End :VCR control Trap and Disable “Record” in VCR mode (if necessary) :DVD control Send serial code with the value of X to combo unit. End :Mode select
If Y is equal to 10 goto :Power Off Unless Y is 2 or 3, End. Send “Power On” to combo unit. If Y = 2, send “VCR” to combo If Y = 3, send “DVD” to combo End :Power Off Send “Power Off” to combo unit.
Just pass the keys straight through to the codeset and send them.
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
ZVR0020 Smart Room Controller
Page 16
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Projector control macro Macro Parameter X = 0 to 4
X = 0?
Yes
No
Proj state = 0?
Yes
No
Proj state = 41?
Yes
No Set current menu to Proj. state End
Projector is cold. Switch power on Set Proj state to 42 (warmup) Send Power On command Wait 20 seconds
Projector is ready. Send Input Select command (the value of X) Wait 2 seconds Send Unmute command
Re-sync Projector state. Wait 2 seconds Send Power On command Wait 20 seconds Send Input Select command (the value of X) Wait 2 seconds Send Unmute command Set Proj state to 41 (ready) End
Projector OFF request. Send Mute command Wait 60 seconds Send Power OFF command Set Proj state to 43 (cooldown) Wait 60 seconds Set Proj state to 0 (cold) Switch power OFF If current menu = 43 set it to 0 End
The example shown here is for a Hitachi but is similar to macros for most projectors and is also used in the processor range. The macro accepts a single parameter. This could be 0 for Off or a number from 1 to 4 or 5, which means switch on the projector and select that numbered input. With projectors, there will be times when the projector is not available due to lamp warm-up or cool-down cycles. As well, it’s desirable to avoid letting the user switch the projector on and off too frequently as doing so shortens the projector’s lamp life. For these reasons the macro uses a variable to track the state of the projector. The macro can then take the most appropriate action at any time and if necessary report the reason for projector non-availability to the user via the feedback to the control panel. Because we’re not reading the actual state from the projector, there is a “resync” portion of the macro. This comes into effect if the projector gets manually
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
switched off while the
program thinks it is still on.
ZVR0020 Smart Room Controller
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA
Page 17
Detecting external ‘closures’ As previously stated in the section ‘Ins and Outs’, the External Control port can be used to detect external events. Pin 7 and 8 on the External Control port socket have been reserved as Inputs, and can be operated by ‘shorting’ them to Ground. The diagrams below show the connector pin-outs and an example circuit for implementing this system.
When a switch closes (when pin 7 or pin 8 are shorted to Ground – pin 9) an activated peri bit is detected within the Smart RLMU. Peri bit 10 has been assigned to pin 7 and Peri bit 11 has been assigned to pin 8. In this way an “if peri” or “if not peri” statement can be used within the programming to test the state of these inputs – peri ON when shorted, peri OFF when open circuit. Note: An IDC plug and cable must be used for this method. On the later model, these connections are available as p11 and p12 on the serial port Phoenix connector – see diagram on page 10. Peri bits 10 and 11 are used by the Multimedia Port to detect presence of composite video and RGBHV sync respectively. P12 is an uncommitted input.
COMM BOX Pty Ltd abn: 431 583 817 05 Telephone +61 2 9938 4811 Fax: +61 2 9905 6153 PO Box W105, Warringah Mall, NSW2100, Australia w w w . commbox . c o m.a u
AUSTRALIA, CHINA, MALAYSIA, SINGAPORE, KOREA, SOUTH AFRICA