Click here to Skip to main content
15,889,849 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use an FTDI USB to Serial Adaptor, I am losing large blocks of data and I do not understand why.

The baud rate is 57600 and I download the data in blocks of up to 30k bytes. When the blocks are smaller, say 5k, everything is OK, but when the blocks are larger I have had to increase the ‘Timeout’ settings for the serial port.

I am concerned because the Timeout on one machine has to be set to 2 seconds which seems ridiculous and how long do I make it to be sure it will work on every machine?

The software is written in Visual C++ 2010 using the standard Serial functions like Open, CreateFile, ReadFile etc.

Anyone else got experience with these adaptors?
Any suggestions as to what might be causing this problem and any possible solutions?

PS Prolific adaptors work fine but the customers have trouble locating the drivers, FTDI's appear to built into Windows. :rolleyes:
Posted

1 solution

I do not know this specific usb-serial adapter but a lot of them aren't suitable for "real" serial work. I came across this when working on micro controllers and programming had to be done with a "real" serial port instead of an usb-serial port.

ON their website they give some info on driving a microcontroller and other logic. You could take a look there:
http://www.ftdichip.com/Products/ICs/FT232R.ht[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900