内容发布更新时间 : 2024/11/16 18:06:01星期一 下面是文章的全部内容请认真阅读。
毕 业 设 计 [论 文]
题 目: 基于STM32的USB虚拟串口 学 院: 专 业: 姓 名: 学 号: 指导老师: 完成时间: 2014年5月19 日
河南城建学院本科毕业设计(论文) 中文摘要
摘 要
USB接口由于支持热插拔和标准统一等特点得到了广泛应用,越来越多的电脑设备开始采用USB接口进行数据的传输,而如何在不改变现有应用软件的情况下,将设备移植到USB接口成为人们研究的热门。
论文以USB通信设备类中的抽象控制模型为基础,研究了通信设备类及实现虚拟设备的原理,设计并实现了基于通信设备类的虚拟串口驱动程序。
论文研究设计了基于通信设备类的虚拟串口驱动程序的结构和实现方案,程序主要由通信命令转换和数据传输两部分构成,通信命令转换符合通信设备类中抽象控制模型的规范,数据传输部分对现有虚拟串口的实现技术进行了改进。论文的主要工作如下:
1) 研究了USB协议的请求和传输模式,分析了通信设备类实现虚拟设备的方案。 2) 给出了一种符合通信设备类中抽象控制模型的虚拟串口实现方案。该方案提供了
一种基于通信设备类开发虚拟设备的模板,对设计中的诸多问题进行了详细的说明,并改进了虚拟串口驱动程序中数据的处理流程。
3) 将改进后的数据处理流程应用于虚拟串口的实现中,生成了一种基于通信设备类
的稳定、高速的虚拟串口。最后,在串口测试软件下对虚拟串口驱动程序进行了测试,达到了预期目标。
关键字: 通讯设备类;枚举过程;虚拟串口程序;抽象控制模型
1
河南城建学院本科毕业设计(论文) 英文摘要
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 deaves to support USB interface without changing current application is becoming the hot field.
USB Communication Device Class and it's abstract control model are studied, principles of Communication Device Class and implementation techniques of abstract device are also analyzed 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 t
echniques of virtual serial port are analyzed.
2) The implementation scheme of virtual serial port driver that satisfy abstract control mo
de in CDC is graven. A new template for the development of virtual serial port based on CDC is brought out, and it describes some issues for the virtual serial port driver in details, at the same time, the processing steps for virtual serial port driver is improved. 3) The improved data processing steps for virtual serial port driver is applied in the impl
ementation of ritual serial port driver, and a stable, high-speed virtual serial port is made. At last, the test for the virtual serial port driveon ActiveSync is given, and the test result show that it's function is achieved the requirement goals. Keywords: Communication Device Class ;Enumeration Process;
Virtual Serial Port Driver ;Abstract Control Model
2