I need to make some messages through the serial port in Ruby. From my research, apparently, there are not many modern libraries for serial communication, and the latest material that I can find is from 2006. Are there any gems that I don't know about?
I ultimately need to keep in touch with a serial device connected to USB (I can understand that the port is not a problem) for feedback and fourth communication like this (somewhat pseudo-code Ruby-esque).
def serial_write_read if serial.read == "READY" serial.write "1" until serial.read == "OK" serial.write "5" end return when serial.read == "DONE" end end
ruby serial-port communication
mwilliams Oct 03 '08 at 16:58 2008-10-03 16:58
source share