LinuxMCE Forums

General => Developers => Topic started by: death__hound on April 19, 2012, 04:23:01 PM

Title: rs-232 help
Post by: death__hound on April 19, 2012, 04:23:01 PM
im trying to setup linux mce to talk serial to a bunch of arduinos using simple txt .

eg have code for arduino

if recive "A" turn on relay 1
if recive "a" turn off relay 1

and so on and so forth

i was planing on using boards  with relays  to do lighting , security and retic.
is it possible ??
can anyone help me please its doing my nogen in
:o

is there allready a device that dose this that i can mod thew code for??
Title: Re: rs-232 help
Post by: sambuca on April 19, 2012, 08:14:48 PM
You can create a GSD device, which is a simple way to create new device templates in LMCE. GSDs will set up a serial connection for you and allow you to write code to communicate with your particular hardware.

Search for GSD in the wiki to get started.

br,
sambuca
Title: Re: rs-232 help
Post by: death__hound on April 20, 2012, 02:36:38 AM
awsome will have a look today as would be good to be able build my own hardware as arduinos are cheap and can do lots


if anyone is looking for cade for the arduino feel free to ask . it not finished but should still work will post wiki once it works
Title: Re: rs-232 help
Post by: death__hound on April 21, 2012, 11:42:00 AM
i'm still stuck
do i create a serial device in the interface section then add the actual device in the respective area?
i feel like such a nood  ???.
Title: Re: rs-232 help
Post by: MarcoZan on April 21, 2012, 12:03:19 PM
Did you have a look here ?
http://wiki.linuxmce.org/index.php/How_to_add_your_own_GSD_device