基于USB通信設(shè)備類的虛擬串口的研究與設(shè)計(jì)
發(fā)布時(shí)間:2018-11-03 12:00
【摘要】:USB接口由于其支持熱插拔和即插即用等特點(diǎn)得到了廣泛應(yīng)用,越來(lái)越多的主機(jī)設(shè)備開始采用USB接口進(jìn)行數(shù)據(jù)的傳輸,而如何在不改變現(xiàn)有應(yīng)用軟件的情況下,將設(shè)備移植到USB接口成為研究的熱門。論文以USB通信設(shè)備類中的抽象控制模型為基礎(chǔ),研究了通信設(shè)備類的規(guī)范以及實(shí)現(xiàn)虛擬設(shè)備的原理,設(shè)計(jì)并實(shí)現(xiàn)了基于通信設(shè)備類的虛擬串口的驅(qū)動(dòng)程序。論文研究設(shè)計(jì)了基于通信設(shè)備類的虛擬串口驅(qū)動(dòng)程序的結(jié)構(gòu)和實(shí)現(xiàn)方案,程序主要由通信命令轉(zhuǎn)換和數(shù)據(jù)傳輸兩部分構(gòu)成,通信命令轉(zhuǎn)換符合通信設(shè)備類中抽象控制模型的規(guī)范,數(shù)據(jù)傳輸部分對(duì)現(xiàn)有虛擬串口的實(shí)現(xiàn)技術(shù)進(jìn)行了改進(jìn)。論文的主要工作如下:研究了USB協(xié)議的請(qǐng)求和傳輸模式,分析了通信設(shè)備類虛擬化設(shè)備的方案;給出了一種符合通信設(shè)備類中抽象控制模型的虛擬串口實(shí)現(xiàn)方案。該方案提供了一種基于通信設(shè)備類開發(fā)虛擬設(shè)備的模板,,對(duì)設(shè)計(jì)中的諸多問題進(jìn)行了詳細(xì)的說明,并改進(jìn)了虛擬串口驅(qū)動(dòng)程序中數(shù)據(jù)的處理流程;將改進(jìn)后的數(shù)據(jù)處理流程應(yīng)用于虛擬串口的實(shí)現(xiàn)中,生成了一種基于通信設(shè)備類的穩(wěn)定、高速的虛擬串口。最后,對(duì)虛擬串口的數(shù)據(jù)收發(fā)模塊進(jìn)行了測(cè)試,達(dá)到了預(yù)期目標(biāo)。
[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.
【學(xué)位授予單位】:武漢科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP334.7
本文編號(hào):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.
【學(xué)位授予單位】:武漢科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP334.7
【參考文獻(xiàn)】
相關(guān)期刊論文 前3條
1 吳明琪,馬潮;嵌入式系統(tǒng)的USB虛擬串口設(shè)計(jì)[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2005年04期
2 秦旭;范蟠果;李玲;;基于51F340的USB高速高精度實(shí)時(shí)數(shù)據(jù)采集[J];測(cè)控技術(shù);2010年10期
3 蔡國(guó)強(qiáng);黃興利;慕德俊;;USB總線測(cè)量平臺(tái)數(shù)據(jù)采集系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)技術(shù)與發(fā)展;2011年06期
本文編號(hào):2307723
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2307723.html
最近更新
教材專著