X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: CPontoppidan on July 14, 2006, 05:15:40 AM

Title: ahcmd does nothing...
Post by: CPontoppidan on July 14, 2006, 05:15:40 AM
First of all, I've searched the forums, to see if anyone have had the same problem as me, and it doesn't seem like it.
The equipment I've got is: AM12G and CM11G, and these works somewhat smoothly from the graphic user interface, I'm able to start and stop whatever appliance I use, so that's very good. My trouble starts, when I try to use ahcmd from a commandline: first I make sure, that everything is as they're supposed to be, running ahcmd, and getting the message, informing in what manor ahcmd expects to get things. Then I just want to try to start an appliance, and I write: "ahcmd sendplc A5 On" (without quotes of course, and I've tried with little a and o), but nothing happens, the appliances doesn't start - anyone can help me? I've downloaded latest driver, and followed guides found on this forum, but it only seem to work from the graphic interface. Please, guide me in the right direction.

Thanks in advance.

C. Pontoppidan
Title: Re: ahcmd does nothing...
Post by: -Bill- (of wgjohns.com) on July 14, 2006, 10:47:26 PM
Which ahcmd.exe are you using?  If you search your system you will likely find several ahcmd.exe in different places.

Try the one in the Program Files\Common Files\X10\Common folder.

I suggest this because you appear to be using a German or Dutch version of the modules and software and I'm not sure if the ahcmd.exe in the AHSDK will work propperly with those.  Of course, I'm not sure it won't either.

I executed "ahcmd sendplc l2 on" and "ahcmd sendplc l2 off" (that's L2) on my system and they worked fine.  But, I am using the US version.

-Bill-
Title: Re: ahcmd does nothing...
Post by: Dan Lawrence on July 15, 2006, 05:37:39 PM
I copied achmd.exe from the C:\Program Files\Common Files\X10\common to a special folder on my D Drive.  Works prefectly. Of course, like -Bill- (of BXVC) I am running the the US version.
Title: Re: ahcmd does nothing...
Post by: billy on July 15, 2006, 07:20:36 PM
Is the ahcmd.exe supposed to run with a CM11G or AM12G?

I thought it is only for the CM15A,  I never tried it with my CM11A.
Title: Re: ahcmd does nothing...
Post by: Dan Lawrence on July 15, 2006, 08:01:08 PM
ahcmd comes only with Active Home Pro.  There was no ahcmd in Active Home.
Title: Re: ahcmd does nothing...
Post by: CPontoppidan on July 17, 2006, 03:13:55 AM
Dear all,
Thank you very much for your replies, I've tried everything that you suggest, but it still does not work :( Maybe it's because I'm using european version, I don't know...

/Claus
Title: Re: ahcmd does nothing...
Post by: Dan Lawrence on July 17, 2006, 11:31:03 AM
If you are in Europe, you are using the European version of the CM11A serial interface.  Active Home Pro is currently only for the US/Canada market. achmd comes only with the Active Home Pro software package. I also suspect the SDK package works only inUS/Canada as well.

Check the X10 Europe site www.x10europe.com/ for possible equipment/software you can use.
Title: Re: ahcmd does nothing...
Post by: CPontoppidan on July 18, 2006, 03:07:26 AM
Thank you for your reply, that makes sense... Any idea if and when the SDK will be made in a version, working in Europe? I've checked the European site, that's how I in the first place found out, that I was able to buy and use the products. As mentioned, it works fine from Active Home interface, and with the supplied remote control, it just doesn't work with ahcmd. exe.

I thank you for your time and replies :)

Best regards,

Claus
Title: Re: ahcmd does nothing...
Post by: Tuicemen on August 22, 2006, 06:23:52 PM
The SDK works ONLY with the CM15A and the CM19A!   If there is a European version of the CM19A ( I think there is)IT MAY WORK WITH IT! ??? ::)
Title: Re: ahcmd does nothing...
Post by: Dan Lawrence on August 22, 2006, 06:47:47 PM
 European version of the CM19A?   We may never know. The x10Europe.com is down at the moment.
Title: Re: ahcmd does nothing...
Post by: Dan Lawrence on August 26, 2006, 12:54:16 AM
As of right now, X10 Europe is up at http://www.x10europe.com/    Check it out.
Title: Re: ahcmd does nothing...
Post by: roger1818 on September 11, 2006, 11:18:27 AM
Thank you for your reply, that makes sense... Any idea if and when the SDK will be made in a version, working in Europe? I've checked the European site, that's how I in the first place found out, that I was able to buy and use the products. As mentioned, it works fine from Active Home interface, and with the supplied remote control, it just doesn't work with ahcmd. exe.

I have not heard of any plans to make a European version of the CM15.  Could someone at X10 answer this?

As for an SDK for the CM11, you can download the CM11 programming protocol (http://ftp.x10.com/pub/manuals/cm11a_protocol.txt).  This should give you enough information on how to program the CM11.  I hope this helps.
Title: Re: ahcmd does nothing...
Post by: Bodekaer on September 22, 2006, 05:29:20 AM
Hi,

I got the protocol you posted and it looks like it is fairly easy to implement.

Now is there anyone who has a C#, VB.NET, VB6 sample lying arround which they could share?
I would highly appreciate that, so I don't have to go through the process of creating it all from the bottom up.

A very simple sample would be enough.
Title: Re: ahcmd does nothing...
Post by: Charles Sullivan on September 22, 2006, 12:07:45 PM
Hi,

I got the protocol you posted and it looks like it is fairly easy to implement.

Now is there anyone who has a C#, VB.NET, VB6 sample lying arround which they could share?
I would highly appreciate that, so I don't have to go through the process of creating it all from the bottom up.

A very simple sample would be enough.

There is a command line utility included in the ActiveHome 1.42 package for the CM11 which may suffice for your needs.  It talks to the  X10 communications bridge which starts with ActiveHome and which can be configured to start by itself at bootup.   Look in the C:\Program Files\Home Control folder for x10comm.EXE and the x10comm.HLP file.  You may need to set up the COMM port with the ActiveHome GUI before the x10comm.EXE will work.

I haven't used this in years so can't give you any further advice on it.



Title: Re: ahcmd does nothing...
Post by: kefin on November 20, 2008, 08:10:34 AM
Is there allready a solution. Because i've got the same problem  >*<
Title: Re: ahcmd does nothing...
Post by: Tuicemen on November 20, 2008, 03:51:52 PM
Is there allready a solution. Because i've got the same problem  >*<
??? the same problem! what interface are you using? ahcmd was only designed to work with the CM15A an CM19A and these units must be plugged into the PC! No one has confirmed if it will work with the European versions of these although it should! :'
Title: Re: ahcmd does nothing...
Post by: kefin on November 22, 2008, 04:40:26 PM
I've got the CMA15 Pro but the executable does do anything. It is really strange and i can't find a solution.
Title: Re: ahcmd does nothing...
Post by: -Bill- (of wgjohns.com) on November 22, 2008, 05:55:41 PM
I've got the CMA15 Pro but the executable does do anything. It is really strange and i can't find a solution.

As you are from the Netherlands, and using a non-USA version of AHP, this might help.  I know it has helped people having problems with getting my BVC (http://www.wgjohns.com/bvc.htm) software to recognize a CM15 Pro that they bought from Marmitek.  Check out the file at: http://www.marmitek.com/nl/software/ahsdk_install.zip (http://www.marmitek.com/nl/software/ahsdk_install.zip)

Best I can offer so far.

Please let me know if that works for you or not!

Good luck!

 >!
Title: Re: ahcmd does nothing...
Post by: hkactive on November 24, 2008, 04:26:34 PM
Quote
I got the protocol you posted and it looks like it is fairly easy to implement.

Now is there anyone who has a C#, VB.NET, VB6 sample lying arround which they could share?
I would highly appreciate that, so I don't have to go through the process of creating it all from the bottom up.

A very simple sample would be enough.

Wrote an ActiveX Control in VB6 using the SDK for the CM11. Took me about 3 months to get it working smoothly. Not working continuously ::)

There's really nothing simple about it. But the bulk of your programming will be done in dealing with events in the Communication's Port On Comm event. Working with binary code from the SDK is kind of abstract and takes patience and persistence.

If you want to mess with it, here's a few hints.
1. set the InputMode to Binary: comInputModeBinary
2. The SThreshhold to 1
and
3. the Settings property to 4800,n,8,1

As far as the European CM11G, it works fine with the same code used for the CM11A. And they're right those commands (ahcmd.exe, etc.) are for the CM15A. The CM11X is a different ballgame.

That CM15 Pro found on Marmitek Pro's website is really a European Version of the CM11. Read their description!
Quote
CM15Pro Programmable Computer Interface incl. ActiveHomePro Software
   MORE INFO

    * This is the Pro-version of the CM11.



Hank

Title: Re: ahcmd does nothing...
Post by: Tuicemen on November 25, 2008, 10:40:03 AM
hkactive    so are your saying the AHP software available at the Marmitek Pro's website  will work with the CM11?
If so have you confirmed this? That would be good news for a lot of CM11 users!
The CM15A is the Pro Version of the CM11A but they can't use the same software and don't use the same protocol!
X10 USA hasn't added support to their version of AHP! :(
 
>!
Title: Re: ahcmd does nothing...
Post by: hkactive on November 25, 2008, 01:52:25 PM
Quote
hkactive    so are your saying the AHP software available at the Marmitek Pro's website  will work with the CM11?
If so have you confirmed this? That would be good news for a lot of CM11 users!

I would say so. But I haven't tried to confirm it. But in my experience in dealing with European Customers, their CM11E or CM11X works fine with our software originally developed, of course, in the US using 110V on the CM11A. Apparently, the voltage difference doesn't mandate a difference in the code going to the computer module. I'll see if I can't download it and see what happens. It's probably an older version of Active Home, though.

Hank
Title: Re: ahcmd does nothing...
Post by: Tuicemen on November 25, 2008, 02:09:53 PM
Do test run it!
I can confirm it is AHP software and the CM15A works with it! 
It comes preloaded with the Smartmacro plug-in And being free makes it easy for one to try! ;)
Maybe Marmitek just added code to make it Cm11 compatible as well as added European modules!
Title: Re: ahcmd does nothing...
Post by: hkactive on November 25, 2008, 02:24:56 PM
It does work, like you say, on the CM15A and it is the up to date version. Maybe it would work on the CM11A if a serial to USB converter were used. The program is waiting for the detection of a computer module on the USB port, not serial. I don't have a converter though. But I'm guessing it's waiting for an ID from the module. And the module is going to say that it is a CM11. And the program won't run on the CM11. Maybe not.

I don't think that CM15pro is a CM11. It's just a regular CM15 made for European voltage. Usually, they add an E for Europe. The website maintainer, apparently, thinks it's an updated CM11. Which, I guess wouldn't be all that inaccurate. But I think it's just a regular CM15. It has the antennae. It just has the adaptations for the different voltage requirements. That's probably why they call it a CM15.

Hank

Title: Re: ahcmd does nothing...
Post by: Tuicemen on November 26, 2008, 11:31:14 AM
Just some more info from jomo1234 who tested the CM11 with AHP european version!
Tuicemen thanks, tried that but AHP won't pick up the CM11 thro' the USB serial connection, keeps denying it, and can't see a way to program it to recognise the existing connection from the setup.
Title: Re: ahcmd does nothing...
Post by: hkactive on November 26, 2008, 05:34:35 PM
Quote
AHP won't pick up the CM11 thro' the USB serial connection, keeps denying it, and can't see a way to program it to recognise the existing connection from the setup.

Well, it was worth a shot. But it does confirm that that Marmitek CM15Pro is an actual CM15, not a CM11 using a USB connection. And it does cement for me that the hardware is essentially the same on European and American modules. The only changes being that of the necessary hardware to conform to the locale's voltage.

So essentially, anything programmed for the CM11A or the CM15A (A as in American) should work for their European counterparts.

And it is good to know that a CM15 is available for sale in Europe. Kudos to kefin for that information.  >!

Hank
Title: Re: ahcmd does nothing...
Post by: Brian H on November 26, 2008, 05:52:07 PM
I believe the European RF frequency is also different than what is used here. 433.92 MHz while US and Canada is 310 MHz.
Title: Re: ahcmd does nothing...
Post by: admeeral on February 23, 2009, 10:57:12 AM
One possibility:-

ahcmd.exe is an executive which sends commands to ahscript.dll which in turn interact with CM15A through x10net.dll.
So all of these should be available for ahcmd to work.

The cpp version of the source code for ahcmd is available in the samples of the SDK.   I actually borrowed this code and
embedded it into my home automation program.  It works for all the documented commands.

Early versions of x10net.dll had bugs in them but these have been resolved in later versions (build 236)