通过USB仿真UART [英] Emulating UART over USB

查看:214
本文介绍了通过USB仿真UART的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道是否可以通过USB模拟UART(简单串行传输和接收)?这将如何实现?



我在Microchip网站上找到了这个链接,但不太可能。



http://www.microchip.com/forums/m522571-print.aspx



任何想法?谢谢。

解决方案

基本上你有两个可以通过USB模拟UART的选项:


  1. 使用现有产品。 FTDI公司提供了众所周知的和实体的UART-USB桥接芯片,例如FT230X。 Pro:您不需要任何有关USB的详细知识。缺点:如果用于批量生产,昂贵。额外的硬件需要额外的电源。


  2. 实现USB设备类通信设备类(CDC)。 CDC的规范可从USB.org获得,请参阅此处。 Pro:批量生产便宜(如果您的微控制器在机上有USB)。 Con:您需要有关USB的详细知识。



Does anybody know if it's possible to emulate UART (simple serial transmit and receive) over USB? How would this be accomplished?

I found this link on the Microchip website, but it's not very forthcoming.

http://www.microchip.com/forums/m522571-print.aspx

Any ideas? Thanks.

解决方案

Basically you have two options to emulate UART over USB:

  1. Use an existing product. The company FTDI provides well known and solid UART-USB bridge chips, e.g. FT230X. Pro: You don't need any detailed knowledge about USB. Cons: Expensive if used in mass production. Additional hardware, needs additional power.

  2. Implement the USB device class "Communication Device Class" (CDC). The specification of CDC is available from the USB.org, see here. Pro: Cheap in mass production (if your Microcontroller has USB on board). Con: You need detailed knowledge about USB.

这篇关于通过USB仿真UART的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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