Please login or register.

Login with username, password and session length

Author Topic: Newbie about SDK  (Read 7366 times)

fengtso

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 8
Newbie about SDK
« on: May 02, 2008, 05:18:30 PM »

I was wondering if all our program (I prefer C++) needs to communicate with AcitveHome Pro by writing and reading ahcmd?
Also, where I can know what kind of function or class I can use in ActiveHomeScriptLib??
Thanks a lot.

Logged

fengtso

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 8
Re: Newbie about SDK
« Reply #1 on: May 02, 2008, 06:07:26 PM »

Is there other detailed document or sample code I can follow?
Actually, I'm trying to do a simple implement.
I wanna set up a time-budget for a power module and count how much time the module is turned on
and evaluate how much time it remains.
Please give me some hints.
Logged

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: Newbie about SDK
« Reply #2 on: May 02, 2008, 11:36:34 PM »

I was wondering if all our program (I prefer C++) needs to communicate with AcitveHome Pro by writing and reading ahcmd?
Also, where I can know what kind of function or class I can use in ActiveHomeScriptLib??
Thanks a lot.



I haven't tried it in C++.  I have used the SDK with JScript / javascript and Visual BASIC 2005 Express.

Basically the AHP SDK includes a "COM object" or "ActiveX control" interface.

The usual methods of accessing "COM objects" or "ActiveX controls" should work to access the AHP object.

If you can link to the AHP "COM / ActiveX" object, you don't need "ahcmd" at all.

There are some C++ examples under "C:\Program Files\AHSDK\samples" assuming that is where your copy of the AHP SDK installed.

Let me know if that helps, or maybe between us we can translate my working javascript or VB code into C++!
Logged
-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!

fengtso

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 8
Re: Newbie about SDK
« Reply #3 on: May 03, 2008, 07:30:50 PM »

Thanks Bill, I will take a look first.
You're so kind. :)
Logged

fengtso

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 8
Re: Newbie about SDK
« Reply #4 on: May 03, 2008, 10:27:00 PM »

Hi Bill,

It looks like most of people develop their own application by using VB.
I think I can start to learn it.
After I took a look and compiled the vbapp sample code in AHSDK/samples, I found it showed up a execution window.

From my understanding, this application is for set up powerline a1 on and then waiting for any event from module?
Because there is no Readme for this sample code, could you describe a little bit of this application functionality. Thanks.

By the way, I don't know what and how many method functions I can use from object "ActiveHome".
Could you also provide some information for me? Thanks again.
One more question is that could I ask you question via email? :)
 
Logged

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: Newbie about SDK
« Reply #5 on: May 08, 2008, 12:46:57 AM »

Hi Bill,

It looks like most of people develop their own application by using VB.
I think I can start to learn it.
After I took a look and compiled the vbapp sample code in AHSDK/samples, I found it showed up a execution window.

From my understanding, this application is for set up powerline a1 on and then waiting for any event from module?
Because there is no Readme for this sample code, could you describe a little bit of this application functionality. Thanks.
Sounds like you have described it pretty well, actually.  ;)

By the way, I don't know what and how many method functions I can use from object "ActiveHome".
Could you also provide some information for me? Thanks again.
Basically there are two... SendAction and RecvAction.  Both are documented in the AHP SDK.  Look for the AHP SDK under Windows "Start menu" and open the help file, this is where most of the AHP SDK documentation is located.

One more question is that could I ask you question via email? :)
Yes.  Kind of a moot point since you already have!  ;)   ;D
Logged
-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!
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.