LinuxMCE Forums
May 26, 2013, 03:28:34 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Ruby Serial Help  (Read 474 times)
SBCC
Veteran
***
Posts: 118


View Profile
« on: September 06, 2012, 02: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
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: September 06, 2012, 02:10:43 am »

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

Smiley

-Thom
Logged
SBCC
Veteran
***
Posts: 118


View Profile
« Reply #2 on: September 06, 2012, 02: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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!