Please login or register.

Login with username, password and session length

Author Topic: Controlling the ActiveHome hardware from an external program  (Read 11993 times)

stevenb

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Controlling the ActiveHome hardware from an external program
« 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?
Logged

stevenb

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Re: Controlling the ActiveHome hardware from an external program
« Reply #1 on: November 06, 2009, 04:10:29 PM »

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")

Logged

abreup

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Controlling the ActiveHome hardware from an external program
« Reply #2 on: November 23, 2009, 08:51:53 AM »

Hi,

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

joako

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 24
Re: Controlling the ActiveHome hardware from an external program
« Reply #3 on: November 26, 2009, 06:38:11 PM »

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
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: Controlling the ActiveHome hardware from an external program
« Reply #4 on: November 26, 2009, 09:12:00 PM »

That does not work with Windows.    B:(
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!

EL34

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 278
    • My X-10 projects
Re: Controlling the ActiveHome hardware from an external program
« Reply #5 on: December 13, 2009, 05:00:04 PM »

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.

Logged
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

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 25
Re: Controlling the ActiveHome hardware from an external program
« Reply #6 on: March 02, 2010, 10:54:12 PM »

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

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Controlling the ActiveHome hardware from an external program
« Reply #7 on: March 02, 2010, 11:39:41 PM »

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