基于USB通信设备类的虚拟串口研究与设计-计算机系统结构专业论文.docx
文本预览下载声明
摘要
USB 接口由于支持热插拔和标准统一等特点得到了广泛应用,越来越多的电 脑设备开始采用 USB 接口进行数据的传输,而如何在不改变现有应用软件的情况 下,将设备移植到 USB 接口成为人们研究的热门。
论文以 USB 通信设备类中的抽象控制模型为基础,研究了通信设备类及实现 虚拟设备的原理,设计并实现了基于通信设备类的虚拟串口驱动程序。
论文研究设计了基于通信设备类的虚拟串口驱动程序的结构和实现方案,程序 主要由通信命令转换和数据传输两部分构成,通信命令转换符合通信设备类中抽 象控制模型的规范,数据传输部分对现有虚拟串口的实现技术进行了改进。论文 的主要工作如下:(1) 研究了 USB 协议的请求和传输模式,分析了通信设备类实 现虚拟设备的方案。(2) 给出了一种符合通信设备类中抽象控制模型的虚拟串口实 现方案。该方案提供了一种基于通信设备类开发虚拟设备的模板,对设计中的诸 多问题进行了详细的说明,并改进了虚拟串口驱动程序中数据的处理流程。(3) 将 改进后的数据处理流程应用于虚拟串口的实现中,生成了一种基于通信设备类的 稳定、高速的虚拟串口。最后,在 ActiveSync 软件下对虚拟串口驱动程序进行了 测试,达到了预期目标。
关键字: 通信设备类 虚拟串口驱动 抽象控制模型 Windows 驱动模型
Abstract
USB interface supports plug and play which has unified standards, so it has a wide range of applications. More and more computer device use USB interface to transfer data, so how to make many old deives to support USB interface without changing current application is becoming the hot field.
USB Communication Device Class and its abstract control model are studied,
principles of Communication Device Class and implementation techniques of abstract device are also anlyzed in the thesis. On the basis of this, design and implementation of virtual serial port driver based on Communication Device Class are given.
The overall structure and implementation scheme of virtual serial port driver based on CDC are designed. The virtual serial port driver is made up of two parts which are communication command transfer module and data transmission module. The communication command transfer module satisfies the specification of abstract control model, and the data transfer part improves the technique of current virtual serial port. The main works in the thesis are as follows: (1) The request and transfer model for USB protocol are studied, and the implementation techniques of virtual serial port are anlyzed. (2) The implementation scheme of virutal serial port driver that satisfy abstract control mode in CDC is gaven. A new template for the development of virtual serial port based on CDC is brought out, and it describe
显示全部