【正文】
針對Visual C++,通信快速,實時性好等特點,介紹基于Visual C++的一種串口通信原理及其實現(xiàn)方法,并針對控制系統(tǒng)眾多界面下串口通信的多線程等特點,結合實例闡述通信模塊化等一些技巧。┊┊┊┊┊┊┊┊┊┊┊┊┊裝┊┊┊┊┊訂┊┊┊┊┊線┊┊┊┊┊┊┊┊┊┊┊┊┊安徽工業(yè)大學 畢業(yè)設計(論文)說明書基于VC++的串口通信飛行仿真數(shù)據(jù)傳輸摘 要介紹了采用Visual C++,如何利用Win32的底層API函數(shù)開發(fā)串口通信類CserialPort,與Microsoft Commuinications Control 控件相比,采用該串口通信類對串口設備操作時,能夠在一定程度上避免對串口設備的“屏蔽”。增加對串口操作的透明度,提高串口傳輸數(shù)據(jù)的可靠性。應用電腦對外界數(shù)據(jù)進行直觀的圖形繪制。Windows環(huán)境下的最大特點之一就是設備無關性,它通過設備驅動程序將Windows應用程序同不同的外部設備隔離。這種體系被稱為Windows開放式服務體系。Windows操作系統(tǒng)是一個可搶占式的操作系統(tǒng),所以Windows應用程序常常有被別的程序搶占時間片的可能,因此Win32通信業(yè)不能用于實時通信。因此,不需要許多協(xié)議層的交換式、非實時的通信可以采用Win32通信API來實現(xiàn)。關鍵詞:VC++,嵌入式系統(tǒng),,MSComm,,Windows API, 串口通信, 模塊化,圖形,繪制.ABSTRACTThis paper introduces the Visual C + + of MSComm control to achieve the basic principles of serial munication, how to use the underlying Win32 serial munication API function to develop type CserialPort, and Microsoft Commuinications Control control pared to using the serial munication type of Serial equipment operation, to a certain extent, the serial device to avoid the shieldIncrease the transparency of the operation of serial port, serial port to improve the reliability of data transmission. For Visual C + + with powerful rapid munications, realtime characteristics of a good to introduce the Visual C + + based on a principle of serial munication and its implementation, and control system for the many serial munication interface, such as multithreading characteristics, with examples such as the modular munication skillsApplication of puter to the outside world intuitive graphical data mapping.Windows environment Shimoji serial programming and serial DOS programming environment are very different environment is one of the greatest characteristics of deviceindependent,it will be through the device driver with Windows application isolation of different external devices. Windows package of the Windows munication mechanism, which is called munication API, Windows programmers can use to program Windows Communication API, do not operate directly on the hardware. This system is called Windows openservice system.API in the Windows 9x/NT/2000 general support for 32bit operation, thus also known as the Win32 API. Windows operating system is a preemptive operating system, so Windows applications often have to be other procedures to seize the possibility of time slice, it can not be used for the munications industry Win32 realtime munication. The quality of realtime munication is closely related with the time. Therefore, the agreement does not require many of the switching layer, nonrealtime munication can be used to achieve Win32 Communications API. Win32 Serial Communications API to document the operation and unified operations, the use of a similar operation to achieve munication.目錄封面 1摘要與關鍵詞 2目錄 4緒論 5第一章 VC++1. VC++2. VC++3. VC++4. VC++5. VisualC++的工具欄86. 資源及資源編輯器9第二章 VC串口編程及MSComm控件介紹10 ++的基本介紹10第三章基于串口通信的Vc++編程 15 1編輯飛行仿真數(shù)據(jù)發(fā)送端 202編輯飛行仿真數(shù)據(jù)接收端 24 第四章 結果和結論 28致謝 31參考文獻 31緒論 在這個畢業(yè)設計中,是利用基于VC++串口通信實現(xiàn)飛行仿真數(shù)據(jù)的傳輸,而在