天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 科技論文 > 計(jì)算機(jī)論文 >

PC機(jī)對嵌入式設(shè)備控制軟件的研究與實(shí)現(xiàn)

發(fā)布時(shí)間:2018-09-11 14:15
【摘要】:隨著研究領(lǐng)域和工業(yè)領(lǐng)域?qū)η度胧皆O(shè)備的功能要求越來越多,這勢必引起嵌入式設(shè)備的升級工作越來越頻繁。但是這種升級工作要求對需升級的嵌入式設(shè)備本身有全面而深入的了解,否則升級工作就要冒很大的風(fēng)險(xiǎn)。但如果嵌入式設(shè)備配有數(shù)據(jù)和操作命令的通信接口,并將系統(tǒng)的功能擴(kuò)展在上位機(jī)上實(shí)現(xiàn),不失為一種簡單而有效的途徑;谶@種思路,本人設(shè)計(jì)了一種PC機(jī)對嵌入式設(shè)備實(shí)施控制的軟件系統(tǒng),并成功的對一臺(tái)嵌入式設(shè)備實(shí)施了功能擴(kuò)展。 本文闡述了一種基于PC機(jī)對嵌入式設(shè)備實(shí)施控制的解決方案。該設(shè)計(jì)的嵌入式設(shè)備為一臺(tái)基于FPGA的三相功率源,它通過USB接口與PC機(jī)進(jìn)行數(shù)據(jù)和操作命令的通信,設(shè)計(jì)重點(diǎn)在于PC機(jī)上的應(yīng)用程序開發(fā)。該方案以USB2.0傳輸協(xié)議為基礎(chǔ),制定了PC機(jī)與嵌入式功率源雙向的通信協(xié)議。然后利用驅(qū)動(dòng)程序提供的應(yīng)用程序接口函數(shù)在Visual C++6.0中開發(fā)上位機(jī)應(yīng)用程序。 文中首先介紹課題研究的背景及意義,然后說明了嵌入式三相功率源的功能用途,還包括其硬件設(shè)計(jì)和軟件設(shè)計(jì)部分,并詳細(xì)敘述了對于USB通信部分嵌入式設(shè)備所要完成的工作。接著設(shè)計(jì)了PC機(jī)與嵌入式設(shè)備雙方通信協(xié)議,如請求應(yīng)答數(shù)據(jù)格式和其他命令格式等。 其次,文中概述了USB設(shè)備驅(qū)動(dòng)的安裝過程及驅(qū)動(dòng)提供的應(yīng)用程序接口函數(shù)的功能及用法。本設(shè)計(jì)的重點(diǎn)在于利用Visual C++6.0設(shè)計(jì)與USB設(shè)備通信的應(yīng)用程序。該程序是一個(gè)基于對話框的MFC AppWizard(exe)的工程,它在打開設(shè)備后會(huì)通過USB接口向嵌入式設(shè)備請求數(shù)據(jù)并將參數(shù)顯示在程序主界面上。 在Visual C++6.0中完成的應(yīng)用程序包括接口操作模塊、操作設(shè)置模塊、幅值校準(zhǔn)模塊和示波器顯示模塊等幾個(gè)部分,每個(gè)部分都包含與USB設(shè)備的上傳下傳操作。其中接口操作模塊主要顯示USB的插入狀態(tài);操作設(shè)置模塊可以設(shè)置操作步驟,為設(shè)備制定執(zhí)行任務(wù)書;幅值校準(zhǔn)模塊可以補(bǔ)償設(shè)備由于溫漂造成的幅值波動(dòng);示波器模塊則是更直觀的反應(yīng)電壓及電流的關(guān)系。 最后,針對設(shè)計(jì)中高速數(shù)據(jù)通信所能達(dá)到的最大傳輸速度做了計(jì)算與分析,并敘述了本設(shè)計(jì)存在的不足和原因,并結(jié)合目前的開發(fā)成果對該應(yīng)用程序的改進(jìn)和USB高速數(shù)據(jù)通信的發(fā)展做出了展望。
[Abstract]:With more and more functional requirements of embedded devices in the field of research and industry, the upgrading of embedded devices is bound to become more and more frequent. However, this kind of upgrade work requires a comprehensive and in-depth understanding of the embedded device to be upgraded, otherwise, the upgrade work will take great risks. However, if the embedded device is equipped with a communication interface of data and operation commands, and the functions of the system are extended to the upper computer, it is a simple and effective way. Based on this idea, I design a kind of software system of PC machine to control embedded device, and successfully extend the function of an embedded device. This paper describes a solution of embedded device control based on PC machine. The embedded device is a three-phase power source based on FPGA. It communicates data and operation commands with PC machine through USB interface. The emphasis of the design is the development of application program on PC computer. Based on USB2.0 transmission protocol, a bi-directional communication protocol between PC and embedded power source is developed. Then the application interface function provided by the driver is used to develop the upper computer application program in Visual C 6.0. This paper first introduces the background and significance of the research, and then explains the function of the embedded three-phase power source, including its hardware design and software design. The work to be accomplished for embedded devices in USB communication part is described in detail. Then the communication protocol between PC and embedded device is designed, such as request response data format and other command format. Secondly, the installation process of USB device driver and the function and usage of the application program interface function provided by the driver are summarized. The emphasis of this design is to use Visual C 6.0 to design the application program of communication with USB equipment. The program is a dialog based MFC AppWizard (exe) project, it will open the device through the USB interface to the embedded device to request data and display the parameters on the main interface of the program. The application program in Visual C 6.0 includes interface operation module, operation setting module, amplitude calibration module and oscilloscope display module. Each part contains the upload and down transmission operation with USB equipment. The interface operation module mainly shows the insert state of the USB, the operation setting module can set up the operation steps, and make the execution task for the equipment, the amplitude calibration module can compensate the amplitude fluctuation caused by the temperature drift of the equipment. Oscilloscope module is more intuitive response voltage and current relationship. Finally, the maximum transmission speed of high-speed data communication in the design is calculated and analyzed, and the shortcomings and reasons of the design are described. The improvement of the application and the development of USB high-speed data communication are prospected.
【學(xué)位授予單位】:武漢理工大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP368.1

【參考文獻(xiàn)】

相關(guān)期刊論文 前10條

1 郭俊杰;;基于USB接口的多通道數(shù)據(jù)采集儀設(shè)計(jì)[J];兵工自動(dòng)化;2007年06期

2 錢豪;;USB設(shè)備枚舉過程及代碼設(shè)計(jì)[J];電腦知識(shí)與技術(shù);2010年19期

3 倪明輝;周軍;楊庚;;USB在FPGA控制的高速數(shù)據(jù)采集系統(tǒng)中的應(yīng)用[J];計(jì)算機(jī)測量與控制;2006年02期

4 胡偉;張新家;李美峰;張德剛;劉航;;基于FPGA的USB2.0協(xié)議分析儀設(shè)計(jì)[J];計(jì)算機(jī)測量與控制;2008年09期

5 時(shí)向衛(wèi);李崢;張少武;;Win2000/XP下USB設(shè)備驅(qū)動(dòng)程序研究與設(shè)計(jì)[J];計(jì)算機(jī)工程與設(shè)計(jì);2008年21期

6 李蘭;寧永海;;基于CH372的USB數(shù)據(jù)采集系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];微計(jì)算機(jī)信息;2007年34期

7 王平;蘇濤;方浩俊;;基于USB2.0的高速實(shí)時(shí)數(shù)據(jù)采集系統(tǒng)設(shè)計(jì)[J];現(xiàn)代電子技術(shù);2007年01期

8 劉吉;楊德偉;文懷濤;劉超;;基于USB通信的FPGA高速數(shù)據(jù)采集系統(tǒng)[J];現(xiàn)代電子技術(shù);2011年10期

9 葉秀羲;朱長青;;基于USB總線的虛擬數(shù)字存儲(chǔ)示波器的設(shè)計(jì)與實(shí)現(xiàn)[J];移動(dòng)電源與車輛;2009年03期

10 孟文;馬躍;王志成;;伺服系統(tǒng)中USB人機(jī)接口的設(shè)計(jì)與實(shí)現(xiàn)[J];組合機(jī)床與自動(dòng)化加工技術(shù);2012年01期



本文編號:2236929

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2236929.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶11f2a***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請E-mail郵箱bigeng88@qq.com