Closed t2t-sonbui closed 5 years ago
Same here. Must have a problem in the current implementation...
It's working with Release 6.0.3, anything newer and syncRead returns 0. This is with a 1000ms timeout.
@t2t-sonbui @arabine @atholbro You are totally right. It is confirmed that a bug was introduced. This bug only affects FTDI devices using synchronous api or Streams. I will release a new version this weekend. In the meantime I recommend using the asynchronous api. Sorry guys for the inconvenience.
I'm just using 6.03 for now.
I'm also having an issue with larger reads failing. It seems to read about 230 bytes then cuts off. Still looking into it as it might be something on my end.
@t2t-sonbui @arabine @atholbro Hey guys. Could you give this branch ftdi_sync_fix a try? Thank you very much
I'm just using 6.03 for now.
I'm also having an issue with larger reads failing. It seems to read about 230 bytes then cuts off. Still looking into it as it might be something on my end. Maybe could you increment the buffer?
Ok I will try it.
Edit: it works, thank you!
Solved in 6.1.0 release
I run examplesync with FT232RL chip, but can not get anything received. syncRead(byte[] buffer, int timeout) with timeout value is 0 will make the ReadThread unable to stop.