Please login or register.

Login with username, password and session length

Author Topic: I need a c++ project for read the data of cm15 pro  (Read 15961 times)

bastien

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
I need a c++ project for read the data of cm15 pro
« on: November 08, 2010, 11:30:23 AM »

hello, I'm a french (so sorry for my english), I need your help because I would like a program for read the cm15 pro, and I do not arrive compiled the example of program AHSDK, That I found at this address : http://www.activehomepro.com/sdk/sdk-info.html
I look for a program to read the signals receipt by him cm15 pro.
I thank you for your help
Logged

Brandt

  • Hero Member
  • *****
  • Helpful Post Rating: 11
  • Posts: 728
  • Sorry miss, I was giving myself an oil-job.
Re: I need a c++ project for read the data of cm15 pro
« Reply #1 on: November 08, 2010, 12:00:38 PM »

You can probably type in French and we can use Google Translate if that would be easier for you.

Logged

bastien

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
Re: I need a c++ project for read the data of cm15 pro
« Reply #2 on: November 14, 2010, 08:56:16 AM »

Thank you

j'ai un projet à réaliser en C++, j'ai une installation X10, avec un CM15pro et des SM10, ayant pour rôle de récupérer un signal quand quelqu'un ouvre une porte ou une fenêtre, car les SM10 sont relier à des capteur magnétique coller aux portes et fenêtre. J'ai vu un exemple en vb.net, avec les fonctions sendaction et recvaction, mais je voudrais pouvoir lire les données des capteurs à l'aide d'un programme en C++, si quelqu'un à une idée, elle serait bienvenue.
Je vous remercie d'avance!

translation in english :
I have a project to realize it C ++, I have an installation X10, with a CM15pro and SM10, having for role to get back a signal when somebody opens a door or a window, because the SM10 is to connect(bind) in magnetic sensor to stick on doors and window. I saw an example vb.net, with the functions(offices) sendaction and recvaction, but I would like to be able to read the data of the sensors by means of a program C ++, if somebody in an idea, it would be welcome.
I thank you beforehand!
Logged

pconroy

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 294
Re: I need a c++ project for read the data of cm15 pro
« Reply #3 on: November 14, 2010, 06:28:00 PM »

What operating system?
Logged

bastien

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
Re: I need a c++ project for read the data of cm15 pro
« Reply #4 on: November 15, 2010, 09:21:16 AM »

windows seven
Logged

bastien

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
Re: I need a c++ project for read the data of cm15 pro
« Reply #5 on: November 25, 2010, 05:07:00 AM »

I would like to display signals received in my listbox, I tried this, but this does not work, anyone have a solution please


public: void RecvAction(System::Object^ bszAction, System::Object^ bszParm1, System::Object^ bszParm2, System::Object^ bszParm3, System::Object^ bszParm4, System::Object^ bszParm5, System::Object^ bszReserved)
       {

          listBox1->Items->AddRange(gcnew cli::array< System::Object^  >(7) {bszAction,bszParm1,bszParm2,bszParm3,bszParm4, bszParm5,bszReserved});


       }
Logged

pconroy

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 294
Re: I need a c++ project for read the data of cm15 pro
« Reply #6 on: December 02, 2010, 12:21:38 AM »

I'm not sure how many C++/CLI programmers are here.

I do all my C/C++/Java programming on UNIX boxes and can't help you at all with .NET stuff.
Logged

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: I need a c++ project for read the data of cm15 pro
« Reply #7 on: December 02, 2010, 11:34:38 AM »

hello, I'm a french

........... I have an installation X10, with a CM15pro and SM10,

Je pense non seulement votre langue française ... mais vous vivez en France. Peut-être un programmeur pourrait passer ici ... mais je pense que l'Amérique du Nord du PLA (et son SDK) est différente de celle en Europe. Le X10 SDK [Amérique du Nord] que vous avez téléchargé ... Je ne pense pas collaborera avec CM15 vendus en Europe.

I am thinking your not just French speaking... but you live in France. Maybe a programmer could jump in here... but I think the North American AHP (and its SDK) is different than that in Europe. The X10 SDK [North America] you downloaded... I don't think will work with CM15 sold in Europe.
« Last Edit: December 02, 2010, 11:37:21 AM by Dave_x10_L »
Logged
Home Automation is an always changing technology

bastien

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
Re: I need a c++ project for read the data of cm15 pro
« Reply #8 on: December 06, 2010, 11:52:44 AM »

thank you for your answer.
I do not is if the material is the such in europe, but I think these functions are compatible with my CM15.
I just want a simple example program in C + +, to send commands to my module X10, for example this way: SendAction ("sendplc", "P1 ON", NULL, NULL);  and also receive signals detect by my sensors, an example with a form with a send button and a listbox that will display the data received plenty for me.

Thank you in advance, that would be useful.
Logged

ErikP

  • Guest
Re: I need a c++ project for read the data of cm15 pro
« Reply #9 on: December 15, 2010, 02:57:49 PM »

Quote
I am thinking your not just French speaking... but you live in France. Maybe a programmer could jump in here... but I think the North American AHP (and its SDK) is different than that in Europe. The X10 SDK [North America] you downloaded... I don't think will work with CM15 sold in Europe.

The underlying framework of the European and US versions of ActiveHome is the same, so the SDK should work with either.

I made a quick C++ windows forms application in Visual Studio 2010 to do (I think) what you are asking.  It is not a full application, with error detection of any kind, but it should work as a sample you can use to get started with your project.  You can download the project files here http://dl.dropbox.com/u/3861173/AHSDKSampleForm.zip
Logged

Knightrider

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 62
  • Posts: 1748
  • I love my WM100!
    • This Automated House
Re: I need a c++ project for read the data of cm15 pro
« Reply #10 on: December 15, 2010, 06:38:06 PM »

....and ErikP, aka: Erik the Programmer gets a +1 from me.

These guys at x10 are going above and beyond IMHO.

Long live Erik the Programmer!
« Last Edit: December 15, 2010, 06:43:51 PM by Knightrider »
Logged
Remote control is cool,

but automation rules!

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: I need a c++ project for read the data of cm15 pro
« Reply #11 on: December 15, 2010, 06:40:08 PM »

....and ErikP, aka: Erik the Programmer gets a +1 from me.
These guys at x10 are going above and beyond IMHO.

Ditto! (hat)
« Last Edit: December 15, 2010, 07:18:23 PM by Dave_x10_L »
Logged
Home Automation is an always changing technology

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10523
  • I don't work for X10, I use it successfuly!
Re: I need a c++ project for read the data of cm15 pro
« Reply #12 on: December 15, 2010, 07:08:55 PM »

Nice to see the guys behind the scenes actualy jumping in here!
It makes us users finaly feel like we're not talking to a brick wall!
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: I need a c++ project for read the data of cm15 pro
« Reply #13 on: December 16, 2010, 10:33:05 PM »

....and ErikP, aka: Erik the Programmer gets a +1 from me.

These guys at x10 are going above and beyond IMHO.

Long live Erik the Programmer!
I have been working with Erik for over a month on a problem I've been having with my CM15A's USB connection resetting.
It seems we finally have it resolved. Erik was patient through the whole process, and has given me a lot of useful suggestions, and even some modified files to test with.
With Erik's help (as well as another developer who was working together with Erik on this), I can finally see the light at the end of the tunnel on this one.
Logged
 

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