Installation
The distribution below is a jar with the gateway. Additionally you need (in your classpath):
- log4j (I used version 1.2.13).
- RXTX (serial API for Java). You have to install the runtime files of RXTX (in short putting rxtxParallel.dll and rxtxSerial.dll in the bin directory of your Java distribution, see the RXTX documentation for more information), and have the jar in your classpath.
- XPL4Java the jar with a programming framework for XPL.
Furthermore, you need cm11axpl.jar, which you need to start (see cm11axpl.cmd for an example).
You also need a configuration file (see example.txt for a commented example) that describes the devices connected to your X10 network.
First, you can test your config file by starting the X10Tester (X10Tester.cmd). Then you can start the gateway (cm11Axpl.cmd) and config the gateway using some XPL config tool (e.g. DCM).
The gateway can also be used in combination with Gerry Duprey's xpl4java server.
There are two parameters to configure: the serial port your CM11A is connected to (COM1,...) and the location of the configfile that contains the configuration of your X10 network.
Then, e.g. by using examples.LightingExplorer of XPL4Java, you can test things.
If you want to use this, please empty your CM11A. Specifically, it should not contain macro's. The gateway can not deal with this.
At www.gordijn.org/gordijn.xml you find a plug-in for use with XPLHal tools. |