Please login or register.

Login with username, password and session length

Author Topic: Custom x10 software - c programming  (Read 3401 times)

mgolds02

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Custom x10 software - c programming
« on: August 31, 2008, 09:18:32 AM »

Hey all,

I'm new here and trying to make some custom software to control lights.  I was wondering if anyone had any resources on how to actually issue commands to the com port and thus the x10 device?  Ive read the protocol but I'd do much better with a simple example on how to build the command structure, specifically in c.

Thanks.
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: Custom x10 software - c programming
« Reply #1 on: August 31, 2008, 11:24:40 AM »

The Serial CM11A is no longer in production, it was replaced by the USB CM15A.  The CM15A works only with the Active Home Pro software and X10USA will not allow you to reverse engineer the software to see how it works and interfaces. The CM11A worked only with the Active Home software written for it.

The only X10 interface that could read other software was the CP290, which has been out of production for 10 years or more. 
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!

mgolds02

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Custom x10 software - c programming
« Reply #2 on: August 31, 2008, 11:50:42 AM »

Thanks for the reply.  Maybe I didnt ask the right question.  Let me clarify.  I have a firecracker x10 device and I'd like to write a custom program for that.  Now i've seen many other applications (http://www.linuxha.com/bottlerocket/), and heyu that already have these interfaces written but I'd like to do something custom from scratch.  We might be talking about the same thing (if so sorry!) but like i said, im a complete newbie when it comes to x10 hardware/software in general so if my original post was misleading i apologize.

Any help would be much appreciated.

Thanks again.
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: Custom x10 software - c programming
« Reply #3 on: August 31, 2008, 12:49:25 PM »

If heyu  allows reverse programing, you can use it to create what you want, if not, you are out of luck.
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Custom x10 software - c programming
« Reply #4 on: September 02, 2008, 08:02:48 AM »

Both Bottlerocket and Heyu are open source but are written for Linux.  The OP presumably just needs to know how to access the serial port status lines under Windows. (The CM17A "Firecracker" is operated by toggling a pattern in the DTR and RTS status lines.)

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.