UsbSerial icon indicating copy to clipboard operation
UsbSerial copied to clipboard

FTDI FT232R receiving garbage on read buffer

Open D4no0 opened this issue 4 years ago • 5 comments

When connecting FT232R (tried cloned analogs and original ones), it receives garbage on read buffer:

2020-06-30 13:32:42.077 30128-30177/? I/UsbSerialDebugger: Raw data from Read buffer: 0x01 0x60 
2020-06-30 13:32:42.077 30128-30177/? I/UsbSerialDebugger: Number of bytes obtained from Read buffer: 2
2020-06-30 13:32:42.094 30128-30177/? I/UsbSerialDebugger: Data obtained from Read buffer: `

This loops continuously, the async callback never gets called.

Write buffer seems to work fine.

D4no0 avatar Jun 30 '20 10:06 D4no0

What version are you currently using?

felHR85 avatar Jun 30 '20 11:06 felHR85

The latest version, 6.1.0

D4no0 avatar Jun 30 '20 12:06 D4no0

I tried also to use the sync version. It just times out without receiving anything no matter how long the timeout is.

D4no0 avatar Jun 30 '20 12:06 D4no0

I have the same problem. continuously getting 0x01 0x60 this is what is showing in serial terminal of windows. ` it is showing in every baudrate

JoshinJoy avatar Jun 28 '22 12:06 JoshinJoy

I believe this is a feature of FTDI devices in that it sends out a 'modem status' (2 bytes) with every read access or every 40ms in the absence of data: https://hackage.haskell.org/package/ftdi-0.3.0.2/docs/System-FTDI.html#g:10

tr1p1ea avatar Oct 31 '23 11:10 tr1p1ea