摘要
本文应用CAN总线通信技术对电工实验指导系统进行了研讨,确定该系统由教师机、通信接口卡和学生工位机等部分组成。采用主从式网络结构组网,分析并定义主、从机报文传输的帧格式。进行系统中工位机节点的硬件设计,通信网络和通信软件设计。给出了CAN通信协议的数据定义以及从机系统程序和通信查询程序的算法流程。经调试,能够实现指导、控制和监视学生实验的功能,实验结束后由主机系统自动绘出相应工位的评价。
This paper used the CAN-bus communication technology to do research for the guiding system of electrician experiment. The system was composed by the terminal of teacher, the communication interface card and the terminal of student. The CAN-bus network was organized in bus-network of principal and subordinate. Analysis and define the frame format of transfer messages between host and slavery. The hardware of slavery nodes, communication network and communication software were designed here. The data definition of CAN communication protocol were told here. Paper had the arithmetic flow of slavery system program and communication inquiry program. Depending on test, system could guide, control and watch the experiment of students. And the system could score every student automatically after the end of experiment.
基金
2004年淮安市科技计划项目的研究成果(项目代号:HAG04036)
成果己于2007年通过市级鉴定
关键词
CAN总线
单片机
通信协议
电工实验指导系统
CAN-bus MCU Communication protocol The guiding system of electrician experiment