News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Generating a new device with DCEGen

Started by hari, January 04, 2008, 12:16:07 PM

Previous topic - Next topic

hari

Have been into DCE Generation last night (could not sleep ;) )

It's pretty straight forward:
1.) Add the device and the command it implements in the Webadmin (see e.g. CM11A for examples).
2.) go to trunk/src/sql2cpp from a compiled svn checkout and simply run "./sql2cpp"
(that will update the c++ database constants/objects to include your new devicetemplate id)
3.) go to trunk/src/DCEGen and run "./DCEGen -d <your devicetemplate id>"
4.) go to the newly created directory trunk/src/<your device template name> and do a "make bin"
5.) add a new device from your template
6.) start your device with "./<your device template name> -d <your device id>"
7.) watch the successful connection to the router and verify the "Registered: yes" for your device in the web interface

i will add a wiki page after extending some commands and events.

best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

ddamron

Sweet!

I think I'm gonna have to check that out..

here we go... CRASH course in C++...

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

hari

Quote from: ddamron on January 04, 2008, 12:31:39 PM
Sweet!

I think I'm gonna have to check that out..

here we go... CRASH course in C++...


if you have programming experience it should not be that hard (and i can safely assume that from your contributions). I'm still searching for some good reference as my last c++ coding was years ago.

best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

ddamron

lol..

No, I don't know how to code..

I just take what others give me and rehash it.  ::)

lol

I started the Ruby code for PLCBUS.  very basic, but I want to capitalize on what I've learned...

I'll start another thread with the framework..

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

tschak909

as i said before Dan.. just go into C++ knowing it's a brain damaged language, and you'll be just fine. ;)

-Thom