queryplc and AllUnitsOff

Started by wl, August 31, 2010, 04:02:45 PM

Previous topic - Next topic

wl

Hi , Vb 2010 express on W7 32bit
Just downloaded/installed SDK
Tried to search forum but could not find the answer so if you could help out that could be great, sorry if you have be asked same question many times.

These work great on cm15
ActiveHomeObj.SendAction("sendplc", "b1 on")
ActiveHomeObj.SendAction("sendplc", "b1 off")
ActiveHome_RecvAction ()is returning the rf motion sensor ok

b1 is 2-way appliance module, returns status and turns off with allunitsoff using cm11a  but will not return status or turn off from allunitsoff with the sdk on cm15

Do not work so far on cm15
ActiveHomeObj.SendAction("queryplc", "b1 on")    '--> nothing is returned by  ActiveHome_RecvAction ...cut
ActiveHomeObj.SendAction("sendplc", "b AllUnitsOff")

Thanks




-Bill- (of wgjohns.com)

#1
Problem #1:
SendAction() generally expects a unit code, even when one isn't necessary (like with All Units Off).
So, the correct statement would be:
ActiveHomeObj.SendAction("sendplc", "b1 AllUnitsOff")

Problem #2:
There are actually many posts about the queryplc issue with the SDK version of ahscript.dll.
Generally, if you don't have ahscript.dll version 3.0.0.200 (or better?)  it's broken.

See the bottom of this post by dbemowsk for a link to download ahscript.dll version 3.0.0.200:
Re: Help whit SKD queryplc command
>!
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

wl

Hi Bill, thanks for taking the time to help.

I tried b1 AllUnitsOff and it still would not work.

I have ahscript.dll 3.0.0.183 from the sdk

So I will try .200

Thanks for the link








Brian H

Some how I lost my SDK files. Maybe on my old computer.
Anyway I just downloaded the SDK installer and the ahscript.dll was 3.0.0.234

You may want to try b1 bAllUnitsOff, as I believe the house code is part of an all units off command.
It is when my UR19A sends an "all" type command. The house code is part of the command.

wl

Hi Brian - I uninstalled ahscript .183  -  used link x10.com/sdk, completed the yellow box and just downloaded/installed again but ahscript was still .183

Perhaps you have a different link to the sdk pkg with .234

Thanks

Brian H

#5
Well maybe it wasn't the SDK installer. I don't know if it was put there by maybe AHP 3.271 or by the X10drivers_6432_239.exe put it there.
Bill indicated that the .200 or above should help.

I am not good when it comes to software. So I could be incorrect on where it came from.

In the link Bill gave you. It seems to indicate AHP installs the 3.0.0.234. Do you have AHP installed or only the SDK?

wl

#6
just the sdk with .183

ok I found the X10drivers_6432_239.exe 

Thanks Brian

Brian H

#7
I got the impression AHP installed it but near the top of the page is the drivers link.
Note an X10 pop up for the new Nstinct Remote will appear. I am getting good at clicking Close. Then No Thank you for the Name Your Own Price pop up.  B:(
http://www.x10.com/support/support_soft1.htm

wl

#8
Hey Brian - I think you are correct that ahp installs ahscript .239 because the driver install either did not contain it or did not replace the existing ahscript.dll of .183.   x10net.dll was updated from 183 to 239 and other drivers/inf files were installed for the wireless transmitter.

ahscript.dll seems to be included only in the sdk pkg and its currently .183


Brian H

I found two coppies of ahscript.dll on my computer,
Version 3.0.0.183 in C:\Program Files\AHSDK\bin\
Version 3.0.0.234 in C:\Program Files\Common\X10\Common\

wl


SMF spam blocked by CleanTalk