X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: saasheim on March 14, 2010, 09:05:57 AM

Title: ahscript version 3.0.0.200
Post by: saasheim on March 14, 2010, 09:05:57 AM
Hi,
A lot of people on this forum are having problems with queryplc and ahscript.dll version 3.0.0.183. I have the same problems, and have contacted X10, but haven't got any answers... Does anyone have version 3.0.0.200 (or newer) to share with me...?

Steinar
Title: Re: ahscript version 3.0.0.200
Post by: dbemowsk on March 14, 2010, 02:37:56 PM
Hi,
A lot of people on this forum are having problems with queryplc and ahscript.dll version 3.0.0.183. I have the same problems, and have contacted X10, but haven't got any answers... Does anyone have version 3.0.0.200 (or newer) to share with me...?

Steinar

What language are you trying to program in?  I program in PHP and have not had any issues.  PHP however does not use the ahscript.dll command.  It uses the ahcmd.exe.  Maybe some of the info in this link (http://forums.x10.com/index.php?topic=15148.msg91882;topicseen#msg91882) will help.

Dan
Title: Re: ahscript version 3.0.0.200
Post by: tonyryu on March 14, 2010, 03:43:33 PM
I have the same problem, I try to use the activeX control in Windev App, but the queryplc return, with ahscript.dll version 3.0.0.183 return allways the value 0.

dbemowsk, it's the same result with php and ahcmd.exe, value 0...

where can we to download version ahscript.dll 3.0.0.200 ???????????
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 03:47:53 PM
Hi,
A lot of people on this forum are having problems with queryplc and ahscript.dll version 3.0.0.183. I have the same problems, and have contacted X10, but haven't got any answers... Does anyone have version 3.0.0.200 (or newer) to share with me...?

Steinar
The query issue is not related to the SDK. I think it is the CM15As as query use to work  here and now they don't! B:( ::) :'
 Althought you don't have the most up to date version.
If you download the latest version of AHP you will get the latest ahcript.dll added to the  \Program Files\Common Files\X10\Common folder.
 >!
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 03:52:31 PM
dbemowsk: you may wish to re think your use of the AHCMD.
Although it may work for the occasional sends if will fail and lockup with multiple sends. ;)
Title: Re: ahscript version 3.0.0.200
Post by: tonyryu on March 14, 2010, 04:00:26 PM
The query issue is not related to the SDK. I think it is the CM15As as query use to work  here and now they don't! B:( ::) :'
 Althought you don't have the most up to date version.
If you download the latest version of AHP you will get the latest ahcript.dll added to the  \Program Files\Common Files\X10\Common folder.
 >!

I have download the last version of AHP, but there is no file ahscript.dll who moves into the folder  \Program Files\Common Files\X10\Common

Where can we to download version ahscript.dll 3.0.0.200 ??
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 04:57:17 PM

I have download the last version of AHP, but there is no file ahscript.dll who moves into the folder  \Program Files\Common Files\X10\Common

Where can we to download version ahscript.dll 3.0.0.200 ??
The file is there!
Make sure you have windows set to see all files, even system files! ;)
 >!
Title: Re: ahscript version 3.0.0.200
Post by: dbemowsk on March 14, 2010, 05:04:51 PM
dbemowsk: you may wish to re think your use of the AHCMD.
Although it may work for the occasional sends if will fail and lockup with multiple sends. ;)
Do you have another suggested way of using it?

Here is the PHP function I use.

/*
execute an X-10 command
types : sendplc, queryplc, sendrf

For queryplc command, return[1] will be either -1 (unknown), 0 (off), or 1 (on)
when sending "on" to the $action parameter
*/
function x10cmd($type, $hcode, $ucode, $action, $time="") {
     $cmd = $type." ".$hcode.$ucode." ".$action." ".$time;
     exec(".\bin\ahcmd ".$cmd, $return[0], $return[1]);
     return $return;
} //End function x10cmd


It seems to work well for me.  The ahcmd.exe is the only thing I can use in PHP.  There is nothing defining how to use the .dll in PHP.  As far as I know you can use the .dll in internet explorer, but not in firefox.  Also, I have tried some of the examples from the SDK that run in IE, but they only work locally on the machine.  If I try to run the files from a remote machine through a web server running on the HA PC, they do not work because of the way they are scripted in the html page. 

Define occasional and multiple sends?

Thanks

Dan
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 05:37:25 PM
I'm sorry Dan,
I know nothing about PHP.
If the AHCMD is working well for you then stick with it, but I would suggest you explore a way of using the dlls.
Eventually you'll have sending issues and it is best you know what is most likely the cause.  ;)
Perhaps if you start a new thread dedicated to PHP someone will jump in with another means.
Bill and I have discussed the fact that someone should build a new AHCMD   that over comes the flakiness of this one.

 #:)
Title: Re: ahscript version 3.0.0.200
Post by: dbemowsk on March 14, 2010, 06:12:47 PM
I did some more thinking and I may be able to to use the DLL through a VBscript.  I didn't realize that the ahcmd was flaky, but I should have figured, this is an X10 program we're talking about rofl.

I will probably take your advice and start a new thread on this.

I am guessing that your comment about the ahcmd being flaky is because you have used it and had problems.

Dan
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 06:38:39 PM
I am guessing that your comment about the ahcmd being flaky is because you have used it and had problems.

Well not just from my experiences! ;)
But others who have used it extensively reported lock ups and failures!
Title: Re: ahscript version 3.0.0.200
Post by: tonyryu on March 14, 2010, 06:39:59 PM

I have download the last version of AHP, but there is no file ahscript.dll who moves into the folder  \Program Files\Common Files\X10\Common

Where can we to download version ahscript.dll 3.0.0.200 ??
The file is there!
Make sure you have windows set to see all files, even system files! ;)
 >!

This is already the case, the only files I have are : \Program Files\Common Files\X10\Common
- x10.exe
- x10net.dll
- X10nets.exe
- xsetup.dll

I get the file ahscript.dll by the SDK, but it is version 3.0.0.183! -_-!

could someone give me the file, please?
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 06:46:17 PM
tonyryu
Check your Hotmail address! ;)
 >!
Title: Re: ahscript version 3.0.0.200
Post by: tonyryu on March 14, 2010, 07:01:55 PM
Thank you very much Tuicemen, I have now, a states return, 1 for a module ON and -1 for a module OFF not 0, is it normal?
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 14, 2010, 07:27:45 PM
If I remember -1 is unknown although I never did get that, 1 was for ON and 0 for off
 >!
Title: Re: ahscript version 3.0.0.200
Post by: Dan Lawrence on March 14, 2010, 08:27:45 PM
Just for the record, I have AHP version 3.228 and I have ahscript version 3.0.0.200 sitting in the Common Files/x10/Common folder.  No Plug-ins of any kind.
Title: Re: ahscript version 3.0.0.200
Post by: tonyryu on March 15, 2010, 04:38:21 AM
If I remember -1 is unknown although I never did get that, 1 was for ON and 0 for off
 >!

ok, Therefore, it is not normal that I -1 if my module is off. How to have a good status return?
Title: Re: ahscript version 3.0.0.200
Post by: saasheim on March 15, 2010, 11:32:50 AM
tonyryu
Check your Hotmail address! ;)
 >!


Can you send it to me as well...? Since it's my thread... ;)
Title: Re: ahscript version 3.0.0.200
Post by: Tuicemen on March 15, 2010, 11:46:40 AM
Sorry saasheim ,
I had assumed you found it in the common folder. :-[
email sent!
 >!
Title: Re: ahscript version 3.0.0.200
Post by: djvains on November 05, 2010, 10:12:02 AM
please can you send me the script by email
 djvains@gmail.com

 B:(
Title: Re: ahscript version 3.0.0.200
Post by: Dan Lawrence on November 05, 2010, 08:31:55 PM
Just for the record, with 3.271 the ahscript version is 3.0.0.234.