APP下载

基于TCP协议的多媒体教室远程管理系统的设计

2016-10-14张波

价值工程 2016年5期

张波

摘要:本文主要讨论了多媒体教室远程管理系统的软件设计部分。下位机软件模块包括主程序、射频读卡子程序和网络通信子程序,网络通信子程序模块重点阐述了TCP协议驱动层的基本方法和TCP连接建立的三次握手过程;上位机软件模块主要是监控主程序,重点阐述消息包的处理过程;数据接口通过一卡通和教务的web服务接口完成数据同步。最后,总结了系统的设计意义。

Abstract: This article mainly discusses the software design of multimedia classroom remote management system. The software cludes lower machine contains main program, RFID subroutine and network communications subroutine. The network communications subroutine focuses on basic methods of TCP protocol driver layer and the process of TCP's three handshake; the main software of upper monitor is monitor master program. The article particularly explains processing procedure of the message packets; the data interfaces complete data synchronization through the web services provided by campus card system and educational administration system. Finally, the article concludes the system's design significance.

关键词:多媒体教室;上位机;下位机;TCP协议;Web服务

Key words: multimedia classroom;upper monitor;lower machine;TCP protocol;Web services

中图分类号:G434 文献标识码:A 文章编号:1006-4311(2016)05-0195-03

0 引言

随着多媒体教学的日益普及,各个学校的多媒体教室数量在迅速增长。在现有管理人员不变的情况下,如何更加高效的管理多媒体教学设备成为学校迫切需要解决的问题。本论文从技术的角度给出一种远程监控管理多媒体教室设备的方案。

系统硬件是基于Silabs公司的C8051F020单片机进行开发的,外围电路主要分为四个模块:设备控制模块、射频读卡模块、网络通信模块和时钟发生模块。射频读卡模块采用Philips公司的MFRC522射频读卡芯片,网络通信模块采用Silabs公司的CP2200以太网控制器。硬件接线图在这里不是重点,本文主要讨论系统上位机和下位机软件设计部分。

1 下位机软件设计

1.1 系统主程序设计

系统主程序如图1所示。C8051F020单片机(以下简称下位机)在没有通电的情况下,服务器(以下简称上位机)组态软件显示中控为离线状态。当下位机上电复位完成初始化以后,网络模块会以TCP协议自动连接上位机端口,上位机组态软件显示中控为在线状态。……

登录APP查看全文