Controlling the ActiveHome hardware from an external program

Started by stevenb, November 06, 2009, 02:23:13 AM

Previous topic - Next topic

stevenb

I am attempting to control the ActiveHome hardware from another program, but having trouble figuring out where to start.

I have tried to utilize the command prompt (ahcmd) to send commands outside of the ActiveHome GUI, but I keep reciving this error within the command prompt window:

ActiveScript Error: {sendplc | sendrawplc....| queryplc}

Hence, I can't really play with the command prompt. However, this is not my ultimate goal. Eventually, I want to send simple commands to the hardware from an external program (like MatLab, for instance.. still figuring out if there is a way to do this). I do not want to use any of the standard inputs to issue commands, as the commands that will be sent to the hardware will originate from another program (i.e., I am building a program that executes the appropriate ActiveHome command "Turn on light" when it receives an input command)

Any ideas?

stevenb

I should elaborate: I want to create a program that receives a string via a local UDP port. Depending on the contents of the string, the program determines a specific command, and sends it to ActiveHome (i.e., sends "Turn light a1 on")


abreup

Hi,

Can you specify the environment? OS, code language, PC/MAC, etc. After that I believe I can help you.

joako

What I have heard (but not verified) is the AHP SDK is not a real SDK. The description that I read it seems more like an API.

Here is some documentation on the communications protocol and suggestions how to talk with the  CM15A hardware directly from Windows: http://www.linuxha.com/USB/cm15a.html

Dan Lawrence

I don't SELL this stuff... BUT I sure do ENJOY using it!!!

EL34

I control all my X10 devices using my own VB.net programs.
I have other software I have written that makes decisions and turns on and off devices.

If you can write your own software, you can control X10.
I don't even run the AHP pro software, except to set up a new device and download that to the CM15A.

Are you trying to control from outside your local network, via the web??
If so, you would have to have some sort of listener software that listens to a specific port.

W10 - CM15A - AHP 3.301 - i Witness - MyHouse online - Smart Macros - SDK using Visual Basic express 2008
My X10 page-> http://www.el34world.com/Misc/home/X10_0.htm

BitsNBytes

Depending on what language you are using maybe we can help. Once you decide on a language and get the API up and running you can do almost anything.

I talk to my CM15a via my phone and control the X10 devices remotely - the key is to decide what compiler you are going to use for the CM15a connection.

Charles Sullivan

Quote from: stevenb on November 06, 2009, 02:23:13 AM
I am attempting to control the ActiveHome hardware from another program, but having trouble figuring out where to start.

I have tried to utilize the command prompt (ahcmd) to send commands outside of the ActiveHome GUI, but I keep reciving this error within the command prompt window:

ActiveScript Error: {sendplc | sendrawplc....| queryplc}

Hence, I can't really play with the command prompt. However, this is not my ultimate goal. Eventually, I want to send simple commands to the hardware from an external program (like MatLab, for instance.. still figuring out if there is a way to do this). I do not want to use any of the standard inputs to issue commands, as the commands that will be sent to the hardware will originate from another program (i.e., I am building a program that executes the appropriate ActiveHome command "Turn on light" when it receives an input command)

Any ideas?


The error message appear to indicate a syntax error in your usage of ahcmd.  What happens if you manually enter an ahcmd at the command prompt?  If any question, post an example here of an actual ahcmd line which produces the error.
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

SMF spam blocked by CleanTalk