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

Main Menu

Ruby Serial Help

Started by SBCC, September 06, 2012, 03:02:50 AM

Previous topic - Next topic

SBCC

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

tschak909

conn_.Send("\x44\x00\x01")

:)

-Thom

SBCC

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