FTDI Community

General Category => Discussion - Drivers => Topic started by: rpinoob on December 20, 2019, 01:12:50 PM

Title: ftd2xx on raspberry pi not sending and acting like it continuously receives.
Post by: rpinoob on December 20, 2019, 01:12:50 PM

Hello,

I installed the ftdxx drivers on a rpi. When i have a device plugged in it acts as if it is continuously receiving data. I tried V7 and two v6 drivers. They all act the same. For example when i run the "simple" example with a loopback connection I get this result:

.....
0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F
Error: read-buffer does not match write-buffer.

Hope someone has a helpfull tip
Title: Re: ftd2xx on raspberry pi not sending and acting like it continuously receives.
Post by: FTDI Community on December 23, 2019, 01:25:55 PM
Hello,

Which FTDI chip part number do you have and what hardware circuit are you using?

You could try connecting it to a Windows PC via either VCP (e.g. a terminal) or D2xx to see if the hardware itself is sending back characters.

Loopback examples are suited to UART applications but if your chip is a parallel one (such as FT245R) then it needs to be connected to a suitable device (such as an FPGA or MCU) on the parallel side which will read the data and write it back in as the parallel interface does not directly allow loopback.

Also check for the RxD line (if UART) or the write strobe (if parallel) being held in the active state by the external circuit as this can result in data being sent to the PC.

Best Regards,
FTDI Community

Title: Re: ftd2xx on raspberry pi not sending and acting like it continuously receives.
Post by: rpinoob on January 27, 2020, 09:49:01 PM


The problem was caused by "FT_SetBitMode(ftHandle, 0xFF, 0x01); " I accidentally copied it from an example. This setting persists even if you close the device and open it in another progam.