# Ruby-termios

**URL:** <https://www.ruby-forum.com/t/ruby-termios/83201>\
**Category:** Ruby\
**Created:** [January 24, 2007, 9:31am UTC](https://www.ruby-forum.com/t/ruby-termios/83201 "2007-01-24T09:31:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Stephens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@Robin\_Stephens](https://www.ruby-forum.com/u/Robin_Stephens)\
**Post date:** [January 24, 2007, 9:31am UTC](https://www.ruby-forum.com/t/ruby-termios/83201/1 "2007-01-24T09:31:48Z")

</div>

Hello all,

Trying to muck around with serial ports under Linux using ruby-termios.

There is some test scripts that came with ruby-termios,  
modem\_check0.rb is one example.

When I use the above script (modem connected and DEVICE pointing to  
the appropriate device file of course), I get the  
following error:

modem\_check0.rb:51:in `setattr': integer 2147483824 too big to convert to`int’ (RangeError)  
from modem\_check0.rb:51

Running Ubuntu Dapper Drake AMD64  
ruby 1.8.4 (2005-12-24) [x86\_64-linux]  
termios-ruby 0.9.4’
