I need a c++ project for read the data of cm15 pro

Started by bastien, November 08, 2010, 11:30:23 AM

Previous topic - Next topic

bastien

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

Brandt

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


bastien

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!



bastien

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});


       }

pconroy

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.

HA Dave

#7
Quote from: bastien on November 08, 2010, 11:30:23 AM
hello, I'm a french

Quote from: bastien on November 14, 2010, 08:56:16 AM
........... 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.
Home Automation is an always changing technology

bastien

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.

ErikP

QuoteI 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

Knightrider

#10
....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!
Remote control is cool,
but automation rules!

HA Dave

#11
Quote from: 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.

Ditto! (hat)
Home Automation is an always changing technology

Tuicemen

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!
>!
Please Read Topic:
General Forum Etiquette
Before you post!

Noam

Quote from: 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!
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.

SMF spam blocked by CleanTalk