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.
Dbec2ee6a50bb663f19825f005811450?d=identicon&s=25 Stefan Eder (Guest)
on 2008-11-13 22: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
703fbc991fd63e0e1db54dca9ea31b53?d=identicon&s=25 Robert Dober (Guest)
on 2008-11-15 22:59
(Received via mailing list)
Maybe this is useful?
http://www.computerkraft.com/wiki/index.php?title=...

Cheers
Robert
2d3ec3a83b4f8784d6853564fa0d2e77?d=identicon&s=25 Dido Sevilla (Guest)
on 2008-11-17 05:57
(Received via mailing list)
On Fri, Nov 14, 2008 at 5:17 AM, Stefan Eder <stefan.eder@flugfeld53.at>
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.