Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: Capturing X10 Commands  (Read 21845 times)

brandon

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Capturing X10 Commands
« on: February 14, 2006, 03:10:35 PM »

Looking at the C++ examples for receiving
X10 commands, it seems you have to use
MFC... and it takes a bunch of nasty looking
code to do this (the ahcview source if I
remember right). Is there another way to
capture X10 commands using C++ (ie... I send
A4 OFF with my remote, and my program is
notified), or maybe a way to do this without
MFC? If it comes down to it... I´┐Żll just
modify the ahcview program to send messages
to my program when it receives an event...
but I would much rather have the
functionality integrated into my own
application.

Thanks,
Brandon
Logged

brandon

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Capturing X10 Commands
« Reply #1 on: February 17, 2006, 01:32:35 AM »

As an update (if anybody is watching) ... I
seem to have everything working. I've made
a event sink class, however, whenever i try
to advise the connection point to the
_IActiveHomeEvents, it fails

Any ideas... anybody?

-brandon
Logged

brandon

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Capturing X10 Commands
« Reply #2 on: February 18, 2006, 07:14:40 PM »

Sorry to tripple post... but I got it
working. If anybody is trying to do
anything similar, let me know. I know have
a fully functioning C++ app that can send
and recv X10 commands.

-brandon
Logged

mikeq

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Capturing X10 Commands
« Reply #3 on: March 06, 2006, 11:12:09 PM »

I'm interested. Can you post the code somewhere in a zip file?
Logged

bvalosek

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Re: Capturing X10 Commands
« Reply #4 on: March 14, 2006, 06:02:37 PM »

Mikeq, I've sent you a PM
Logged

balabe

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Capturing X10 Commands
« Reply #5 on: April 11, 2006, 05:01:07 AM »

I'm interested.
can you send the files as a zip file to me
Thank you.

Balabe
Logged

bvalosek

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Re: Capturing X10 Commands
« Reply #6 on: April 19, 2006, 12:27:01 PM »

sorry to bump this (VERY) old post but this is the first time for me to login in a while, I've been really busy with school.

Since my last update I've made a little progress on some of the code, and I hope this summer when I have time to finalize it. It's written 100% in C++ and is VERY clean, fast, and does not crash.

Currently, it runs a small HTTP server that shows the status of my modules and allows me to run macros, set timers, and turn on/off my modules. The macro system I wrote in my program is similiar to the one in the ActiveHome software... for example you can set triggers... so when my program recvs the C1 ON command, it starts playing music in winamp and turns on the lights... very cool stuff.

I don't have time really right now to work on it and make a better version, but maybe in a month or so somebody with good solid NATIVE win32 C++ experience might want to help out and make a very nice, flexible, user-friendly app.

-brandon
Logged

davep

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Capturing X10 Commands
« Reply #7 on: May 08, 2006, 04:53:28 PM »

Brandon:

I just started to try to develop a C++ .NET app to drive the CM15 when I saw your posts.  Could you, please, send a copy of your source my way?  By the way, did you ever find any documentation on ActiveHomeScriptLib?  All what I have now is what Inteliisense gives me, which isn't much.

Thanks!

Dave
dave_platt@comcast.net
Logged

thermon

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Re: Capturing X10 Commands
« Reply #8 on: April 03, 2007, 12:01:40 PM »

I would like to see a working example of C++ code that receives X10 events.  Thanks in advance,


andre@gemhut.com
Logged

Lepsik

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Capturing X10 Commands
« Reply #9 on: May 12, 2007, 10:23:56 PM »

please send me source code too.  x10@lepsik.com

Thank you.
Logged
 

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