基于USB通信设备类的虚拟串口的研究与设计
发布时间:2018-11-03 12:00
【摘要】:USB接口由于其支持热插拔和即插即用等特点得到了广泛应用,越来越多的主机设备开始采用USB接口进行数据的传输,而如何在不改变现有应用软件的情况下,将设备移植到USB接口成为研究的热门。论文以USB通信设备类中的抽象控制模型为基础,研究了通信设备类的规范以及实现虚拟设备的原理,设计并实现了基于通信设备类的虚拟串口的驱动程序。论文研究设计了基于通信设备类的虚拟串口驱动程序的结构和实现方案,程序主要由通信命令转换和数据传输两部分构成,通信命令转换符合通信设备类中抽象控制模型的规范,数据传输部分对现有虚拟串口的实现技术进行了改进。论文的主要工作如下:研究了USB协议的请求和传输模式,分析了通信设备类虚拟化设备的方案;给出了一种符合通信设备类中抽象控制模型的虚拟串口实现方案。该方案提供了一种基于通信设备类开发虚拟设备的模板,,对设计中的诸多问题进行了详细的说明,并改进了虚拟串口驱动程序中数据的处理流程;将改进后的数据处理流程应用于虚拟串口的实现中,生成了一种基于通信设备类的稳定、高速的虚拟串口。最后,对虚拟串口的数据收发模块进行了测试,达到了预期目标。
[Abstract]:USB interface has been widely used because of its support for hot plug and play and plug and play. More and more host devices begin to use USB interface for data transmission. However, how to transfer data without changing the existing application software, Porting devices to USB interfaces has become a hot topic. Based on the abstract control model of USB communication device class, this paper studies the specification of communication device class and the principle of realizing virtual device, and designs and implements the driver of virtual serial port based on communication device class. The structure and implementation scheme of the virtual serial port driver based on the communication device class are studied and designed in this paper. The program consists of two parts: communication command conversion and data transmission. The communication command conversion accords with the standard of abstract control model in the class of communication equipment. In the part of data transmission, the implementation technology of the existing virtual serial port is improved. The main work of this paper is as follows: the request and transmission mode of USB protocol is studied, the scheme of communication device class virtualization device is analyzed, and a virtual serial port implementation scheme which accords with the abstract control model in communication device class is presented. This scheme provides a template for developing virtual devices based on communication devices, explains in detail many problems in the design, and improves the processing flow of data in the virtual serial driver. The improved data processing flow is applied to the implementation of the virtual serial port, and a stable and high-speed virtual serial port based on the class of communication equipment is generated. Finally, the data transceiver module of virtual serial port is tested and the expected target is achieved.
【学位授予单位】:武汉科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP334.7
本文编号:2307723
[Abstract]:USB interface has been widely used because of its support for hot plug and play and plug and play. More and more host devices begin to use USB interface for data transmission. However, how to transfer data without changing the existing application software, Porting devices to USB interfaces has become a hot topic. Based on the abstract control model of USB communication device class, this paper studies the specification of communication device class and the principle of realizing virtual device, and designs and implements the driver of virtual serial port based on communication device class. The structure and implementation scheme of the virtual serial port driver based on the communication device class are studied and designed in this paper. The program consists of two parts: communication command conversion and data transmission. The communication command conversion accords with the standard of abstract control model in the class of communication equipment. In the part of data transmission, the implementation technology of the existing virtual serial port is improved. The main work of this paper is as follows: the request and transmission mode of USB protocol is studied, the scheme of communication device class virtualization device is analyzed, and a virtual serial port implementation scheme which accords with the abstract control model in communication device class is presented. This scheme provides a template for developing virtual devices based on communication devices, explains in detail many problems in the design, and improves the processing flow of data in the virtual serial driver. The improved data processing flow is applied to the implementation of the virtual serial port, and a stable and high-speed virtual serial port based on the class of communication equipment is generated. Finally, the data transceiver module of virtual serial port is tested and the expected target is achieved.
【学位授予单位】:武汉科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP334.7
【参考文献】
相关期刊论文 前3条
1 吴明琪,马潮;嵌入式系统的USB虚拟串口设计[J];单片机与嵌入式系统应用;2005年04期
2 秦旭;范蟠果;李玲;;基于51F340的USB高速高精度实时数据采集[J];测控技术;2010年10期
3 蔡国强;黄兴利;慕德俊;;USB总线测量平台数据采集系统设计与实现[J];计算机技术与发展;2011年06期
本文编号:2307723
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2307723.html