摘要
为了解决目前空调远程控制系统实时性不高、数据库读取效率低的问题,设计一种基于WebSocket与Redis技术并在Web端远程控制的系统。通过WebSocket技术实现终端和Web应用程序之间的长连接,提升两者之间信息传输过程的实时性,通过Redis技术提升数据库读取效率,以及Web应用程序和采集控制程序对存储数据操作的实时性。实际操作发现,该方法可提升控制系统整体实时性,提升现场空调设备的控制效率,使用户决策及时得到执行。
A new remote-control system is designed based on WebSocket and Redis because of the problems of real-time and low effi⁃ciency in operating database.Terminals and Web applications are connected persistently by WebSocket and database can be operated more efficiently by Redis.The information can be transmitted timely and the control efficiency can be improved by using technologies above.Users’commands can be executed timely and users can control devices far away from the control room in time.
作者
桂成杰
曾献辉
GUI Cheng-jie;ZENG Xian-hui(College of Information Science and Technology,Donghua University,Shanghai 201620,China)
出处
《软件导刊》
2020年第1期190-194,共5页
Software Guide
关键词
智能空调
远程控制
移动环境
实时控制
内存数据库
intelligent air-conditioner
remote controlling
mobile environment
real-time control
memory database