Author Topic: Generating a new device with DCEGen  (Read 1219 times)

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Generating a new device with DCEGen
« on: January 04, 2008, 12:16:07 pm »
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 - http://www.agocontrol.com home automation

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Generating a new device with DCEGen
« 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++...

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: 2421
    • View Profile
    • ago control
Re: Generating a new device with DCEGen
« 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
rock your home - http://www.agocontrol.com home automation

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Generating a new device with DCEGen
« 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.  ::)

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

  • LinuxMCE God
  • ****
  • Posts: 5501
  • DOES work for LinuxMCE.
    • View Profile
Re: Generating a new device with DCEGen
« 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. ;)

-Thom