SX-X10
Internet Home Automation Remote Control

Winner! of SX-LIST's
2001 Fast Embedded Ethernet Design Challenge and Contest
What is the SX-X10
The SX-X10 is an Embedded Ethernet device which allows you to control X10 Home Automation devices over the Internet. 

SX-X10 uses Ubicom's Ethernet SX-Stack evaluation board, a custom serial interface cable, and custom software to control a wireless X10 "Firecracker" CM17A Control Module from any Web browser. 

This SX-X10 was selected as the WINNER of SX-List's 2001 Fast Embedded Ethernet Design Challenge and Contest

Many thanks go out SXList.com and Ubicom for making this contest possible, and for giving me the opportunity to learn more about the SX processor's "Embedded Internet" capabilities. 


Live Online Demo!

Sorry, the online demo is no longer available due to my ISP's inability to support static IP addresses.


Version 1.0 Features


Hardware

CM17A and RS-232

The CM17A uses RS-232 DTR and RTS signals for communication. These +12V signals also provide power for the device. The phase relation of DTR and RTS changes on these lines determine if bits 1 or 0 are being sent to the CM17A.  Under normal usage, i.e. while plugged into the back of a PC, the DTR and RTS lines of the computer's RS-232 interface are manipulated by X10 software to send data to the CM17A, without interfering with most other uses of the PC's serial port.

SX-Stack and RS-232

The SX-Stack Evaluation Board has an onboard MAX232 line driver and level converter configured as a RS-232 DCE device.  Although this onboard RS-232 interface is not used by the SX-Stack HTML demo, it is needed by the utility programs to load HTML data into the onboard serial EEPROM.  Any hardware changes to this interface, must be reversible to allow debugging of the device, and programming of the serial EEPROM.

A Simple Interface

The SX-Stack Evaluation Board's MAX232 line driver only provides two output drivers.  These drivers are connected to the DCE device's RXD and CTS for normal serial communication. However, the CM17A does not need the these signals, so we can steal the I/O ports and their drivers and use as DTR and RTS simply by creating a special pin-header to DB-9 connector.
 
Eval Board 
Header Pin
DCE DB-9 Pin DCE Function DTE DB-9 Pin DTE Function
3 2 RXD 7 RTS
9 5 GND 5 GND
6 8 CTS 4 DTR
This special connector allows the MAX232 to drive the RTS and DTR pins of the CM17A.  The original DCE connector can be used for debugging, and for programming the serial EEPROM.  It was also very handy to attach a RS-232 breakout box to the DB-9 connector while debugging the CM17A interrupt routines.

X10 House Code Selection

Although the interface will accept and transmit X10 commands for any of the 256 House/Unit combinations, the GUI can only display buttons for one House Code.  Initially I had hard coded the default X10 House Code selection.  While making some final changes to the code, I realized that the otherwise un-utilized User Port would be an easy means of setting the device's default House Code.
Although a rotary encoded hex switch can be attached to pins E0-E4 and VCC of the User Port, I've driven E0-E4's opposing pins D0-D4 high, which allows the House Code to be selected by directly jumping the pins on the User Port.  The unit must be reset by pressing the reset button, before the new House Code takes effect..

Push button X10 Unit control

The Evaluation Board also provides a single push switch for user control.  This push button as been programmed to switch on and off Unit "1" of the default House Code.  You can use that button to control an X10 device directly from the SX device.  This action is similar to the buttons on regular X10 wall modules.


Software

SX-X10 Version 1.0

Assembler


Reference Documentation

SX and Ubicom

SX-Tech

SX-List Fast Embedded Ethernet Design Challenge and Contest

Ubicom: Ethernet SX Stack Evaluation Kit

Ubicom, Inc. - Virtual Peripheral - Ethernet SX Stack Source Code

Ubicom Ethernet SX-Stack Demo

X10 Home Automation

X10