串口通信与控制系统毕业论文+外文文献翻译.doc

约36页DOC格式手机打开展开

串口通信与控制系统毕业论文+外文文献翻译,摘要在实验室和工业应用中,串口是常用的计算机与外部串行设备之间的数据传输通道,由于串行通信方便易行,所以应用广泛。本次设计的目标在于:在vc++6.0的环境下,编写使用c++语言,sql数据库的串口通信程序,控制由单片微机控制的磨粉机,原要求能够通过串口扩展同时监控12台机器,由于目的在于进行串口通信设计的尝试,所以这...
编号:25-206114大小:387.00K
分类: 论文>通信/电子论文

内容介绍

此文档由会员 wanli1988go 发布

摘要
在实验室和工业应用中,串口是常用的计算机与外部串行设备之间的数据传输通道,由于串行通信方便易行,所以应用广泛。

本次设计的目标在于:在VC++6.0的环境下,编写使用C++语言,SQL数据库的串口通信程序,控制由单片微机控制的磨粉机,原要求能够通过串口扩展同时监控12台机器,由于目的在于进行串口通信设计的尝试,所以这里只是针对一台单片微机进行程序设计。

首先,操作人员能够对串口参数进行配置。

其次,当由单片微机控制的磨粉机的工作数据由串口传到计算机时,操作人员能够实时监控其工作状态,工作数据,根据情况,并能更改其工作参数。

这样,就要求设计适合本程序的串口通信协议。定时接受来自串口的数据帧,磨粉机的数据大致可以分为三类,此处在数据帧中使用AX,BX,CX来对数据分类。按照通信协议接受,发送数据,并有一定的数据帧查错能力。

另外,在安全性方面,需要一定的保障。这里采用了简单保密功能,操作人员能够输入密码,更改原有的密码,这里的密码功能实现比较简单,有很大的改进空间,可以使用复杂的算法确保更高要求的保密性。

本次毕业设计,就使用VC++对串口进行编程,自己设计串口通信协议,进行了一些尝试,虽然能够基本完成设计要求,但是还有很多地方需要改进。

关键词:

串行通信、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