X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: bastien on November 08, 2010, 11:30:23 AM

Title: I need a c++ project for read the data of cm15 pro
Post by: bastien 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
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: Brandt 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.

Title: Re: I need a c++ project for read the data of cm15 pro
Post by: bastien 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!
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: pconroy on November 14, 2010, 06:28:00 PM
What operating system?
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: bastien on November 15, 2010, 09:21:16 AM
windows seven
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: bastien 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});


       }
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: pconroy 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.
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: HA Dave 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.
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: bastien 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.
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: ErikP 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 (http://dl.dropbox.com/u/3861173/AHSDKSampleForm.zip)
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: Knightrider 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!
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: HA Dave 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)
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: Tuicemen 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!
 >!
Title: Re: I need a c++ project for read the data of cm15 pro
Post by: Noam 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.