資源描述:
《基于usb接口的遠(yuǎn)程數(shù)據(jù)采集系統(tǒng)的研究與設(shè)計new》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、南京理工大學(xué)碩士學(xué)位論文基于USB接口的遠(yuǎn)程數(shù)據(jù)采集系統(tǒng)的研究與設(shè)計姓名:李煥英申請學(xué)位級別:碩士專業(yè):電路與系統(tǒng)指導(dǎo)教師:錢建平20070708硬士論文基于USB接口的遠(yuǎn)程數(shù)據(jù)采集系統(tǒng)的研究與設(shè)計摘要隨著Intemet在諸多領(lǐng)域的廣泛應(yīng)用,促使資源共享的程度不斷提高,網(wǎng)絡(luò)控制逐漸成為一種流行趨勢。本課題結(jié)合高速通用串行總線(USB)所具有的傳輸速度快、支持熱插拔、即插即用等優(yōu)點(diǎn),并利用現(xiàn)場可編程門陣列(開,GA)和高速~,D轉(zhuǎn)換芯片設(shè)計了一種高速的數(shù)據(jù)采集與遠(yuǎn)程監(jiān)控系統(tǒng)。首先,本文闡述了傳統(tǒng)的數(shù)據(jù)采集與數(shù)據(jù)傳輸方式的不足之處,確定采用通用串行總
2、線技術(shù)這一數(shù)據(jù)傳輸方式,并利用FPlGA可自由編程、處理速度快的優(yōu)點(diǎn),使用硬件描述語言Ⅵ{DL,采用自頂向下的設(shè)計方法,分模塊編寫USB接口芯片的固件程序及整個數(shù)據(jù)采集系統(tǒng)的時序控制程序,并將這些程序下載到FPGA,產(chǎn)生其硬件控制電路。其次,討論了利用設(shè)備驅(qū)動程序開發(fā)工具WinDriver輔助開發(fā)USB設(shè)備驅(qū)動程序。最后,在VisualC++環(huán)境下編寫應(yīng)用程序打開USB設(shè)備讀取、處理、顯示數(shù)據(jù),利用基于TCP/IP協(xié)議的Socket網(wǎng)絡(luò)編程原理,編寫客戶,服務(wù)器模式的人機(jī)界面,實現(xiàn)所采集數(shù)據(jù)的遠(yuǎn)程傳輸與監(jiān)控。本文完成的基于USB接口的遠(yuǎn)程數(shù)據(jù)采集
3、系統(tǒng),可以使用戶通過網(wǎng)絡(luò)在客戶計算機(jī)上對運(yùn)行于控制現(xiàn)場的服務(wù)器計算機(jī)上的控制系統(tǒng)發(fā)出命令,及時調(diào)整現(xiàn)場控制系統(tǒng)的運(yùn)行狀況,達(dá)到遠(yuǎn)程控制數(shù)據(jù)采集、提高資源使用率和削減應(yīng)用成本的目的。關(guān)鍵詞:通用串行總線,數(shù)據(jù)采集,固件程序,設(shè)備驅(qū)動程序,SocketABSTRACT碩士論文AlongwiththeappficafionofInteractwidelyinmanyfields.theextentofresource—sharingisincreasinglyboostingup.a(chǎn)ndthenetworkcontrolsystemhasbeenbei
4、ngapopulartendencygradually.ThisthesiscombinestheadvancedperformanceofUniversalSerialBuswithhigIl—speedtransmission,HotPlugIn,PlugandPlay,takesFieldProgrammableGateArrayandhigh—speedA/Dconversionchip,anddesigusakindofhigIl—speeddataacquisitionandremotemonitoringsystem.Firstly
5、,bywayofintroducingthedisadvantagesofconventionaldataacquisitionandwansmission,thispaperasceTtainsadoptingthedatawansmissionofUmversalSerialBustechnology,andmakesfulluseoftheadvantagesofFPGAwithfreeprogrammableandIligIl—speedprocess.TheFllTnwal-eofUSBinterfacechipandschedulin
6、gcontrolofwholedataacquisitionsystemaredesignedbyV'HSICHardwareDescriptionlanguage,thetop—downandmodularmethodsal'eusedduringthedesigu.Thehardwarecontrol-circuithasbeenrealizedbydownloadingallprogramstotheFPGA.Secondly,thedevicedriveriscreatedbyWinDriverwhichisakindofdriverde
7、velopmenttools,Atlast,the印pli訓(xùn)伽programwhichiscompiledwithVisualC抖isusedinordertoopenUSBdevice,readdata,disposedataanddisplaydata.Then。makingfullu辯oftheprincipleofSocketnetworkprogrammingwhichisbasedonTCP/IPprotocol,theinterfaceofClient/Servermodeliscreated,andthisinterfacecan
8、transmittheacquisitiondatatolongdistancesuccessfully.Inthispaper,are