论文部分内容阅读
本设计是采用单片机作为从机(也称下位机),而PC机作为中央控制机的主从式系统。主机同时根据从从机接收的过程参数进行判断处理并给从机发送各种控制命令。利用单片机的串行口与PC机的串行口进行串行通信,PC机可对远程前端单片机进行控制,将单片机采集的数据传送到PC中去,由PC机对数据进行处理和显示,同时把反馈信号发到单片机,实现闭环控制和管理。本设计在VC++6.0的环境下,编写使用C++语言,SQL数据库的串口通信程序,控制由单片机控制的智能小车。
The design is the use of SCM as the slave (also known as the next crew), while the PC as the central control system master-slave system. At the same time, the host judges the process according to the process parameters received from the slave and sends various control commands to the slave. Using the serial port of the single chip microcomputer to carry on the serial communication with the serial port of the PC, the PC can control the remote front end single chip microcomputer and transmit the data collected by the single chip microcomputer to the PC, and the data is processed and displayed by the PC The feedback signal sent to the microcontroller, closed-loop control and management. The design in VC + +6.0 environment, the preparation of the use of C + + language, SQL database serial communication program, controlled by the microcontroller-controlled smart car.