X10 Community Forum

🔌General Home Automation => Automating Your House => Topic started by: Davearia on April 07, 2008, 05:03:52 PM

Title: .NET programming for CM11A
Post by: Davearia on April 07, 2008, 05:03:52 PM

Firstly I would like to say a quick hello to everyone at this forum. I have been interested in home automation for quite a few years now, but I suppose like everyone I have been on a tight budget where time and money are concerned.

I work as a software developer so I am lucky in that I have a good level of knowledge where coding is concerned. Until last December I have never applied this to home automation. I bought a Harmony bundle from simply automate for a mess around. It came with a CM11A controller, 2 light dimmers and a device controller. I installed the Harmony OS and had a play with it. I managed to use Harmony to assign addresses to my X10 devices and from there turned them on and off via Harmony the UI.

Although it was fun I really want to write my own code to a similar thing without the limitations of things such as Harmony. I managed to write a small application to dim lights etc which worked well. But I did need Harmony in as much as setting the X10 addresses in the first place.

What I would like to be able to do is write some code that sets X10 addresses from a friendly user interface if you know what I mean?

Any help with this matter would be most appreciated.

Thanks, Dave. ;D
Title: Re: .NET programming for CM11A
Post by: Tuicemen on April 07, 2008, 05:43:20 PM
There are several small programs available for the CM11A!
You must have the cm11a_protocol.txt (http://software.x10.com/pub/manuals/cm11a_protocol.txt) if not You were good to get your program to  work! ;)
All the info you need should be in it! ;)
Title: Re: .NET programming for CM11A
Post by: Davearia on April 12, 2008, 10:22:21 AM
Thanks for reply Tuicemen,

I have spent hours Googling and had no luck really.

All I am trying to find is a .NET code sample of how to programmatically assign house codes to X10 module.

I know that some X10 modules have 2 dials on them and yopu physically assign them using these dials. But mine don't, when I first got them I also bought Harmony and used it's UI to set assign the addresses. Now I want to acheive this through code, I don't want some 3rd part software to acheive assigning addresses.

Please help if you can?
Title: Re: .NET programming for CM11A
Post by: Dan Lawrence on April 12, 2008, 03:28:37 PM
All X10 modules except the Socket Rocket have code wheels, the Socket Rocket is set to a code by using a MC460 and a lamp with the bulb screwed into the Socket Rocket and the Socket Rocket screwed in to the lamp socket. You send the 460 to the intended house code and using the keys, send the same code 3 times. The lamp turns on.

Remove the Socket Rocket from the lamp and put it where you intend to use it. 
Title: Re: .NET programming for CM11A
Post by: Tuicemen on April 12, 2008, 06:20:35 PM
As Dan stated all but the Socket rockets (LM15A) (http://www.x10.com/products/x10_lm15a.htm)<Link   have code wheels!
Unless maybe you have after market modules!
Check the back (sides) of the modules for model numbers!
If similar to the socket rockets then setting them up is simple! (http://kbase.x10.com/wiki/Programing_Your_Socket_Rocket)<Link
If you wish to use your program to configure the address you send the address you wish from it instead of the remote and in the same fashion (every half-second until the Socket Rocket turns on!) ;)