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.3
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 ""
you can use RS232 instances with 'write', 'read' and 'query' commands
Project
rs232
Allows to script access to the serial port on Windows. Simple read and write commands
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Pull Requests
Development
Dependencies
Runtime
>= 0
Project Readme