FTDI USB到串行适配器:时序问题 [英] FTDI USB to Serial Adaptor: Timing Problem

查看:285
本文介绍了FTDI USB到串行适配器:时序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用FTDI USB转串行适配器,我丢失了大量数据,并且我不明白为什么.

波特率为57600,我以最大30k字节的块的形式下载数据.当块较小时,例如5k,则一切正常,但是当块较大时,我不得不增加串行端口的超时"设置.

我很担心,因为一台计算机上的超时必须设置为2秒,这似乎很荒谬,我需要花多长时间才能确保它可以在每台计算机上使用?

该软件是使用Visual C ++ 2010使用标准串行功能(如Open,CreateFile,ReadFile等)编写的.

其他人也有使用这些适配器的经验吗?
关于可能导致此问题的原因的任何建议以及任何可能的解决方案?

PS Prolific适配器可以正常工作,但是客户在查找驱动程序时遇到了麻烦,FTDI似乎内置在Windows中. :rolleyes:

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:

推荐答案

我不知道这个特定的USB串行适配器,但是其中许多都不适合真正的"串行工作.在微控制器上工作时,我遇到了这个问题,必须使用真实"串行端口而不是USB串行端口来进行编程.

在他们的网站上,他们提供了有关驱动微控制器和其他逻辑的一些信息.您可以在这里看看:
http://www.ftdichip.com/Products/ICs/FT232R.ht [ ^ ]

祝你好运!
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!


这篇关于FTDI USB到串行适配器:时序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆