Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports. This class also contains low-level functions to check and set the current state of the signals on the line.
The native Windows version of this library supports the Microsoft Visual C++, Borland C++, and MinGW compilers.
There is an alternative gem with MRI, JRuby, and Rubinius support. See below.
This version of the Gem provides support for the SLIP protocol via the read_slip and write_slip functions and makes sure that software flow control is disabled by default and O_SYNC is set on the serial line so that serial adapters such as the iU880B work reliably and out of the box.
Install the gem as normal: sudo gem install serialport
Use Ruby's version of miniterm: ruby test/miniterm.rb
See http://rubydoc.info/gems/serialport/SerialPort or run yard
See https://github.com/hparra/ruby-serialport/issues
The Hybrid Group's MRI, JRuby, & Rubinius compatible rubyserial gem may provide improved compatibilty in modern environments.
GPL
- Guillaume Pierronnet [email protected]
- Alan Stern [email protected]
- Tobin Richard [email protected]
- Hector Parra [email protected]
- Ryan C. Payne [email protected]