Background technology
Radio-frequency (RF) identification (RFID) system generally comprises transponder (tag) and inquisitor (Interrogator).Transponder is the carrier of storage rfid system data, and each transponder has unique identification information (ID); The main task of inquisitor is that the control radio-frequency module is launched reading order to transponder, and receives replying that transponder returns, it is decoded, afterwards with decoded information transmission to background host computer for processing.
Under the pattern of an inquisitor to a plurality of transponders, rfid system need identify all transponders in the certain limit faster, because transponder passive work under inquisitor control, and all transponders are operated in same frequency range, so how effectively to avoid the also fast as far as possible intact all transponders of identification of information collision in the transponder identifying, become the gordian technique of rfid system.
What use in existing EPC (EIectronic Product Code, the electronic product code) standard is query tree (Query tree) and time slot A LOHA algorithm.Query tree algorithm adopts the prefix matching method by turn the electronic code of transponder to be mated identification, and as shown in Figure 1, operation steps is as follows:
Step 100, initialization inquisitor prefix stack, initial prefix is 0 and 1; Execution in step 101;
Step 101, inquisitor is to the stack top data of all tag transmission prefix stack, as 0; Execution in step 102;
Step 102, tag receives the stack top data of described prefix stack, and the prefix (refer to the preceding n position of transponder identifying information, n is an integer, and n is identical with the figure place of stack top data) of the judging tag whether stack top data with the prefix stack of inquisitor transmission is identical:
If the prefix of tag is identical with the stack top data of the prefix stack that inquisitor sends, then this tag makes response to inquisitor, sends the ID of described tag;
If the stack top of the prefix stack that the prefix of tag and inquisitor send is inequality, then tag does not respond;
Step 103, inquisitor is judged the quantity of the tag that inquisitor is responded:
If described quantity is 1, execution in step 104;
If described quantity is greater than 1, execution in step 105;
If described quantity is 0, execution in step 106;
Step 104 has only a tag that inquisitor is made response, and then inquisitor is discerned this tag, and execution in step 106;
Step 105, the tag of the stack top data same prefix of the prefix stack that sends with inquisitor all makes response to inquisitor, the ID that inquisitor detects described tag is who bumps, and after the ID before the collision position mended 0 and 1 respectively, put into the stack top of inquisitor prefix stack as new prefix, enter step 106;
Here need to prove, " collision " of Chu Xianing is as lay special stress on not in this article, refer to " position collision ", promptly in once replying, corresponding place value difference in the id information of a plurality of tag that send id information to inquisitor is as in once replying, there are two tag to send id information to inquisitor, the i position of the id information of a tag (i is an integer) is 0, and the i position of the id information of another tag is 1, and then the i position of the id information of these two tag bumps.Be identified and refer in once replying, corresponding place value in the id information of a plurality of tag that send id information to inquisitor is identical, as in once replying, two tag that send id information to inquisitor are arranged, the k position of the id information of these two tag (k is an integer) is 0 or be 1, and then the k position of these two tag can be discerned by inquisitor;
Step 106 after inquisitor upgrades stack top data, continues to send the stack top data of prefix stack, execution in step 102;
Repeated execution of steps 102 is empty to step 106 until the inquisitor prefix stack.
In realizing process of the present invention, the inventor finds that there is following problem at least in above-mentioned prior art:
In the existing Query tree algorithm, when the collision detection position, even continuously the continuous multidigit of ID of tag does not bump, also need these positions of not colliding are detected by turn, all tag that need when at every turn detecting to reply send the ID of self, caused the waste of the communication resource, and when the transponder number was big, in the operating process of existing recognition methods, the probability that the short prefix of length bumps was very big, the prefix growth rate is slow, has hindered the raising of recognition efficiency.
Embodiment
The described method that the embodiment of the invention provides at first is described below.
The embodiment of the invention provides a kind of method of discerning transponder, specifically can may further comprise the steps:
Step 1, inquisitor require the tag (transponder) in its compass of competency to send its ID (unique identification information of transponder just);
Step 2, described all tag send the ID of self to inquisitor according to the requirement of inquisitor;
Step 3, inquisitor receive the ID that described all tag send;
After step 4, inquisitor receive the ID of described all tag transmissions, detect the collision situation of described ID;
Step 5, inquisitor obtains collision information according to the collision situation of described ID, has which position to bump among the ID of described all tag that described collision information refers to, the information which position can be identified; Form that described collision information can be tabulated occurs, and form that also can non-tabulation occurs;
Step 6, inquisitor be according to described collision information, the place value that acquisition can be identified; Here " place value that can be identified " refers to the value of the position that can be identified, and is generally 0 or 1;
Store described place value, described place value is stored in the memory device; When described memory device was the byte stack, described place value was according to from back to front sequential storage; The continuation field of described place value deposits the byte stack in as an element;
Step 7, initialization inquisitor prefix stack, inquisitor sends the stack top data of prefix stack to all tag;
Step 8, tag receives the stack top data of the prefix stack of inquisitor transmission, judges whether the prefix of tag is identical with the stack top data of the prefix stack of the inquisitor that receives; If the prefix of tag is identical with the stack top data of the prefix stack of inquisitor, then described tag sends self ID to inquisitor; If the prefix of tag is different with the stack top data of the prefix stack of inquisitor, then described tag does not respond inquisitor.
According to described place value, read the ID of tag; This step comprises: identical and present bit (is in the id information of a plurality of tag when the stack top data of the prefix of more than one tag and the prefix stack of inquisitor, the current detected position that whether bumps) when not bumping, take out an element from known storage device, described element is to be stored in the place value that can be identified in the memory device, the continuous described collision information; Described element is added to after the last position of present bit, be stored in the stack top of inquisitor prefix stack as new prefix.
Illustrate below in conjunction with Fig. 2 the technical scheme of the embodiment of the invention to need to prove that here among this embodiment, above-mentioned collision information occurs with tabular form that be the collision information tabulation, what memory device adopted is the byte stack; The concrete operations step is:
Step 200, inquisitor require all tag transmission ID in the system, and all tag send self ID to inquisitor, execution in step 201;
Step 201, inquisitor receive the ID that all tag send, and detect the collision situation of described ID, execution in step 202;
Step 202 obtains the collision information tabulation of described ID, and is as follows:
XXX__XX______……__X__XXXX___XXXXX
Wherein, " _ " expression unknown bits, " X " represents known bits, known bits is the position that can be correctly validated, and can obtain its place value;
According to the tabulation of described collision information, obtain the place value that can be correctly validated among the described ID, execution in step 203;
Step 203, with described place value according to from back to front order, store in the byte stack standby successively by continuation field; Execution in step 204;
Step 204, the prefix stack of initialization inquisitor, as the initial value of prefix stack is 0 and 1 as described in being provided with, inquisitor sends the stack top data of prefix stack to all tag, as 0; Execution in step 205;
Step 205, tag receives the stack top data of described prefix stack, judges whether the prefix of tag is identical with the stack top data of the prefix stack of the inquisitor that receives:
If the prefix of tag is identical with the stack top of the prefix stack of inquisitor, then execution in step 206; Otherwise, execution in step 207;
Step 206, tag sends the ID of self, execution in step 208;
Step 207, tag does not respond, execution in step 213;
Step 208, inquisitor receives the ID that tag sends, and judges the quantity of the tag that makes response according to described ID:
If the quantity of described tag is 1, then execution in step 209;
If the quantity of described tag is greater than 1, then execution in step 210;
If the quantity of described tag is 0, then execution in step 213;
Step 209, the quantity of described ID is 1, illustrates that the prefix that a tag is only arranged is identical with the stack top data of the prefix stack of inquisitor, at this moment, but this tag of inquisitor Direct Recognition; Execution in step 213 then;
Step 210, the quantity of described ID illustrate that greater than 1 a plurality of (in other words more than one) prefix of tag is identical with the stack top data of the prefix stack of inquisitor, at this moment, whether the present bit that inquisitor need detect described a plurality of tag bumps, if bump, then execution in step 211; Otherwise, execution in step 212;
Step 211, collision situation are handled: will collide (being the present bit of the ID of the tag under a collision situation) place value preceding, known ID and mend 0 and 1 respectively, and put into the stack top of inquisitor prefix stack, execution in step 213 as new prefix;
Step 212, the non-collision situation is handled: eject a field from the known byte stack, after adding to non-collision position (being the present bit of the prefix of the tag under the non-collision situation) place value preceding, known ID, put into the stack top of the prefix stack of inquisitor, execution in step 213 as new prefix;
Step 213, inquisitor continues to send the stack top data of prefix stack, execution in step 205;
Repeated execution of steps 205 is empty to step 213 until the inquisitor prefix stack.
In order to be illustrated more clearly in the technical scheme that the embodiment of the invention provides, illustrate when adopting the technical scheme that the embodiment of the invention provides that below in conjunction with Fig. 3 and Fig. 4 the storehouse that reads inquisitor in the ID process of tag changes.
For example, after step 200-step 203, tag all in the known system all send self ID to inquisitor, inquisitor obtains the collision information tabulation of the ID of described tag: in the id information of known tag, front three is ' 010 ', fourth, fifth the unknown, six, seven is ' 10 ', below be example just with the process that reads of the first seven in the id information of tag, illustrate that this reads in the process, the storehouse of inquisitor changes:
Because the front three of the id information of tag can be identified, and is ' 010 ', so directly prefix stack is initialized as ' 010 ' (the prefix stack situation of the very first time among Fig. 3);
At this moment, the stack top of the prefix stack that inquisitor sends is ' 010 ', because the 4th the unknown of known tag, promptly bump, thereby identification tag id information in the 4th the time, at first mend ' 0 ' and ' 1 ' respectively afterwards, will ' 0100 ' be stored in the prefix stack of inquisitor as new prefix, shown in the prefix stack situation of second time among Fig. 3 with ' 0101 ' ' 010 '; At this moment, ' 0100 ' is the stack top of the prefix stack of inquisitor, it being ejected, send to the tag in the compass of competency, is ' 0100 ' if having the prefix of a plurality of tag this moment, then inquisitor need judge whether present bit (the 5th) bumps, because the 5th collision so need add ' 1 ' and ' 0 ' respectively after ' 0100 ', forms two new prefix data, be updated to prefix stack, shown in the prefix stack situation of the 3rd time correspondence among Fig. 3.
Next, need the 6th in the id information of identification tag, because the 6th known, promptly this moment tag six of present bit-Di-do not bump, directly from the known byte stack, eject by the 6th, the 7th element of forming ' 10 ', it is added to ' 01000 ' shown in the 3rd the prefix stack stack top of the storehouse among Fig. 4 afterwards, form ' 0100010 ', to ' 0100010 ' as new prefix, be stored in the prefix stack stack top of inquisitor, shown in the prefix stack situation of the 4th time among Fig. 3.
Hence one can see that, adopt prior art Query tree algorithm read the id information of tag the time, need one one to chase after gradually and read, send out certain stack top prefix, if collision then this prefix ID is increased by one (0 or 1) increases by two prefix elements in storehouse; If collision does not promptly have only 0 (or 1), then after this prefix, increase by 0 (or 1), in storehouse, increase a prefix element; When adopting the technical scheme that the embodiment of the invention provides because some known bits have been arranged, when not bumping, can directly be increased to prefix to known bits after, thereby it is just passable in fact only need to detect the position of those real collisions.
Therefore, the technical scheme that adopts the embodiment of the invention to provide, the number of times that can save a large amount of time, minimizing information is transmitted; Owing to realize space (contactless) coupling of radiofrequency signal between tag and the inquisitor by coupling element; In coupling channel,, realize NE BY ENERGY TRANSFER and exchanges data according to sequential relationship; Thereby in fact the number of times of minimizing information transmission be exactly the power consumption that has reduced tag, improves recognition efficiency.
When tag quantity is fewer, the technical scheme effect that adopts the embodiment of the invention to provide is remarkable, this is because tag quantity is few, then the figure place of colliding in the id information of tag is just few, identical figure place is just many, the byte that can store in advance in the known byte storehouse is just many, thereby efficient improves, effect is remarkable; When tag is a fairly large number of, the efficient that technical scheme increased that adopts the embodiment of the invention to provide can be tending towards a stationary value, this is because except some identical parts (as vendor code etc.), other position all bumps in the id information of tag, thereby the recognition efficiency value can be stabilized in a value; As shown in Figure 4.
The embodiment of the invention also provides a kind of inquisitor, as shown in Figure 5, comprises and obtains information module, memory module and identification module:
Obtain information module, be used to obtain transponder identification information (being the ID of tag) collision information in its compass of competency, according to described collision information, the place value that can be identified among the ID of acquisition tag is exported described place value; The described information module that obtains further can comprise detection module and can discern the place value acquisition module, wherein,
Detection module is used to detect the collision situation of the ID of all tag that receive, obtains collision information, with described collision information output;
Can discern the place value acquisition module, be used to receive the described collision information of described detection module output, according to described collision information, the place value that acquisition can be identified is exported described place value.
Memory module and is obtained information module and is connected, and is used to store the described place value that can discern the output of place value acquisition module; Described memory module can be the byte stack, also can be the memory device of other non-byte stacks, propose in embodiments of the present invention with storehouse (or byte stack) storage known byte just based on the existing storehouse of prior art of the present invention, can discern place value if increase memory stores, need with existing storehouse cooperating, can discern place value if increase a new storehouse storage, then correspondingly reduce the communication frequency of tag.
Identification module: be used for the described place value of storing, discern described transponder according to memory module.
Described identification module comprises prefix stack module, sending module, receiver module, obtains the element module, complementary element module and collision judgment module, and identification module further comprises successfully identification module and prefix stack update module, wherein,
The prefix stack module is used to store the prefix data that is used to discern transponder;
Sending module is used to send the stack top data of prefix stack module;
Receiver module is used to receive the identification information that the identification information prefix transponder identical with described stack top data sends;
The collision judgment module is used for receiving under the situation of the identification information that more than one transponder sends at described receiver module, judges whether the present bit of described more than one transponder bumps, the output judged result; In this case, to the quantity of the tag of inquisitor response greater than 1, these tag send ID to inquisitor simultaneously, and therefore, what receiver module received is the overlapped information of the ID of a plurality of tag transmissions, if described overlapped information has only carrier wave, and do not have level to change, as level signal or from high to low, illustrate that then the present bit of described a plurality of tag bumps from low to high, if described overlapped information has level to change, illustrate that then the present bit of described a plurality of tag does not bump;
Obtain the element module, be used for receiving the identification information that more than one transponder sends at described receiver module, and the collision judgment module is judged under the situation that the present bit of the identification information of more than one transponder do not bump, obtain the element corresponding with present bit from memory module, described element is the continuous place value in the described memory device;
The complementary element module is used for described element is added to after the present bit, is stored in described prefix stack module as new prefix.
The success identification module is used for discerning the relevant information of corresponding transponder when described receiver module receives the identification information that a transponder sends;
The prefix stack update module, be used for receiving the identification information that more than one transponder sends at described receiver module, and the collision judgment module is judged under the situation that the present bit of the identification information of more than one transponder bumps, behind the last position of the present bit of stack top data, add 0 and 1 respectively, form two new prefix data, and described new prefix data is upgraded into described prefix stack module; Described prefix stack update module also can be the prefix updates module, as long as can realize upgrading the function of prefix data.
Embodiments of the invention also provide a kind of information identification system, comprise transponder and inquisitor:
Transponder is used to identify Item Information, has identification information;
Inquisitor is used to discern the described transponder in the compass of competency;
Described inquisitor comprises and obtains information module, memory module and identification module:
Obtain information module: be used to obtain the collision information of described transponder identification information in the compass of competency,, obtain the place value that can be identified in the described transponder identification information according to described collision information;
Memory module: be used to store the described place value of obtaining information module output;
Identification module: be used for the described place value of storing, discern described transponder according to memory module.
Described identification module comprises: the prefix stack module is used to store the prefix data that is used to discern transponder; Sending module is used to send the stack top data of prefix stack module; Receiver module is used to receive the identification information that the identification information prefix transponder identical with described stack top data sends; The collision judgment module is used for receiving under the situation of the identification information that more than one transponder sends at described receiver module, judges whether the present bit of described more than one transponder bumps, the output collision judgment result; Obtain the element module, be used for receiving the identification information that more than one transponder sends at described receiver module, and under the situation that the present bit of identification information prefix does not bump, obtain the element corresponding with present bit from memory module, described element is the continuous place value in the described memory device; The complementary element module is used for described element is added to after the present bit, is stored in described prefix stack module as new prefix.
Described identification module can further include: successful identification module is used for discerning the relevant information of corresponding transponder when described receiver module receives the identification information that a transponder sends; The prefix stack update module, be used for receiving the identification information that more than one transponder sends at described receiver module, and under the situation that the present bit of identification information bumps, behind the last position of the present bit of stack top data, add 0 and 1 respectively, form two new prefix data, and described new prefix data is upgraded into described prefix stack module.
Comprehensively above-mentioned, the embodiment of the invention provides a kind of method and inquisitor and information identification system of discerning transponder, avoided solving the slow defective of prefix growth rate in the prior art, the growth rate that adds block prefix effectively, thereby improved the recognition efficiency of transponder, reduced the power consumption of transponder; Make full use of the each ID that sends of transponder, avoided the waste of resource.
So far, the technical scheme that the present invention only provides with the specific embodiment explanation embodiment of the invention, but the present invention is not only limited to this, and all obtain collision information, the place value that acquisition can be identified based on basis; According to described place value, read the technical scheme of the ID of tag, no matter which kind of form of employing, all within protection scope of the present invention.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the conversion that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.