LinuxMCE Forums

General => Developers => Topic started by: SBCC on September 06, 2012, 03:02:50 am

Title: Ruby Serial Help
Post by: SBCC on September 06, 2012, 03:02:50 am
Hello,

I'm trying to send information to GSD hardware attached to a COM port in raw byte format.

Like conn_.Send(0x44 0x00 0x01)
So the hardware receives just those bytes. I'm trying to keep this in Ruby but not sure if it will work.

Any thoughts?

Thanks
Title: Re: Ruby Serial Help
Post by: tschak909 on September 06, 2012, 03:10:43 am
conn_.Send("\x44\x00\x01")

:)

-Thom
Title: Re: Ruby Serial Help
Post by: SBCC on September 06, 2012, 03:30:46 am
Ugh..

I knew it was something simple. I hate asking questions as I learn best by looking up the code and trying to figure it out. But I was at wits end here.

Thanks you so much!!

Jim