CN102479102A - Method for equipment plug-in in RFID (Radio Frequency Identification Device) middleware - Google Patents

Method for equipment plug-in in RFID (Radio Frequency Identification Device) middleware Download PDF

Info

Publication number
CN102479102A
CN102479102A CN2010105547806A CN201010554780A CN102479102A CN 102479102 A CN102479102 A CN 102479102A CN 2010105547806 A CN2010105547806 A CN 2010105547806A CN 201010554780 A CN201010554780 A CN 201010554780A CN 102479102 A CN102479102 A CN 102479102A
Authority
CN
China
Prior art keywords
rfid
equipment
plug
middleware
mode
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.)
Granted
Application number
CN2010105547806A
Other languages
Chinese (zh)
Other versions
CN102479102B (en
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.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software Co Ltd
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 Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN201010554780.6A priority Critical patent/CN102479102B/en
Publication of CN102479102A publication Critical patent/CN102479102A/en
Application granted granted Critical
Publication of CN102479102B publication Critical patent/CN102479102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to an RFID (Radio Frequency Identification Device) middleware belonging to the application field of RFID systems. A method for equipment plug-in in the RFID middleware is characterized in that a management submodule for managing connected RFID equipment is arranged in a main module of the RFID middleware; the management submodule adopts a message queue mechanism, i.e., the management submodule sends an instruction to message queues of a plurality of RFID equipment plug-in threads, the RFID equipment plug-in threads are controlled to work according to the instruction, and data are returned to the message queues of the management submodule. In the invention, a multiprocess way is adopted is adopted in a large RFID application system under the requirement that a plurality of equipments simultaneously work, so that each equipment plug-in is scheduled evenly, the processing capacity of the RFID middleware is improved, and collapsing the whole RFID middleware due to the abnormality of a certain RFID equipment plug-in is avoided.

Description

A kind of plug-in method of RFID middleware equipment that is used for
Technical field
The present invention relates to a kind of RFID middleware, relate in particular to towards large-scale RFID application system, based on multi-process, the multithreading of modern computer, in the RFID middleware to the plug-in method of carrying out flexible dispatching of RFID equipment.
Background technology
RFID middleware (Radio Frequency Identification middleware) is the bridge of communicating by letter between automatic identification equipment and the application system; It can discern and collect the electronic tag data of RFID equipment automatically, applies to fields such as various logistics, manufacturing and important item tracking widely.
RFID equipment is plug-in to be functional module the most basic in the RFID middleware, bottom, and the RFID middleware is exactly plug-in through controlling numerous RFID equipment, and is plug-in through each equipment again, realizes the access to different manufacturers RFID equipment.
In a large-scale applied environment, the RFID equipment that has hundreds of various models is worked at the same time, and RFID reader when work, its is reading tag ceaselessly, and this performance for the RFID middleware has proposed strict requirement.Simultaneously, this has also proposed strict requirement to the plug-in performance of RFID equipment with stability.
Along with reaching its maturity of polycaryon processor and hardware systems thereof, adopt multi-process and multithreading to come fully to excavate the processor potentiality, and improve the stability of software systems, become a kind of trend of middleware Technology just day by day.
In present many application software at home and abroad, generally adopted the mode of multithreading to improve data-handling capacity.But in the RFID middleware, the plug-in calculation element of RFID equipment based on multi-process and multithreading to RFID application characteristics does not appear as yet.
Chinese invention patent ublic specification of application CN1965281A discloses a kind of " calculation element that is used to move inserter program code module with multiple progress structure "; It has the multiple progress structure that is used at the dedicated process operation inserter program code module of himself, improves software security and reliability thereby use plug-in card program to design a model.This invention is a kind of general multi-process software architecture, and plug-in card program must be fixed with the process mode and move, and can't independently embed in the dedicated process with the DLL mode.
Chinese invention patent ublic specification of application CN1427618A discloses a kind of " based on the multi viewing angle video frequency programme network relaying method of multi-process ", through the multi-process mode, network combined vision signal is decomposed broadcast.Similar with last patented claim, it can't be applicable to the RFID middleware, and the method in this patented claim is not suitable for Windows and WinCE operating system simultaneously.
Chinese invention patent ublic specification of application CN101373509 discloses " a kind of RFID middleware based on distributed ALE ", has adopted distributed resource to come parallel computation to solve the overload problem.This patented claim takes to utilize many computing machine concurrent workings to improve the load of system, and uneconomical and solve balanced problem.
Summary of the invention
Technical matters to be solved by this invention provides the plug-in method of a kind of RFID of being used for middleware equipment, solves in the large-scale RFID application system, and under the requirement that many equipment are worked simultaneously, the problem of response scheduling and balanced Resources allocation.
Technical scheme
A kind of plug-in method of RFID middleware equipment that is used for; It is characterized in that: in the primary module of RFID middleware, be provided with the management submodule that the RFID equipment that connects is managed; Said management submodule adopts message queue mechanism; Promptly send the message queue of instruction to the plug-in thread of a plurality of RFID equipment by management submodule, according to the work of the plug-in thread of the said a plurality of RFID equipment of this instruction control, and the message queue of return data to said management submodule.
Further, to adopt message queue mechanism to control the step of work of the plug-in thread of a plurality of RFID equipment following for said management submodule:
(1) at first in the RFID middleware, defines the plug-in operation attribute of each RFID equipment; Comprise burse mode, operational mode, the plug-in module information of equipment and corresponding apparatus information, wherein burse mode comprises: single thread mode, specified quantity thread mode, thread mode of every RFID equipment; Operational mode comprises: detached process pattern, embedding middleware pattern; Facility information comprises: devices communicating pattern, devices communicating address, device polling are set;
(2) in the RFID middleware, the common interface that define equipment is plug-in comprises: the plug-in initialization interface of equipment, the plug-in start and stop interface of equipment, device scan interface, label are write incoming interface;
(3) in the RFID middleware, embedded RFID equipment external pod and detached process RFID equipment container are provided;
(4) in the management submodule of RFID middleware, provide the RFID label data to receive message queue, be used to receive and come from the plug-in electronic tag data of equipment;
(5) in RFID equipment is plug-in, the command reception message queue is provided, be used to receive the facility information, device scan instruction and the equipment that come from the RFID middleware and write instruction;
When (6) the RFID middleware starts; Read the plug-in operational mode information of each RFID equipment: for plug-in with the equipment of detached process mode operation; The RFID middleware starts a new detached process RFID equipment container, and it is plug-in to start corresponding RFID equipment by detached process RFID equipment container; For plug-in with the equipment that embeds the middleware pattern, the RFID middleware is created a new embedded RFID equipment external pod in the middleware host process, and it is plug-in to start RFID equipment by this container;
(7) the RFID middleware by different container start accomplish corresponding RFID equipment plug-in after, the message queue plug-in to this RFID equipment sends its burse mode and relevant RFID facility information;
(8) said RFID equipment plug-in receive burse mode set with relevant RFID facility information after, according to the RFID amount of equipment of being received and burse mode set information, adjust worker thread quantity automatically, the entering normal mode of operation;
(9) the plug-in process of RFID equipment is after normal mode of operation, and the label acquisition instructions according to the RFID middleware sends scans equipment interior label data, and returns the respective labels data to RFID label data reception message queue.
In the said step (1), the RFID equipment in the RFID middleware hangs over outward on the physical aspect, is a dynamic link library.
In the said step (3), in the process model of RFID middleware, two kinds of processes are provided: the plug-in process of RFID middleware host process and RFID.
Beneficial effect
The present invention can be in large-scale RFID application system; Under the requirement that many equipment are worked 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 the multi-process mode, can obtain balanced scheduling, avoid causing the collapse of entire RF ID middleware unusually because certain RFID equipment is plug-in so that each equipment is plug-in.
Description of drawings
Fig. 1 is the block diagram of exemplifying embodiment of the present invention.
Embodiment
Below in conjunction with specific embodiment and accompanying drawing, further set forth the present invention.
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, in each equipment is plug-in, according to application demand, different models of concurrency can be set simultaneously.Owing to introduce the framework of multi-process, make the RFID middleware can not reduce the possibility of Single Point of Faliure owing to the plug-in collapse of certain equipment causes global failure.
Shown in accompanying drawing 1; The RFID equipment external hanging device of implementing according to the inventive method is used for the RFID middleware, mainly comprises: management submodule, embedded RFID equipment external pod, RFID equipment external pod, the plug-in command reception message queue of RFID and RFID plug-in device collecting thread pond in the RFID middleware primary module.
The RFID external pod is a detached process, and it has identical message queue interface with embedded RFID equipment external pod, they with the RFID middleware in management submodule directly only through message queue carry out data and steering order alternately.
When the plug-in startup of RFID equipment, it according to the quantity of relevant device, starts a RFID plug-in device collecting thread pond according to the setting of current application, and each thread is responsible for the scanning/write operation of one or more RFID equipment.
When RFID equipment is plug-in when collecting label data, they send to data in the message queue that the label data of RFID middleware receives, and accomplish the tag scan task.
When needs when electronic tag writes data; RFID middleware host process is through writing corresponding control messages in the plug-in message queue of relevant device; After RFID equipment received corresponding control messages, with the equipment specific protocol, the RFID equipment of appointment in message sent label data and writes/modify instruction; And the result is back among the RFID middleware host process, accomplish the whole flow process that label writes.
In the process model of RFID middleware, there are two kinds of processes: RFID middleware host process and the plug-in process of RFID equipment.
RFID middleware host process is in charge of all plug-in processes of RFID equipment, is sent the label acquisition instructions and accept the plug-in electronic tag data that collects to RFID equipment is plug-in.The plug-in process of RFID equipment then is responsible for completion.Between RFID middleware host process and RFID equipment were plug-in, only the message queue through striding course communicated.
In when operation, each RFID equipment is plug-in, can exist with the form of a detached process, and the embedded RFID external pod that also can provide through the RFID middleware is embedded in the RFID middleware and moves.
When being configured to detached process when plug-in, RFID equipment is plug-in to be existed as detached process; Embedded when plug-in when being configured to, RFID equipment is plug-in directly to embed in the host process of RFID middleware.
Plug-in for RFID equipment, it can have multiple models of concurrency: thread of each equipment, each plug-in thread and each plug-in specified quantity thread.
Under the simplest situation; All devices under each RFID is plug-in is shared a thread; In system, have under the situation of a plurality of RFID equipment, if there are phenomenons such as obstruction or delay in device access, then this model must cause performance low owing to serial processing.
In the RFID middleware equipment is plug-in, thread mode of each equipment and fixed qty thread have also been supported.Pattern as its name suggests; Thread mode of each equipment is exactly in plug-in, to be processing threads of the plug-in distribution of each RFID equipment; Because possibly there is the wasting of resources in this mode; Therefore produced a compromise pattern---fixed qty thread, so that transfer excellent in real time according to the ruuning situation of reality.
The present invention can be in large-scale RFID application system; Under the requirement that many equipment are worked 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 the multi-process mode, can obtain balanced scheduling, avoid causing the collapse of entire RF ID middleware unusually because certain RFID equipment is plug-in so that each equipment is plug-in.
In dissimilar application, various RFID amount of equipment maybe be from several to hundreds of.In the present invention, through for the plug-in models of concurrency flexibly that provides of RFID equipment, make that each RFID equipment is plug-in all can set different models of concurrency according to the actual requirements.
And only realized modification through configuration; Can realize that RFID equipment hangs over the switching between the different models of concurrency outward; Even, can realize that same RFID equipment is plug-in through the change configuration, both may operate under the detached process pattern; Also can be used as a dynamic linked library modular, be embedded in the RFID middleware.
Described in the present invention method can be worked on all have the operating system of shared drive, comprises Windows, Win CE, Linux and Unix system.

Claims (4)

1. one kind is used for the plug-in method of RFID middleware equipment; It is characterized in that: in the primary module of RFID middleware, be provided with the management submodule that the RFID equipment that connects is managed; Said management submodule adopts message queue mechanism; Promptly send the message queue of instruction to the plug-in thread of a plurality of RFID equipment by management submodule, according to the work of the plug-in thread of the said a plurality of RFID equipment of this instruction control, and the message queue of return data to said management submodule.
2. the plug-in method of RFID middleware equipment that is used for as claimed in claim 1 is characterized in that: it is following that said management submodule adopts message queue mechanism to control the step of work of the plug-in thread of a plurality of RFID equipment:
At first in the RFID middleware, define the plug-in operation attribute of each RFID equipment; Comprise burse mode, operational mode, the plug-in module information of equipment and corresponding apparatus information, wherein burse mode comprises: single thread mode, specified quantity thread mode, thread mode of every RFID equipment; Operational mode comprises: detached process pattern, embedding middleware pattern; Facility information comprises: devices communicating pattern, devices communicating address, device polling are set;
In the RFID middleware, the common interface that define equipment is plug-in comprises: the plug-in initialization interface of equipment, the plug-in start and stop interface of equipment, device scan interface, label are write incoming interface;
In the RFID middleware, embedded RFID equipment external pod and detached process RFID equipment container are provided;
In the management submodule of RFID middleware, provide the RFID label data to receive message queue, be used to receive and come from the plug-in electronic tag data of equipment;
In RFID equipment is plug-in, the command reception message queue is provided, be used to receive the facility information, device scan instruction and the equipment that come from the RFID middleware and write instruction;
When the RFID middleware starts; Read the plug-in operational mode information of each RFID equipment: for plug-in with the equipment of detached process mode operation; The RFID middleware starts a new detached process RFID equipment container, and it is plug-in to start corresponding RFID equipment by detached process RFID equipment container; For plug-in with the equipment that embeds the middleware pattern, the RFID middleware is created a new embedded RFID equipment external pod in the middleware host process, and it is plug-in to start RFID equipment by this container;
The RFID middleware by different container start accomplish corresponding RFID equipment plug-in after, the message queue plug-in to this RFID equipment sends its burse mode and relevant RFID facility information;
Said RFID equipment is plug-in receive burse mode set with relevant RFID facility information after, according to the RFID amount of equipment of being received and burse mode set information, adjust worker thread quantity automatically, the entering normal mode of operation;
The plug-in process of RFID equipment is after normal mode of operation, and the label acquisition instructions according to the RFID middleware sends scans equipment interior label data, and returns the respective labels data to RFID label data reception message queue.
3. the plug-in method of RFID middleware equipment that is used for as claimed in claim 2, it is characterized in that: in the said step (1), the RFID equipment in the RFID middleware hangs over outward on the physical aspect, is a dynamic link library.
4. the plug-in method of RFID middleware equipment that is used for as claimed in claim 2 is characterized in that: in the said step (3), in the process model of RFID middleware, two kinds of processes are provided: the plug-in process of RFID middleware host process and RFID.
CN201010554780.6A 2010-11-23 2010-11-23 A kind of method plug-in for equipment in RFID middleware Active CN102479102B (en)

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 true CN102479102A (en) 2012-05-30
CN102479102B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090529A (en) * 2016-11-22 2018-05-29 上海宝信软件股份有限公司 The storage method of on-site terminal operation process data based on Radio Frequency Identification Technology
CN111260504A (en) * 2020-02-11 2020-06-09 吴龙圣 Intelligent power grid monitoring method and system and intelligent power grid controller

Citations (4)

* Cited by examiner, † Cited by third party
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
US20060226981A1 (en) * 2005-04-07 2006-10-12 Microsoft Corporation Method and system for setup of, and communication with, an RFID middleware server from an enterprise resource planning system server
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060226981A1 (en) * 2005-04-07 2006-10-12 Microsoft Corporation Method and system for setup of, and communication with, an RFID middleware server from an enterprise resource planning system server
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090529A (en) * 2016-11-22 2018-05-29 上海宝信软件股份有限公司 The storage method of on-site terminal operation process data based on Radio Frequency Identification Technology
CN111260504A (en) * 2020-02-11 2020-06-09 吴龙圣 Intelligent power grid monitoring method and system and intelligent power grid controller
CN112134356A (en) * 2020-02-11 2020-12-25 吴龙圣 Smart power grid fault monitoring method and system based on big data analysis
CN112165161A (en) * 2020-02-11 2021-01-01 吴龙圣 Intelligent power grid monitoring method and system based on Internet of things

Also Published As

Publication number Publication date
CN102479102B (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN108090731B (en) Information processing method and device
CN102890643B (en) Resource scheduling system based on immediate feedback of application effect under display card virtualization
CN101620527A (en) Managing active thread dependencies in graphics processing
CN101923626B (en) Radio frequency identification system and anti-collision tag check terminating method thereof
US7830902B2 (en) Arbiter, crossbar, request selection method and information processing device
CN105677501A (en) Refined process monitoring method and system based on watchdog in Linux system
US10002553B2 (en) Method, system, and device for determining a location of micro digital signage devices
CN102279766B (en) Method and system for concurrently simulating processors and scheduler
CN101464811A (en) Multitask monitoring management system
CN104503932A (en) Method and system for judging master baseboard management controller of multi-mainboard server
CN105068865A (en) Task scheduling method and apparatus
Wang et al. Fundamental technology for RFID-based supervisory control of shop floor production system
CN105190539A (en) Method and apparatus to avoid deadlock during instruction scheduling using dynamic port remapping
CN102736595A (en) Unified platform of intelligent power distribution terminal based on 32 bit microprocessor and real time operating system (RTOS)
CN101424941B (en) Control implementing method and system
US10747603B2 (en) Agentless remediation and recovery
CN103077140A (en) Communication method and communication device for motion control card of robot and host
CN107704253B (en) Control character color transformation method and system and electronic device
CN103685083A (en) Communication method in asynchronous management network
CN102479102A (en) Method for equipment plug-in in RFID (Radio Frequency Identification Device) middleware
CN105550131B (en) A kind of interface data processing system and method based on finite state machine and ARINC659 buses
KR100759218B1 (en) Advanced rfid middleware engine system and a method by using the system
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

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