| Home |Contact| e3value.com| cs.vu.nl|
e3value
Jaap Gordijn's website
18-07-2008 | The latest available version of the CM11XPL gateway is version 0.4

Welcome back!

  
home
personal
homeautomation
CM11ASimulator
CM11AXPL
WS2300XPL
about

New article

Aligning Information System Design and Business strategy - A Starting Internet Company

>> more info | 256 views

New article

Designing Value-based Inter-organizational Controls Using Patterns

>> more info | 286 views

New article

A Model-based Approach to Aid the Development of e-Government Projects in Real-life Setting Focusing on Stakeholder Value

>> more info | 298 views

New article

Business strategy-IT alignment in a multi-actor setting: A mobile e-service case

>> more info | 6907 views

New article

Consistency Checking Between Value Models and Process Models: A Best-of-Breed Approach

>> more info | 6883 views

New article

Value-driven coordination process design using physical delivery models

>> more info | 7237 views

New article

Value-Driven Service Matching

>> more info | 7204 views

New article

Designing Controls for Network Organization: A Value-Based Approach

>> more info | 8924 views


Next >>>

Gordijn.org >> Personal >> Homeautomation >> CM11AXPLGateway >> Index

Print page    E-mail page    
 A Gateway between the XPL lighting scheme and the CM11A X10 controller.

Rationale

The lighting scheme for XPL is a scheme that abstracts away from various home-automation protocols . Currently, there is a binding for UPB. The XPLCM11A gateway is a binding for X10 and more specifically the CM11A device. It re-uses the UPB gateway code largely, and it re-uses Peterson's Java API for the CM11A.

Functionality

The gateway has the following functionality:

  • Support for X10 On/Off devices, Dimmers (with switch-on level being last dim level, or predefined value), and two way devices (not: devices that use X10 extended messages)
  • The gateway checks if the command sequence that will be send, really results in the desired state (change) (which is not always the case if a X10 command of a remote control comes in between).
  • Implementation of the XPL Lighting scheme with scenes (which are emulated by the gateway)
  • The gateway keeps the state over power failures. This means that in case of a power failure, the gateway will bring the X10 network in state as known before the power failure (for this, you need version 0.3 or higher).

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.x10 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.

Limitations

  • As told earlier, not all CM11A functionality is covered, and also not all X10 functionality (e.g. no extended codes, and no macros)

  • This is version 0.4. Meaning: experimental, not stable, use at your own risk, and so on. But you may give it a try

Acknowledgements

The CM11A uses Jesse Peterson's Java API, and re-uses many of the UPB classes from Gerry Duprey. Actually all CM11AXPL does, is bridging these two.

 Files and links
Version 0.4 of the CM11A - XPL gateway 07/18/08
279.7 KB
Version 0.3 of the CM11A - XPL gateway 07/29/07
297.43 KB
Source code for the CM11A XPL gateway 01/07/07
264.57 KB
Version 0.1 of the CM11AXPL gateway 12/17/06
244.56 KB
Sort by name,date,type
Quick links
Publication list
Publications of Jaap Gordijn can be found here
Publications
CM11A XPL gateway
A Java-based gateway between XPL (Lighting scheme) and the X10 CM11A
>> more info
CM11A simulator
A Java-based simulator for the X10 CM11A device
>> more info
MSc. assignments
Interested in a MSc assignment?
>> more info
HBO graduates in Information Sciences
HBO (HEAO-BI, HIO, HTS-TC, IandI, IE) graduates who want to start a master Information Sciences at Vrije Universiteit (VU) Amsterdam, please read on.
>> more info