R
Riad Riad
Hi,
Sort of new to Ruby and need help. I have been reading through all the
serial port related information that is available out there and have
come to a complete stop. I need to communicate with a device via my
laptop's (Dell) serial port. I can do that via hyper terminal, python
and perl scrips. I have built a GUI using the wxruby and I need to be
able to use ruby to talk to the device. I have tried every thing from
simple to complex thread synchronization to be able to write and read
from serial port. In each technique the read gets hung up and after
termitaing the program I get this error: Exit code: -1073741510. I could
not build any of the serial port library out there i.e. win32Serial and
etc. I had success compiling all the libs with the 'nmake /I' option but
it won't build the ".so" image and I don't get any compiler error with
the '/I' option. I am using ruby 1.8.6 and serialport.so image that I
downloaded. Any one has a functional snippet of a rs232 or serial port
communication code that I could use? I'd greatly appreciate the help!
Thanks!
Sort of new to Ruby and need help. I have been reading through all the
serial port related information that is available out there and have
come to a complete stop. I need to communicate with a device via my
laptop's (Dell) serial port. I can do that via hyper terminal, python
and perl scrips. I have built a GUI using the wxruby and I need to be
able to use ruby to talk to the device. I have tried every thing from
simple to complex thread synchronization to be able to write and read
from serial port. In each technique the read gets hung up and after
termitaing the program I get this error: Exit code: -1073741510. I could
not build any of the serial port library out there i.e. win32Serial and
etc. I had success compiling all the libs with the 'nmake /I' option but
it won't build the ".so" image and I don't get any compiler error with
the '/I' option. I am using ruby 1.8.6 and serialport.so image that I
downloaded. Any one has a functional snippet of a rs232 or serial port
communication code that I could use? I'd greatly appreciate the help!
Thanks!