摘要
给出了基于零消息队列(Zero Message Queue,ZMQ)消息通信的射频识别系统中读写器配置模块的设计原理,介绍了配置模块设计用到的ZMQ通信模式,即REQ/REP(请求/应答)模式和PUB/SUB(发布/订阅)模式。分析了配置模块在读写器中的作用,配置获取消息和设置消息可以使用ZMQ的REQ/REP模式,配置变更消息可以使用PUB/SUB模式,同其他消息通信相比,ZMQ模式显著降低了配置模块设计复杂度。最后分别给出了配置模块同客户端和阅读器内部模块之间的消息交互,完成了配置模块设计。
In the paper,the design principle of reader configuration module in the radio frequency identification system based on ZMQ(Zero Message Queue)Message communication is proposed,and the ZMQ communication mode used in the design of the configuration module is introduced,which is named the REQ/REP(request/reply)mode and the PUB/SUB(publish/subscribe)mode.The role of the configuration module in the reader is analyzed.The configuration acquisition message and setting message can use the REQ/REP mode of ZMQ,and the configuration change message can use the PUB/SUB mode.Compared with other message communication modes,the ZMQ mode significantly reduces the configuration module design complexity.Finally,the message interaction between the configuration module and the client and reader internal modules is given respectively,and the design of the configuration module is completed.
作者
刘朝阳
吴中平
Liu Chaoyang;Wu Zhongping(Tianjin Kechang Huitong Information Technology Co.,Ltd.,Tianjin 300399,China)
出处
《单片机与嵌入式系统应用》
2018年第12期8-10,共3页
Microcontrollers & Embedded Systems