RS232

Ruby interface to Windows Serial Port API

author      hugo benichi
email       hugo[dot]benichi[at]m4x[dot]org
copyright   2012 hugo benichi
version     0.1.4

Installation:

  To compile the gem, produce a .gem package and install it automatically, run
  from the root directory:

  $ rake gem_install

Usage:

  cf test/test_rs232.rb

  first, require the gem with
    require 'rs232'

  then create an RS232 instance, passing an address and optional conf params
    serial_port = RS232.new 'COM1'

  the default parameters are
    baud rate: 9600
    8 bits
    1 bit stop bit
    no parity bit
    control flow hardware (RTS/CTS)
    delimiters "\r\n"

  you can use RS232 instances with 'write', 'read' and 'query' commands