Serial Communication with FTDI D2xx API on Windows

I was performing some testing on the FTDI throughput and I wrote this simple program that measures the throughput of FTDI chip if you connect its Rx pin to the Tx pin.

You are free to use it for any application with FTDI, it proved to be actually faster than using Windows VCP API but remember you need to install D2xx driver and make sure that your FTDI is actually using this driver and not the default ًWindows VCP driver

Note that the D2xx API uses a different method than conventional

    hSerial = CreateFile("COM9",GENERIC_READ | GENERIC_WRITE,
                              0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

, it uses a string name instead that you can get from
device manager >> Right click on COM >> Details >> From the scroll list choose Device instance id >> you will find it after VID and PID

Code on github 

 

 

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s