LinuxMCE Forums
May 18, 2013, 02:33:34 pm 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: Bticino SCS MyHome Bussystem  (Read 2117 times)
aico
Veteran
***
Posts: 74


View Profile
« on: April 28, 2010, 05: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!
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: April 28, 2010, 03:26:47 pm »

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
Logged
aico
Veteran
***
Posts: 74


View Profile
« Reply #2 on: April 28, 2010, 05:16:34 pm »

Hello,

I think Ruby will be right for me.

Where do I find some documentation for this project.

-Johannes
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: April 28, 2010, 05:56:38 pm »

You should go to the wiki and look up these terms:

Generic Serial Device (GSD)

Device Template

DCE

Developers Guide

-Thom
Logged
aico
Veteran
***
Posts: 74


View Profile
« Reply #4 on: April 29, 2010, 05:45:20 am »

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

DOES work for LinuxMCE.


View Profile
« Reply #5 on: April 29, 2010, 06:32:57 am »

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
Logged
aico
Veteran
***
Posts: 74


View Profile
« Reply #6 on: May 01, 2010, 07:04:55 am »

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

DOES work for LinuxMCE.


View Profile
« Reply #7 on: May 02, 2010, 05:07:30 am »

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
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!