Author Topic: RFXCOM - how hard to implement  (Read 5641 times)

deepB

  • Regular Poster
  • **
  • Posts: 34
    • View Profile
RFXCOM - how hard to implement
« on: June 10, 2013, 09:38:51 pm »
Hello,

I am new to linuxmce, and I rather like the RFXCOM, unfortunately it is not implemented yet.

How hard would it be to implement it?
I have no experience in Ruby and limited experience in c++ (though some experience in C and Assembler some time ago)

Best regards
Daniel

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: RFXCOM - how hard to implement
« Reply #1 on: June 10, 2013, 10:43:05 pm »
If you know c++ and c you might want to look at the implementation of the CMxx devices, and create a new C++ device.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: RFXCOM - how hard to implement
« Reply #2 on: June 10, 2013, 11:05:57 pm »
You can also look at the Developing a DCE device page in the wiki, as well as the Developers guide.

Essentially, DCE devices of this nature are interfaces, they translate DCE messages to the native messages for a given bus, and vice versa. We have device data so you can keep track of things like addresses of devices on a bus, and assign them to the dummy light bulbs etc, and the interface device will receive the commands for those children, and can grab the associated device data, and do the right thing.

There are plenty of examples of interfaces in our source code tree, under src/, CM11A, and ZWave are two such devices interfacing with said busses.

And, if you can get on IRC, we can help navigate you through the code and get you to where you can write a DCE device to control this bus.

-Thom

deepB

  • Regular Poster
  • **
  • Posts: 34
    • View Profile
Re: RFXCOM - how hard to implement
« Reply #3 on: July 05, 2013, 06:14:32 pm »
there are also many open-source implementations for different HA-systems in different languages, this should probably make it a bit easier.

I know that this is very subjective, but what would be your estimate? a day? a week? more?

I am at the moment thinking of getting this device, but if I need 2 weeks to implement it I'll probably think again ;).

Best regards
Daniel

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: RFXCOM - how hard to implement
« Reply #4 on: July 05, 2013, 06:51:30 pm »
This is, as you say, a very loaded question.

I would read Developing a DCE device. Do you understand it? Then let's go from there.

-Thom