LinuxMCE Forums
May 20, 2013, 03:42:10 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Generating a new device with DCEGen  (Read 1087 times)
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« on: January 04, 2008, 12:16:07 pm »

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

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
Logged

rock your home - http://www.agocontrol.com home automation
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« Reply #1 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++...

Logged

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
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #2 on: January 04, 2008, 12:36:49 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
Logged

rock your home - http://www.agocontrol.com home automation
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« Reply #3 on: January 04, 2008, 01:25:58 pm »

lol..

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

I just take what others give me and rehash it.  Roll Eyes

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
Logged

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
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #4 on: January 04, 2008, 02:02:09 pm »

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

-Thom
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!