Movatterモバイル変換


[0]ホーム

URL:


CN102281197A - Radio frequency identification (RFID) router architecture system - Google Patents

Radio frequency identification (RFID) router architecture system
Download PDF

Info

Publication number
CN102281197A
CN102281197ACN2011102304686ACN201110230468ACN102281197ACN 102281197 ACN102281197 ACN 102281197ACN 2011102304686 ACN2011102304686 ACN 2011102304686ACN 201110230468 ACN201110230468 ACN 201110230468ACN 102281197 ACN102281197 ACN 102281197A
Authority
CN
China
Prior art keywords
rfid
router
middleware
layer
reader
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011102304686A
Other languages
Chinese (zh)
Inventor
刘发贵
阮永雄
丁耿佳
林跃东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUTfiledCriticalSouth China University of Technology SCUT
Priority to CN2011102304686ApriorityCriticalpatent/CN102281197A/en
Publication of CN102281197ApublicationCriticalpatent/CN102281197A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明属于RFID技术领域,具体涉及一种RFID路由器架构系统。其包括提供RFID中间调用接口以及远程登录RFID路由器功能的中间件客户端层;负责提供RFID路由器核心的中间件功能、路由功能和安全配置功能的中间件路由器层;包含接受RFID中间件控制的RFID阅读器、参与组网的计算机和路由器的设备层;所述中间件客户端层、中间件路由器层和设备层依次连接。本发明有效解决RFID中间件和RFID网络化结合不足的问题,为RFID阅读器引入到企业内部网络,自组构建符合企业需求的RFID网络提供了技术支持。

Figure 201110230468

The invention belongs to the technical field of RFID, and in particular relates to an RFID router architecture system. It includes the middleware client layer that provides the RFID intermediate call interface and the remote login function of the RFID router; the middleware router layer that is responsible for providing the core middleware function, routing function and security configuration function of the RFID router; including the RFID middleware control The device layer of the reader, the computer participating in the networking and the router; the middleware client layer, the middleware router layer and the device layer are connected in sequence. The invention effectively solves the problem of insufficient combination of the RFID middleware and the RFID network, and provides technical support for introducing the RFID reader into the internal network of the enterprise and self-organizing and constructing the RFID network meeting the requirements of the enterprise.

Figure 201110230468

Description

Translated fromChinese
一种RFID路由器架构系统An RFID router architecture system

技术领域technical field

本发明属于RFID技术领域,具体涉及一种RFID路由器架构系统。The invention belongs to the technical field of RFID, and in particular relates to an RFID router architecture system.

背景技术Background technique

射频识别(Radio Frequency Identification, RFID)技术,是一种利用射频通信实现的非接触式自动识别技术。RFID技术应用于物流、制造、公共信息服务等行业,可大幅提高管理与运作效率,降低成本。RFID中间件是一种基于标准、独立于架构、面向数据流处理的消息的中间件,屏蔽了RFID设备的多样性和复杂性,能够为后台业务系统提供强大的支撑,是RFID系统的神经中枢。Radio Frequency Identification (RFID) technology is a non-contact automatic identification technology realized by radio frequency communication. RFID technology is used in logistics, manufacturing, public information services and other industries, which can greatly improve management and operation efficiency and reduce costs. RFID middleware is a standard-based, architecture-independent, and message-oriented middleware for data flow processing. It shields the diversity and complexity of RFID devices and can provide strong support for background business systems. It is the nerve center of the RFID system. .

目前,数量众多的RFID读写器、标签和读取点,以及品种繁多、类型复杂的硬件设备让RFID在实际的工作环境中应接不暇;用户希望RFID能适应已有的工作流程,同时,越来越多的数据整合需求也对RFID技术应用提出了新的挑战;企业用户希望把RFID阅读器引入到企业内部网络,自组构建符合企业需求的RFID网络,实现RFID数据传输和网络管理的融合,实现企业应用和RFID的无缝结合。At present, a large number of RFID readers, tags and reading points, as well as a wide variety and complex types of hardware devices make RFID overwhelming in the actual working environment; users hope that RFID can adapt to existing workflows, and at the same time, more and more More and more data integration requirements also pose new challenges to the application of RFID technology; enterprise users hope to introduce RFID readers into the internal network of the enterprise, self-organize and build an RFID network that meets the needs of enterprises, and realize the integration of RFID data transmission and network management. Realize the seamless combination of enterprise application and RFID.

在Internet中,路由器是最重要的网络设备,同时也是集中体现网络新技术的设备。它以TCP/IP协议族中的一系列协议为基础,能够智能地适应复杂的网络拓扑结构及其变化,并使得各种异构网之间的互连成为可能。路由器不仅能够快速分析当前网络拓扑结构,并据此寻找最优的转发路径,而且在网络管理、网络安全等方面也发挥了重要的作用。可以说,路由器技术就是Internet技术的核心。所以在对将RFID技术引入企业内部网络的研究中,将RFID技术与路由器相结合的RFID路由器的研究成为了热点。In the Internet, a router is the most important network device, and it is also a device that embodies new network technologies. Based on a series of protocols in the TCP/IP protocol suite, it can intelligently adapt to complex network topology and its changes, and makes it possible to interconnect various heterogeneous networks. Routers can not only quickly analyze the current network topology and find the optimal forwarding path based on this, but also play an important role in network management and network security. It can be said that router technology is the core of Internet technology. Therefore, in the research of introducing RFID technology into the internal network of enterprises, the research of RFID routers combining RFID technology with routers has become a hot spot.

目前,在RFID路由器研究中,国外的Reva Systems公司首先提供RFID网络化的概念,他们研制的RFID硬件中间件Reva TAP能提供RFID阅读器的集中管理、快速部署,标签定位,防干扰等功能。在国内,RFID的发展,特别是在物流、零售等国外主推的应用领域存在局限和弱点。传统的RFID中间件技术无法满足大规模的RFID系统的安装和部署,这主要是因为RFID网络化发展不健全、缺少RFID网络化设备,RFID中间件和RFID网络化结合不足形成的。所以,如何将RFID中间件与路由器的各个关键技术的实现模块进行整合,研究出一个迎合于RFID网络的RFID路由器方案迫在眉睫。At present, in the research of RFID routers, the foreign company Reva Systems is the first to provide the concept of RFID networking. The RFID hardware middleware Reva TAP developed by them can provide centralized management, rapid deployment of RFID readers, label positioning, anti-interference and other functions. In China, the development of RFID has limitations and weaknesses, especially in the application fields mainly promoted abroad such as logistics and retail. Traditional RFID middleware technology cannot meet the installation and deployment of large-scale RFID systems. This is mainly due to the unsound development of RFID networking, the lack of RFID networking equipment, and the lack of combination of RFID middleware and RFID networking. Therefore, how to integrate the RFID middleware and the implementation modules of each key technology of the router, and develop an RFID router solution that caters to the RFID network is imminent.

发明内容Contents of the invention

针对现有技术的缺点,本发明的目的提供一种有效解决RFID中间件和RFID网络化结合不足问题的RFID路由器架构系统。In view of the shortcomings of the prior art, the object of the present invention is to provide an RFID router architecture system that effectively solves the problem of insufficient combination of RFID middleware and RFID networking.

为实现上述目的,本发明的技术方案为:To achieve the above object, the technical solution of the present invention is:

一种RFID路由器架构系统,包括:An RFID router architecture system, comprising:

提供RFID中间调用接口以及远程登录RFID路由器功能的中间件客户端层;负责提供RFID路由器核心的中间件功能、路由功能和安全配置功能的中间件路由器层;The middleware client layer that provides the RFID intermediate call interface and the remote login function of the RFID router; the middleware router layer that is responsible for providing the core middleware function, routing function and security configuration function of the RFID router;

设备层;Device layer;

所述中间件客户端层、中间件路由器层和设备层依次连接。The middleware client layer, middleware router layer and device layer are connected in sequence.

作为一种优选方案,所述中间件客户端层包括ALE 客户端,ALE 客户端上设置有依次连接的应用层事件(Application Level Event – ALE)接口、第一命令对象处理器和Socket序列化收发接口,所述Socket序列化收发接口与中间件路由器层连接,应用层事件接口遵循EPCgloble ALE规范。As a preferred solution, the middleware client layer includes an ALE client, and the ALE client is provided with an application layer event (Application Level Event - ALE) interface connected in sequence, a first command object processor, and a Socket serialized transceiver Interface, the Socket serialized transceiver interface is connected to the middleware router layer, and the application layer event interface follows the EPCgloble ALE specification.

作为进一步的优选方案,所述中间件路由器层包括与ALE 客户端连接的ALE服务端,所述ALE服务端为并发返服务器,ALE服务端上设置有依次连接的ECSpec状态机、第二命令对象处理器和线程池,所述线程池和第二命令对象处理器分别与 Socket序列化收发接口连接。对于ALE 客户端和ALE服务端的通信格式,RFID路由器维护两类对象:输入命令对象Input CMD和输出命令对象Output CMD。ALE 客户端发起应用层事件接口调用时,实际是虚拟调用,ALE 客户端的第一命令对象处理器将应用层事件接口调用名和调用参数进行封装生成Input CMD,通过序列化和反序列化,ALE服务端解析该Input CMD后,进行真正的中间件应用层事件接口调用,最终将应用层事件接口返回结果封装成Output CMD,同样经过序列化和反序列化,反馈给ALE 客户端,ALE 客户端的第一命令对象处理器对Output CMD进行解析后,返回给调用者。As a further preferred solution, the middleware router layer includes an ALE server connected to the ALE client, the ALE server is a concurrent send-back server, and the ALE server is provided with an ECSpec state machine connected in turn, a second command object Processor and thread pool, described thread pool and the second command object processor are respectively connected with Socket serialization sending and receiving interface. For the communication format between the ALE client and the ALE server, the RFID router maintains two types of objects: the input command object Input CMD and the output command object Output CMD. When the ALE client initiates an application layer event interface call, it is actually a virtual call. The first command object processor of the ALE client encapsulates the application layer event interface call name and call parameters to generate an Input CMD. After serialization and deserialization, the ALE service After the terminal parses the Input CMD, it calls the real middleware application layer event interface, and finally encapsulates the result returned by the application layer event interface into an Output CMD, which is also serialized and deserialized, and fed back to the ALE client. A command object processor parses the Output CMD and returns it to the caller.

作为另一种优选方案,所述中间件路由器层还包括包含有阅读器适配器的设备适配层,阅读器适配器与设备层连接。As another preferred solution, the middleware router layer further includes a device adaptation layer including a reader adapter, and the reader adapter is connected to the device layer.

作为进一步的优选方案,所述中间件路由器层还包括设备管理层,设备管理层包括设备管理器和阅读器代理,设备管理器与设备层连接,其遵循EPC Globe规范,负责设备层设备的配置、监控、通信,阅读器代理与阅读器适配器连接,阅读器代理上设置有统一的RFID阅读器访问接口。阅读器代理的功能是驱动相应阅读器适配器,并进行多运行环境的控制流和数据流传输。阅读器代理向阅读器适配器发送控制命令,所述控制命令包括初始化、打开设备、读取标签、关闭设备。阅读器适配器接收所述控制命令后执行命令,对RFID设备进行控制,得到结果后作为命令执行结果,返回给阅读器代理,由阅读器代理进行分析处理。As a further preferred solution, the middleware router layer also includes a device management layer, the device management layer includes a device manager and a reader agent, and the device manager is connected to the device layer, which follows the EPC Globe specification and is responsible for the configuration of the device layer device , monitoring, communication, the reader agent is connected to the reader adapter, and a unified RFID reader access interface is set on the reader agent. The function of the reader agent is to drive the corresponding reader adapter, and transmit the control flow and data flow of multiple operating environments. The reader agent sends control commands to the reader adapter, and the control commands include initialization, opening the device, reading tags, and closing the device. The reader adapter executes the command after receiving the control command, controls the RFID device, and returns the result as the command execution result to the reader agent for analysis and processing by the reader agent.

作为另一种优选方案,所述中间件路由器层还包括支持iptable接口的路由模块,与设备层连接,用于负责实现RFID路由器的路由协议,实现静态路由、动态路由功能。其中静态路由部分通过iptable 命令控制路由表,并实现NAT协议;动态路由则通过路由协议守护进程,动态对路由表进行维护、路由器之间路由信息交互,动态路由支持的路由器协议包括RIP、OSPF。As another preferred solution, the middleware router layer also includes a routing module supporting an iptable interface, which is connected to the device layer, and is responsible for implementing the routing protocol of the RFID router, and realizing static routing and dynamic routing functions. The static routing part controls the routing table through the iptable command and implements the NAT protocol; the dynamic routing uses the routing protocol daemon to dynamically maintain the routing table and exchange routing information between routers. The router protocols supported by dynamic routing include RIP and OSPF.

作为另一种优选方案,所述中间件客户端层还包括与中间件路由器层连接的远程登录模块,其上设置有提供用户名、密码的远程登录方式,用户通过远程登录模块登录到RFID路由器对RFID中间件和路由器进行配置。As another preferred solution, the middleware client layer also includes a remote login module connected to the middleware router layer, which is provided with a remote login mode providing user name and password, and the user logs in to the RFID router through the remote login module Configure the RFID middleware and router.

作为进一步的优选方案,所述中间件路由器层还包括基于OpenSSH协议的安全通信模块,其与远程登录模块、路由器模块连接,用于远程控制、配置RFID路由器,其支持传输层协议、用户认证协议和连接协议。RFID路由器操作者通过远程登录模块远程登录RFID路由器需要基于密码和密钥的安全验证,安全配置模块控制RFID路由器中间件模块和路由模块的启动、关闭和重启。As a further preferred solution, the middleware router layer also includes a secure communication module based on the OpenSSH protocol, which is connected with the remote login module and the router module for remote control and configuration of the RFID router, which supports transport layer protocols and user authentication protocols and connection agreements. The remote login of the RFID router by the operator of the RFID router requires security verification based on passwords and keys, and the security configuration module controls the startup, shutdown and restart of the RFID router middleware module and the routing module.

作为另一种优选方案,所述设备层包括参与组网的计算机、路由器和接受RFID中间控制的RFID阅读器。As another preferred solution, the device layer includes computers participating in networking, routers and RFID readers receiving intermediate control of RFID.

作为进一步的优选方案,所述RFID阅读器为固定式阅读器或移动式阅读器。As a further preferred solution, the RFID reader is a fixed reader or a mobile reader.

与现有技术相比,本发明具有如下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明通过设置符合EPC Global系列标准中应用层事件(Application Level Event - ALE)接口的中间件客户端,便于RFID开发人员进行RFID中间件接口远程调用以及中间件API的并发调用。在RFID路由器实现标准中间件的ALE和设备管理前提下,开发了支持多运行环境的阅读器适配层,在实现中间件功能同时,使异构阅读器设备实现跨平台的RFID通信规约。通过添加路由模块,支持静态、动态等主流路由协议,并支持通过iptable接口进行路由表进行修改,实现了组网和路由功能。并且,通过基于OpenSSH协议的安全模块,通过客户端身份证认证,提供对RFID路由器操作的安全配置。本发明有效解决了RFID中间件和RFID网络化结合不足的现状。The present invention facilitates RFID developers to remotely call RFID middleware interfaces and concurrently call middleware APIs by setting middleware clients that comply with the Application Level Event (ALE) interface in the EPC Global series of standards. On the premise that the RFID router implements ALE and device management of standard middleware, a reader adaptation layer supporting multiple operating environments is developed. While realizing the middleware function, heterogeneous reader devices can implement cross-platform RFID communication protocols. By adding a routing module, it supports mainstream routing protocols such as static and dynamic, and supports the modification of the routing table through the iptable interface, realizing the networking and routing functions. In addition, through the security module based on the OpenSSH protocol, the security configuration for the operation of the RFID router is provided through the authentication of the client ID card. The invention effectively solves the current situation of insufficient combination of the RFID middleware and the RFID network.

附图说明Description of drawings

图1为本发明的逻辑示意图;Fig. 1 is a logical schematic diagram of the present invention;

图2为本发明中RFID路由器ALE客户端、ALE服务端通信逻辑流程图;Fig. 2 is the communication logic flowchart of RFID router ALE client, ALE server in the present invention;

图3为本发明中RFID路由器ALE服务端工作流程图;Fig. 3 is the working flowchart of RFID router ALE server in the present invention;

图4为本发明中RFID路由器中间件设备管理层的阅读器代理工作流程图;Fig. 4 is the reader agent work flowchart of RFID router middleware equipment management layer in the present invention;

图5为本发明中RFID路由器中间件设备适配层中阅读器适配器工作流程图;Fig. 5 is the workflow diagram of the reader adapter in the RFID router middleware equipment adaptation layer in the present invention;

图6为本发明中RFID路由器路由模块与安全配置模块工作流程图;Fig. 6 is the work flowchart of RFID router routing module and security configuration module in the present invention;

图7 为本发明中RFID路由器报文处理流程图。Fig. 7 is the message processing flowchart of RFID router among the present invention.

具体实施方式Detailed ways

以下结合附图和实施例对本发明进行详细的描述。The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

如图1所示,一种RFID路由器架构系统,包括依次连接的中间件客户端层、中间件路由器层和设备层。As shown in Figure 1, an RFID router architecture system includes a middleware client layer, a middleware router layer and a device layer connected in sequence.

中间件客户端层包括ALE 客户端,ALE 客户端上设置有依次连接的应用层事件接口、第一命令对象处理器和Socket序列化收发接口,所述Socket序列化收发接口与中间件路由器层连接;The middleware client layer includes an ALE client, and the ALE client is provided with an application layer event interface connected in sequence, a first command object processor and a Socket serialization transceiver interface, and the Socket serialization transceiver interface is connected with the middleware router layer ;

应用层事件接口遵循EPCgloble ALE规范,给中间件开发人员提供接口调用API,实际是一个虚拟调用。该应用层事件接口实现异常处理机制,为开发人员提供因不当的API调用或运行时错误导致的异常处理机制;应用层事件接口也提供对中间件调用参数的格式化检测,对于不符合ALE规范的参数,给予异常提示。 The application layer event interface follows the EPCgloble ALE specification and provides middleware developers with an interface call API, which is actually a virtual call. The application layer event interface implements an exception handling mechanism, providing developers with an exception handling mechanism caused by improper API calls or runtime errors; the application layer event interface also provides formatting detection of middleware call parameters, for those that do not comply with the ALE specification parameter, give an exception prompt. the

第一命令对象处理器负责封装中间件调用以及解析调用返回结果。对于中间件的调用,该处理器将调用的应用层事件接口名字、调用参数,封装成可序列化的输入命令对象;中间件调用返回也是一个可序列化的命令对象,称为输出命令对象,第一命令对象处理器解析该命令对象,将调用结果返回调用者。The first command object processor is responsible for encapsulating the middleware call and parsing the result returned by the call. For middleware calls, the processor encapsulates the name of the application layer event interface and call parameters into a serializable input command object; the return of the middleware call is also a serializable command object, called the output command object. The first command object processor parses the command object, and returns the call result to the caller.

Socket序列化收发接口实现命令对象的序列化和网络传输功能。通过指定ALE服务端的端口号和网址,建立流套接口StreamSocket,通过对象输入流接口,实现将可序列化的命令对象转换为流对象,并发送到ALE服务端;通过对象输出接口,实现将流对象转换为命令对象。The Socket serialization transceiver interface realizes the serialization and network transmission functions of command objects. By specifying the port number and URL of the ALE server, a stream socket interface StreamSocket is established, and the serializable command object is converted into a stream object through the object input stream interface, and sent to the ALE server; through the object output interface, the stream is realized object is converted to a command object.

中间件路由器层包括与ALE 客户端连接的ALE服务端, ALE服务端为并发返服务器,ALE服务端上设置有依次连接的ECSpec状态机、第二命令对象处理器和线程池,所述线程池和第二命令对象处理器分别与 Socket序列化收发接口连接。The middleware router layer includes the ALE server connected to the ALE client, the ALE server is a concurrent return server, and the ALE server is provided with an ECSpec state machine connected in turn, a second command object processor and a thread pool, the thread pool and the second command object processor are respectively connected with the Socket serialized transceiver interface.

ECSpec状态机的状态定义和状态变迁根据ALE标准设计,RFID路由器对ECSpec状态机进行改进,中间件服务器采用基于ECSpec粒度的互斥机制,即同一时刻ECSpec状态机可以允许有多个中间件调用存在,但同一个ECSpec至多被一个中间件调用所使用。The state definition and state transition of the ECSpec state machine are designed according to the ALE standard. The RFID router improves the ECSpec state machine, and the middleware server adopts a mutual exclusion mechanism based on the ECSpec granularity, that is, the ECSpec state machine can allow multiple middleware calls to exist at the same time. , but the same ECSpec is used by at most one middleware call.

ALE客户端对于ALE服务端的每次调用请求,ALE服务端都会尝试从线程池启动一线程,作为工作线程,执行中间件调用。线程池维护着线程,线程一开始处于空闲状态,当有调用请求,即ALE服务端有连接请求时,从线程池中取一线程,设置它为忙碌状态的工作线程,执行中间件调用任务。若所有线程均为忙碌状态,则新的中间件调用任务将进入任务队列中,等有空闲线程时,再进行调用任务。For each call request made by the ALE client to the ALE server, the ALE server will try to start a thread from the thread pool as a worker thread to execute the middleware call. The thread pool maintains the thread, and the thread is idle at the beginning. When there is a call request, that is, when the ALE server has a connection request, a thread is taken from the thread pool, set as a busy worker thread, and executes the middleware call task. If all threads are busy, the new middleware invocation task will enter the task queue, and the invocation task will be performed when there are idle threads.

如图2所示,对于ALE 客户端和ALE服务端的通信格式,RFID路由器维护两类对象:输入命令对象Input CMD和输出命令对象Output CMD。ALE 客户端发起应用层事件接口调用时,实际是虚拟调用,ALE 客户端的第一命令对象处理器将应用层事件接口调用名和调用参数进行封装生成Input CMD,通过序列化和反序列化,ALE服务端解析该Input CMD后,进行真正的中间件应用层事件接口调用,最终将应用层事件接口返回结果封装成Output CMD,同样经过序列化和反序列化,反馈给ALE 客户端,ALE 客户端的第一命令对象处理器对Output CMD进行解析后,返回给调用者。As shown in Figure 2, for the communication format between the ALE client and the ALE server, the RFID router maintains two types of objects: the input command object Input CMD and the output command object Output CMD. When the ALE client initiates an application layer event interface call, it is actually a virtual call. The first command object processor of the ALE client encapsulates the application layer event interface call name and call parameters to generate an Input CMD. After serialization and deserialization, the ALE service After the terminal parses the Input CMD, it calls the real middleware application layer event interface, and finally encapsulates the result returned by the application layer event interface into an Output CMD, which is also serialized and deserialized, and fed back to the ALE client. A command object processor parses the Output CMD and returns it to the caller.

中间件路由器层还包括包含有阅读器适配器的设备适配层,阅读器适配器与设备层连接。阅读器适配器与RFID设备是一一对应的关系。阅读器适配器是真正访问RFID硬件设备的实体,其用于实现对设备的直接访问。The middleware router layer also includes a device adaptation layer including a reader adapter, and the reader adapter is connected with the device layer. There is a one-to-one correspondence between reader adapters and RFID devices. The reader adapter is an entity that actually accesses the RFID hardware device, and it is used to realize direct access to the device.

中间件路由器层还包括设备管理层,设备管理层包括设备管理器和阅读器代理,设备管理器与设备层连接,其遵循EPC Globe规范,负责设备层设备的配置、监控、通信,阅读器代理与阅读器适配器连接,阅读器代理上设置有统一的RFID阅读器访问接口。RFID阅读器与阅读器代理是一一对应的关系,阅读器代理的功能是驱动相应阅读器适配器,并进行多运行环境的控制流和数据流传输。阅读器代理向阅读器适配器发送控制命令,所述控制命令包括初始化、打开设备、读取标签、关闭设备。阅读器适配器接收所述控制命令后执行命令,对RFID设备进行控制,得到结果后作为命令执行结果,返回给阅读器代理,由阅读器代理进行分析处理。The middleware router layer also includes the device management layer. The device management layer includes the device manager and the reader agent. The device manager is connected to the device layer. It follows the EPC Globe specification and is responsible for the configuration, monitoring, and communication of the device layer devices. The reader agent It is connected with the reader adapter, and a unified RFID reader access interface is set on the reader agent. There is a one-to-one relationship between RFID readers and reader agents. The function of reader agents is to drive corresponding reader adapters and perform control flow and data flow transmission in multiple operating environments. The reader agent sends control commands to the reader adapter, and the control commands include initialization, opening the device, reading tags, and closing the device. The reader adapter executes the command after receiving the control command, controls the RFID device, and returns the result as the command execution result to the reader agent for analysis and processing by the reader agent.

中间件路由器层还包括支持iptable接口的路由模块,与设备层连接,用于负责实现RFID路由器的路由协议,实现静态路由、动态路由功能。其中静态路由部分通过iptable 命令控制路由表,。通过命令行方式添加、删除、修改路由表的条目,并实现NAT协议,可以通过RFID路由器写源IP地址或目的IP地址;动态路由则通过路由协议守护进程运行在RFID路由器后台,,动态对路由表进行维护、路由器之间路由信息交互,动态路由支持的路由器协议包括RIP、OSPF。The middleware router layer also includes a routing module supporting the iptable interface, which is connected with the device layer, and is responsible for implementing the routing protocol of the RFID router, and realizing static routing and dynamic routing functions. The static routing part controls the routing table through the iptable command. Add, delete, and modify entries in the routing table through the command line, and implement the NAT protocol. You can write the source IP address or destination IP address through the RFID router; dynamic routing runs in the background of the RFID router through the routing protocol daemon, and dynamically configures the routing. Table maintenance, routing information exchange between routers, router protocols supported by dynamic routing include RIP, OSPF.

中间件客户端层还包括与中间件路由器层连接的远程登录模块,其上设置有提供用户名、密码的远程登录方式,用户通过远程登录模块登录到RFID路由器对RFID中间件和路由器进行配置。The middleware client layer also includes a remote login module connected to the middleware router layer, which is provided with a remote login mode providing user name and password, and the user logs in to the RFID router through the remote login module to configure the RFID middleware and router.

中间件路由器层还包括基于OpenSSH协议的安全通信模块,其与远程登录模块连接,专为远程登录RFID路由器进行操作和其他网络服务提供安全性,用于远程控制、配置RFID路由器。如图6所示,安全通信模块支持传输层协议提供RFID路由器认证,RFID数据机密;安全通信模块支持用户认证协议为RFID服务器客户端的身份鉴别,分别是基于密码和密钥的安全验证。安全通信模块的连接协议将加密的RFID路由器信息隧道复用成若干个逻辑通道,提供给更高层的应用协议使用。RFID路由器操作者通过远程登录模块远程登录RFID路由器需要基于密码和密钥的安全验证,然后可以修改中间件模块的配置文件,并对中间件进行启动、停止、重启操作,可以通过iptable对RFID路由器的路由器表进行手工修改,可以启动、停止、重启各动态路由协议。The middleware router layer also includes a secure communication module based on the OpenSSH protocol, which is connected to the remote login module, and is designed to provide security for remote login to the RFID router for operation and other network services, and is used for remote control and configuration of the RFID router. As shown in Figure 6, the secure communication module supports the transport layer protocol to provide RFID router authentication, and the RFID data is confidential; the secure communication module supports the user authentication protocol as the identity authentication of the RFID server client, which is based on password and key security verification respectively. The connection protocol of the secure communication module multiplexes the encrypted RFID router information tunnel into several logical channels, which are provided to higher-level application protocols. The RFID router operator needs to log in remotely to the RFID router through the remote login module. Security verification based on passwords and keys is required, and then the configuration file of the middleware module can be modified, and the middleware can be started, stopped, and restarted. You can manually modify the router table, and you can start, stop, and restart each dynamic routing protocol.

设备层包括计算机、路由器和接受RFID中间控制的RFID阅读器,RFID阅读器为固定式阅读器或移动式阅读器。The device layer includes computers, routers, and RFID readers that accept RFID intermediate control, and the RFID readers are fixed readers or mobile readers.

图3为 RFID路由器ALE服务端工作流程图。该ALE服务端的工作流程是在EPC globe标准ALE规范的应用层事件接口ALE API 上,实现了并发控制、互斥访问、命令序列化传输的功能。具体步骤如下:Figure 3 is the workflow diagram of the RFID router ALE server. The workflow of the ALE server is based on the application layer event interface ALE API of the EPC globe standard ALE specification, and realizes the functions of concurrency control, mutual exclusion access, and command serialization transmission. Specific steps are as follows:

步骤3.1 :初始化并启动ALE服务端。ALE服务端的功能是驱动RFID中间件设备管理和ALE,进行初始化并启动。初始化过程包含读取相关的ALE配置文档、设备管理配置文件和绑定服务端端口。启动过程包括启动应用层事件ALE、设备管理。Step 3.1: Initialize and start the ALE server. The function of the ALE server is to drive the RFID middleware device management and ALE, initialize and start. The initialization process includes reading related ALE configuration files, device management configuration files and binding server ports. The startup process includes starting the application layer event ALE and device management.

步骤3.2: 等待ALE客户端发出调用请求。当ALE服务端接受到一个应用层事件接口调用请求之后,从线程池启动一条工作线程,将线程的状态从空闲设置为忙碌,将调用任务赋予该线程并执行。工作线程启动后,ALE服务端继续等待其他调用请求。Step 3.2: Wait for the call request from the ALE client. When the ALE server receives an application layer event interface call request, it starts a worker thread from the thread pool, sets the state of the thread from idle to busy, assigns the calling task to the thread and executes it. After the worker thread starts, the ALE server continues to wait for other call requests.

步骤3.3:解析输入命令对象,得到命令类型和命令参数。通过第一命令对象处理器,中间件服务端将输入命令对象解析成具体的API调用名和参数。Step 3.3: Parse the input command object to obtain the command type and command parameters. Through the first command object processor, the middleware server parses the input command object into specific API call names and parameters.

步骤3.4:基于ECSpec互斥,中间件 API 调用。中间件的API调用是遵循EPC globe ALE标准规定的API,包括定义define、取消定义undefine、订阅subscribe、取消订阅unsubscribe、一次读取poll、一次订阅immediate和其他相关调用;ECSpec状态机内,一个ECSpec至多只被一个线程所使用。Step 3.4: Based on ECSpec mutual exclusion, middleware API calls. The API call of the middleware follows the API stipulated in the EPC globe ALE standard, including defining define, undefining undefine, subscribing subscribe, unsubscribing unsubscribe, reading poll once, subscribing immediate once and other related calls; in the ECSpec state machine, an ECSpec Used by at most one thread.

步骤3.5:封装输出命令对象,返回ALE客户端。中间件API调用的返回结果,通过第二命令对象处理器,将调用名和返回结果封装成输出命令对象,通过Socket序列化收发接口,返回给ALE客户端。Step 3.5: Encapsulate the output command object and return to the ALE client. The return result of the middleware API call, through the second command object processor, encapsulates the call name and the return result into an output command object, serializes the sending and receiving interface through the Socket, and returns it to the ALE client.

步骤3.6:工作线程任务完成,返回线程池。工作线程在完成了调用任务之后,从忙碌状态调整为空闲状态,并重新置入线程池中。Step 3.6: The worker thread task is completed and returns to the thread pool. After the worker thread completes the calling task, it is adjusted from the busy state to the idle state, and is put back into the thread pool.

如图4所示,设备管理层中的阅读器代理和设备适配层中的阅读器适配器运行在不同运行时环境时,两者之间的RFID数据交互流程如下: 步骤4. 1 .阅读器代理初始化阅读器。阅读器代理运行一条线程执行初始化工作,启动阅读器适配器并完成初始化;As shown in Figure 4, when the reader agent in the device management layer and the reader adapter in the device adaptation layer run in different runtime environments, the RFID data interaction process between the two is as follows: Step 4. 1. Reader The agent initializes the reader. The reader agent runs a thread to perform initialization work, starts the reader adapter and completes the initialization;

步骤4. 2. 阅读器代理发起设备接口间接调用。阅读器代理执行统一的设备接口,如打开或关闭阅读器、读标签,阅读器代理首先根据不同调用,生成不同的、固定格式的字节流执行命令,然后发送到阅读器适配器;Step 4. 2. The reader agent initiates an indirect call to the device interface. The reader agent implements a unified device interface, such as opening or closing the reader and reading tags. The reader agent first generates different, fixed-format byte stream execution commands according to different calls, and then sends them to the reader adapter;

步骤4. 3. 阅读器适配器发起硬件设备直接调用。阅读器适配器接收到执行命令之后,解析该命令,并通过阅读器适配器接口,对硬件设备进行直接调用,得到结果;Step 4. 3. The reader adapter initiates a hardware device direct call. After the reader adapter receives the execution command, it parses the command, and directly calls the hardware device through the reader adapter interface to obtain the result;

步骤 4. 4. 执行命令结果返回。阅读器适配器接口调用返回的结果,将生成固定格式的字节流执行命令结果,发送给阅读器代理,阅读器代理接受并解析执行命令结果,得到执行结果,返回给调用者。Step 4. 4. Return the result of executing the command. The result returned by the reader adapter interface call will generate a fixed-format byte stream execution command result and send it to the reader agent. The reader agent accepts and parses the execution command result to obtain the execution result and returns it to the caller.

阅读器适配器与阅读器代理进行通信工作时,其工作流程如图5所示,其中的阅读器开发包DLL由RFID硬件设备提供。When the reader adapter communicates with the reader agent, its workflow is shown in Figure 5, where the reader development kit DLL is provided by the RFID hardware device.

步骤5.1.初始化设备接口。阅读器适配器首先调用初始化操作,从阅读器开发包DLL中映射阅读器的各种操作,包括阅读器的配置、打开、关闭、读取标签信息操作,所述操作与阅读器代理的设备接口保持一致;Step 5.1. Initialize the device interface. The reader adapter first calls the initialization operation, and maps various operations of the reader from the reader development kit DLL, including reader configuration, opening, closing, and reading tag information operations, and the operations are maintained with the device interface of the reader agent consistent;

步骤5.2.建立阅读器适配器命令服务器,等待阅读器代理发送命令;Step 5.2. Establish a reader adapter command server and wait for the reader agent to send commands;

步骤5.3.阅读器适配器接收到命令后,分析和执行命令。阅读器适配器接到阅读器代理发送的命令信息之后,分析阅读器代理需要调用的类型,执行相关操作,得到结果;Step 5.3. After the reader adapter receives the command, it analyzes and executes the command. After the reader adapter receives the command information sent by the reader agent, it analyzes the type that the reader agent needs to call, performs related operations, and obtains the result;

步骤5.3 执行命令结果返回。若命令为关闭阅读器,则阅读器适配器执行命令将阅读器关闭后不用返回结果给阅读器代理,若命令为打开阅读器或读取标签信息,则阅读器适配器执行命令后将执行结果封装成执行命令结果格式的字节流,返回给阅读器代理,并由阅读器代理解析该结果,得到调用结果,再返回给阅读器代理调用者。Step 5.3 Execute the command and return the result. If the command is to close the reader, the reader adapter executes the command to close the reader without returning the result to the reader agent. If the command is to open the reader or read tag information, the reader adapter executes the command and encapsulates the execution result into The byte stream in the format of the execution command result is returned to the reader agent, and the result is parsed by the reader agent to obtain the call result, and then returned to the reader agent caller.

如图7所示,结合本发明详述RFID路由器报文处理过程,其中,RFID数据报文是指一次中间件调用产生的RFID数据;网路数据报文,指所有数据报文,包括RFID数据报文,具体流程如下:As shown in Figure 7, the RFID router message processing process is described in detail in conjunction with the present invention, wherein the RFID data message refers to the RFID data generated by a middleware call; the network data message refers to all data messages, including RFID data message, the specific process is as follows:

步骤6.1 RFID路由器的中间件客户端层通过远程过程调用,在中间件由器层触发RFID中间件的一次ALE API调用。Step 6.1 The middleware client layer of the RFID router triggers an ALE API call of the RFID middleware at the middleware router layer through a remote procedure call.

步骤6.2 ALE 服务端通过驱动设备管理层,通过阅读器代理和阅读器适配器交互,完成对RFID硬件设备的访问,产生RFID数据报文。Step 6.2 The ALE server completes the access to the RFID hardware device by driving the device management layer, interacting with the reader agent and the reader adapter, and generates RFID data packets.

步骤6.3 RFID数据报文与其他从网络接口达到的数据报文一齐,判断数据包的目的地址是否为本节点,如果是,这些数据包被送入网络传输层等待进一步处理,跳转的步骤6.5;如果不是,这些数据包会被送入转发区,跳转到步骤6.4。Step 6.3 The RFID data message is combined with other data messages arriving from the network interface to determine whether the destination address of the data packet is the node. If so, these data packets are sent to the network transport layer for further processing, and skip to step 6.5 ; If not, these data packets will be sent to the forwarding area, skip to step 6.4.

步骤6.4 系统查找路由表并确定这些数据包的下一跳地址,然后,这些数据包被排队送入输出队列,通过网络接口输出,结束。Step 6.4 The system looks up the routing table and determines the next hop address of these data packets, and then these data packets are queued into the output queue, output through the network interface, and end.

步骤6.5 通过TCP/IP协议栈解封装,查看报文的目的端口是否有中间件程序在运行,如果否,抛弃该报文,结束。Step 6.5 Decapsulate through the TCP/IP protocol stack, check whether there is a middleware program running on the destination port of the message, if not, discard the message, and end.

步骤6.6 由中间件的ALE服务端对RFID数据进行分组、过滤,形成报文,通过网络发送给中间件使用者,并将该报文作为返回值,从ALE API返回。Step 6.6 The ALE server of the middleware groups and filters the RFID data to form a message, which is sent to the middleware user through the network, and the message is returned from the ALE API as a return value.

Claims (10)

CN2011102304686A2011-08-122011-08-12Radio frequency identification (RFID) router architecture systemPendingCN102281197A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2011102304686ACN102281197A (en)2011-08-122011-08-12Radio frequency identification (RFID) router architecture system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2011102304686ACN102281197A (en)2011-08-122011-08-12Radio frequency identification (RFID) router architecture system

Publications (1)

Publication NumberPublication Date
CN102281197Atrue CN102281197A (en)2011-12-14

Family

ID=45106390

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2011102304686APendingCN102281197A (en)2011-08-122011-08-12Radio frequency identification (RFID) router architecture system

Country Status (1)

CountryLink
CN (1)CN102281197A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103049773A (en)*2012-12-142013-04-17华南理工大学Method for integration and data fusion of RFID (Radio Frequency Identification) equipment and sensing equipment
CN103268264A (en)*2013-05-102013-08-28无锡昶达信息技术有限公司Low-coupling multiple-event synchronous radio frequency identification device (RFID) middleware system and achieving method thereof
CN104010337A (en)*2014-05-122014-08-27华南师范大学 A Routing Protocol for RFID Wireless Sensor Networks
CN104462077A (en)*2013-09-122015-03-25方正信息产业控股有限公司Method and device for processing database transaction
CN109617897A (en)*2018-12-282019-04-12北京指掌易科技有限公司A method of safe transmission is provided to public mobile application
CN111601291A (en)*2020-04-072020-08-28吉利汽车研究院(宁波)有限公司RFID middleware, publish-subscribe system and data transmission method

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2006057863A2 (en)*2004-11-242006-06-01Intel CorporationMesh networking with rfid communications
CN101477635A (en)*2008-12-122009-07-08华南理工大学Embedded RFID middleware based on light-weight ALE
CN101924768A (en)*2010-08-202010-12-22华南理工大学 A communication control method of distributed RFID middleware

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2006057863A2 (en)*2004-11-242006-06-01Intel CorporationMesh networking with rfid communications
CN101477635A (en)*2008-12-122009-07-08华南理工大学Embedded RFID middleware based on light-weight ALE
CN101924768A (en)*2010-08-202010-12-22华南理工大学 A communication control method of distributed RFID middleware

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
丁振华等: "RFID中间件研究进展", 《计算机工程》, vol. 32, no. 21, 5 November 2006 (2006-11-05)*
成修治等: "RFID中间件的结构设计", 《计算机应用》, vol. 28, no. 4, 1 April 2008 (2008-04-01)*
褚伟杰等: "基于SOA的RFID中间件集成应用", 《计算机工程》, vol. 34, no. 14, 20 July 2008 (2008-07-20)*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103049773A (en)*2012-12-142013-04-17华南理工大学Method for integration and data fusion of RFID (Radio Frequency Identification) equipment and sensing equipment
CN103049773B (en)*2012-12-142016-01-06华南理工大学A kind of RFID device and sensing equipment is integrated and data fusion method
CN103268264A (en)*2013-05-102013-08-28无锡昶达信息技术有限公司Low-coupling multiple-event synchronous radio frequency identification device (RFID) middleware system and achieving method thereof
CN103268264B (en)*2013-05-102016-03-30无锡昶达信息技术有限公司A kind of multi event synchronization RFID middleware system of low coupling and its implementation
CN104462077A (en)*2013-09-122015-03-25方正信息产业控股有限公司Method and device for processing database transaction
CN104010337A (en)*2014-05-122014-08-27华南师范大学 A Routing Protocol for RFID Wireless Sensor Networks
CN109617897A (en)*2018-12-282019-04-12北京指掌易科技有限公司A method of safe transmission is provided to public mobile application
CN111601291A (en)*2020-04-072020-08-28吉利汽车研究院(宁波)有限公司RFID middleware, publish-subscribe system and data transmission method

Similar Documents

PublicationPublication DateTitle
CN102377814B (en) Remote Assistance Service Method for Embedded Operating System
CN110009201B (en) A power data link system and method based on blockchain technology
CN103634364B (en)A kind of system for realizing remote desktop, method, client and service centre
CN102035904A (en)Method for converting TCP network communication server into client
CN101227343B (en)Method and device for testing TCPv6 and UDPv6
CN111193716B (en)Service data calling method and device, computer equipment and storage medium
CN102281197A (en)Radio frequency identification (RFID) router architecture system
CN108287723A (en)A kind of application exchange method, device, physical machine and system
US20090303921A1 (en)Low cost mesh network capability
CN102073501A (en)Method for implementing central controller of network equipment based on logic functional block
CN107122324B (en) A message transmission method and device
WO2017162089A1 (en)Service configuration method and device for network service
WO2012122767A1 (en)Method, system and terminal for implementing cloud computing
CN106301956A (en)A kind of network equipments configuration management method based on NETCONF
WO2020259081A1 (en)Task scheduling method, apparatus, and device, and computer-readable storage medium
CN101977160A (en)Reconfigurable method for routing protocol software components in reconfigurable route switching platform
US11706137B2 (en)Routers and methods for traffic management
TWI498037B (en)Service information managing method and service information managing system
CN113259404B (en)Industrial communication middleware based on TCP/IP protocol and use method thereof
CN101551758B (en)System and method for implementing paralleling work of device management and tasks
CN100505734C (en) A Method for Realizing External Device Mapping of Network Computer
CN102983988A (en)Equipment agent device and network management device
CN103067476B (en)A kind of dynamic network reconstruction method based on virtual machine
CN105162751B (en)A kind of communication system based on lwIP protocol stack Multi-netmouth multi-connections
CN116132538B (en)Method, device, equipment and storage medium for calling interfaces among multiple applications

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Application publication date:20111214


[8]ページ先頭

©2009-2025 Movatter.jp