Author Topic: raspberry pi as a controller  (Read 5733 times)

Crawtech

  • Veteran
  • ***
  • Posts: 68
    • View Profile
raspberry pi as a controller
« on: October 09, 2012, 03:48:40 am »
Hi Guys
I have a Raspberry pi version B connected to a I2c relay board http://www.ereshop.com/shop/i2c-bus-relay-board-high-current-12v-pcf8574-p-739.html and it it controlling  my Roller shutters and my Retic  and I would like to get linuxmce talking to the raspberry pi so linuxmce can control the  the relays and know the status as well like the relays on a gc100 but I am not sure were to start
there is so much that can be done with the raspberry pi
eg I all so   have it monitoring my solar system and battery's  with some INA219 senses boards from http://www.adafruit.com/blog/2012/06/22/new-product-ina219-high-side-dc-current-sensor-breakout-26v-%C2%B13-2a-max/
anyway any help would be appreciated :)
 

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: raspberry pi as a controller
« Reply #1 on: October 09, 2012, 04:22:29 am »
Well, we can help you develop your device in IRC, if you wish. We're more than happy to help.

If you have a protocol for talking to your interface, and it can be mapped into the existing commands that LinuxMCE can support (look in Web Admin > DCE > Commands, Events, and Device Data menu items), then a driver can be made.

The web admin provides all the pieces you need to make a device template. You then choose whether you want to write the driver in C++, Ruby, or bash. If you write your driver in ruby, then the web admin also acts as a place to put the little scripts of code for each command.

You can see the process of creating a new device template, and to set up the things you need to develop a device, here: http://wiki.linuxmce.org/index.php/Developing_a_DCE_Device … It concentrates on setting things up for C++ development, but the content is just as relevant for Ruby devices.

And you can read see the process for developing a Generic Serial Device (in Ruby), here: http://wiki.linuxmce.org/index.php/Generic_Serial_Device

Once a device has been made, then sqlCVS can be used to check in the changes to the database, and if the device is a C++ device, the resulting code can be submitted as a patch.

Basically, If you can send commands to the device manually over the same communication channel as would be used with LinuxMCE, then a device driver can be made.

-Thom

Crawtech

  • Veteran
  • ***
  • Posts: 68
    • View Profile
Re: raspberry pi as a controller
« Reply #2 on: October 09, 2012, 04:27:34 am »
I  will make a start on this  thanks Thom