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
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
Maybe this is useful?
http://www.computerkraft.com/wiki/index.php?title=Ruby/serial_demo
Cheers
Robert
I actually used EventMachine and the Ruby-Serialport project you
reference to do it:
http://rubyforge.org/pipermail/eventmachine-talk/2008-January/001567.html
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.
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?
--
普通じゃないのが当然なら答える私は何ができる?
普通でも普通じゃなくて感じるまま感じることだけをするよ!
http://stormwyrm.blogspot.com