LinuxMCE Forums
General => Users => Topic started by: aico on April 28, 2010, 06:38:06 am
-
Hello,
in my home i am using the Bticino MyHome Bussystem http://www.bticino.com with the OpenWebNet protocol
http://www.myopen-legrand.com/modules.php?name=Downloads&d_op=viewdownload&cid=35
I can use thins command on my LinuxMCE Core to control the Bussystem:
example: echo "*1*1*13##" | netcat 192.168.1.1 20000
Is it possible to create some scenarios like light on or off so that I can use LinuxMCE with my Bussystem?
I looked around but I did not find some information how to integrate this.
Please post some links or other information.
Thank you!
-
You need to create a device template, in order to do this. This tells the system what the device is, and what its capabilities are. You will also need to write a driver so the system can control it. Once you've done this, you can add the device to your device tree (either plug and play or manually) and attach devices on the device tree, so that LinuxMCE can control them.
Would you prefer to write the driver in C++, or Ruby?
-Thom
-
Hello,
I think Ruby will be right for me.
Where do I find some documentation for this project.
-Johannes
-
You should go to the wiki and look up these terms:
Generic Serial Device (GSD)
Device Template
DCE
Developers Guide
-Thom
-
Hi,
hmmm....I have some troubles to understand how the Generic Serial Device (GSD) with Ruby works.
Is there somewhere a simple (code) example that will push me in the right direction...
Sorry for this questions....
Thanks
-
look for Insteon PLM in the wiki. Which is a complete source code example.
You can also see it as part of the system, by looking at its device template in the web admin (I forget the device template number, but the device is called the Insteon PLM, you can view it in Advanced > Configuration > Device templates in the web admin.)
-Thom
-
Thank you Tom, that helped me...
but - how do I write this bash command "echo "*1*1*13##" | netcat 192.168.1.1 20000" in Ruby?
I also startet a new topic at http://www.myopen-bticino.it - but nobody did a Bticino MyHome and LinuxMCE integration.
So I hope that, with your help, we can but this two systems together.
Thank you....
-
the GSD provides a way to create a device that communicates over a TCP socket.
You will need to add the TCP Port device data to your device Template, and fill it with the default value of 20000 (For your port)
You should look at the Panasonic IP Camera template for an example of a GSD device that talks via a TCP socket, you can borrow its code for your template.
-Thom