Hi again, I managed to use the libftdi without the D2xx commands to communicate with my sensor. I have on issue, I do not understand. I am checking the buffer of my FT2232 chip. If it is empty, the usb_bulk_read in the ftdi_read_data function takes almost 12 ms. If the buffer has data, it only takes about 1 ms. I tried to change the ftdi->usb_read_timeout, but it had no effect at all. Any ideas? Thanks, Florian
On Tue, Mar 31, 2009 at 5:54 PM, Florian Beier <[email protected]> wrote: > Hi, > > I am trying to use a FT2232D to communicate via SPI with a sensor > device. Until now, I have been using the FTDI D2XX lib and I got it > working with that. > > Now I am trying to switch to the libftdi. > I started with the opensource ftd2xx lib > http://sourceforge.net/projects/ftd2xx, but the project seems to be > pretty dead and a lot of D2XX functions aren't implemented. With the > actual libftdi, I managed to implement most of the D2XX functions I > need. So here comes my problem: > > I use the FT_GetQueueStatus to check if new data is in the device > buffer. In the dead ftd2xx lib, that function uses ftdi_poll_read to > check for new data, but in the actual libftdi, there is no such > function anymore. > So how can I check the ftdi buffer? > > Thanks for any hints! > Florian > -- Dipl.-Inf. Florian Beier Dept. of Computer Science V ICM - Institute for Computational Medicine University of Heidelberg B6, 23-29 Building C 68131 Mannheim Germany Tel: +49-621-181-2738 Fax: +49-621-181-2591 Mail: [email protected] -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
