CN103455611A - Data processing method for RFID (Radio Frequency Identification) middleware - Google Patents

Data processing method for RFID (Radio Frequency Identification) middleware Download PDF

Info

Publication number
CN103455611A
CN103455611A CN2013104032882A CN201310403288A CN103455611A CN 103455611 A CN103455611 A CN 103455611A CN 2013104032882 A CN2013104032882 A CN 2013104032882A CN 201310403288 A CN201310403288 A CN 201310403288A CN 103455611 A CN103455611 A CN 103455611A
Authority
CN
China
Prior art keywords
event data
data
event
primitive
primitive event
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
CN2013104032882A
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN2013104032882A priority Critical patent/CN103455611A/en
Publication of CN103455611A publication Critical patent/CN103455611A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a data processing method for RFID (Radio Frequency Identification) middleware. The data processing method comprises the steps: receiving raw event data which are read from an electronic tag; converting the raw event data into a standard format; performing filter treatment on the raw event data to obtain simple event data; and performing event matching on the simple event data with a preset rule model, and generating complicated event data according to a matching result. The data processing method disclosed by the invention is compatible with different read-write equipment, business requirements can be met, and the method has stronger real-time processing capability.

Description

The data processing method of RFID middleware
Technical field
The present invention relates to the RFID technology, particularly relate to a kind of data processing method of RFID middleware.
Background technology
Article mark is for all impacts of own profound of the various aspects such as logistics, monitoring.Bar code be maximum in actual use be also the most perfect technology, but the progress along with science and technology and the mankind, bar code also exposes very many-sided shortcoming gradually, and under this background, noncontact, recognition method remote, robotization become the urgent problem in article mark field.Radio frequency identification (Radio Frequency Identification, RFID) can meet the technology of this demand just.Since the nineties in last century, the RFID development has become the important branch in article mark field.
With traditional article identification technology bar code, compare, RFID has many merits, comprising: be different from the papery packing of bar code, electronic tag is by circuit package therein, is difficult for damaged; Due to the difference of storage medium, the RFID technology can be carried more information on label; Recognition speed is fast; Antijamming capability is strong; Can identify a plurality of targets simultaneously.Therefore the use increasingly increased is in various different occasions such as traffic, logistics, city management, and for increasingly flourishing information network, the collection of the much informations such as RFID, radio sensing network and transfer mode are combined, form Internet of Things, realized sign and the information sharing of article.Due to the unique identification of RFID, the aspect such as its utilization is false proof, tracking, can bring a lot of facilities to business and government.As logistic industry can be applied in it in links of article dispensings, with the information of real-time grasp commodity circulation, and can effectively shorten the activity duration, reduce running expense, realize the management objectives that quantize.Drinks and luxury goods industry can be different from fragile, the easy forgery of bar code by RFID for false proof, electronic tag have at a distance just can scan, storage information is passed through encryption, can be attached to the characteristics such as commodity inside, can guarantee the authenticity of commodity.For the retailer, the use of RFID technology, for they have brought a lot of facilities, can save a large amount of human costs especially, reduces the workload of the links such as storage, dispensing, sale.
The RFID technology has had application in many aspects at present, still have a segment distance but distance replaces barcode technology, and the factor of restriction RFID large-scale application mainly contains 2 points: the one, and hardware device is more expensive than bar code; The 2nd, do not have qualified industry standard to implement the RFID application.The latter is mainly manifested in the RFID application system does not have unified interface to be docked with the operation system of enterprise.Therefore, we need a kind of scheme come compatible the two.And need to complete this " bridge " effect be exactly the RFID middleware.One end of this " bridge " is the read write line of different manufacturers, different model, and the other end is the existing operation system of enterprise, and the work of RFID middleware is exactly to provide one not need their directly communications conduits of processing for these two ends.
In current RFID middleware product, exist problem more or less, as:
1) current RFID middleware product is due to the limitation of producer, all to develop on oneself product platform of manufacturer, select the middleware of a certain family, also just can only select his rfid interrogator, this professional platform independence required for middleware is irrational.Such middleware has a strong impact on RFID middleware promoting the use of in enterprise.
2) a little less than event handling ability
These RFID data that current RFID middleware product receives in aspect ,Er backstage systems such as filtration, duplicate removal, redundancy processing for the more consideration of the processing of RFID data can not directly be applied.If additional any information, the RFID data are only to have identified certain label sometime to be read by a certain reader, and obviously, what operation system more wished to receive is for the significant event of judgement service logic.Single label event meaning rareness, system can not be obtained its needed and information traffic aided from this elementary event, therefore only provides elementary event can't meet the operation system demand.
3) processing capability in real time shortcoming
Because rfid system has the advantages that to read in a large number at a high speed, therefore the RFID middleware can receive mass data at short notice, and being all requirement, these data processed in time, if according to traditional database that first is stored into, the mode of inquiry is processed again, not only inefficiency, be also great burden for system.Therefore, introducing the technology of processing in real time is to need most the part of consideration in current RFID middleware.
Summary of the invention
Provide hereinafter about brief overview of the present invention, in order to the basic comprehension about some aspect of the present invention is provided.Should be appreciated that this general introduction is not about exhaustive general introduction of the present invention.It is not that intention is determined key of the present invention or pith, and nor is it intended to limit the scope of the present invention.Its purpose is only that the form of simplifying provides some concept, usings this as the preorder in greater detail of discussing after a while.
The invention provides a kind of data processing method of RFID middleware, can compatible different read-write equipment, can meet business demand and there is stronger processing capability in real time.
The data processing method of RFID middleware of the present invention comprises:
The primitive event data that reception is read from electronic tag;
Described primitive event data are converted to standard format;
Described primitive event data are carried out obtaining the simple event data after filtration treatment;
Described simple event data and the rule model set in advance are carried out to event matches, and produce the complicated event data according to matching result.
In technical scheme provided by the invention, by the primitive event data that will read from electronic tag, be converted to standard format, make it possible to the read-write equipment of enough compatible different manufacturers, various criterion, the shielding hardware differences.And, by the primitive event data are carried out to filtration treatment, can filter out the event data that meets certain condition, can promote the treatment effeciency of event data.In addition, by simple event data and the rule model set in advance are carried out to event matches, and produce the complicated event data according to matching result, make it possible to, according to the needs of upper-layer service system, suitable rule model is set, produce the required complicated event data of upper-layer service system, can meet better business demand, and in this way, can realize that first query event data carry out data transmission or storage again, there is stronger processing capability in real time.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of embodiment of data processing method that Fig. 1 is RFID middleware of the present invention;
Fig. 2 is the RFID middleware that adopts of the present invention and the connection diagram between upper-layer service system and electronic tag and read write line thereof;
The structural representation that Fig. 3 is a kind of RFID middleware of adopting of the present invention;
Fig. 4 is the present invention's a kind of operational flowchart when the primitive event data are carried out to cleaning treatment;
To be the present invention carry out temporal filtering a kind of operational flowchart while processing to the primitive event data to Fig. 5;
Fig. 6 is the present invention's a kind of operational flowchart when the primitive event data are carried out to product electronic code filtration treatment;
Fig. 7 is the present invention's a kind of operational flowchart when the primitive event data are carried out to the reader filtration treatment.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.The element of describing in an accompanying drawing of the present invention or a kind of embodiment and feature can combine with element and feature shown in one or more other accompanying drawing or embodiment.It should be noted that for purposes of clarity, omitted expression and the description of unrelated to the invention, parts known to persons of ordinary skill in the art and processing in accompanying drawing and explanation.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not paying creative work, belong to the scope of protection of the invention.
The process flow diagram of a kind of embodiment of data processing method that Fig. 1 is RFID middleware of the present invention, as shown in Figure 1, the method comprises the following steps:
Step S11: receive the primitive event data that read from electronic tag;
Step S13: described primitive event data are converted to standard format;
Step S15: described primitive event data are carried out obtaining the simple event data after filtration treatment;
Step S17 carries out event matches by described simple event data and the rule model set in advance, and produces the complicated event data according to matching result.
Alternatively, between step S13 and step S15, also comprise:
The primitive event data are carried out to buffer memory.The purpose of buffer memory is to solve some events across the time of finding, see whether meet rule such as analyzing repeatedly data, for example, some complex datas need to carry out fusion treatment to real time data and historical data and just can draw, need flow of event is carried out to buffer memory to generate historical data.
Alternatively, producing the complicated event data also comprises afterwards:
The complicated event data are saved to database, or the complicated event data are reported to operation system.That is, the complicated event of generation can have two flow directions: the one, flow into event database, for the user in the future the query history event query interface is provided; The 2nd, flow into message queue, the user takes out the event information that oneself needs from queue according to demand.
Fig. 2 is the RFID middleware that adopts of the present invention and the connection diagram between upper-layer service system and electronic tag and read write line thereof.As shown in Figure 2, RFID middleware of the present invention is connected between upper-layer service system and read write line (or automatic identification equipment of other identification electronic tags), read write line is used for from electronic tag reading tag data (primitive event data), the RFID middleware can receive this primitive event data according to queue, and produce by each step in execution graph 1 the complicated event data that the upper-layer service system needs, and the complicated event data of generation are stored into to database or send in the upper-layer service system.
The structural representation that Fig. 3 is a kind of RFID middleware of adopting of the present invention.As shown in Figure 3, this middleware comprises device management module, application service module and communication module,
Device management module belongs to directly the part of coming into contacts with the hardware reader, and it is responsible for communicating by letter between the reader with different manufacturers, specification, the integrated different hardware product of needs, so this layer provides unified interface.Simultaneously, it is also the ground floor that receives the RFID data, and the information format of different electronic tags also may be different, so it need to be processed the data that receive, and is fused into unified data layout, and does preliminary data and process (as cleaned redundant data).
Application service module is the core of middleware, and it has concentrated the Complex event processing function of RFID middleware.Be aggregated into this one deck through simply dealt data, label event is carried out to cleaning treatment, comprise filtration, gathering, fusion etc., then generate the interested service logic event of upper-layer service system by predefined rule model, and pack and report according to different demands.
Communication module and upper-layer service system relationship, provide the complex data of generation to operation system.Major function comprises event inquiry and information service.
The process of the above-mentioned generation complicated event of the present invention data is similar to the database of a reversion, traditional database is based on storage-inquiry, at first store data, again according to the rule query data, the present invention is storing queries rule at first to the processing of event, and flow of event is carried out to continual monitoring, therefrom find out legal validity event, again event is carried out to distribution processor, and, also can further draw according to matching result the complicated event that the upper-layer service system needs.
The primitive event data that propose in the present invention refer to that less composition can not be cut apart again in the minimum one-level unit in the event hierarchy.It generally only comprises a small amount of information, and, when definite moment, primitive event is to determine that whether it occurs, and has determinacy.In the RFID middleware, primitive event refers to the read-write operation of read write line to label, can describe by tlv triple:<ID, tagID, timeStamp >, wherein ID represents read write line, and tagID represents label data, and timeStamp represents timestamp.
Complicated event: be the higher level new events that a group event aggregation forms together, these events of carrying out converging operationJu Hecaozuo can be primitive events, can be also complicated events.The new events generated has obvious advantage on quantity of information, and has the clear and definite meaning of one's words, can be adopted as effective service logic event by system.Compound event can mean by two following tuples:<element, operator >, wherein element is the component of complicated event, can be primitive event, can be also compound event, operator is operation rule.
The present invention is converted to standard format by the primitive event data that will read from electronic tag, makes it possible to the read-write equipment of enough compatible different manufacturers, various criterion, the shielding hardware differences.And, by the primitive event data are carried out to filtration treatment, can filter out the event data that meets certain condition, can promote the treatment effeciency of event data.In addition, by simple event data and the rule model set in advance are carried out to event matches, and produce the complicated event data according to matching result, make it possible to, according to the needs of upper-layer service system, suitable rule model is set, produce the required complicated event data of upper-layer service system, can meet better business demand, the business demand that can adapt to continuous variation, and extremely low to existing systematic influence, do not need secondary development repeatedly, meet the characteristic of agile development.And in this way, can realize that first query event data carry out data transmission or storage again, and there is stronger processing capability in real time, make system more responsive for real-time change, state is more accurate.
Alternatively, before step S11, also comprise: the communications status with reader is set.
By the reader of the interface management different manufacturers production that provides unified is set in middleware, such as increasing new reader (setting up the communication of the reader new with this), deleting existing reader (disconnecting the communication with the current reader be connected) etc.Due to the RFID reader hardware, manufacturer is numerous, and there be development environment and the language of oneself in every family, therefore, can strengthen the compatibility to different readers.
Alternatively, between step S13 and step S15, also comprise the cleaning treatment of primitive event data, specifically comprise:
Set time-count cycle, the zero clearing counter;
Often receive the primitive event data one time, all counter is done and added 1 operation, until arrive a time-count cycle;
Counter values and the amount threshold of setting are in advance compared, when counter values is more than or equal to amount threshold, using the primitive event data of reception as valid data; If counter values is less than amount threshold, empties the primitive event data of reception and produce alarm operation.
Set time-count cycle, the zero clearing counter;
Often receive the primitive event data one time, all counter is done and added 1 operation, until arrive a time-count cycle;
Counter values and the amount threshold of setting are in advance compared, when counter values is more than or equal to amount threshold, using the primitive event data of reception as valid data; If counter values is less than amount threshold, empties the primitive event data of reception and produce alarm operation.
Below the step of cleaning treatment is elaborated:
Due to the characteristic of rfid interrogator, inevitably there will be following error:
Skip: refer to that electronic tag is not but read the wherein situation of information by reader through reader.Generally, single label is less through the out-of-date possibility by skip, is in most cases when a plurality of labels pass through reader simultaneously, can be because the factors such as reading performance, environment cause label by the situation of skip.This mistake is also referred to as refuses very;
Mutiread: refer to that a plurality of readers read the situation of same label repeatedly.In practice, the reading speed of RFID reader is very fast, and to read the motion path of electronic tag in interval be limited so short, therefore likely occurs that same label is repeatedly read by a reader.Also have a kind of situation also very common, the reader in practice is disposed a plurality of in a zone, and label is read by a plurality of readers so, and these data for remaining reader more than.This mistake is called as receives puppet;
Dirty data: refer to that reader has read label data, but error between these data and True Data.
In actual applications, the minimizing skip phenomenon that can try one's best by disposing a plurality of readers, but increased the mutiread mistake so simultaneously, if do not add processing total data is reported, system is understood so be expended a large amount of time and process the event of redundancy so, so before entering event handling, needs at first the data in the RFID application to be carried out to filter operation.
The mutiread mistake has more present following situation: label enters read-write and removes close quarters, according to normal route running the time, by a certain reader far away, read, this reader may only occur reading of this label one twice, the reading speed that does not meet reader is set, therefore think that this label does not belong to the read range of this reader, current operation belongs to the mutiread operation.For fear of this situation occurring, use a kind of cleaning method of simultaneously considering T/A.Setting-up time threshold value and number of labels threshold value, if the label number of times read in time threshold has equaled or exceeded the number of labels threshold value, think that the label read is validity event in this periods of events, can report upper system, otherwise think invalid event, delete label data and carry out alarm operation.
Fig. 4 is the present invention's a kind of concrete operational flowchart when the primitive event data are carried out to cleaning treatment.As shown in Figure 4, when primitive event is carried out to cleaning treatment, can carry out following operation: set timer period according to time threshold, the zero clearing counter, wait for the arrival of label event;
After receiving first label event, open timer, unison counter quantity adds 1, and label data is cached in queue;
When timer does not also arrive one-period, often receive label event one time, all counter is done and added 1 operation;
When timer arrives one-period, counter values and the amount threshold of setting are in advance compared, when counter values is more than or equal to amount threshold, think that current reading tag event is validity event, report upper system; If counter values is less than amount threshold, think that speech reading tag event is invalid event, empty queue, produce alarm operation;
Empty buffer queue, carry out duplicate removal filter operation next time.
After the duplicate removal operation, the actual data volume obtained is still very large, efficiency due to event processing mechanism, can't process at short notice these a large amount of data, therefore need one for data cached module, it provides the place of a buffer memory for the data between data scrubbing and event handling, the data that to process through duplicate removal are put into cache module, transfer to event processing module according to the principle of first in first out again and processed, solved the difference problem on the two processing speed.
Alternatively, in step S15, primitive event is carried out to filtration treatment and comprises the temporal filtering processing, comprising:
Copy the primitive event data of reception to the input list;
Judge that timestamp in the primitive event data whether within the time period of setting, if so, to output listing, if not, deletes by the primitive event data primitive event data mobile from the input list.
Time filter is mainly used for being captured in the label event read in the time of user's appointment, and the label event in is not at the appointed time filtered out by system.Time filter, for the user provides the data result collection of being concerned about the time period, makes redundant data to be filtered in a large number.Time filter needs an input list, an output listing, also has the time variable of an appointment, for preserving the time of user's appointment.
To be the present invention carry out temporal filtering a kind of concrete operational flowchart while processing to the primitive event data to Fig. 5.As shown in Figure 5, when primitive event is carried out to the temporal filtering processing, can carry out following operation:
The first step, copy the primitive event data that receive in the input list to, and set appointment time variable, the scope that this variable filters due to setting-up time;
Second step, first of getting the input list, and the time variable of its timestamp attribute and first step setting is compared, if timestamp is in time variable, illustrate that this data object meets the filtration requirement, it is copied in output queue, and delete first in input queue.If timestamp not in time variable, illustrates that this data object does not meet the filtration requirement, in input queue by the first entry deletion;
The 3rd step, judge that whether input queue is empty, if not empty, repeats to continue second step; If it is empty, deadline filtration of input queue is described, all satisfactory data objects all are input in output queue, filter and finish, and the data object in output queue can be sent to next processing module.
Alternatively, in step S15, primitive event is carried out to filtration treatment and comprises product electronic code filtration treatment, comprising:
The primitive event data that receive are copied in the input list;
Whether the product electronic code in the primitive event data in judgement input list meets default mask standard, if so, the primitive event data mobile, to output listing, if not, is deleted the primitive event data from the input list.
Product electronic code (EPC) filtrator is mainly used for being captured in the label object of user's specified scope.EPC code filtrator is mainly used in specifying the monitoring of article, and by this filtrator, the user can directly obtain specifying the event information of monitoring commodity.The EPC coding has many forms, the most basic binary number that is 96 or 64, but this form is difficult to be processed by system, so the AUTO-ID center defines another kind of expression mode: Uniform Resource Identifier (Uniform Resource Identifier, URI.According to the ALE Naming conventions, URI can be represented as following form: urn.epc.tag.sgtin-96:x.x.x.x.Wherein urn means naming rule; Epc means to meet the EPC coding standard; Tag means that this is the URI of an electronic tag; Sgtin-96 means that this is sgtin(global trade goods code) 96 coding schemes; Latter four is tag number, is globally unique coding.
In order to use the EPC filtrator, at first need to set a mask, the form of mask is: urn.epc.pat.sgtin-96:x.x.[x-y] .x.Coded format and the EPC code that can see mask are substantially similar, and the place of difference is: pat means that this is a mask; In latter four, first is version number; Second is long constant; The 3rd is a long scope; The 4th can be constant, can be also *.Mask uses in order to filter the EPC code, mainly by latter four, filter, meet mask version number, meet deputy value, in tertiary scope, meet the value (if * means that any value all meets) of the 4th, such EPC code can be by filtering.It can be seen, the mask that the user arranges can be an occurrence (filtering specific some RFID data), can be also a scope (filtering the RFID data of certain limit), depends on actual needs.Be exemplified below: mask is urn.epc.pat.sgtin-96:30.318.[2089-28765] .*, can be by filtering if the EPC code is urn.epc.pat.sgtin-96:30.318.3786.3122, but be encoded to urn.epc.pat.sgtin-96:30.276.1276.2435 and do not meet the mask rule, can not be by filtering.
The EPC filtrator needs an input queue, an output queue, a mask list that the user arranges.
Fig. 6 is the present invention's a kind of concrete operational flowchart when the primitive event data are carried out to product electronic code filtration treatment.As shown in Figure 6, when primitive event is carried out to product electronic code filtration treatment, can carry out following operation:
The first step, copy the RFID event object received in the input list to.
Second step, get first that inputs list, draw the EPC coding of the label of its representative, and each of it and mask list is compared, until find first, it meets the mask of filtering rule, illustrate that this data object meets the filtration requirement, it is copied in output queue, and delete first in input queue.If can not find such mask, illustrate that this data object does not meet the filtration requirement, in input queue by its deletion;
The 3rd step, judge that whether input queue is empty, if not empty, repeats to continue second step; If it is empty, illustrate that input queue has completed the EPC code and filtered, all satisfactory data objects all are input in output queue, filter and finish, and the data object in output queue can be sent to next processing module.
Alternatively, in step S15, primitive event is carried out to filtration treatment and comprises the reader filtration treatment, comprising:
The primitive event data that receive are copied in the input list;
Whether the reader coding in the primitive event data in judgement input list meets default mask standard, if so, the primitive event data mobile, to output listing, if not, is deleted the primitive event data from the input list.
The reader filtrator provides the ability of collect specifying reader, makes the user can monitor the reading information of the particular reader of own needs, such as the gateway in warehouse, personnel's discrepancy monitoring etc.Adopt identical thinking with EPC code filtrator, reader is encoded according to certain standard, and give unique URI:urn.epc.reader.Invengo:x.x.x.x.The coding implication is identical with the EPC code, and wherein reader represents that this is a reader coding, and Invengo represents dissimilar reader.Take same filtration measure, mask is set, specific rules can, with reference to EPC code filtrator, repeat no more.
Reader encoding filter device needs an input queue, an output queue, a mask list that the user arranges.
Fig. 7 is the present invention's a kind of concrete operational flowchart when the primitive event data are carried out to the reader filtration treatment.As shown in Figure 7, when primitive event is carried out to the reader filtration treatment, can carry out following operation:
The first step, copy the RFID data object received in the input list to.
Second step, get first that inputs list, can draw the ID of the reader of its representative, this ID is encoded according to the EPC standard, each of it and mask list is compared, until find first, it meets the mask of filtering rule, illustrates that this data object meets the filtration requirement, it is copied in output queue, and delete first in input queue.If can not find such mask, illustrate that this data object does not meet the filtration requirement, in input queue by its deletion;
The 3rd step, judge that whether input queue is empty, if not empty, repeats to continue second step; If it is empty, illustrate that input queue has completed reader and filtered, all satisfactory data objects all are input in output queue, filter and finish, and the data object in output queue can be sent to next processing module.
Alternatively, in step S17, simple event data and the rule model set in advance are carried out to event matches, comprising:
Limit the simple event data of carrying out event matches according to default time window or length window.For example, define the time window of 3 seconds, and add up the mean value of the price attribute of the event object in 3 seconds, or the definition length length window that is 10, add up the mean value of the price attribute of nearest 10 event objects.The mean value of the price obtained report the upper-layer service system or be stored to database as complex data.
Alternatively, in step S17, according to matching result, produce the complicated event data, comprising:
Detect the queue of the simple data event flowed into by default state automata, between different conditions in state automata, by the rule of restrained condition migration, meaned, a certain event in queue and rule model coupling, be made as state automata original state S i;
When the simple event data that meet transition condition between two states are arranged in queue, the state automata state is by original state S imigrate to state S i+1, until in queue, have the Event triggered state automata migrate to receptive phase or state automata state become invalid;
Abandon the simple event data that do not meet transition condition, and output meets the queue of the simple event data of transition condition.
In rfid system, a large amount of events is based on strict sequential logic to what describe, and the coupling of a large amount of event rules all must be waited until the generation of last event of sequence of events in rule.We take the warehouse logistics supervisory system of a RFID is example, in some regional extents, in interval, if the RFID label data monitored surpasses certain predetermined value, thinks that the operationies on incoming and outgoing inventory event of makeing mistakes occurs, and gives a warning to system sometime.To this, carry out the detection of event by a kind of incident Detection Algorithm of state-based automat.
For the mathematical description of event detection state automata (State Automata, SA), can use one hexa-atomic group to describe SA=<IE, OE, S, Tr, S s, S a>mean, wherein IE means the stream combination of the event that state automata is received; OE means to meet the regular composition of matter of detection; S means all possible state set of state automata; Tr means that the Descartes of S collects S * S, is in this state automata transition relationship possible between all states, and Tr need to meet the constraint condition of event; S smean original state; S amean receptive phase, a state with the event generation of rule match detected.
State automata realize principle: at first the user can define event schema, afterwards by the corresponding state automata of this schema construction, and obtains the condition that automat needs, i.e. above-described IE, OE, S, Tr.Automatically advance to start to carry out rule match when flow of event IE enters, this state-event in matching process constantly to external migration, when arriving can not move outside an and acceptable state S athe time, meaning to detect legal complicated event, coupling completes.
When using state automata, need regular adapter that rule is converted into to event schema, comprised the various restriction relations of event in this pattern, and be that state automata can be identified.State automata detects the event queue flowed into, and a certain event in queue meets original state condition S s, creation state automat example, and be set to state S 1; When automat detects having in event queue and meets the event of transition condition between two states, the state automata state moves, by S afterwards imigrate to S i+1.In event queue, have the Event triggered state automata to migrate to receptive phase (event schema is correctly identified) or state automata state and become invalidly, this state automata example completes testing process, by deleted.
The concrete steps of state automata model when event detection are as follows: according to the description of event schema, have the representations of events of correlativity in the state use case pattern of state automata.Between different conditions in state automata, by the rule of restrained condition migration, meaned.Safeguard the matching sequence (Matched Sequence, MS) that coupling has occurred, matching sequence MS kimean k matching sequence, and, in i state, whenever there being new event to meet transition condition, upgrade existing MS, or create new MS.
The event detection procedure of state automata is specific as follows:
1) one of initialization from matching sequence, be labeled as MS 10;
2) obtain the event e to be detected in event queue;
3) check that whether the final state in MS is overtime, if overtime, delete this sequence;
4) by the various attributes (as type, time of origin etc.) of event e successively with the state automata model in each transition condition mated, detect and whether to meet transition condition;
5) if do not meet transition condition, e is abandoned, enter step 2); Enter step 6) if meet the transition condition of i state;
6) check all matching sequences, if there is the matching sequence in i state
MS ki, be updated to MS ki+1, and event is joined in sequence; If i equals 1, after renewal, creating a new initially matching sequence MS (k+1) 0, but if i+1 reaches final state, and output should be with matching sequence;
7) jump to step 2) continue to detect.
In addition, technique scheme of the present invention also can have following advantage:
1, the mode of operation based on flow of event, complete obtain required event, not there will be the situation of omission;
2, can monitor the event of some time windows and be analyzed;
3, there is real-time, the event that can produce in real time system is carried out analyzing and testing, is some validity events that provides for ageing system high-speed of having relatively high expectations;
4, complicated business rule can be set as required, can comprise more business information.
In the various embodiments described above of the present invention, the sequence number of embodiment and/or sequencing only are convenient to describe, and do not represent the quality of embodiment.Description to each embodiment all emphasizes particularly on different fields, and there is no the part described in detail in certain embodiment, can be referring to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that: realize that the hardware that all or part of step of said method embodiment can be relevant by programmed instruction completes, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM (read-only memory) (Read-Only Memory is called for short ROM), random access memory (Random Access Memory is called for short RAM), magnetic disc or CDs.
In the embodiment such as apparatus and method of the present invention, obviously, each parts or each step reconfigure after can decomposing, combine and/or decomposing.These decomposition and/or reconfigure and should be considered as equivalents of the present invention.Simultaneously, in the above in the description to the specific embodiment of the invention, the feature of describing and/or illustrating for a kind of embodiment can be used in same or similar mode in one or more other embodiment, combined with the feature in other embodiment, or substitute the feature in other embodiment.
Should emphasize, term " comprises/comprises " existence that refers to feature, key element, step or assembly when this paper is used, but does not get rid of the existence of one or more further feature, key element, step or assembly or add.
Finally it should be noted that: described the present invention and advantage thereof in detail although above, be to be understood that in the situation that do not exceed the spirit and scope of the present invention that limited by appended claim and can carry out various changes, alternative and conversion.And scope of the present invention is not limited only to the specific embodiment of the described process of instructions, equipment, means, method and step.The one of ordinary skilled in the art will readily appreciate that from disclosure of the present invention, can use according to the present invention and carries out with the essentially identical function of corresponding embodiment described herein or obtain process, equipment, means, method or step result essentially identical with it, that existing and will be developed future.Therefore, appended claim is intended to comprise such process, equipment, means, method or step in their scope.

Claims (10)

1. the data processing method of a RFID middleware, is characterized in that, comprising:
The primitive event data that reception is read from electronic tag;
Described primitive event data are converted to standard format;
Described primitive event data are carried out obtaining the simple event data after filtration treatment;
Described simple event data and the rule model set in advance are carried out to event matches, and produce the complicated event data according to matching result.
2. the data processing method of RFID middleware according to claim 1, is characterized in that, between " the primitive event data are converted to standard format " and " described primitive event data are carried out obtaining the simple event data after filtration treatment ", also comprises:
Described primitive event data are carried out to buffer memory.
3. the data processing method of RFID middleware according to claim 1, is characterized in that, after described primitive event data are converted to standard format, before described primitive event is carried out to filtration treatment, also comprises the duplicate removal processing, comprising:
Set time-count cycle, the zero clearing counter;
Often receive the primitive event data one time, all counter is done and added 1 operation, until arrive a time-count cycle;
Counter values and the amount threshold of setting are in advance compared, when counter values is more than or equal to amount threshold, using the primitive event data of reception as valid data; If counter values is less than amount threshold, empties the primitive event data of reception and produce alarm operation.
4. the data processing method of RFID middleware according to claim 1, is characterized in that, described primitive event carried out to filtration treatment and comprise the temporal filtering processing, comprising:
Copy the primitive event data of reception to the input list;
Judge that timestamp in the primitive event data whether within the time period of setting, if so, to output listing, if not, deletes by the primitive event data primitive event data mobile from the input list.
5. the data processing method of RFID middleware according to claim 1, is characterized in that, described primitive event carried out to filtration treatment and comprise time product electronic code filtration treatment, comprising:
The primitive event data that receive are copied in the input list;
Whether the product electronic code in the primitive event data in judgement input list meets default mask standard, if so, the primitive event data mobile, to output listing, if not, is deleted the primitive event data from the input list.
6. the data processing method of RFID middleware according to claim 1, is characterized in that, described primitive event carried out to filtration treatment and comprise the reader filtration treatment, comprising:
The primitive event data that receive are copied in the input list;
Whether the reader coding in the primitive event data in judgement input list meets default mask standard, if so, the primitive event data mobile, to output listing, if not, is deleted the primitive event data from the input list.
7. the data processing method of RFID middleware according to claim 1, is characterized in that, produces the complicated event data and also comprise afterwards:
The complicated event data are saved to database, or the complicated event data are reported to operation system.
8. the data processing method of RFID middleware according to claim 1, is characterized in that, the data processing method of described middleware specifically receives the primitive event data that reader reads from electronic tag, and it also comprised before receiving the primitive event data:
Communications status with reader is set.
9. the data processing method of RFID middleware according to claim 1, is characterized in that, described simple event data and the rule model set in advance are carried out to event matches, comprising:
Limit the simple event data of carrying out event matches according to default time window or length window.
10. the data processing method of RFID middleware according to claim 1, is characterized in that, according to matching result, produces the complicated event data, comprising:
Detect the queue of the simple data event flowed into by default state automata, between different conditions in state automata, by the rule of restrained condition migration, meaned, a certain event in queue and rule model coupling, be made as state automata original state S i;
When the simple event data that meet transition condition between two states are arranged in queue, the state automata state is by original state S imigrate to state S i+1, until in queue, have the Event triggered state automata migrate to receptive phase or state automata state become invalid;
Abandon the simple event data that do not meet transition condition, and output meets the queue of the simple event data of transition condition.
CN2013104032882A 2013-09-06 2013-09-06 Data processing method for RFID (Radio Frequency Identification) middleware Pending CN103455611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013104032882A CN103455611A (en) 2013-09-06 2013-09-06 Data processing method for RFID (Radio Frequency Identification) middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013104032882A CN103455611A (en) 2013-09-06 2013-09-06 Data processing method for RFID (Radio Frequency Identification) middleware

Publications (1)

Publication Number Publication Date
CN103455611A true CN103455611A (en) 2013-12-18

Family

ID=49737974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013104032882A Pending CN103455611A (en) 2013-09-06 2013-09-06 Data processing method for RFID (Radio Frequency Identification) middleware

Country Status (1)

Country Link
CN (1) CN103455611A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090263A (en) * 2014-06-17 2014-10-08 中国科学院信息工程研究所 Positioning method and system based on RFID technology
CN104917802A (en) * 2014-03-12 2015-09-16 国家电网公司 Multi-sensor data source processing method and device
CN105786451A (en) * 2014-12-15 2016-07-20 华为技术有限公司 Method, device and system for processing complicated event
WO2016127577A1 (en) * 2015-02-11 2016-08-18 华为技术有限公司 Event processing method and apparatus
CN106815539A (en) * 2015-12-02 2017-06-09 华大半导体有限公司 A kind of RFID eats dishes without rice or wine at a high speed method for down loading
CN107067042A (en) * 2017-05-17 2017-08-18 江苏本能科技有限公司 Vehicle electron identifying classification processing method and system
CN107133741A (en) * 2017-05-05 2017-09-05 东软集团股份有限公司 Pending tasks processing method, device, readable storage medium storing program for executing and electronic equipment
CN108776686A (en) * 2018-06-04 2018-11-09 浪潮软件集团有限公司 Data tag construction system and method
CN110415518A (en) * 2019-07-25 2019-11-05 民航成都信息技术有限公司 A kind of monitoring and early warning method, apparatus, equipment and the medium of passenger flow and transport power
CN110543914A (en) * 2019-09-04 2019-12-06 软通动力信息技术有限公司 Event data processing method and device, computing equipment and medium
CN111708645A (en) * 2020-06-12 2020-09-25 北京思特奇信息技术股份有限公司 Event processing method and system based on stream processing
CN114091486A (en) * 2021-10-18 2022-02-25 青岛海尔科技有限公司 NFC chip data interaction method and device, middleware and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959724A (en) * 2006-11-24 2007-05-09 清华大学 Method and system for obtaining context information of workflow in computing environment generally referred to
CN101697194A (en) * 2009-10-23 2010-04-21 重庆大学 Data processing system and method for improving reliability of RFID application
CN101883098A (en) * 2010-06-18 2010-11-10 大连海事大学 System and method for distributed complex event detection under RFID (Radio Frequency Identification Devices) equipment network environment
CN102156799A (en) * 2011-01-17 2011-08-17 西安交通大学 Cascadable complex event processing engine and train overhauling automatic recording method
CN102831513A (en) * 2012-07-20 2012-12-19 大连理工大学 Container logistics field oriented IoT (Internet of Things) application-layer middleware and information fusion integration method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959724A (en) * 2006-11-24 2007-05-09 清华大学 Method and system for obtaining context information of workflow in computing environment generally referred to
CN101697194A (en) * 2009-10-23 2010-04-21 重庆大学 Data processing system and method for improving reliability of RFID application
CN101883098A (en) * 2010-06-18 2010-11-10 大连海事大学 System and method for distributed complex event detection under RFID (Radio Frequency Identification Devices) equipment network environment
CN102156799A (en) * 2011-01-17 2011-08-17 西安交通大学 Cascadable complex event processing engine and train overhauling automatic recording method
CN102831513A (en) * 2012-07-20 2012-12-19 大连理工大学 Container logistics field oriented IoT (Internet of Things) application-layer middleware and information fusion integration method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917802A (en) * 2014-03-12 2015-09-16 国家电网公司 Multi-sensor data source processing method and device
CN104090263B (en) * 2014-06-17 2016-10-05 中国科学院信息工程研究所 Localization method, system based on RFID technique
CN104090263A (en) * 2014-06-17 2014-10-08 中国科学院信息工程研究所 Positioning method and system based on RFID technology
CN105786451A (en) * 2014-12-15 2016-07-20 华为技术有限公司 Method, device and system for processing complicated event
US10915822B2 (en) 2014-12-15 2021-02-09 Huawei Technologies Co., Ltd. Complex event processing method, apparatus, and system
WO2016127577A1 (en) * 2015-02-11 2016-08-18 华为技术有限公司 Event processing method and apparatus
CN106815539A (en) * 2015-12-02 2017-06-09 华大半导体有限公司 A kind of RFID eats dishes without rice or wine at a high speed method for down loading
CN107133741A (en) * 2017-05-05 2017-09-05 东软集团股份有限公司 Pending tasks processing method, device, readable storage medium storing program for executing and electronic equipment
CN107067042B (en) * 2017-05-17 2019-12-31 江苏本能科技有限公司 Automobile electronic identification classification processing method and system
CN107067042A (en) * 2017-05-17 2017-08-18 江苏本能科技有限公司 Vehicle electron identifying classification processing method and system
CN108776686A (en) * 2018-06-04 2018-11-09 浪潮软件集团有限公司 Data tag construction system and method
CN110415518A (en) * 2019-07-25 2019-11-05 民航成都信息技术有限公司 A kind of monitoring and early warning method, apparatus, equipment and the medium of passenger flow and transport power
CN110543914A (en) * 2019-09-04 2019-12-06 软通动力信息技术有限公司 Event data processing method and device, computing equipment and medium
CN110543914B (en) * 2019-09-04 2022-06-24 软通智慧信息技术有限公司 Event data processing method and device, computing equipment and medium
CN111708645A (en) * 2020-06-12 2020-09-25 北京思特奇信息技术股份有限公司 Event processing method and system based on stream processing
CN114091486A (en) * 2021-10-18 2022-02-25 青岛海尔科技有限公司 NFC chip data interaction method and device, middleware and electronic equipment
CN114091486B (en) * 2021-10-18 2024-03-22 青岛海尔科技有限公司 NFC chip data interaction method and device, middleware and electronic equipment

Similar Documents

Publication Publication Date Title
CN103455611A (en) Data processing method for RFID (Radio Frequency Identification) middleware
Liu et al. Temporal management of RFID data
CN112668968B (en) Warehouse management modeling method and system based on field drive design
KR100971009B1 (en) A product recovery management system
CN1959724B (en) Method and system for obtaining context information of workflow in computing environment
Chen et al. Development of foundation models for Internet of Things
RU2412467C2 (en) Method and system for setting up and communication with radio frequency identification middleware server from enterprise resource planing system server
CN103955812A (en) Key-point product monitoring equipment storage management system based on RFID
CN101183423A (en) Management system for reader-writer to read RFID label event
Zhu et al. Mobile RFID technology for improving m-commerce
CN102156799A (en) Cascadable complex event processing engine and train overhauling automatic recording method
CN104766108A (en) Optimizing processing method for FID electronic tag in BIM model
CN104766107A (en) System utilizing RFID electronic product code to collect data in BIM
CN104346412A (en) Semantic information based RFID (Radio Frequency Identification Device) complex event processing method
US8207822B2 (en) Support for batching of events, and shredding of batched events in the RFID infrastructure platform
CN116228103A (en) Inventory life cycle real-time management method and system
Mylyy RFID data management, aggregation and filtering
Mon et al. Evaluation of technological development for the definition of Industries 4.0
Sandner et al. Business potentials of ubiquitous computing
CN101000664A (en) Logistics check system and method
CN112184529A (en) Garbage recycling method and system
Hackenbroich et al. Optimizing business processes by automatic data acquisition: RFID technology and beyond
Wang et al. Design of abnormal data analysis and processing system based on RFID supply chain
Tyagi et al. RFID Data Management
Leema et al. A new deferred cleansing technique for effective warehousing of RFID

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131218

RJ01 Rejection of invention patent application after publication