Forum: Ruby experience with ruby on serialport

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Stefan E. (Guest)
on 2008-11-13 23:20
(Received via mailing list)
Hi,

i want to use http://rubyforge.org/projects/ruby-serialport/ to
communicate
with /dev/ttyS0 (com1). Has anyone experience with this library or
perhaps
an example code?


Cheers,
Stefan
Robert D. (Guest)
on 2008-11-15 23:59
(Received via mailing list)
Maybe this is useful?
http://www.computerkraft.com/wiki/index.php?title=...

Cheers
Robert
Dido S. (Guest)
on 2008-11-17 06:57
(Received via mailing list)
On Fri, Nov 14, 2008 at 5:17 AM, Stefan E. 
<removed_email_address@domain.invalid>
wrote:
> Hi,
>
> i want to use http://rubyforge.org/projects/ruby-serialport/ to communicate
> with /dev/ttyS0 (com1). Has anyone experience with this library or perhaps
> an example code?

I actually used EventMachine and the Ruby-Serialport project you
reference to do it:

http://rubyforge.org/pipermail/eventmachine-talk/2...

The code snippet in that link only works with Eventmachine 0.10.x. I
think the core changed in later versions. Using that code snippet, you
can do event-driven programming on a serial port the way one would
program a network client in EventMachine.
This topic is locked and can not be replied to.