串口通信與控制系統(tǒng)畢業(yè)論文+外文文獻(xiàn)翻譯.doc
約36頁DOC格式手機打開展開
串口通信與控制系統(tǒng)畢業(yè)論文+外文文獻(xiàn)翻譯,摘要在實驗室和工業(yè)應(yīng)用中,串口是常用的計算機與外部串行設(shè)備之間的數(shù)據(jù)傳輸通道,由于串行通信方便易行,所以應(yīng)用廣泛。本次設(shè)計的目標(biāo)在于:在vc++6.0的環(huán)境下,編寫使用c++語言,sql數(shù)據(jù)庫的串口通信程序,控制由單片微機控制的磨粉機,原要求能夠通過串口擴展同時監(jiān)控12臺機器,由于目的在于進行串口通信設(shè)計的嘗試,所以這...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/206114.gif)
內(nèi)容介紹
此文檔由會員 wanli1988go 發(fā)布
摘要
在實驗室和工業(yè)應(yīng)用中,串口是常用的計算機與外部串行設(shè)備之間的數(shù)據(jù)傳輸通道,由于串行通信方便易行,所以應(yīng)用廣泛。
本次設(shè)計的目標(biāo)在于:在VC++6.0的環(huán)境下,編寫使用C++語言,SQL數(shù)據(jù)庫的串口通信程序,控制由單片微機控制的磨粉機,原要求能夠通過串口擴展同時監(jiān)控12臺機器,由于目的在于進行串口通信設(shè)計的嘗試,所以這里只是針對一臺單片微機進行程序設(shè)計。
首先,操作人員能夠?qū)Υ趨?shù)進行配置。
其次,當(dāng)由單片微機控制的磨粉機的工作數(shù)據(jù)由串口傳到計算機時,操作人員能夠?qū)崟r監(jiān)控其工作狀態(tài),工作數(shù)據(jù),根據(jù)情況,并能更改其工作參數(shù)。
這樣,就要求設(shè)計適合本程序的串口通信協(xié)議。定時接受來自串口的數(shù)據(jù)幀,磨粉機的數(shù)據(jù)大致可以分為三類,此處在數(shù)據(jù)幀中使用AX,BX,CX來對數(shù)據(jù)分類。按照通信協(xié)議接受,發(fā)送數(shù)據(jù),并有一定的數(shù)據(jù)幀查錯能力。
另外,在安全性方面,需要一定的保障。這里采用了簡單保密功能,操作人員能夠輸入密碼,更改原有的密碼,這里的密碼功能實現(xiàn)比較簡單,有很大的改進空間,可以使用復(fù)雜的算法確保更高要求的保密性。
本次畢業(yè)設(shè)計,就使用VC++對串口進行編程,自己設(shè)計串口通信協(xié)議,進行了一些嘗試,雖然能夠基本完成設(shè)計要求,但是還有很多地方需要改進。
關(guān)鍵詞:
串行通信、VC++6.0、Win API、MFC32位程序
Abstract
In laboratory with industry apply, common is widely used as the passage of correspondence between computer and equipment because serial communication is an easy way of usage.
This project is aimed at designing a serial communication program under VC++6.0 environment, using C++ language and SQL database, to control the flour mill under control of SCM. It is planned to concurrently monitor 12 machines via serial expansion, because the destination is only an attempt at serial communication programming, this program is aimed at solo SCM.
First, operator can configure serial parameters.
Second, operator can monitor the status while the data is transferred from the flour mill to computer via serial port, and can rejigger the parameters.
So that it is necessary to design a serial communication protocol suitable for this program. Receiving data frame sent from serial port occasionally, as data from SCM can be divided into 3 species, sorted by AX, BX, CX in data frame. ending and receiving data according to communication protocol, and has the checkout function as well.
Furthermore, for security reasons, guarantee is needed. This program is entitled basic function for secrecy. Operators can enter the password and rejigger it. The function for secrecy is relatively simple, can be further improved, using more complex arithmetic to actualize more strict secrecy.
In all,this graduate designs, I tried using VC++ to programme serial communication with correspondence protocol of proceed designed by myself.Although my programme can basicly satisfy the request,but in fact,many places need to prove.
KEY WORDS:
SERIAL COMMUNICATION
VISUAL C++
Win API
Win32 Programme
在實驗室和工業(yè)應(yīng)用中,串口是常用的計算機與外部串行設(shè)備之間的數(shù)據(jù)傳輸通道,由于串行通信方便易行,所以應(yīng)用廣泛。
本次設(shè)計的目標(biāo)在于:在VC++6.0的環(huán)境下,編寫使用C++語言,SQL數(shù)據(jù)庫的串口通信程序,控制由單片微機控制的磨粉機,原要求能夠通過串口擴展同時監(jiān)控12臺機器,由于目的在于進行串口通信設(shè)計的嘗試,所以這里只是針對一臺單片微機進行程序設(shè)計。
首先,操作人員能夠?qū)Υ趨?shù)進行配置。
其次,當(dāng)由單片微機控制的磨粉機的工作數(shù)據(jù)由串口傳到計算機時,操作人員能夠?qū)崟r監(jiān)控其工作狀態(tài),工作數(shù)據(jù),根據(jù)情況,并能更改其工作參數(shù)。
這樣,就要求設(shè)計適合本程序的串口通信協(xié)議。定時接受來自串口的數(shù)據(jù)幀,磨粉機的數(shù)據(jù)大致可以分為三類,此處在數(shù)據(jù)幀中使用AX,BX,CX來對數(shù)據(jù)分類。按照通信協(xié)議接受,發(fā)送數(shù)據(jù),并有一定的數(shù)據(jù)幀查錯能力。
另外,在安全性方面,需要一定的保障。這里采用了簡單保密功能,操作人員能夠輸入密碼,更改原有的密碼,這里的密碼功能實現(xiàn)比較簡單,有很大的改進空間,可以使用復(fù)雜的算法確保更高要求的保密性。
本次畢業(yè)設(shè)計,就使用VC++對串口進行編程,自己設(shè)計串口通信協(xié)議,進行了一些嘗試,雖然能夠基本完成設(shè)計要求,但是還有很多地方需要改進。
關(guān)鍵詞:
串行通信、VC++6.0、Win API、MFC32位程序
Abstract
In laboratory with industry apply, common is widely used as the passage of correspondence between computer and equipment because serial communication is an easy way of usage.
This project is aimed at designing a serial communication program under VC++6.0 environment, using C++ language and SQL database, to control the flour mill under control of SCM. It is planned to concurrently monitor 12 machines via serial expansion, because the destination is only an attempt at serial communication programming, this program is aimed at solo SCM.
First, operator can configure serial parameters.
Second, operator can monitor the status while the data is transferred from the flour mill to computer via serial port, and can rejigger the parameters.
So that it is necessary to design a serial communication protocol suitable for this program. Receiving data frame sent from serial port occasionally, as data from SCM can be divided into 3 species, sorted by AX, BX, CX in data frame. ending and receiving data according to communication protocol, and has the checkout function as well.
Furthermore, for security reasons, guarantee is needed. This program is entitled basic function for secrecy. Operators can enter the password and rejigger it. The function for secrecy is relatively simple, can be further improved, using more complex arithmetic to actualize more strict secrecy.
In all,this graduate designs, I tried using VC++ to programme serial communication with correspondence protocol of proceed designed by myself.Although my programme can basicly satisfy the request,but in fact,many places need to prove.
KEY WORDS:
SERIAL COMMUNICATION
VISUAL C++
Win API
Win32 Programme
TA們正在看...
- 01.1四時田園雜興課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 01.2稚子弄冰課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 01.3村晚課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 02冬陽·童年·駱駝隊公開課優(yōu)秀教案教學(xué)設(shè)計(五年...doc
- 02冬陽·童年·駱駝隊最新教研教案教學(xué)設(shè)計(部編版...doc
- 02冬陽·童年·駱駝隊課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 03祖父的園子公開課優(yōu)秀教案教學(xué)設(shè)計(五年級下冊).doc
- 03祖父的園子最新教研教案教學(xué)設(shè)計(部編版五年級下...doc
- 03祖父的園子課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 04草船借箭公開課優(yōu)秀教案教學(xué)設(shè)計(五年級下冊).doc