Hi All,
I try to run the same testing in Windows using FTDI libraries in D2XX mode.
The results are similar in synchronous mode, every 510 bytes, data is missing.
-
At 4B/s there is no data missing.
-
At 4000B/s start missing 2 bytes every 510 bytes
-
At 5MB/s is missing 2 bytes every 510 bytes
The attached file show the FT2232H signals during every transmission (at 4B/s, 4000B/s and 5MB/s) and the source code including the initialization and read loop.
It seems that was not a problem in PC (libusb, libftdi, d2xx).
Has anyone had the same experience?
Regards
Julio
From: Julio Cruz Barroso
Sent: Friday, April 10, 2015 9:38 AM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Two last bytes missed in callback function (stream data)
Hi all,
In my previous email, I switched (my mistake in the text) synchronous and asynchronous mode!. In fact, the system is working in asynchronous mode (10MB/s) and is missing two bytes in synchronous mode.
Julio
From: Julio Cruz Barroso
Sent: Thursday, April 09, 2015 10:21 PM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Two last bytes missed in callback function (stream data)
Dears,
Currently, I have a system running a FTDI in synchronous mode. It contain a FPGA sending data to the PC using a FT2232H (please, refer to diagram below).
Basically, the speed is controlled by a signal generator connected to an input of the FPGA. In this case, the throughput could be change easily for testing purposes.
The maximum transmission speed is around 10MB/s in this synchronous mode. However, in asynchronous mode there is data missing as explain below using three (3) different speeds (please, refer to next 3 figures):
1.
The figure 1 shows the data received in the callback function. In this case, the size is 4 bytes. No data is missing.
2.
The figure 2 shows a higher speed. In this case, the data size in the callback function is 40 bytes. No data is missing.
3.
The figure 3 shows another speed with a buffer size of 510 byte. After this speed, all the size buffer are the same (510 bytes) and there is always two bytes missing (in the end of the buffer).
I tried changing the number of transfers and size without success.
Any suggestions?
Thanks
Julio
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to
libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to
libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx