A multi-packet loss tag detection method for expected single time slot
Mapping tags to expected frame vectors through a hash function and using time slots for OR operation detection solves the problem of low efficiency in lost tag detection in RFID systems, achieves fast, efficient and reliable lost tag detection, and improves the detection efficiency of the system and Security.
Patent Information
- Application Number
- CN202210009569.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-01-06
AI Technical Summary
In large-scale RFID systems, existing methods for detecting lost tags are inefficient and have security risks. They require frequent ID transmissions, which consumes a lot of time.
The tag is mapped to the expected frame vector through the hash function, and the tag time slot is used for OR operation to detect the lost tag, which improves the detection efficiency and reduces the execution of invalid time slots, achieving fast and efficient lost tag detection.
Efficient lost tag detection in multi-group large-scale RFID systems is realized, which improves the reliability and efficiency of detection, reduces detection time, and avoids potential safety hazards.
Smart Images

Figure CN116451714B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of radio frequency identification and Internet of Things, and in particular to a multi-packet loss tag detection method oriented to an expected single time slot. Background Art
[0002] As more and more terminal devices are connected to the network, the Internet of Things (IoT) technology has developed rapidly. As one of the key technologies of the IoT, Radio Frequency Identification (RFID) technology has made great achievements in the past decade. A typical RFID system usually consists of a backend server, one or more readers (Reader) and a large number of tags (Tag). The backend server provides powerful computing and storage capabilities, and each reader is equipped with one or more antennas to collect responses from tags within its communication range. Tags can be divided into active tags, semi-active tags and passive tags according to different communication modes. Active tags have internal power supply, long communication distance, but large size; semi-active tags will only enter the working state when they are activated; and passive tags have no internal power supply and need to rely on the RF signal emitted by the reader to realize their power supply. The backend server stores the ID information of all known tags for real-time monitoring of tags, and provides real-time instructions to readers to coordinate tags in the system. In some large-scale multi-group RFID systems, such as large warehouses, all goods are attached with RFID tags. Due to some factors, such as theft, employee errors, etc., the goods in the system are lost, causing great economic losses. Rapid detection of lost tags in the system can achieve rapid detection of lost goods and avoid economic losses. In large-scale RFID systems, tags can be divided into multiple groups due to different properties and characteristics of goods, and each group of tags has the same group ID. The most direct way to detect lost tags is to collect the IDs of all tags in the system and then compare them with the IDs stored in the server. If the ID in the server is not collected, it can be determined that the tag is a lost tag. The advantage of this method is high accuracy, but the disadvantage is also very obvious. Since this method requires frequent ID transmission between the reader and the tag, it takes a lot of time, resulting in extremely low detection efficiency, and also brings great safety risks. Summary of the invention
[0003] In view of the technical defects and technical drawbacks in the prior art, the embodiment of the present invention provides a method for detecting multi-packet loss labels for an expected single time slot, which overcomes the above problems or at least partially solves the above problems. The specific scheme is as follows:
[0004] A multi-packet loss tag detection method for expected single time slot. All known tags in the system are divided into G groups. Let the gth group contain N g Tags, N g ≤ preset value z, 1≤g≤G, where the number of lost tags is m g , each tag has a unique z-bit ID and a group ID for tag identity verification, the method comprising:
[0005] Step 1: For any set of tags in the system, the reader maps all tags to a single f through a hash function. g Length array, to construct a desired frame vector V g , and then query all tags in the group of tags through the request command;
[0006] Step 2: After all tags receive the request command, they use the built-in hash function to generate the expected frame vector V g Select a bit and calculate the index of the selected bit in all "1" bits, then select a tag time slot based on the result of the hash operation to respond with a z-bit message to the reader;
[0007] In step 3, the reader performs an OR operation on all tag responses received in a tag time slot to generate a new composite vector, and then detects the lost tag event based on the actual value in the composite vector and the value in the expected frame vector.
[0008] Further, step 1 comprises:
[0009] The reader performs hash operations on all tag IDs and takes the remainder to obtain the tag vector V in the expected frame. g The index value in V g If a bit in is mapped by only one label, the bit is set to "1", otherwise the bit is set to "0", and the group ID, parameter <f g , R> and the vector V g Broadcast to all tags as a request command to query all tags in the corresponding group tag, where R is the random seed of the hash function.
[0010] Further, step 2 includes: if the tag receives the group ID of the group to which it belongs, the tag selects V according to the result of the hash operation. g After receiving one bit in the packet, it replies with a z-bit response message containing 1 bit "1" and z-1 bits "0";
[0011] In which, when the vector V g After being broadcast, each tag gets V gThe tag calculates the value of each bit in the string and the number of bits with a value of "1" before the bit it selects. At this time, the tag obtains the index value of the bit it selects in all bits with a value of "1", which is recorded as X i , then the index value of "1" in the response information of the tag reply is X i Divide z and take the remainder. At the same time, the index value of the tag slot used by the tag is calculated by the formula get.
[0012] Further, step 3 includes:
[0013] After each broadcast, the reader will open a tag time slot. The tag belonging to the broadcast group ID will send z-bit response information to the reader in the next tag time slot. The reader will combine the tag response information received in the same tag time slot into a combined z-bit vector through OR operation. If the value of a bit in the combined vector is expected to be "1" but is actually "0", it can be concluded that there is a missing tag event in the group, and the detection of the group is stopped immediately.
[0014] Further, step 3 includes: when a tag time slot is executed, the reader maps all tags in the corresponding group to the vector V through a hash function with a random seed R g Then the received tag response information is ORed with the vector V g If the tag group has not been lost, the tag response information after the OR operation is compared with the vector V g Exactly the same, when one bit in the tag response information after the OR operation is "0" and V g When the corresponding bit in is "1", it is determined that the group loss tag event is detected, the detection of the group is stopped, and the loss tag detection of the next group of tags is started by broadcasting a request command consisting of the group ID, frame length and random seed of the next group of tags.
[0015] Furthermore, the method further comprises:
[0016] During the detection of a group of missing tags, the reader performs r g The lost tag events of the group are detected in rounds to achieve the required detection accuracy, wherein the number of rounds is determined based on the given detection accuracy and the number of lost tags in the group.
[0017] Furthermore, the method further comprises: in order to achieve a given detection reliability, the reader needs to perform r in each group g Wheel detection, then r g Satisfy the following formula:
[0018]
[0019] In order to improve detection efficiency and minimize detection time, the optimal rg The values are:
[0020]
[0021] exist The maximum detection efficiency can be obtained.
[0022] Furthermore, each tag replies to the reader through a tag time slot, and the reader compares the tag response information with the expected frame vector by OR operation, avoiding the time cost consumed by the tag to reply using a short time slot. The expected detection time is:
[0023]
[0024] where t tag is the tag time slot, and G is the number of tag groups in the system.
[0025] Furthermore, the method further comprises: after a group of lost tags is detected, the reader continues to broadcast the group ID and parameters of the next group of tags. <f g , R> and the vector V g To all tags in the system; the tag in the corresponding group selects a tag time slot to reply a z-bit message through the result of hash operation, and the reader performs OR operation on the tag response information in the same tag time slot to detect whether there is a missing tag in the group; the detection process is repeated until all tags in all groups are detected.
[0026] The present invention has the following beneficial effects:
[0027] (1) The present invention can realize efficient lost tag detection in a multi-group large-scale RFID system, quickly and efficiently detect lost tags in each group of tags, and the reliability of the detection can meet the requirements of the system.
[0028] (2) In the process of detecting lost tags by the reader, the present invention maps all tags into an expected frame vector through a hash function, and each bit in the vector is predictable. By broadcasting the vector to all tags, the tags then remove the expected empty time slots through the hash function, thereby avoiding the execution of useless empty time slots and greatly improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flow chart of a method for detecting multi-packet loss labels for an expected single time slot provided by an embodiment of the present invention.
[0030] Figure 2 A structural diagram of a multi-group RFID system provided in an embodiment of the present invention.
[0031] Figure 3A process diagram of a method for detecting multi-packet loss labels for an expected single time slot provided by an embodiment of the present invention.
[0032] Figure 4 A schematic diagram comparing the execution time of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the total number of system tags when α=0.9.
[0033] Figure 5 A schematic diagram comparing the execution time of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the total number of system tags when α=0.99.
[0034] Figure 6 A schematic diagram comparing the execution time of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the variation of the detection reliability of each group when M=1.
[0035] Figure 7 A schematic diagram comparing the execution time of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the variation of the detection reliability of each group when M=5.
[0036] Figure 8 A schematic diagram comparing the execution time of the multi-packet lost label detection method for an expected single time slot according to an embodiment of the present invention and the existing method when α=0.9 with the number of lost labels in each group.
[0037] Fig. 9 A schematic diagram comparing the execution time of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the number of lost tags in each group when α=0.99.
[0038] Fig.10 A schematic diagram comparing the actual detection reliability of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the change of the number of tags in each group when α=0.9.
[0039] Fig.11 A schematic diagram comparing the actual detection reliability of the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method with the change of the number of tags in each group when α=0.99.
[0040] Fig.12 A schematic diagram comparing the detection reliability of each group between the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method when M=1.
[0041] Fig.13 A schematic diagram comparing the detection reliability of each group between the multi-packet loss tag detection method for an expected single time slot according to an embodiment of the present invention and the existing method when M=5. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] See also Figure 2 A large-scale multi-group RFID system includes a back-end server, a reader, and n known tags divided into G groups, each tag group contains g i tags, which contain m i Tags are lost tags, 1≤i≤G, and the remaining tags are existing tags. Each tag in the system has a unique z-bit ID. In this embodiment, z is 96, that is, each tag has a unique 96-bit tag ID, through which the identity, attributes and other information of each tag can be accurately identified. The reader communicates with the tags within its communication range through the radio frequency signal emitted by the antenna. The IDs of all tags are stored in the back-end server, and the reader can obtain the ID information of the tag at any time for real-time monitoring of the tag. In order to improve the communication efficiency between the reader and the tag and reduce information conflicts, the communication between the reader and the tag is based on the frame time slot Aloha protocol.
[0044] like Figure 1 The method for detecting lost tags of multiple packets oriented to an expected single time slot detects lost tags in the above-mentioned multiple packet RFID system, and comprises the following steps:
[0045] Step 1: For any set of tags in the system, the reader maps all tags to a single f through a hash function. g Length array, to construct a desired frame vector V g , and then query all the tags in the group of tags through the request command, and the expected frame vector V g Broadcast to all tags;
[0046] Step 2: After all tags receive the request command, they use the built-in hash function to generate the expected frame vector V g Select a bit and calculate the index of the selected bit in all "1" bits, then select a tag time slot based on the result of the hash operation to respond to the reader with a 96-bit message;
[0047] In step 3, the reader performs an OR operation on all tag responses received in a tag time slot to generate a new composite vector, and then detects the lost tag event based on the actual value in the composite vector and the value in the expected frame vector.
[0048] In a specific embodiment, for any group g in the system with Ng tags, the reader performs r g Round detection. For any round 1≤i≤r g , the reader first constructs an expected frame vector V through the known tags of the group g , the reader performs a hash operation on the ID of the known tag through a hash function with a random seed R, and the hash result is f g After taking the remainder, it is mapped to a length of f g In the array, if a bit in the array is mapped by only one label, the bit in the array is set to "1", otherwise it is set to "0". When all label mappings are completed, the expected frame vector V g The construction is completed. In the expected frame vector V g In , “1” represents the expected single time slot and “0” represents the expected non-single time slot. Therefore, the expected frame vector V g The expected single time slot ratio P s for:
[0049]
[0050] For group g, the number of labels is N g , the frame length is f g , then the expected ratio of single time slots can be obtained by equation (1), for frame length f g The derivative can be obtained when f g =N g When N is used, the ratio of single time slots is expected to be maximized, that is, 1 / e (≈36.8%). Therefore, N in the method of the present invention is g The value of f g In order to maximize the proportion of expected single time slots and improve the utilization rate of expected single time slots.
[0051] When the expected frame vector is constructed, the reader broadcasts parameters such as group ID, expected frame vector, frame length and random seed to all tags in the system.
[0052] In a specific embodiment, in order to improve the reliability of detection, each group of tags performs r g Round detection. For any round of a group of tags, since only 1 / e of the time slots are expected single time slots, 1 / e of all tags can be effectively queried by the reader. In the current round, only one lost tag will not be detected when it is mapped to the same time slot as other existing tags. The probability of a lost tag not being detected is:
[0053]
[0054] When g The probability that all rounds are completed without detecting a lost tag is For any set of labels, given a detection reliability α g , then from the above formula we can get:
[0055]
[0056] Through the above formula, we can get Then r g The optimal value of is:
[0057]
[0058] The detection time of the proposed method is represented by T, where T consists of two parts: (1) the time taken by the reader to query the tag and (2) the tag's response time. For any round of detection of a group of tags, the reader broadcasts the tag's group ID, parameters, and expected frame vector V g The time used is The tag's response time is Then the broadcast time used by any group of labels g is:
[0059]
[0060] The tag response time used by any set of tags g is:
[0061]
[0062] The final time taken by the method of the present invention is:
[0063]
[0064] In a specific embodiment, after receiving the group ID to which it belongs, the tag performs a hash operation through a hash function with a random seed R and takes the modulus of the frame length, and the result is recorded as X i The tag then selects a tag time slot and responds to the reader with a 96-bit vector containing 1 bit "1" and 95 bits "0". The index value of the tag time slot is The index value of the "1" bit in the 96-bit response message is X i Divide by 96 and take the remainder.
[0065] In a specific embodiment, the reader performs an OR operation on the tag responses received in a tag time slot, and then compares the vector after the OR operation with the corresponding expected frame vector. If a bit in the expected frame vector is "1" and the corresponding bit in the vector after the operation is "0", it can be determined that the corresponding tag is a lost tag. At the same time, the reader reports a lost tag event, stops the detection of this group and turns to the lost tag detection of the next group.
[0066] Since only 1 / e of the tags can be effectively queried during a round of lost tag detection, the reader needs to execute rounds to ensure the given reliability requirement. The optimal execution round number r is obtained according to formula (4): g * Therefore, steps 1, 2, and 3 are repeated multiple times in each group until a missing label event is detected or r g * All rounds have been completed.
[0067] Step 5: The reader repeats the above steps by group until all tags in group G are detected.
[0068] In order to further illustrate the advantages of the above method of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0069] like Figure 3 As shown in Figure 1, it is assumed that the number of tags in a group in the RFID system is 8, of which tag 8 is the lost tag, and the frame length is assumed to be 10. The reader maps all tags to the expected frame vector V through a hash function. g and broadcasts the vector to all tags on the scene. When a tag receives the vector V g After that, the index value of the selected bit in all "1" bits is calculated by the random seed, frame length and hash function, and then a response vector is replied. Since tags 2, 3 and 6 are mapped to a single time slot, they reply a 4-bit response message to the reader according to the result of the hash operation. After receiving the responses from all tags in the tag time slot, the reader performs an OR operation on them to generate a new vector 1110, and then adds the resultant vector to the expected frame vector V g For comparison, if V g If the bit expected to be "1" is actually "0", the corresponding tag can be judged as a lost tag. Figure 3 As shown, the reader can find that the bit corresponding to tag 8 is actually "0", so tag 8 is a lost tag.
[0070] When the reliability required by the multi-packet RFID system is α=0.9 and α=0.99 respectively, the multi-packet lost tag detection method for expected single time slot (hereinafter referred to as AMD method) of the present invention is used together with the existing GAB-detect method and SMTD+CC method for lost tag detection, see Figure 4 and Figure 5 ,It can be found that the time cost of the three methods is also increasing as the ,number of tags in the system increases, but the time efficiency of the ,AMD method described in the present invention is much higher than the ,other two methods.
[0071] When the thresholds of lost tags in each group of the multi-group RFID system are and respectively, the AMD method of the present invention is used together with the existing GAB-detect method and SMTD+CC method to detect lost tags. Figure 6 and Figure 7 It can be found that as the number of tags in the system increases, the time cost of the three methods is also increasing, and the higher the required reliability, the more obvious the increase in detection time. However, the time efficiency of the AMD method described in the present invention is still higher than that of the other two methods.
[0072] When the reliability required by the multi-group RFID system is α=0.9 and α=0.99 respectively, the AMD method of the present invention is used together with the existing GAB-detect method and SMTD+CC method for lost tag detection. Figure 8 and Fig. 9 ,As the number of missing labels in each group increases, the detection time of the three ,methods does not change at all, while the time taken by the AMD method is less than the other ,two methods.
[0073] When the reliability required by the multi-group RFID system is α=0.9 and α=0.99 respectively, the AMD method of the present invention is used together with the existing GAB-detect method and SMTD+CC method for lost tag detection. Fig.10 and Fig.11 , all three methods can meet the given reliability requirements of the system.
[0074] When the thresholds of lost tags in each group of the multi-group RFID system are and respectively, the AMD method of the present invention is used together with the existing GAB-detect method and SMTD+CC method to detect lost tags. Fig.12 and Fig.13 ,All three methods can meet the given reliability requirements of the system, but the reliability of the AMD method is much higher than the other two methods.
[0075] It can be seen from the above that the multi-group lost tag detection method for expected single time slot provided by the present invention can efficiently detect lost tags in a multi-group RFID system, and the reliability fully meets the requirements of the system.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting multi-packet loss tags for an expected single time slot, characterized in that: All known tags in the system are divided into G groups, and the gth group contains N g , N g ≤ preset value z, 1≤g≤G labels, of which the number of lost labels is m g , each tag has a unique z-bit tag ID and a group ID for tag identity verification, the method comprising: Step 1: For any set of tags in the system, the reader maps all tags to a single f through a hash function. g Length array, to construct a desired frame vector V g , and then query all tags in the group of tags through the request command; Step 2: After all tags receive the request command, they use the built-in hash function to generate the expected frame vector V g Select a bit and calculate the index of the selected bit in all "1" bits, then select a tag time slot based on the result of the hash operation to respond with a z-bit message to the reader; Step 3, the reader performs an OR operation on all tag responses received in a tag time slot to generate a new composite vector, and then detects the lost tag event based on the actual value in the composite vector and the value in the expected frame vector; Step 1 includes: The reader performs hash operations on the tag IDs of all tags and takes the remainder to obtain the tag vector V in the expected frame. g The index value in V g If a bit in is mapped by only one label, the bit is set to "1", otherwise the bit is set to "0", and the group ID and parameter <f are grouped by label. g ,R> and vector V g Broadcast to all tags as a request command to query all tags in the corresponding group tag, where R is the random seed of the hash function; The method further comprises: During the detection of a group of missing tags, the reader performs r g rounds to detect the missing tag events of the group to achieve the required detection accuracy, wherein the number of rounds is determined based on the given detection accuracy and the number of missing tags in the group; The method further includes: in order to achieve a given detection reliability, the reader needs to perform r in each group g Wheel detection, then r g Satisfy the following formula: In order to improve detection efficiency and minimize detection time, the optimal r g The values are: exist The maximum detection efficiency can be obtained.
2. The method for detecting multi-packet loss tags for an expected single time slot according to claim 1, characterized in that: Step 2 includes: if the tag receives the group ID of the group to which it belongs, the tag selects V according to the result of the hash operation. g After the first bit in the string, it replies with a z-bit response message containing 1 bit "1" and z-1 bits "0"; In which, when the vector V g After being broadcast, each tag gets V g The tag takes the value of each bit in the string and calculates the number of bits with a value of "1" before the bit it selects. At this time, the tag obtains the index value of the bit it selects in all bits with a value of "1", which is recorded as X i , then the index value of "1" in the response message of the tag reply is X i Divide z and take the remainder. At the same time, the index value of the tag slot used by the tag is calculated by the formula get.
3. The method for detecting multi-packet loss tags for an expected single time slot according to claim 2, characterized in that: Step 3 includes: The reader combines all the tag response information received in the same tag time slot into a combined z-bit vector by OR operation. If the value of a bit in the combined vector is expected to be "1" but is actually "0", it can be concluded that there is a missing tag event in the group and the detection of the group is stopped.
4. The method for detecting multi-packet loss tags for an expected single time slot according to claim 3, characterized in that: Step 3 includes: when a tag time slot is executed, the reader maps all tags in the corresponding group to vector V through a hash function with a random seed R g Then the received tag response information is ORed with the vector V g If the tag group has not been lost, the tag response information after the OR operation is compared with the vector V g Exactly the same, when one bit in the tag response information after the OR operation is "0" and V g When the corresponding bit in is "1", it is determined that the group loss tag event is detected, the detection of the group is stopped, and the loss tag detection of the next group of tags is started by broadcasting a request command consisting of the group ID, frame length and random seed of the next group of tags.
5. The method for detecting multi-packet loss tags for expected single time slot according to claim 4, characterized in that: Each tag replies to the reader through a tag time slot. The reader compares the tag response information with the expected frame vector by OR operation, avoiding the time cost of the tag replying with a short time slot. The expected detection time is: where t tag is the tag time slot, and G is the number of tag groups in the system.
6. The method for detecting multi-packet loss tags for an expected single time slot according to claim 5, characterized in that: The method further includes: after a group of lost tags is detected, the reader continues to broadcast the group ID and parameters of the next group of tags. <f g ,R> and vector V g To all tags in the system; the tag in the corresponding group selects a tag time slot to reply a z-bit message through the result of hash operation, and the reader performs OR operation on the tag response information in the same tag time slot to detect whether there is a missing tag in the group; the detection process is repeated until all tags in all groups are detected.
