›› 2014, Vol. 27 ›› Issue (3): 120-.

• 论文 • 上一篇    下一篇

USB虚拟串口通信实现

李智敏   

  1. (广东工业大学 信息工程学院,广东 广州 510006)
  • 出版日期:2014-03-15 发布日期:2014-03-11
  • 作者简介:李智敏(1989—),男,硕士研究生。研究方向:计算机通信及嵌入式系统。E-mail:li_zhimin163@163.com

Implementation of Virtual Serial Port Communication Based on USB

LI Zhimin   

  1. (School of Information Engineering,Guangdong University of Technology,Guangzhou 510006,China)
  • Online:2014-03-15 Published:2014-03-11

摘要:

以一种高度集成的USB 总线转接芯片CH341为核心,设计并实现了基于USB接口的PC机与下位机的虚拟串口通信。上位机在Windows 环境下利用 MSComm 控件实现与下位机通信,介绍了USB转虚拟串口的实现方法,并基于该虚拟串口编写了智能家居控制应用软件。实验测试表明,采用虚拟串口实现上位机与单片机通信,具有结构简单、速度快和易于软件开发等特点,能满足于各种串口通信场合。

关键词: +6.0, USB, 虚拟串口, CH341, 智能家居

Abstract:

The communication between computer and microcomputer based on USB interface through virtual serial port is designed and implemented by taking a highly integrated USB bus adapter chip CH341 as kernel.The data transmission between host computer and lower microcomputer is achieved through MSComm control in the Windows environment.The design and implementation of USB to virtual port are illustrated in detail,and the system control software based on the virtual port is developed.Experiments show that the virtual serial port communication can meet various requirements of serial communication with simple structure,high speed,and easy software development.

Key words: +6.0;USB;virtual port;CH341;smart home

中图分类号: 

  • TN929.5