larskanis/ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports

C

253

84 commits

updated Jul 7, 2025

See the code

README

Ruby/SerialPort

CI

Description

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.

There is an alternative gem with MRI, JRuby, and Rubinius support. See below.

Installation

Install the gem as normal: sudo gem install serialport

Testing

Use Ruby's version of miniterm: ruby test/miniterm.rb

API

See http://rubydoc.info/gems/serialport/SerialPort or run yard

Issues

See https://github.com/hparra/ruby-serialport/issues

Alternatives

The Hybrid Group's MRI, JRuby, & Rubinius compatible rubyserial gem may provide improved compatibilty in modern environments.

License

GPL

Authors

Contributors

hparra

26 commits

larskanis

21 commits

toholio

13 commits

tenderlove

7 commits

larskanis/ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports

C

253

84 commits

updated Jul 7, 2025

See the code

README

Ruby/SerialPort

CI

Description

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.

There is an alternative gem with MRI, JRuby, and Rubinius support. See below.

Installation

Install the gem as normal: sudo gem install serialport

Testing

Use Ruby's version of miniterm: ruby test/miniterm.rb

API

See http://rubydoc.info/gems/serialport/SerialPort or run yard

Issues

See https://github.com/hparra/ruby-serialport/issues

Alternatives

The Hybrid Group's MRI, JRuby, & Rubinius compatible rubyserial gem may provide improved compatibilty in modern environments.

License

GPL

Authors

Contributors

hparra

26 commits

larskanis

21 commits

toholio

13 commits

tenderlove

7 commits

Languages

C

91.3%

Ruby

8.7%