jputcu / serialport

Cross platform haskell library for using the serial port
Other
43 stars 36 forks source link

EOFs with Handle API #32

Open jprider63 opened 8 years ago

jprider63 commented 8 years ago

I was consistently getting EOFs while using the Handle API to communicate with an arduino over a serial port. Switching to the SerialPort API seems to have fixed these issues.

I'm not sure how to replicate this issue without our hardware, but the EOFs were thrown in hGetLine.

I have a feeling that this may be an upstream issue, but hopefully this report helps others in the future.

rudchenkos commented 5 years ago

I had this problem too. It looked like timeout on receiving a character (although I had timeout = -1 in SerialPortSettings). The error did not happen when the data was actively arriving through the port, only when waiting.

Switching to serial did help indeed. Thank you for the hint