Author Topic: Ruby Serial Help  (Read 4789 times)

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Ruby Serial Help
« 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

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Ruby Serial Help
« Reply #1 on: September 06, 2012, 03:10:43 am »
conn_.Send("\x44\x00\x01")

:)

-Thom

SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Ruby Serial Help
« Reply #2 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