1
Discussion - Hardware / FT232L Hangs after running for hours
« on: December 11, 2020, 06:19:55 PM »
I'm using the DTECH USB to RS485 RS422 Serial Port Converter which uses a FT232L chip.
I've connected it to a Raspeberry Pi and am sending/receiving messages at 1Hz, baud rate 921600, latency 2ms.
After 4 to 8 hours the chip seems to stop sending/receiving. When this occurs:
When I use FT_Read it always reads 0 bytes.
When I use FT_Write it give me error 4 (FT_IO_Error).
I have to reset the device to get it working again.
On a perhaps unrelated note, I have been timing how long it takes to send/receive a couple of bytes and while it is usually around 2ms, occasionaly (1 in 100 times), it goes up to around 12ms. Could that be related to scheduling of the USB bus somehow, I don't have anything else connected on there so I would have expected it to be quite consistent on the response time.
I've connected it to a Raspeberry Pi and am sending/receiving messages at 1Hz, baud rate 921600, latency 2ms.
After 4 to 8 hours the chip seems to stop sending/receiving. When this occurs:
When I use FT_Read it always reads 0 bytes.
When I use FT_Write it give me error 4 (FT_IO_Error).
I have to reset the device to get it working again.
On a perhaps unrelated note, I have been timing how long it takes to send/receive a couple of bytes and while it is usually around 2ms, occasionaly (1 in 100 times), it goes up to around 12ms. Could that be related to scheduling of the USB bus somehow, I don't have anything else connected on there so I would have expected it to be quite consistent on the response time.