摘要
为解决智能停车系统中停取车指令的跨平台接收问题以及保证指令接收的准确率,设计并实现了一种智能停车异步消息中间件(SCAMM)。SCAMM通过Java NIO事件驱动模型来实现异步通信,完成了对基于长度的自定义协议封装模块、基于双向通道、异步通信的消息管理模块和消息转发模块的实现,同时使用基于长度的协议解码器来处理消息的粘包、拆包问题。SCAMM具有良好的适配性,提供了基于Java的客户端以及基于C#的中控端。实验证明,对比其他开源消息中间件,SCAMM在智能停车系统的应用中能够明显提高指令接收的准确率,保证智能停车系统稳定高效的运行。
To improve the accuracy of receiving instructions,a smart car parking system asynchronous messaging middleware(SCAMM)was designed.SCAMM realized the asynchronous communication based on the Java NIO event-driven model.Moreover,it provides three additional modules:the length-based customized protocol encapsulated module,the message-management module based on two-way channel and asynchronous communication mechanism,and the message-forwarding module.Meanwhile,a length-based protocol decoder was applied to deal with problems of sticky and unpacking bags.SCAMM possesses good adaptability,which provides Java-based client as well as the C#-based central control terminal.Experiments show that compared with other open source message middleware,SCAMM can significantly improve the accuracy of receiving instructions and ensure the stable and efficient operation of the intelligent parking system.
作者
陈思媛
易国洪
金旺
CHEN Siyuan;YI Guohong;JIN Wang(School of Computer Science&Engineering,Wuhan Institute of Technology,Wuhan 430205,China;Hubei Key Laboratory of Intelligent Robot(Wuhan Institute of Technology),Wuhan 430205,China)
出处
《武汉工程大学学报》
CAS
2020年第2期224-230,共7页
Journal of Wuhan Institute of Technology
基金
武汉工程大学研究生教育创新基金项目(CX2018199)。
关键词
智能停车系统
消息中间件
粘包与拆包
自定义协议
异步通信
smart car parking system
message-oriented middleware
sticky bag and unpacking bag
customized protocol
asynchronous communication