MARMITEK XM10 User Manual [fr]

X-10 protocol for the Marmitek XM10 OEM Controller
Marmitek XM10 OEM Controller
*O.E.M Original Equipment Manufacturer
Safety Warnings
x The wiring of your electrical installation is live (230 V) and extremely dangerous. Never connect
the module when plugged into the mains. Always turn off the main switch before starting the installation.
x To prevent short circuits, this product should only be used inside and only in dry spaces. Do not
x Do not expose the components of your systems to extremely high temperatures or bright light
sources.
x Do not open the product: the device contains live parts. The product should only be repaired or
serviced by a qualified repairman
x In case of improper usage or if you have opened, altered and repaired the product yourself, all
guarantees expire. Marmitek does not accept responsibility in the case of improper usage of the product or when the product is used for purposes other than specified. Marmitek does not accept responsibility for additional damage other than covered by the legal product responsibility.
How to implement
Two - way PLC interface for OEM applications (XM10)
The XM10 is a transmitter-receiver that plugs into a regular AC outlet and connects to the controller via a modular RJ 11 telephone jack. Alternatively, the XM10 may be fitted inside the controller cabinet, connected to the 230 V AC supply before the power transformer. (This would be a typical installation with most security panels.) It provides an opto-coupled 50 Hz. Square wave, synchronised to the zero crossing point of the AC line. The controller generates X-10 compatible codes synchronised to this zero crossing point. The two-way interface then couples the X-10 codes onto the AC line.
Two - Way transmission available
The two-way interface transmits and receives X-10 codes. It enables an O.E.M. to develop a system to control X-10 Modules, and receive X-10 signals from remote sensors (P.I.R. motion detectors for example)
X-10 Code transmission
To transmit X-10 signals the controller must supply 1 ms .envelopes. to the TX input of the interface with respect to common. These envelopes must be as close as possible to the zero crossing point of the AC line (see timing diagrams). An opto- coupled output representing the zero crossing point of the power line is provided for the controller to which X-10 codes are to be synchronised.
X-10 Code reception
The two-way interface uses a custom proprietary I.C. to read X-10 codes from the power line. This takes a lot of burden off the microprocessor in the controller as it does not have to continuously monitor the powerline and check all in coming signals (and noise) for validity. Any signals applied to the controller are error-checked, valid X-10 codes. When a valid X-10 code is received, it is stored in the custom I.C. and
- 1 -
X-10 protocol for the Marmitek XM10 OEM Controller
applied (in envelope form) to the controller. This output is coincident with the second X-10 transmission. (X-10 codes are always transmitted in groups of two, except for Bright and Dim.) Data sent to the controller is valid X-10 data. The start Code (1110) can be used to alert the controller that an X-10 Code will follow. A .1. bit from the two-way interface appears as a negative going pulse 1.1 ms long, beginning approximately 100 µs after zero crossing. The controller should sample this data between 500 and 700 µs after zero crossing. The L.E.D. on the two-way interface gives a visual indication that X-10 codes are being received. The L.E.D. is illuminated when AC power is applied to the two-way interface and blinks off when X-10 codes are received. The two-way interface will also receive the codes it transmits, therefore the L.E.D. will also give an indication of codes being transmitted.
The ability to read X-10 codes from its own output also allows the controller to incorporate data collision detection. If the code received differs from the code transmitted, the code can be assumed to have been corrupted by noise ( or another transmission ) on the power line.
The line Monitor capability of the two-way interface allows the controller to ensure that the power line is free from X-10 signals before starting a transmission. This means that in a multitransmitter system the controller can minimise contention between transmitters. For example, if after detecting that the line is free, a transmitter waits for a random number of power line half cycles before transmitting, the chance of collision is reduced. A different priority can be assigned to each transmitter by including a fixed delay before the random delay. The shorter the fixed delay, the higher the priority.
Important Safety Notice
Zero volts in this product is directly connected to one side of the AC line. Therefore, for safety, an ISOLATING power transformer MUST be used when attempting any internal measurements.
The power supply in the two-way interface are capacitively derived from, and directly referenced to, the 230V AC power line. Care should be taken when monitoring any internal circuitry with an oscilloscope, as
the OV reference in the two-way interface are NOT isolated from 230 volts.
X-10 Protocol
The tables in Figure 1, show the Binary Codes to be transmitted for each House. Code and Key Code. The Start Code is Always 1110 which is a unique code and is the only code which does not follow the truecomplement relationship on alternate half cycles.
- 2 -
X-10 protocol for the Marmitek XM10 OEM Controller
Figure 1 House Code and Key Code Tables
House Code Key Codes
H8 H4 H2 H1 D8 D4 D2 D1 D16
A0110101100 B1110211100 C0010300100 D1010410100 E0001500010 F1001610010 G0101701010 H1101811010 I0111901110 J11111011110 K00111100110 L10111210110 M00001300000 N10001410000 O01001501000 P11001611000
All units off 0 0 0 0 1
All lights on 0 0 0 1 1
On 0 0 1 0 1 (shutters open) Off 0 0 1 1 1 (shutters close)
Dim 0 1 0 0 1 (shutters up)
Bright 0 1 0 1 1 (shutters down)
All Lights Off 0 1 1 0 1
Extended Code (1) 0 1 1 1 1 (for data/control)
Hail Request 1 0 0 0 1
Hail Acknowledge 1 0 0 1 1
Extended Code (3) 1 0 1 0 1 (for security messages)
Program 1 0 1 1 1
Extended Code (2) 1 1 0 0 1 (for meter read & dsm)
Status = on 1 1 0 1 1 Status = off 1 1 1 0 1
Status Request 1 1 1 1 1
(1) Hail Request is transmitted to see if there are any other X-10 transmitters within listening range. This
allows the O.E.M to assign a different House code if a .Hail Acknowledge. is received.
(2) In a Pre-Set Dim instruction, the D8 bit represents the Most Significant Bit of the level and H1, H2, H4
and H8 bits represent the 4 Least Significant Bits.
(3) The Extended Data code is followed by 8 bit bytes which can represent Analog data (after A to D
conversion). There should be no gaps between the Extended Data code and the actual data, and no gaps between data bytes. The first 8 bit byte can be used to say how many bytes of data will follow. If gaps are left between data bytes, these codes could be received by X-10 Modules causing erroneous operation. Extended Code is similar to Extended Data: 8 Bit bytes which follow Extended Code (with no gaps) can represent additional codes. This allows the designer to expand beyond the 256 codes presently available.
- 3 -
X-10 protocol for the Marmitek XM10 OEM Controller
Extended message format
Start Code
HC / inv HC Ext / inv Ext DC / inv DC Data / inv Data Command /
inv Command
Command / inv Command
House Code Extended code Unit code Type/Type. Func./Func
2 bits 4 bits 5 bits 4 bits 8 bits 4 bits 4 bits
1 1 0 0
H
1 H2 H4 H8
0 1 1 1 1
D
1 D2 D4 D8 D128 ... ...D2 D1
The command field is split into two nibbles: Type and Function. Each message is sent twice without a gap.
Example of Extended Data for light sensor:
Light sensor will respond to messages with the previous serial format and the response will be in the same format.
Request for light data for the module addressed in the House Code and Unit Code fields:
Start Code
HC / inv HC Ext / inv Ext DC / inv DC Data / inv Data Command /
inv Command
Command / inv Command
House Code Extended code Unit code Type/Type. Func./Func
2 bits 4 bits 5 bits 4 bits 8 bits 4 bits 4 bits
1 1 0 0
H
1 H2 H4 H8
0 1 1 1 1
D
1 D2 D4 D8 D128 ... ...D2 D1
0 0 0 1 0 0 0 1
The corresponding response will be Ambient Light Data from the module addressed in the House Code and Unit Code fields:
Start Code
HC / inv HC Ext / inv Ext DC / inv DC Data / inv Data Command /
inv Command
Command / inv Command
House Code Extended code Unit code Type/Type. Func./Func
2 bits 4 bits 5 bits 4 bits 8 bits 4 bits 4 bits
1 1 0 0
H
1 H2 H4 H8
0 1 1 1 1
D
1 D2 D4 D8 D128 ... ...D2 D1
0 0 0 1 1 1 1 1
The ambient light data is encoded in the data field in the following manner:
128 D64 D32 D16 D8 D4 D2 D1
D
Command / inv Command
Command / inv Command
0 0 Light Level Range 0-630 steps of 10 (0-315 Lux steps of 5) 0 1 Light Level Range 0-6 300 steps of 100 (0-3 150 Lux steps of 50) 1 0 Light Level Range 0-63 000 steps of 1 000 (0-31 500 Lux steps of 500) 1 1 Light Level Range 0-630 000 steps of 10 000 (0-315 000 Lux steps of 5 000)
- 4 -
Loading...
+ 7 hidden pages