CN102479102B - A kind of method plug-in for equipment in RFID middleware - Google Patents
A kind of method plug-in for equipment in RFID middleware Download PDFInfo
- Publication number
- CN102479102B CN102479102B CN201010554780.6A CN201010554780A CN102479102B CN 102479102 B CN102479102 B CN 102479102B CN 201010554780 A CN201010554780 A CN 201010554780A CN 102479102 B CN102479102 B CN 102479102B
- Authority
- CN
- China
- Prior art keywords
- rfid
- plug
- middleware
- equipment
- rfid device
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of RFID middleware, belong to rfid system application.A kind of method plug-in for equipment in RFID middleware, it is characterized in that: in the primary module of RFID middleware, be provided with the management submodule that the RFID device connected is managed, described management submodule adopts message queue mechanism, namely the message queue of instruction to the plug-in thread of multiple RFID device is sent by management submodule, control the work of the plug-in thread of described multiple RFID device according to this instruction, and return data is to the message queue of described management submodule.The present invention can in large-scale RFID application system, under the requirement that many equipment works simultaneously, adopt multi-process mode, the plug-in scheduling obtaining equilibrium of each equipment can be made, improve the processing power of RFID middleware, avoid because the plug-in exception of certain RFID device causes whole RFID middleware to be collapsed.
Description
Technical field
The present invention relates to a kind of RFID middleware, particularly relate to towards large-scale RFID application system, based on multi-process, the multithreading of modern computer, to the plug-in method of carrying out flexible dispatching of RFID device in RFID middleware.
Background technology
RFID middleware (RadioFrequencyIdentificationmiddleware) is the bridge communicated between automatic identification equipment and application system, it can identify and collect the electronic tag data of RFID device automatically, applies to the fields such as various logistics, manufacture and important item tracking widely.
RFID device is plug-in is functional module that is the most basic in RFID middleware, bottom, and RFID middleware is exactly plug-in by controlling numerous RFID device, more plug-in by each equipment, realizes the access to different manufacturers RFID device.
In a large-scale applied environment, the RFID device of the various model of hundreds may be had to work at the same time, and during RFID reader work, it can ceaselessly reading tag, and this performance for RFID middleware proposes strict requirement.Meanwhile, this also proposes strict requirement to the plug-in performance of RFID device and stability.
Along with reaching its maturity of polycaryon processor and hardware systems thereof, adopt multi-process and multithreading fully to excavate processor potentiality, and improve the stability of software systems, just day by day become a kind of trend of middleware Technology.
In current many application software at home and abroad, generally adopt the mode of multithreading to improve data-handling capacity.But in RFID middleware, not yet there is the plug-in calculation element of RFID device based on multi-process and multithreading for RFID application feature.
Chinese invention patent application prospectus CN1965281A discloses one and " has the calculation element for running inserter program code module of multiple progress structure ", it has the multiple progress structure for running inserter program code module in the dedicated process of himself, thus uses plug-in card program to design a model to improve software security and reliability.This invention is a kind of general multi-process software architecture, and plug-in card program must be fixed and run in process mode, cannot independently embed in dedicated process in DLL mode.
Chinese invention patent application prospectus CN1427618A discloses one " the multi viewing angle video frequency programme network relaying method based on multi-process ", by multi-process mode, network combined vision signal is carried out decomposition and plays.Similar with last patented claim, it cannot be applicable to RFID middleware, and the method simultaneously in this patented claim, is not suitable for Windows and WinCE operating system.
Chinese invention patent application prospectus CN101373509 discloses " a kind of RFID middleware based on distributed ALE ", have employed distributed resource and carrys out parallel computation and solved overload problem.This patented claim is taked to utilize the concurrent working of multiple stage computing machine to improve the load of system, and uneconomical and do not solve balanced problem.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method plug-in for equipment in RFID middleware, solves in large-scale RFID application system, under the requirement that many equipment works simultaneously, and the problem of response scheduling and equilibrium assignment resource.
Technical scheme
A kind of method plug-in for equipment in RFID middleware, it is characterized in that: in the primary module of RFID middleware, be provided with the management submodule that the RFID device connected is managed, described management submodule adopts message queue mechanism, namely the message queue of instruction to the plug-in thread of multiple RFID device is sent by management submodule, control the work of the plug-in thread of described multiple RFID device according to this instruction, and return data is to the message queue of described management submodule.
Further, to adopt message queue mechanism to control the step of the work of the plug-in thread of multiple RFID device as follows for described management submodule:
(1) in RFID middleware, first define the plug-in operation attribute of each RFID device, comprise burse mode, operational mode, the plug-in module information of equipment and corresponding facility information, wherein burse mode comprises: single thread mode, specified quantity thread mode, every platform RFID device thread mode; Operational mode comprises: detached process pattern, embedding middleware pattern; Facility information comprises: devices communicating pattern, devices communicating address, device polling setting;
(2) in RFID middleware, the common interface that define equipment is plug-in, comprising: the plug-in start and stop interface of the plug-in initialization interface of equipment, equipment, device scan interface, label write interface;
(3) in RFID middleware, embedded RFID equipment external pod and detached process RFID device container is provided;
(4) in the management submodule of RFID middleware, providing RFID label tag data receiver message queue, coming from the plug-in electronic tag data of equipment for receiving;
(5) in RFID device is plug-in, provide command reception message queue, for receive come from RFID middleware facility information, device scan instruction and equipment write instruction;
(6) when RFID middleware starts, read the operational mode information that each RFID device is plug-in: for plug-in with the equipment of detached process mode operation, RFID middleware starts a new detached process RFID device container, starts corresponding RFID device plug-in by detached process RFID device container; For plug-in with the equipment embedding middleware pattern, RFID middleware creates a new embedded RFID equipment external pod in middleware host process, starts RFID device plug-in by this container;
(7) RFID middleware by different containers started corresponding RFID device plug-in after, send its burse mode and relevant RFID device information to the message queue that this RFID device is plug-in;
(8) the plug-in burse mode that receives of described RFID device sets and after RFID device information of being correlated with, according to quantity and the burse mode set information of received RFID device, automatically adjusts worker thread quantity, enter normal mode of operation;
(9) the plug-in process of RFID device is after normal mode of operation, according to the label acquisition instructions that RFID middleware sends, scans, and return relevant tag data to RFID label tag data receiver message queue to equipment interior label data.
In described step (1), hanging in physical aspect outside the RFID device in RFID middleware, is a dynamic link library.
In described step (3), in the process model of RFID middleware, provide two kinds of processes: RFID middleware host process and the plug-in process of RFID.
Beneficial effect
The present invention can in large-scale RFID application system, under the requirement that many equipment works simultaneously, make full use of the multinuclear characteristic of single computing machine, improve the processing power of RFID middleware, be different from traditional one process RFID middleware, adopt multi-process mode, the plug-in scheduling obtaining equilibrium of each equipment can be made, avoid because the plug-in exception of certain RFID device causes whole RFID middleware to be collapsed.
Accompanying drawing explanation
Fig. 1 is the block diagram of the invention process example.
Embodiment
Below in conjunction with specific embodiments and the drawings, set forth the present invention further.
Core concept of the present invention is: utilize the equipment of multi-process plug-in, make full use of the ability of the multiprocessor of modern computer hardware, simultaneously in each equipment is plug-in, according to application demand, can arrange different models of concurrency.Owing to introducing the framework of multi-process, make RFID middleware can not cause global failure due to the plug-in collapse of certain equipment, reduce the possibility of Single Point of Faliure.
As shown in Figure 1, the RFID device external hanging device implemented according to the inventive method is used for, in RFID middleware, mainly comprising: manage submodule, embedded RFID equipment external pod, RFID device external pod, the plug-in command reception message queue of RFID and RFID plug-in device collecting thread pond in RFID middleware primary module.
RFID external pod is a detached process, and it and embedded RFID equipment external pod have identical message queue interface, manages submodule and directly carry out the mutual of data and steering order only by message queue in they and RFID middleware.
When the plug-in startup of RFID device, it is according to the setting of current application, and according to the quantity of relevant device, start a RFID plug-in device collecting thread pond, each thread is responsible for the scanning/write operation of one or more RFID device.
When RFID device is plug-in collect label data time, they data are sent to RFID middleware label data receive message queue in, complete tag scan task.
When needs are to electronic tag write data, RFID middleware host process by writing corresponding control message in the plug-in message queue of relevant device, after RFID device receives corresponding control message, with equipment specific protocol, the RFID device of specifying in message sends label data write/modify instruction, and result is back among RFID middleware host process, complete the whole flow process of label write.
In the process model of RFID middleware, there are two kinds of processes: RFID middleware host process and the plug-in process of RFID device.
RFID middleware host process is in charge of the plug-in process of all RFID device, is sent label acquisition instructions to RFID device is plug-in and accepts plug-in collected electronic tag data.The plug-in process of RFID device has then been responsible for.RFID middleware host process and RFID device plug-in between, the message queue only by striding course communicates.
Operationally, each RFID device is plug-in, and can exist with the form of a detached process, the embedded RFID external pod that also can be provided by RFID middleware, is embedded in RFID middleware and runs.
When being configured to detached process and being plug-in, RFID device is plug-in to be existed as detached process; When be configured to embedded plug-in time, in the host process of the plug-in direct embedding RFID middleware of RFID device.
Plug-in for RFID device, it can have multiple models of concurrency: each equipment thread, each plug-in thread and each plug-in specified quantity thread.
In the simplest situations, all devices under each RFID is plug-in shares a thread, when having multiple RFID device in systems in which, if device access exists the phenomenons such as obstruction or delay, then this model must cause degraded performance due to serial processing.
In RFID middleware equipment is plug-in, also support each equipment thread mode and fixed qty thread.Pattern as its name suggests, each equipment thread mode is exactly be each RFID device plug-in distribution processing threads in plug-in, because this mode may exist the wasting of resources, therefore a compromise pattern is created---fixed qty thread, so that according to the real-time tuning of the ruuning situation of reality.
The present invention can in large-scale RFID application system, under the requirement that many equipment works simultaneously, make full use of the multinuclear characteristic of single computing machine, improve the processing power of RFID middleware, be different from traditional one process RFID middleware, adopt multi-process mode, the plug-in scheduling obtaining equilibrium of each equipment can be made, avoid because the plug-in exception of certain RFID device causes whole RFID middleware to be collapsed.
In dissimilar application, the quantity of various RFID device may from several to hundreds.In the present invention, by providing models of concurrency flexibly for RFID device is plug-in, such that each RFID device is plug-in all according to the actual requirements, can set different models of concurrency.
And the amendment achieved only by configuration, the switching hung over outside RFID device between different models of concurrency can be realized, even by change configuration, same RFID device can be realized plug-in, both under having may operate in detached process pattern, also as a dynamic linked library modular, can be embedded in RFID middleware.
Method described in the present invention, can work, comprise Windows, WinCE, Linux and Unix system in all operating system with shared drive.
Claims (3)
1. one kind for the plug-in method of equipment in RFID middleware, it is characterized in that: in the primary module of RFID middleware, be provided with the management submodule that the RFID device connected is managed, described management submodule adopts message queue mechanism, namely the message queue of instruction to the plug-in thread of multiple RFID device is sent by management submodule, the work of the plug-in thread of described multiple RFID device is controlled according to this instruction, and return data is to the message queue of described management submodule, the step that described management submodule employing message queue mechanism controls the work of the plug-in thread of multiple RFID device is as follows:
(1) in RFID middleware, first define the plug-in operation attribute of each RFID device, comprise burse mode, operational mode, the plug-in module information of equipment and corresponding facility information, wherein burse mode comprises: single thread mode, specified quantity thread mode, every platform RFID device thread mode; Operational mode comprises: detached process pattern, embedding middleware pattern; Facility information comprises: devices communicating pattern, devices communicating address, device polling setting;
(2) in RFID middleware, the common interface that define equipment is plug-in, comprising: the plug-in start and stop interface of the plug-in initialization interface of equipment, equipment, device scan interface, label write interface;
(3) in RFID middleware, embedded RFID equipment external pod and detached process RFID device container is provided;
(4) in the management submodule of RFID middleware, providing RFID label tag data receiver message queue, coming from the plug-in electronic tag data of equipment for receiving;
(5) in RFID device is plug-in, provide command reception message queue, for receive come from RFID middleware facility information, device scan instruction and equipment write instruction;
(6) when RFID middleware starts, read the operational mode information that each RFID device is plug-in: for plug-in with the equipment of detached process mode operation, RFID middleware starts a new detached process RFID device container, starts corresponding RFID device plug-in by detached process RFID device container; For plug-in with the equipment embedding middleware pattern, RFID middleware creates a new embedded RFID equipment external pod in middleware host process, starts RFID device plug-in by this container;
(7) RFID middleware by different containers started corresponding RFID device plug-in after, send its burse mode and relevant RFID device information to the message queue that this RFID device is plug-in;
(8) the plug-in burse mode that receives of described RFID device sets and after RFID device information of being correlated with, according to quantity and the burse mode set information of received RFID device, automatically adjusts worker thread quantity, enter normal mode of operation;
(9) the plug-in process of RFID device is after normal mode of operation, according to the label acquisition instructions that RFID middleware sends, scans, and return relevant tag data to RFID label tag data receiver message queue to equipment interior label data.
2., as claimed in claim 1 for the method that equipment in RFID middleware is plug-in, it is characterized in that: hang in physical aspect outside the RFID device in described step (1), is a dynamic link library.
3., as claimed in claim 1 for the method that equipment in RFID middleware is plug-in, it is characterized in that: in the process model of RFID middleware, provide two kinds of processes: RFID middleware host process and the plug-in process of RFID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010554780.6A CN102479102B (en) | 2010-11-23 | 2010-11-23 | A kind of method plug-in for equipment in RFID middleware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010554780.6A CN102479102B (en) | 2010-11-23 | 2010-11-23 | A kind of method plug-in for equipment in RFID middleware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102479102A CN102479102A (en) | 2012-05-30 |
CN102479102B true CN102479102B (en) | 2015-11-11 |
Family
ID=46091755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010554780.6A Active CN102479102B (en) | 2010-11-23 | 2010-11-23 | A kind of method plug-in for equipment in RFID middleware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102479102B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108090529B (en) * | 2016-11-22 | 2021-08-06 | 上海宝信软件股份有限公司 | Method for storing field terminal operation process data based on radio frequency identification technology |
CN112165161A (en) * | 2020-02-11 | 2021-01-01 | 吴龙圣 | Intelligent power grid monitoring method and system based on Internet of things |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731732A (en) * | 2005-06-23 | 2006-02-08 | 复旦大学 | High subsequent stream medium server system for realizing video quality and delivery rate control |
CN101403980A (en) * | 2008-11-12 | 2009-04-08 | 西安交通大学 | Multithreading processing method for electronic product code |
CN101477635A (en) * | 2008-12-12 | 2009-07-08 | 华南理工大学 | Embedded RFID middleware based on light-weight ALE |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7830256B2 (en) * | 2005-04-07 | 2010-11-09 | Microsoft Corporation | Method and system for setup of, and communication with, an RFID middleware server from an enterprise resource planning system server |
-
2010
- 2010-11-23 CN CN201010554780.6A patent/CN102479102B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731732A (en) * | 2005-06-23 | 2006-02-08 | 复旦大学 | High subsequent stream medium server system for realizing video quality and delivery rate control |
CN101403980A (en) * | 2008-11-12 | 2009-04-08 | 西安交通大学 | Multithreading processing method for electronic product code |
CN101477635A (en) * | 2008-12-12 | 2009-07-08 | 华南理工大学 | Embedded RFID middleware based on light-weight ALE |
Also Published As
Publication number | Publication date |
---|---|
CN102479102A (en) | 2012-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102890643B (en) | Resource scheduling system based on immediate feedback of application effect under display card virtualization | |
CN103037019B (en) | A kind of distributed data acquisition system and method based on cloud computing | |
US20160239011A1 (en) | Extending a Programmable Logic Controller with Apps | |
CN110377590B (en) | Data acquisition system and method based on Internet of things and computer readable storage medium | |
CN201259678Y (en) | Flexible and general RFID system | |
CN103500111A (en) | Information configuration method and device based on zookeeper | |
CN103024022A (en) | Controlling and management system and method of virtual machine application service | |
US9594606B2 (en) | Runtime extension framework | |
CN106484464B (en) | Tuner chip driving method and electronic equipment | |
US20150170556A1 (en) | Method, system, and device for determining a location of micro digital signage devices | |
CN101424941B (en) | Control implementing method and system | |
CN102479102B (en) | A kind of method plug-in for equipment in RFID middleware | |
CN106452835B (en) | The method and device thereof that the terminal software of particular hardware configuration updates | |
US20200233691A1 (en) | Containerized management services with high availability | |
CN107704253B (en) | Control character color transformation method and system and electronic device | |
CN102929619A (en) | Process automation software development system across hardware platform | |
CN109840815B (en) | System and method for order processing | |
CN102004891A (en) | Interprocess data communication method and device for RFID (Radio Frequency Identification Device) middleware | |
CN108960449A (en) | A kind of device location information maintaining method, device, system and cabinet | |
CN103268264B (en) | A kind of multi event synchronization RFID middleware system of low coupling and its implementation | |
US20100100609A1 (en) | System and method for directing display of a standard operation procedure of an item using multimedia devices | |
CN114115921A (en) | Edge computing framework and transparent gateway method, device and processor | |
CN103914339A (en) | Server management system and server management method | |
CN114443287A (en) | Image analysis method, device, equipment and storage medium | |
KR101041988B1 (en) | RFID Middleware system and method to support real-time balancing load of reader connections |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |