hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

No recovery from timeout #27

Open zeeed opened 13 years ago

zeeed commented 13 years ago

Once the serialport has hit a read-timeout it will never receive anything until the port is closed and re-opened. This is using serialport-1.0.4.

I've been trying to look into this but I'm no expert in Windows API programming. If it is of any help, here is a guy that managed to implement proper recovery in his native interface for java. The code seems to be well-commented.

Thanks for considering a fix.