Data transmission method and device
By sending a query command carrying a response probability to the tag to be read in the RFID system and using concurrent decoding technology to determine and decode the response signal of the target tag, the problem of low throughput caused by tag conflicts in multi-tag scenarios is solved and the time slot is improved. Utilization and overall throughput.
Patent Information
- Application Number
- CN202210476390.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-29
AI Technical Summary
Existing RFID systems have low throughput due to tag conflicts in multi-tag scenarios, and it is difficult for existing technology to effectively solve the problem of wasted time slots caused by tag signal conflicts.
By sending a query command carrying a response probability to the tag to be read, receiving and decoding the response signal, determining the target tag and sending a response signal to indicate the tag ID, using concurrent decoding technology to decode the response signal of at least one tag within the reader's decoding capability. , thereby improving time slot utilization.
It effectively utilizes the time slots of conflicting tags, improves the overall throughput rate and time slot utilization of the RFID system, and solves the problem of wasted time slots caused by tag signal conflicts.
Smart Images

Figure CN114970581B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method and device. Background Art
[0002] With the rise of Internet of Things technology, passive sensing technology has received more and more attention and is regarded as one of the most promising technologies in this century. Among the existing passive sensing technologies, RFID technology has received the most extensive attention and application. As one of the core technologies in the field of Internet of Things, RFID technology can identify objects in the real world through wireless communication.
[0003] In a multi-tag scenario, since all tags share the same wireless channel, there is a phenomenon of tag conflict. Tag signal conflict will lead to waste of time slots. Therefore, the current commercial RFID has the problem of low throughput rate. Summary of the invention
[0004] The present invention provides a data transmission method and device, which are used to solve the defect of low RFID throughput rate in the prior art and improve the RFID system throughput rate.
[0005] In a first aspect, the present invention provides a data transmission method, applied to a reader, comprising:
[0006] Sending a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds;
[0007] receiving a response signal sent by the tag to be read, wherein the response signal is sent based on the response probability;
[0008] Based on the response signal, determining a target tag and a tag identifier corresponding to the target tag;
[0009] Sending a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used to instruct the target tag to send the tag ID;
[0010] Receive the tag ID sent by the target tag.
[0011] Optionally, before sending a query command to at least one tag to be read, the method further includes:
[0012] Determining the number of tags to be read and the expected number of responding tags;
[0013] The response probability is determined based on the number of tags to be read and the expected number of responding tags.
[0014] Optionally, determining the number of the to-be-read tags includes:
[0015] Get the historical estimated value of the total number of Q tags and the number of successfully read tags;
[0016] Determine an estimated value of the total number of tags based on the historical estimated value of the total number of tags;
[0017] Determine the number of tags to be read based on the total number of tags estimated and the number of successfully read tags;
[0018] Wherein, Q is a positive integer.
[0019] Optionally, the method further comprises:
[0020] When the number of the historical estimated values of the total number of tags is less than Q, the response probability is determined to be the response probability of the previous time slot.
[0021] Optionally, the determining the expected number of the response tags comprises:
[0022] Determining the expected number of response tags based on a decoding success rate model and channel quality;
[0023] The decoding success rate model is:
[0024]
[0025] Among them, D M×S represents the decoding success rate model, S represents the number of divided signal-to-noise ratio levels, M represents the maximum concurrency, and M is a positive integer. Represents the decoding success rate when the concurrency is M and the channel quality is SNRs.
[0026] Optionally, before obtaining the historical estimated value of the total number of Q tags and the number of successfully read tags, the method further includes:
[0027] Obtain i historical estimated values of the total number of second tags, where the second historical estimated values of the total number of second tags correspond one-to-one to the previous i consecutive time slots;
[0028] Determining whether the second tag total number historical estimate satisfies a normal distribution;
[0029] When the second total number of tags historical estimate does not satisfy the normal distribution, w third total number of tags historical estimate and w third number of successfully read tags are obtained, wherein the third total number of tags historical estimate corresponds to the first w consecutive time slots one by one, and the third number of successfully read tags corresponds to the first w consecutive time slots one by one;
[0030] Determine a total tag count estimate based on the third total tag count historical estimate and the third number of successfully read tags;
[0031] Determine the number of tags to be read based on the total number of tags estimated and the number of successfully read tags;
[0032] Determining the response probability based on the number of tags to be read and the expected number of responding tags;
[0033] Wherein, i is a positive integer, and w is a positive integer.
[0034] Optionally, the method further comprises:
[0035] In the case of X consecutive undecodable time slots, determining the response probability based on a first response probability formula;
[0036] In the case where Y idle time slots occur consecutively, determining the response probability based on a second response probability formula;
[0037] The first response probability formula is:
[0038]
[0039] The second response probability formula is:
[0040] p i =bp i-1 ;
[0041] Among them, p i is the response probability, p i-1 is the response probability of the previous time slot, i is a positive integer, a is the first parameter, b is the second parameter, X is a positive integer, and Y is a positive integer.
[0042] Optionally, determining the target tag based on the response signal includes:
[0043] The target tag is determined based on a signal-to-noise ratio of the response signal.
[0044] Optionally, determining the target tag based on the signal-to-noise ratio of the response signal includes:
[0045] When the total number of tags remains unchanged, the tag to be read corresponding to the highest signal-to-noise ratio is determined as the target tag;
[0046] When the total number of tags changes, the tag to be read corresponding to the lowest signal-to-noise ratio is determined as the target tag.
[0047] Optionally, the first response signal is also used to instruct the target tag to change a reading state.
[0048] In a second aspect, the present invention further provides a data transmission method, applied to a tag, comprising:
[0049] receiving a query command sent by a reader, wherein the query command carries a response probability for indicating whether the tag responds;
[0050] determining whether to send a response signal to the reader based on the response probability;
[0051] Receiving a first response signal carrying a tag identification sent by the reader;
[0052] A determination is made based on the first response signal whether to transmit the tag ID to the reader.
[0053] Optionally, the method further comprises: changing a read state based on the first response signal.
[0054] In a third aspect, the present invention further provides a data transmission device, applied to a reader, comprising:
[0055] A query unit, used to send a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds;
[0056] A first receiving unit, configured to receive a response signal sent by a tag to be read, wherein the response signal is sent based on the response probability;
[0057] A first determining unit, configured to determine a target tag and a tag identifier corresponding to the target tag based on the response signal;
[0058] A response unit, used for sending a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used for instructing the target tag to send a tag ID;
[0059] The first receiving unit is further configured to receive a tag ID sent by the target tag.
[0060] In a fourth aspect, the present invention further provides a data transmission device, applied to a tag, comprising:
[0061] A second receiving unit, configured to receive a query command sent by a reader, wherein the query command carries a response probability indicating whether the tag responds;
[0062] a second determining unit, configured to determine whether to send a response signal to the reader based on the response probability;
[0063] The second receiving unit is further used to receive a first response signal carrying a tag identification sent by the reader;
[0064] The second determination unit is further configured to determine whether to send the tag ID to the reader based on the first response signal.
[0065] In a fifth aspect, the present invention further provides a reader, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the data transmission method as described in the first aspect is implemented.
[0066] In a sixth aspect, the present invention further provides a tag, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the data transmission method as described in the second aspect is implemented.
[0067] In a seventh aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data transmission method as described in the first aspect or the data transmission method as described in the second aspect.
[0068] The data transmission method and device provided by the embodiment of the present invention controls the number of response tags through the response probability. During the handshake phase between the tag and the reader, even if the response signals of multiple tags conflict, since the number of conflicting tags is within the decoding capability of the reader, the reader can use concurrent decoding technology to decode the response signal sent by at least one tag (ideally, each tag can be decoded), and then select a target tag from them for subsequent tag ID reading. In this way, the time slot wasted due to the conflict of the tag's response signal becomes a time slot that can effectively complete the reading of one tag, thereby improving the utilization of the time slot and the overall throughput of the RFID system. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 This is one of the flowcharts of the data transmission method provided by an embodiment of the present invention;
[0071] Figure 2 is a cumulative and changing trend graph provided by an embodiment of the present invention;
[0072] Figure 3 is a schematic diagram of a reading process of a valid conflict time slot provided by an embodiment of the present invention;
[0073] Figure 4 This is a second flow chart of the data transmission method provided by an embodiment of the present invention;
[0074] Figure 5 It is a framework diagram of the protocol provided by the embodiment of the present invention;
[0075] Figure 6 is a schematic diagram of a Preprocess command data field provided by an embodiment of the present invention;
[0076] Figure 7 is a schematic diagram of the data domain of a Query provided by an embodiment of the present invention;
[0077] Figure 8 is a tag state transition diagram provided by an embodiment of the present invention;
[0078] Fig. 9 It is a schematic diagram of a reading process of an effective decoding time slot provided by an embodiment of the present invention;
[0079] Fig.10 It is a schematic diagram of a reading process of an invalid conflict time slot and an idle time slot provided by an embodiment of the present invention;
[0080] Fig.11 It is one of the structural schematic diagrams of the data transmission device provided by the embodiment of the present invention;
[0081] Fig.12 This is a second structural diagram of the data transmission device provided by an embodiment of the present invention;
[0082] Fig.13 is a schematic diagram of the structure of a reader provided by an embodiment of the present invention;
[0083] Fig.14 It is a schematic diagram of the structure of a label provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the 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.
[0085] As RFID systems are increasingly used in various fields, the performance optimization of RFID systems has also become a focus of attention. According to whether they can be directly applied to widely deployed commercial RFID devices, related research can be divided into two categories. One type of research is based on the widely used commercial RFID protocol, and improves performance from the aspects of protocol parameter setting and dynamic parameter adjustment. The advantage of this type of research is that the research results can be easily deployed on commercial devices, so that they can be applied in the industry as soon as possible. The other type of research temporarily puts aside the constraints of commercial protocols to explore whether a greater performance improvement can be achieved. Concurrent decoding technology for tag conflict signals is an important part of this. In recent years, concurrent decoding technology has gradually matured, but because it cannot be directly deployed on commercial RFID devices, it has not yet been widely used. This article briefly introduces the status of these two types of research.
[0086] In terms of protocol performance optimization, according to the different starting points for improving the performance of RFID systems, related work can be divided into two categories: one is optimization from the perspective of link layer logic, and the other is optimization from the perspective of physical layer channels and link parameters. From the perspective of link layer logic, in the scenario of multiple tags, since all tags share the same wireless channel, the current commercial RFID protocol adopts an anti-collision mechanism based on SlottedAloha at the link layer. The protocol uses the parameter Q to control the number of time slots in the reading cycle, and uses the adaptive Q algorithm to dynamically adjust the number of time slots in subsequent reading cycles according to the number of tags responding to each time slot in the reading cycle, so that the proportion of invalid time slots is getting lower and lower, and the throughput gradually approaches the theoretical optimal value. However, the ideal number of time slots is closely related to the number of tags to be read, especially in RFID systems with certain dynamics. Due to the frequent occurrence of tag conflicts, it is difficult to accurately estimate the number of tags to be read.
[0087] In terms of concurrent decoding technology, related research can be divided into two categories: one category requires modifications to commercial tags to enhance the tags' perception and communication capabilities. Another part of the work requires the use of more advanced coding technology on the tags, which assumes that the tags can withstand higher energy consumption and use more complex encoding methods to transmit data. By making the signal encoding orthogonal, the reader can directly decode the received conflicting signals according to certain rules. These concurrent decoding methods require substantial modifications to commercial tags, and require the tags to have higher energy consumption, and may even need to be connected to a power source before they can be used. This is difficult to directly apply to commercial tags that have been widely deployed in various fields.
[0088] In order to improve the throughput of RFID tags, the concurrent decoding technology for tag conflict signals is also constantly improving. However, even though the concurrent decoding technology can currently achieve concurrent decoding of up to 5 tag conflict signals, it still cannot be used in actual RFID systems because the existing commercial RFID protocols cannot fully utilize the concurrent decoding technology.
[0089] In order to solve the above problems, an embodiment of the present invention proposes a data transmission method to improve the time slot utilization of the RFID system and achieve an improvement in throughput.
[0090] Combine the following Figure 1 - Fig.10 The data transmission method provided by the embodiment of the present invention is described.
[0091] Figure 1 is one of the flowcharts of the data transmission method provided by the embodiment of the present invention, such as Figure 1 As shown, the data transmission method provided by the embodiment of the present invention includes:
[0092] Step 110, sending a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds;
[0093] Specifically, the Radio Frequency Identification (RFID) system includes a reader and a tag; the reader can be called a reading device, a scanner, a communicator or a reader / writer, etc.; the tag is also called a radio frequency tag, a transponder or a data carrier, etc.; the tag to be read refers to a tag that has not been successfully read. It should be understood that in the application, the reader can send a query command to all tags (including tags to be read and tags that have been read). The query command is a Query command, which is used to open a new time slot. The response probability refers to the probability that the tag to be read responds to the query command. For example, the response probability is 0.4, and the probability that a tag to be read sends a response signal to the reader is 0.4.
[0094] Step 120, receiving a response signal sent by the tag to be read, wherein the response signal is sent based on the response probability;
[0095] Specifically, the response signal is an RN16 signal. In a multi-tag scenario, the reader can receive RN16 signals transmitted concurrently by multiple tags. For example, the response probability is 0.4, there are 10 tags to be read, and the reader may receive response signals sent by 4 tags to be read.
[0096] Step 130, determining a target tag and a tag identifier corresponding to the target tag based on the response signal;
[0097] Specifically, the reader decodes all received RN16 signals and determines a target tag according to the decoding result. The target tag refers to a tag whose tag ID signal the reader determines to receive.
[0098] Step 140: Send a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used to instruct the target tag to send a tag ID.
[0099] Specifically, after the reader completes the decoding of the conflicting RN16 signal, it sends a first response signal to the tag to be read. The first response signal is an ACK command, which is used to inform the tag to be read of the decoding result, that is, to inform the tag to be read to transmit the ID. The tag to be read will compare the RN16 sent by each tag to be read with the RN16 carried in the ACK. Only when the two are consistent, will the ID be transmitted.
[0100] Step 150: Receive the tag ID sent by the target tag.
[0101] Specifically, the reader receives the tag ID sent by the target tag and reads the target tag.
[0102] The response probability in step 110 is further explained below.
[0103] Assuming that the number of tags to be read in the environment is N, if you want to complete the reading of all tags as quickly as possible, you need to be able to dynamically adjust the response probability p in the reader query command so that each time slot in the reading cycle can be used to the maximum extent. Although the expectation of the number of tags responding in each time slot is E(c) = NP, if only one time slot is observed, since each tag generates a random number independently and responds to the reader's command in the current time slot with probability p, the number of tags responding may not always be the same as the expected number.
[0104] Specifically, in a time slot, if there are N tags participating and the response probability of the query command is p, then the probability Pr(c) that there are c tags responding in this time slot can be calculated as follows:
[0105] Each tag responds with probability p. If there are c tags responding, then the number of possible combinations of these tags is The remaining Nc tags will not respond with a probability of 1-p, so the number of responses c follows a binomial distribution: c~B(N,p), and the value of Pr(c) is:
[0106]
[0107] When other conditions remain unchanged, the decoding success rate of the concurrent decoding algorithm decreases as the concurrency increases. Assuming that the decoding success rate when the concurrency is c is DR(c), then the probability that the time slot with concurrency c can be effectively utilized is Pr(c)·DR(c), so the number of tags that can be successfully read in the time slot with concurrency c is c·Pr(c)·DR(c).
[0108] Since concurrent decoding technology has different decoding results when facing different concurrency and different channel quality, the results of concurrent decoding can be divided into three categories: complete decoding, partial decoding and undecoding. If the reader cannot decode, it will abandon the time slot, resulting in a waste of time slots; if it can fully decode or partially decode, it means that at least one RN16 can be decoded, and then one of the decoded RN16s can be selected and put into the ACK to return to the tag, so that one tag can be matched successfully and send its own ID.
[0109] Therefore, by determining the response probability, the number of responding tags can be determined. When the number of responding tags matches the reader's decoding capability, the reader's decoding success rate can be improved, so that the reader can select the target tag to obtain the tag ID signal and avoid wasting time slots.
[0110] The data transmission method provided by the embodiment of the present invention controls the number of response tags through the response probability. During the handshake phase between the tag and the reader, even if the response signals of multiple tags conflict, since the number of conflicting tags is within the decoding capability of the reader, the reader can use concurrent decoding technology to decode the response signal sent by at least one tag (ideally, each tag can be decoded), and then select a target tag from them for subsequent tag ID reading. In this way, the time slot wasted due to the conflict of the tag's response signal becomes a time slot that can effectively complete the reading of one tag, thereby improving the utilization of the time slot and the overall throughput of the RFID system.
[0111] Next, possible implementations of the above steps in specific embodiments are further described.
[0112] Optionally, before sending a query command to at least one tag to be read, the method further includes:
[0113] Step 100, determining the number of tags to be read and the expected number of response tags;
[0114] Step 101 : determining the response probability based on the number of tags to be read and the expected number of responding tags.
[0115] Specifically, based on the various concurrency levels that may occur in a time slot, the expected number of tags read in a time slot is ERead (c) is:
[0116]
[0117] Because the number of tags read in a single time slot is expected to be equal to the average number of tags that can be read in each time slot during the entire reading cycle, when the number of tags N is fixed and the DR(c) at different concurrency levels is known, it is necessary to obtain the equation that makes E Read (c) Maximum response probability p opt However, by taking the derivative and taking the zero point, we can find that p opt It is the root of a higher-order equation and cannot be solved analytically. Therefore, a better approximate solution is obtained through other methods. Let R(c) = c DR(c). It is not difficult to know that R(c) is a discrete function with a domain of N. After normalizing it, we can get:
[0118]
[0119] Since R′(c) is a constant, then:
[0120]
[0121] Then R′(c) is regarded as the probability density function of the discrete random variable c. According to the expected definition of discrete random variables, we can get:
[0122]
[0123] Using Wensen's inequality and the property that ln(x) is a concave function, we can get:
[0124] oeLh c~R′(c) Pr(c)≥E c~R′(c) ln Pr(c);
[0125] If the expectations on both sides of the inequality are written as the sum of discrete random variables and then multiplied by the constant ∑∞c=1R(c), two functions can be obtained: fobj(p) and fapprox(p).
[0126]
[0127] Since the function ln(x) is monotonically increasing, fobj(p) is equivalent to the objective function ERead(c) to be maximized, and fapprox(p) is a lower bound function of fobj(p). The corresponding response probability papprox when this lower bound function takes a maximum value can be obtained by taking the derivative and taking the zero point to obtain an analytical solution:
[0128]
[0129] The form of papprox has good mathematical properties. From the perspective of a single time slot, since the number of response tags c follows a binomial distribution c~B(N,p), the expected number of responses in this time slot Eapprox(c) satisfies:
[0130]
[0131] That is, the response probability can be set to the expected number of responses in the current time slot divided by the number of tags to be read. In fact, popt and papprox are very close. For ease of calculation, papprox can be used as a fast and relatively accurate algorithm for calculating response probability.
[0132] In order to calculate p approx , two parameters need to be known: the number of expected response tags in the current time slot, and the number of tags to be read, that is, the response probability can be determined based on the number of tags to be read and the expected number of response tags.
[0133] Optionally, determining the number of the to-be-read tags includes:
[0134] Step 1000, obtaining a historical estimated value of the total number of Q tags and the number of Q successfully read tags, where Q is a positive integer;
[0135] Specifically, the historical estimated value of the total number of Q tags refers to the estimated value of the total number of tags in each time slot in the past Q time slots; the number of Q successfully read tags refers to the number of tags successfully read (i.e., the tag ID interpretation is completed) in each time slot in the past Q time slots.
[0136] Step 1001, determining an estimated value of the total number of tags based on the historical estimated value of the total number of tags;
[0137] Specifically, in order to effectively control the number of tags that respond in a time slot through the response probability, the number of tags to be read needs to be estimated as accurately as possible when the number of tags in the surrounding environment is unknown. In order to effectively estimate the total number of tags, it is necessary to gradually accumulate information during the reading process and use this information to continuously improve the accuracy of the estimate until the accuracy reaches an acceptable level.
[0138] Assume that there are t time slots in a complete reading process, and each time slot starts with the reader sending a query command. Since the reading command controls the number of responding tags through the response probability, each time slot corresponds to a set of data: the number of tags to be read at the beginning of the time slot N i , the response probability p in the query command i , the number of response tags c iand the number of tags successfully read d i , recorded as a four-tuple (N i ,p i ,c i ,d i ), where i∈[1,t], N i is unknown, t is a positive integer. If there are N tags before reading begins, then the number of tags to be read at the beginning of the i-th time slot is N i Satisfy the relationship formula of the tags to be read:
[0139]
[0140] That is, the number of tags to be read at the beginning of the i-th time slot N i It is equal to the total number of tags N minus the sum of the number of tags successfully read in the first i-1 time slots. The number of response tags ci follows the binomial distribution ci~B(Ni,pi), so its expectation E(c i )=N i p i , so if ci and pi are known, then the estimate of Ni is Combined with the previous formula, an estimated value of N for:
[0141]
[0142] Then the estimated value This means that if there are multiple samples of estimates, they will be within the expected If the number of samples is large enough, the expectation of the binomial distribution is the same as the actual number of labels, that is,
[0143] It should be understood that as long as there are enough samples, the corresponding distribution curve can always be obtained by curve fitting. When the fitting error is small, it can be considered that a relatively accurate estimate of the number of tags is obtained. However, this will incur a large time cost, making many time slots unable to be fully utilized. In order to solve the problem of excessive time cost, according to the central limit theorem, when N is large, the number of samples of the estimated value It approximately obeys the normal distribution, so the actual number of tags can be approximated by taking the average of the sample estimates obtained from the past time slots, that is, obtaining the historical estimates of the total number of Q tags, taking the average of the historical estimates of the total number of Q tags, and taking the average as the estimated value of the total number of tags.
[0144] Step 1002, determining the number of the tags to be read based on the estimated value of the total number of tags and the number of successfully read tags;
[0145] Specifically, after obtaining the estimated value of the total number of tags, the number of tags to be read can be obtained based on the number of tags to be read at the beginning of the i-th time slot being equal to the estimated value of the total number of tags minus the sum of the number of tags successfully read in the first Q time slots. Optionally, after having a method to estimate the number of tags, it is possible to further determine the number of samples used (the value of Q) that can estimate a more accurate result. The error of this estimate is measured using the T-distribution theory. If the error is within a certain range, the estimate of the number of tags is considered to be relatively accurate and can be used as a parameter to adjust the response probability, thereby improving the throughput. The T-distribution theory defines a confidence interval, which is used to quantify the estimated sample number. The probability that the expected value of the corresponding normal distribution is contained in this confidence interval. Assume that there are currently n samples Then the confidence interval is defined as: In this definition, and is the mean and standard deviation of these n samples, α represents the error rate, It can be obtained by looking up the T distribution table. The T distribution theory ensures that the expected value of the normal distribution corresponding to the estimated sample N is contained in this confidence interval with a probability of 1-α. According to the definition of the confidence interval, the length of the confidence interval will gradually decrease as the number of samples increases. By constraining the length of the confidence interval, the error of the estimated value of the number of labels can be constrained. For example, if the estimated value of the number of labels is required to be relative to the mean The upper limit of the deviation is biasN, which means:
[0146]
[0147] That is, the upper limit of the deviation on either side of the mean must be greater than half the length of the confidence interval. Therefore, in the actual reading process, by continuously collecting estimated samples and then calculating the length of the confidence interval to obtain the upper limit of the deviation, the accuracy of the current estimate can be quantitatively characterized. By analyzing the changing trend of the length of the confidence interval as the number of samples increases, a rough estimate of the number of samples required can be obtained. Since the standard deviation of the sample cannot be predicted, it is assumed that the standard deviation of the sample points remains unchanged. First, when the number of samples is the same, the smaller the required error rate α, the looser the constraint on the length deviation and the longer the confidence interval; secondly, when the error rate α is fixed (it is usually considered that α is 5%), as the number of samples increases, the reduction in the length of the confidence interval will become smaller and smaller. When the number of samples exceeds 10, the change in the length of the confidence interval is very slow. Therefore, optionally, Q takes a value of 10.
[0148] The data transmission method provided by the embodiment of the present invention can take into account both the calculation speed and the accuracy of the calculation of the number of tags to be read.
[0149] Optionally, when the number of the historical estimated values of the total number of tags is less than Q, the response probability is determined to be the response probability of the previous time slot.
[0150] It should be understood that the response probability of the first time slot is obtained by user preset. It can be preset according to parameters such as reader performance and usage scenario, or it can be set to a random value. The embodiment of the present invention does not limit the specific value. The value of Q can be preset.
[0151] Optionally, the determining the expected number of the response tags comprises:
[0152] Determining the expected number of response tags based on a decoding success rate model and channel quality;
[0153] In addition to the number of tags to be read, the setting of the response probability is also closely related to the decoding success rate under different concurrency levels. Combining the algorithm flow of concurrent decoding and the actual number of conflicting tags, there are three key factors that affect the decoding success rate: concurrency, channel quality, and the amplitude and phase of the conflicting signal. Concurrency is the number of conflicting tags. In order to estimate the impact of channel quality and concurrency on the decoding success rate, a DRMap model (decoding success rate model) is established:
[0154]
[0155] D M×S Represents the decoding success rate model. The DRMap model can be represented by an M×S matrix, where S represents the number of divided signal-to-noise ratio levels, M is a positive integer, and M represents the highest concurrency that the decoding algorithm can support. The dr(m)SNRs in the model represents the decoding success rate when the concurrency is m and the channel quality is SNRs. Therefore, if the DRMap model can be obtained, the decoding success rate distribution of different concurrencies under a certain channel quality can be obtained based on the model, and the appropriate response probability can be selected based on this.
[0156] If there is only one tag’s signal, its signal-to-noise ratio level can be easily calculated during the decoding process. However, in the scenario of concurrent decoding, each tag has its own signal strength, so it is necessary to approximate the signal-to-noise ratio level of the conflicting signals. In this scenario, there are two factors that affect the signal-to-noise ratio: the intensity of the ambient noise α n and the signal strength of each of the c tags Therefore, the signal strength of all tags can be averaged to obtain an average signal strength It is then used as an approximation of the signal strength of all tags to calculate the signal-to-noise level of the current conflicting signal:
[0157]
[0158] Experiments have shown that as the signal-to-noise ratio increases, the decoding success rate at the same concurrency increases, which indirectly shows that the method of obtaining an approximate signal-to-noise ratio by taking the average of the signal strengths of multiple tags is effective. Moreover, when the signal-to-noise ratio is large, the decoding success rate does not change much, because the distance between the conflicting signals in the IQ domain clusters is no longer a bottleneck affecting the decoding success.
[0159] After obtaining the decoding success rates under different signal-to-noise ratios, the number of expected response tags in each time slot under different signal-to-noise ratio levels can be obtained. As the signal-to-noise ratio level increases, the number of expected response tags also increases.
[0160] Although the expected number of responding tags under different signal-to-noise ratios can be obtained, in the actual reading process, the response probability is set for the upcoming time slot. In the new time slot, the signal strength of several tags that are about to respond and the strength of the environmental noise are unknown, so only the existing information can be used to estimate the signal-to-noise ratio level of the next time slot signal. Assuming that the serial number of the current time slot is t, for environmental noise, according to the assumption of the signal model, it can be assumed that the environmental noise intensity will not change in a short time, so the environmental noise intensity of time slot t+1 can be approximated by the environmental noise intensity of time slot t; and for the signal strength of the tag, the tag that responds in each time slot can be regarded as being sampled from the entire tag set. Therefore, if the information on the tag signal strength that has been collected can be used as much as possible, the overall signal strength of the tag set can be more accurately estimated. Therefore, the average of all tag signal strengths in the first t time slots can be taken as an approximation of the conflict signal strength of time slot t+1.
[0161] In this way, we can get the estimated value SNRnew of the signal-to-noise ratio of the next time slot, and then find the closest arg miniabs (SNRi-SNRnew) in the existing channel quality {SNR1,…,SNRs} in the DRMap model, and then use the i-th column of the matrix D to obtain the distribution of decoding success rates under different concurrency levels to calculate the new expected number of response tags. Combined with the estimate of the number of tags to be read, the response probability of the next time slot can be obtained.
[0162] Optionally, before obtaining the historical estimated value of the total number of Q tags and the number of successfully read tags, the method further includes:
[0163] Step S1, obtaining i historical estimated values of the total number of second tags, wherein the second historical estimated values of the total number of second tags correspond one-to-one to the first i consecutive time slots;
[0164] Step S2, determining whether the second tag total number historical estimated value satisfies a normal distribution;
[0165] Step S3, when the second total number of tags historical estimate value does not satisfy the normal distribution, obtaining w third total number of tags historical estimate values and w third number of successfully read tags, wherein the third total number of tags historical estimate values correspond to the first w consecutive time slots one by one, and the third number of successfully read tags corresponds to the first w consecutive time slots one by one;
[0166] Step S4, determining an estimated value of the total number of tags based on the third historical estimated value of the total number of tags and the third number of successfully read tags;
[0167] Step S5, determining the number of the tags to be read based on the estimated value of the total number of tags and the number of successfully read tags;
[0168] Step S6, determining the response probability based on the number of tags to be read and the expected number of responding tags;
[0169] Wherein, i is a positive integer, and w is a positive integer.
[0170] Next, possible implementations of steps S1-S6 in a specific embodiment are further described.
[0171] It should be understood that in actual RFID systems, the number of tags during the reading process usually changes dynamically. For example, in logistics warehousing management, items with tags are constantly transported into the warehouse, and the number of tags will increase during the reader reading process. Therefore, the response probability also needs to be able to track the number of tags so as to adjust adaptively. However, when the number of tags changes dynamically, since the direction and trend of the change are unknown, it is more difficult to accurately estimate the number of tags, and therefore it is difficult to achieve the response probability when the number of tags is assumed to be stable.
[0172] According to whether the number of tags is changing dynamically, the embodiment of the present invention divides the reading process into a stable stage and an adjustment stage. As the reading process progresses, the reading process may switch between these two stages. In each time slot of the communication process between the reader and the tag, the reader is always in one of the following two stages: an adjustment stage or a stable stage. The reader identifies whether the number of tags has changed by collecting information obtained during the decoding process, thereby determining whether to switch from one stage to another. At the same time, it is considered that if the stage changes, considering that the trend and direction of the change in the number of tags are unpredictable, the information of the previous stage should no longer be relied on. Therefore, once the stage is switched, only the information collected in the new stage is used to calculate the response probability. In order to set the response probability more accurately, it is necessary to detect the change in the number of tags as accurately as possible. In other words, when it is currently in the stable stage, if the number of tags changes, it is necessary to switch to the adjustment stage as soon as possible to adjust the response probability.
[0173] Step S1, obtaining i historical estimated values of the total number of second tags, wherein the second historical estimated values of the total number of second tags correspond one-to-one to the first i consecutive time slots;
[0174] Specifically, each of the first i consecutive time slots corresponds to a second tag total historical estimation value. If i is 2, the fifth time slot is taken as the current time slot, the fourth time slot corresponds to a second tag total historical estimation value, and the third time slot corresponds to a second tag total historical estimation value.
[0175] Step S2, determining whether the second tag total number historical estimated value satisfies a normal distribution;
[0176] Specifically, if it is currently in a stable phase, the estimated value of the total number of tags will tend more and more to the true value. Considering that the estimated value of each time slot is approximately normally distributed, the estimated value of the tag always fluctuates around the expectation. So if the total number of tags changes, the estimated value of the number of tags will gradually deviate from the previous expectation. In order to detect the deviation of the estimated value of the number of tags from the previous expectation as quickly as possible, the Cumulative Sum (CUSUM) method can be used. The cumulative sum method is usually used in time series analysis, using a small number of samples to detect small deviations in the sequence. And due to the cumulative characteristics, even a small offset of the samples in the sequence will lead to a steady increase in the cumulative sum. For example, there is now a sample sequence x1,…,xt (each sample represents the estimated value of the total number of tags detected in each time slot). Assuming that the expectation of the sequence mean is μ0, the cumulative sum Ci calculated for the first i samples is:
[0177]
[0178] If the mean of the sample is shifted upward, the cumulative sum Ci of the number of detected labels will also shift upward. Conversely, if the sample mean is shifted downward, the cumulative sum Ci will also shift downward. Assuming that the distribution of the desired sample obeys the normal distribution x~N(μ0,σ0), Table 1 is the parameter setting in the cumulative sum method provided in the embodiment of the present invention. As shown in Table 1, the parameter settings when using the cumulative sum method are as follows:
[0179] Table 1. Parameter settings in the cumulative sum method
[0180]
[0181] Since the cumulative sum may shift upward or downward, two values need to be calculated for the i-th sample:
[0182]
[0183] represents the upper bound cumulative sum, Represents the lower bound cumulative sum. If Ci+≥H or Ci-≤-H is found, then the current sample sequence is considered to have deviated from the expectation with an offset of K. In the scenario of detecting changes in the number of tags, the previous part of the samples in the stable phase can be used to calculate the mean μ0 and the standard deviation σ0. After that, the cumulative sum is calculated for each new time slot. If it is found that the cumulative sum is greater than the offset threshold, it is considered that the number of tags has changed significantly, and the original estimated value of the number of tags can no longer be used to set the response probability. It is necessary to switch to the adjustment phase to make a new estimate of the number of tags. The simulation experiment simulates the scenario of dynamic changes in the number of tags. The number of tags starts from the 100th time slot and increases steadily by 10 in each time slot. Figure 2 is a cumulative and changing trend diagram provided by an embodiment of the present invention, such as Figure 2 As shown in the figure, after about 20 time slots, the cumulative sum C+ exceeds the upper threshold, thus triggering the phase switching. In the adjustment phase, since the number of tags may continue to change, the estimation of the number of tags cannot use sample points in too early time slots. A sliding window with a fixed length of w can be set, and the estimation of the sample mean only uses samples collected from the w time slots closest to the current time slot. According to the previous measurement of the deviation of the estimation of the number of tags by T distribution theory, the length w of the sliding window can be selected to be between 10 and 20.
[0184] In contrast, if the number of labels does not change during the adjustment phase, in order to use more samples for more accurate estimation, it is necessary to switch from the adjustment phase to the stable phase again. To detect whether the number of labels is stable, the upper limit of the bias obtained from the previous T distribution theory can be used. N .
[0185] Since the premise for the validity of the T distribution theory is that the observed sample data is normally distributed, if the number of labels is continuously changing, the estimated sample distribution is not normally distributed, so the deviation of the mean from the expected distribution is not constrained by the length of the confidence interval.
[0186] In order to avoid frequent switching between stages due to multiple changes in the number of tags in a short period of time, the same test can be performed in three time slots with similar distances. If the results of the three tests all show that the number of tags has stabilized, then it is considered that it is possible to switch from the adjustment stage to the stable stage.
[0187] Step S3, when the second total number of tags historical estimate value does not satisfy the normal distribution, obtaining w third total number of tags historical estimate values and w third number of successfully read tags, wherein the third total number of tags historical estimate values correspond to the first w consecutive time slots one by one, and the third number of successfully read tags corresponds to the first w consecutive time slots one by one;
[0188] Specifically, the idea of sliding window can be adopted, by obtaining the historical estimated values of the total number of w third tags and the number of w third successfully read tags from the w time slots closest to the current time slot, and then calculating the length of the corresponding confidence interval in the T distribution theory. It is judged whether the length of the confidence interval is small enough under the condition of a given upper limit of the deviation biasN.
[0189] Step S4, determining an estimated value of the total number of tags based on the third historical estimated value of the total number of tags and the third number of successfully read tags;
[0190] Step S5, determining the number of the tags to be read based on the estimated value of the total number of tags and the number of successfully read tags;
[0191] Step S6, determining the response probability based on the number of tags to be read and the expected number of responding tags;
[0192] The methods for calculating the estimated value of the total number of tags, the number of tags to be read, and the response probability in steps S4-S6 are as described above and will not be repeated here.
[0193] Optionally, the method further comprises:
[0194] In the case of X consecutive undecodable time slots, determining the response probability based on a first response probability formula;
[0195] In the case where Y idle time slots occur consecutively, determining the response probability based on a second response probability formula;
[0196] The first response probability formula is:
[0197]
[0198] The second response probability formula is:
[0199] p i =bp i-1 ;
[0200] Among them, p i is the response probability, p i-1 is the response probability of the previous time slot, i is a positive integer, a is the first parameter, b is the second parameter, X is a positive integer, and Y is a positive integer.
[0201] Optionally, a is 2.
[0202] Optionally, b is 2.
[0203] Specifically, if the number of tags increases significantly within a period of time, then using the original response probability will cause the number of responding tags to increase sharply, resulting in a situation where decoding is not possible; conversely, if the number of tags decreases significantly, then using the original response probability will cause the number of responding tags to decrease sharply, resulting in continuous idle time slots. In this extreme case, in order to make the time slot available as soon as possible, if there are X consecutive undecodeable time slots, If there are Y consecutive idle time slots, let p i =2p i-1 After that, the reader will directly enter the adjustment phase and continuously adjust the response probability according to the corresponding rules. The values of X and Y can be preset. Optionally, X=Y=5 is selected to reduce the probability of misidentification.
[0204] Optionally, determining the target tag based on the response signal includes:
[0205] The target tag is determined based on a signal-to-noise ratio of the response signal.
[0206] Specifically, since the EPC protocol uses the Slotted Aloha anti-collision mechanism, the reader may receive RN16 signals transmitted concurrently by multiple tags at the same time, but the reader can only determine the tag corresponding to one RN16 signal in each time slot to interpret the tag ID signal. Since the concurrent decoding technology has different decoding results when facing different concurrency and different channel quality, the results of concurrent decoding can be divided into three categories: complete decoding, partial decoding, and undecodable. If the reader cannot decode, it will still abandon the time slot; if it can fully decode or partially decode, it means that at least one RN16 can be decoded, and then one of the decoded RN16s can be selected and put into the ACK to return to the tag, so that one tag can be matched successfully and send its own ID.
[0207] When multiple tag signals collide, the reader can decode at least one RN16 signal, so that one tag can be matched successfully. The time slot is called a valid conflict time slot. Figure 3 FIG. 1 is a schematic diagram of a reading process of a valid conflict time slot provided by an embodiment of the present invention. Figure 3 As shown, the reading process of the valid conflict time slot is as follows Figure 3 As shown, it is basically the same as the process of the original readable time slot, the difference lies in the method of the reader decoding RN16 and the logic of replying ACK.
[0208] The emergence of effective conflicting time slots brings about a problem: the logic of replying ACK will be different from before. If only one RN16 is decoded, then the ACK can only contain this RN16, but if the number of decoded RN16s exceeds one, it is necessary to select from them. How to choose the most helpful way to improve the throughput needs to be distinguished according to the signal characteristics of the tag and the current scenario.
[0209] For different tags, their signal characteristics are often affected by the surrounding environmental factors. Taking the signal-to-noise ratio as an example, the signal-to-noise ratio of the tag signal is related to the level of environmental noise, the distance and angle between the tag and the reader, and other factors. For a single tag, the signal will form two clusters in the IQ domain, and the distance between the cluster centers of the two clusters represents the signal strength of the tag, recorded as αt; and due to environmental noise, the signal sampling points will not be strictly located at the two cluster centers. Instead, they will be evenly distributed around the cluster center, and the distance from the cluster center to the cluster edge represents the intensity of the noise, recorded as αn. Then the signal-to-noise ratio of the tag signal is defined as:
[0210]
[0211] When the signals of multiple tags conflict, the signal-to-noise ratio is different due to the different positions of each tag and the different signal strengths. The lower the signal-to-noise ratio, the more difficult it is for the reader to decode the tag signal. That is, the target tag can be determined based on the signal-to-noise ratio of the response signal in combination with the scenario requirements.
[0212] Optionally, determining the target tag based on the signal-to-noise ratio of the response signal includes:
[0213] When the total number of tags remains unchanged, the tag to be read corresponding to the highest signal-to-noise ratio is determined as the target tag;
[0214] Specifically, the situation where the total number of tags remains unchanged can be a scenario where the reader reads a large number of static tags. For example, in warehouse management, it is necessary to regularly and quickly count the items on the shelves. At this time, the reader can select the tag signal with the highest signal-to-noise ratio. This approach has two advantages: first, for the subsequent decoding of the tag ID, a higher signal-to-noise ratio will reduce the probability of reading failure and retransmission; second, the tag with the highest signal-to-noise ratio is read first, and the tag with a lower signal-to-noise ratio is less susceptible to interference in subsequent time slots, making it easier to read.
[0215] When the total number of tags changes, the tag to be read corresponding to the lowest signal-to-noise ratio is determined as the target tag.
[0216] Specifically, the situation where the total number of tags changes can be a reading scenario with mobile tags. For example, when goods are put into storage, information about the incoming items will be collected at the entrance of the warehouse. At this time, each tag will actually only be within the effective reading range of the reader for a short period of time. In order to complete the reading of these tags as quickly as possible, the reader can try to reply to the tag with the lowest signal-to-noise ratio first. This is because the lowest signal-to-noise ratio is likely to mean that the tag is farther away from the reader and is more likely to leave the reader's reading range. At this time, the reader needs to read this tag as soon as possible.
[0217] Optionally, the first response signal is also used to instruct the target tag to change a reading state.
[0218] Specifically, the format of the ACK command can be redesigned to use the CRC check code in the tag ID as the tag's hash code to identify whether the tag has been successfully read. After decoding the ACK command, the tag will take out the hash codes one by one to compare with the CRC check code in its ID. If a match is found, the tag can confirm that it has been successfully read and change its own reading status, so that it will no longer participate in the subsequent reading process.
[0219] The data transmission method provided by the embodiment of the present invention adds concurrent decoding technology under the framework of the commercial RFID protocol. During the handshake stage between the tag and the reader, if the RN16 signals of multiple tags conflict, the reader can decode the RN16 sent by each tag using concurrent decoding technology, and then select a tag from them to read the subsequent tag ID. In this way, the time slots wasted due to the tag signal conflict are turned into time slots that can effectively complete the reading of one tag, the utilization rate of the time slots is improved, and the overall throughput rate is also improved. Secondly, the data transmission method provided by the embodiment of the present invention, through the setting of protocol parameters, ensures that the protocol is not only applicable to static scenarios of reading a fixed number of tags, but also can be adaptively adjusted to scenarios where the number of tags changes dynamically and the tags themselves have a certain degree of mobility, while taking into account various scenarios, to achieve the highest possible throughput.
[0220] Figure 4 FIG. 2 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 4 As shown, the data transmission method provided by the embodiment of the present invention is applied to a tag, and includes:
[0221] Step 410, receiving a query command sent by a reader, wherein the query command carries a response probability indicating whether the tag responds;
[0222] Specifically, the introduction to the query command and the response probability is as described above and will not be repeated here.
[0223] Step 420, determining whether to send a response signal to the reader based on the response probability;
[0224] Exemplarily, when the response probability is 0.3, the current tag has a probability of 0.3 to send a response signal.
[0225] Step 430, receiving a first response signal carrying a tag identification sent by the reader;
[0226] Specifically, the first response signal carries an RN16 signal, and the RN16 signal can be used as a label identifier.
[0227] Step 440: Determine whether to send the tag ID to the reader based on the first response signal.
[0228] Specifically, the tag receives the first response signal sent by the reader, compares the RN16 sent by itself with the RN16 carried in the first response signal, and transmits the ID only when the two are consistent. Since only one RN16 can be carried in the ACK data packet, only one tag can be matched successfully, and the remaining tags will consider the current time slot unavailable after discovering that the RN16 does not match, and thus give up the transmission of the tag ID.
[0229] Optionally, the method further comprises:
[0230] Step 450: modify the read state based on the first response signal.
[0231] Optionally, the CRC checksum in the tag ID is used as the tag's hash code to identify whether the tag has been successfully read. After decoding the ACK command, the tag will take out the hash codes one by one to compare with the CRC checksum in its ID. If a match is found, the tag can confirm that it has been successfully read and change its own reading status, so that it will no longer participate in the next reading process.
[0232] The data transmission method provided by the embodiment of the present invention controls the number of response tags through the response probability. During the handshake phase between the tag and the reader, even if the response signals of multiple tags conflict, since the number of conflicting tags is within the decoding capability of the reader, the reader can use concurrent decoding technology to decode the response signal sent by at least one tag (ideally, each tag can be decoded), and then select a target tag from them for subsequent tag ID reading. In this way, the time slot wasted due to the conflict of the tag's response signal becomes a time slot that can effectively complete the reading of one tag, thereby improving the utilization of the time slot and the overall throughput of the RFID system.
[0233] In one embodiment, Figure 5 is a framework diagram of the protocol provided by the embodiment of the present invention, such as Figure 5 As shown in the figure, each time slot needs to have two stages: in the first stage, the reader first sends a query command and selects some tags to respond in the current time slot; in the second stage, the reader completes the concurrent decoding of the tag ID, and then sends an ACK to inform the tag to change the reading state, so that the tags that have been read will no longer participate in the subsequent communication process. Then these two stages will be repeated until all tags are read.
[0234] Phase 1 is the key to concurrency control. In order to effectively control the number of tags that respond in a single time slot, we control it by setting the response probability p of the time slot. If the number of tags to be accessed is N, then the expected number of tags c that respond in the current time slot is E(c) = Np. Specifically, the reader includes the response probability p in the query command and sends it to the tag. After decoding the command, each tag independently chooses whether to respond to its own ID in the current time slot with probability p.
[0235] The main purpose of phase 2 is to notify all successfully decoded tags. Based on the reconfigurable decoding system on the tag side, this protocol framework has two advantages compared to the existing EPC protocol: on the one hand, the tag side no longer needs to send RN16 for handshake, but can directly send the tag ID, which not only enables concurrent decoding technology to be fully utilized, but also simplifies the complexity of the protocol and reduces the energy consumption of tag processing. On the other hand, this protocol can control the concurrency of each time slot, and the control granularity is finer than that of the EPC protocol, so it responds more quickly to dynamic changes in the environment and channels.
[0236] In one embodiment, the adaptive adjustment algorithm of the response probability is as follows:
[0237] Require: the current stage (adjustment stage or stable stage); the response probability P of the previous time slot last ; The threshold K of the number of times the probability adjustment is triggered in extreme cases;
[0238] Ensure: response probability p;
[0239] 1: if it fails to decode k times in a row then
[0240] 2: Enter the adjustment phase:
[0241] 3: if k consecutive time slots are idle then
[0242] 4: Enter the adjustment phase: return (P = 2P last );
[0243] 5: If the sample size used to estimate the number of labels is insufficient then
[0244] 6: return (P = P last );
[0245] 7: Calculate the expected number of response tags E(c);
[0246] 8: Estimate the number of tags to be read
[0247] 9:
[0248] 10: if (currently in the adjustment stage) and (the error constraints of the T-distribution confidence interval are met for three consecutive times) then
[0249] 11: Entering the stable stage;
[0250] 12: if (currently in a stable stage) and (calculated CUSUM exceeds the threshold) then
[0251] 13: Enter the adjustment phase;
[0252] 14: return p;
[0253] After clarifying the framework of the protocol and the setting of key parameters, the overall process of the new protocol is given. First, the core commands of the reader are defined, and the reader sends the necessary parameters to the tag through these commands; second, the state transition of the tag when facing various commands is clearly defined; finally, in a reading cycle, according to the response status of the tag and the decoding status of the reader, it can be divided into three types of time slots. The interaction processes in these three types of time slots are introduced below.
[0254] 1. Core commands on the reader side
[0255] In the framework of concurrent RFID protocol, the reader needs to have three core commands: Preprocess command to start a new reading cycle, Query command to start a new time slot and ACK command to inform the tag of the decoding result. Preprocess command is used to start a reading cycle, but this reading cycle is of indefinite length. The reader decides when to end the current reading cycle according to the reading status of the tag and the dynamic changes of the environment during the reading process. Figure 6 Schematic diagram of the Preprocess command data field provided by an embodiment of the present invention, such as Figure 6 As shown in the figure, the data field of the Preprocess command is mainly divided into three fields: Action field, DR field and M field. The Action field is 1 bit long and is used to set the access flag of the tag to A or B (a bit in the Action field, A and B correspond to 1 and 0); the DR field and the M field are used to set the frequency and coding of the tag uplink, which is the same as the corresponding data field in the EPC protocol. The Query command is used to indicate the opening of a time slot. Figure 7 A schematic diagram of the data domain of the Query provided by the embodiment of the present invention is as follows: Figure 7As shown in the figure, the Query command has two data fields: Target field and P field. The Target field is 1 bit long and has two values: A and B (one bit in the Target field, A and B correspond to 1 and 0). Only tags with access flag bits of a certain value will participate in the next reading cycle; the P field is 8 bits long, so the value range is [0,28), and the response probability p is the inverse of this value.
[0256] There is only one data field in the ACK command: the Hash code field. The Hash code field contains the Hash codes of 5 tags. The Hash code of a tag is the last 8 bits of the CRC-16 checksum of its ID. Considering that the current concurrent decoding algorithm can decode at most 5 tags, the length of the Hash field is 40 bits. If the number of decoded tags is less than 5, the excess bits are all filled with 0.
[0257] In fact, the length of the hash code can be configured. Assuming that k bits of the tag's CRC check code are used as the tag's hash code in the ACK command, it can be assumed that the CRC check code generation algorithm ensures the randomness of the bit sequence, so the probability of each sequence appearing is 12k. Since there are at most 5 k-bit hash codes in the ACK command, the number of these 5 hash codes that are different is: ∏4i=0(2k-i), and the number of all permutations is (2k)5, so the probability of at least 2 hash codes being the same is:
[0258]
[0259] If k∈[4,12] is taken, the probability of Hash code collision is shown in Table 2. When k=8, the collision error probability can reach less than 5%. Considering that the number of Hash codes is often less than 5, the error probability will be lower, and the larger the bit length, the greater the energy consumption burden for tag decoding. Therefore, a compromise is made to use an 8-bit Hash code.
[0260] 2. Label state transition
[0261] After the tag is awakened by charging, it will first enter the Ready state and wait for the next instruction from the reader. Figure 8 The tag state transition diagram provided by the embodiment of the present invention is as follows: Figure 8As shown in the figure, in a normal reading process, the tag will first receive the Preprocess command to set its access tag bit, and adjust its uplink frequency and encoding method, and then the tag will formally enter the new reading process. Next, the tag will receive the Query command, at which time the tag will enter the new time slot and face a choice. If the tag finds that the access tag bit does not match, or chooses not to respond in the current time slot, the tag will remain in the Ready state and wait for the next time slot to arrive; if the tag finds that the access tag bit matches and chooses to respond in the current time slot, the tag will enter the Reply state and reply with its ID.
[0262] In the Reply state, the tag will wait for the ACK command from the reader. After decoding the Hash code data field, the tag will match the Hash codes one by one. If the match fails, it will return to the Ready state and wait for the next time slot. If the match succeeds, it will first change its access flag bit, then return to the Ready state, and no longer participate in the next time slot. The impact of the length of the 5 Hash codes on the error probability when they collide is shown in Table 2:
[0263] Table 2. The impact of the length of 5 hash codes on the error probability when they collide
[0264] length 4 6 8 10 12 Error probability (%) 50 14.8 3.85 0.97 0.24
[0265] 3. Various time slots in the reading cycle
[0266] The reader starts a new reading cycle through the Preprocess command. After receiving the Preprocess command, the tag will decode the data field and set its own access flag bit, as well as the frequency and encoding format of the uplink. Next, the reader will send a Query command to start a new time slot. The tag chooses whether to respond in the current time slot by decoding the response probability p in the reader's Query command. According to the tag's response and the reader's decoding, the entire reading cycle can be divided into three types: valid decoding time slot, invalid collision time slot and idle time slot.
[0267] Fig. 9 A schematic diagram of a reading process of an effective decoding time slot provided by an embodiment of the present invention is shown in FIG. Fig. 9As shown in the figure, in the valid decoding time slot, some tags return their IDs, and the reader receives conflicting tag signals. After concurrent decoding of the conflicting signals, it is found that at least one tag ID has been successfully decoded, so a part of the CRC checksum in the successfully decoded tag ID is intercepted and placed in the data field of the ACK command as the tag's hash code. After receiving the ACK command, the tag will compare the hash codes one by one. If a hash code match is found, it will consider that it has been decoded successfully, and then change its access flag bit, so that it will no longer participate in the subsequent time slot; if no match is found, it will directly participate in the next time slot.
[0268] There are also two kinds of invalid time slots: invalid conflict time slots and idle time slots. Fig.10 A schematic diagram of a reading process of an invalid conflicting time slot and an idle time slot provided by an embodiment of the present invention is shown in FIG. Fig.10 In an invalid conflict time slot, the reader receives a conflict signal and finds that it cannot decode any tag ID, so the reader will directly send a Query command to start the next time slot; in an idle time slot, there is no tag response, and the reader will enter a new time slot after waiting for a while.
[0269] The data transmission device provided by the present invention is described below. The data transmission device described below and the data transmission method described above can be referenced to each other.
[0270] Fig.11 is one of the structural diagrams of the data transmission device provided by the embodiment of the present invention, such as Fig.11 As shown, an embodiment of the present invention provides a data transmission device, which can be applied to a reader, including:
[0271] A query unit 1110, configured to send a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds;
[0272] A first receiving unit 1120, configured to receive a response signal sent by a tag to be read, wherein the response signal is sent based on the response probability;
[0273] A first determining unit 1130, configured to determine a target tag and a tag identifier corresponding to the target tag based on the response signal;
[0274] A response unit 1140 is used to send a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used to instruct the target tag to send a tag ID;
[0275] The first receiving unit 1120 is further configured to receive a tag ID sent by the target tag.
[0276] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0277] Fig.12 FIG. 2 is a second structural diagram of a data transmission device provided by an embodiment of the present invention. Fig.12 As shown, a data transmission device can be applied to a tag, comprising:
[0278] The second receiving unit 1210 is used to receive a query command sent by a reader, wherein the query command carries a response probability indicating whether the tag responds;
[0279] A second determining unit 1220, configured to determine whether to send a response signal to the reader based on the response probability;
[0280] The second receiving unit 1210 is further configured to receive a first response signal carrying a tag identifier sent by the reader;
[0281] The second determination unit 1220 is further configured to determine whether to send the tag ID to the reader based on the first response signal.
[0282] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0283] Fig.13 The following is an example of a physical structure diagram of a reader, such as Fig.13As shown, the electronic device may include: a processor 1310, a communication interface 1320, a memory 1330 and a communication bus 1340, wherein the processor 1310, the communication interface 1320 and the memory 1330 communicate with each other through the communication bus 1340. The processor 1310 may call the logic instructions in the memory 1330 to execute a data transmission method applied to a reader, the method comprising: sending a query command to at least one tag to be read, the query command carrying a response probability for indicating whether the tag to be read responds; receiving a response signal sent by the tag to be read, the response signal being sent based on the response probability; determining a target tag and a tag identifier corresponding to the target tag based on the response signal; sending a first response signal carrying the tag identifier to the tag to be read, the first response signal being used to instruct the target tag to send a tag ID; receiving a tag ID sent by the target tag.
[0284] In addition, the logic instructions in the above-mentioned memory 1330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0285] Fig.14 The following is an example of a physical structure diagram of a tag: Fig.14As shown, the electronic device may include: a processor 1410, a communication interface 1420, a memory 1430 and a communication bus 1440, wherein the processor 1410, the communication interface 1420 and the memory 1430 complete mutual communication through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute a data transmission method applied to a tag, the method comprising: receiving a query command sent by a reader, the query command carrying a response probability for indicating whether the tag responds; determining whether to send a response signal to the reader based on the response probability; receiving a first response signal carrying a tag identification sent by the reader; and determining whether to send the tag ID to the reader based on the first response signal.
[0286] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0287] On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the data transmission method applied to the reader or the data transmission method applied to the tag provided by the above methods;
[0288] The data transmission method applied to the reader includes: sending a query command to at least one tag to be read, the query command carrying a response probability for indicating whether the tag to be read responds; receiving a response signal sent by the tag to be read, the response signal being sent based on the response probability; determining a target tag and a tag identifier corresponding to the target tag based on the response signal; sending a first response signal carrying the tag identifier to the tag to be read, the first response signal being used to instruct the target tag to send a tag ID; receiving the tag ID sent by the target tag;
[0289] The data transmission method applied to the tag includes: receiving a query command sent by a reader, the query command carrying a response probability for indicating whether the tag responds; determining whether to send a response signal to the reader based on the response probability; receiving a first response signal carrying a tag identification sent by the reader; and determining whether to send the tag ID to the reader based on the first response signal.
[0290] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0291] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0292] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data transmission method, It is characterized in that Applicable to readers, including: Sending a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds; receiving a response signal sent by the tag to be read, wherein the response signal is sent based on the response probability; Based on the response signal, determining a target tag and a tag identifier corresponding to the target tag; Sending a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used to instruct the target tag to send the tag ID; Receiving a tag ID sent by the target tag; before sending a query command to at least one tag to be read, the method further includes: Determining the number of tags to be read and the expected number of responding tags; Determining the response probability based on the number of tags to be read and the expected number of responding tags; determining the number of tags to be read includes: Get the historical estimated value of the total number of Q tags and the number of successfully read tags; Determine an estimated value of the total number of tags based on the historical estimated value of the total number of tags; Determine the number of tags to be read based on the total number of tags estimated and the number of successfully read tags; Wherein, Q is a positive integer; Before obtaining the historical estimated value of the total number of Q tags and the number of successfully read tags, the method further includes: Obtain i historical estimated values of the total number of second tags, where the second historical estimated values of the total number of second tags correspond one-to-one to the previous i consecutive time slots; Determining whether the second tag total number historical estimate satisfies a normal distribution; When the second total number of tags historical estimate does not satisfy the normal distribution, w third total number of tags historical estimate and w third number of successfully read tags are obtained, wherein the third total number of tags historical estimate corresponds to the first w consecutive time slots one by one, and the third number of successfully read tags corresponds to the first w consecutive time slots one by one; Determine a total tag count estimate based on the third total tag count historical estimate and the third number of successfully read tags; Determine the number of tags to be read based on the total number of tags estimated and the number of successfully read tags; Determining the response probability based on the number of tags to be read and the expected number of responding tags; Wherein, i is a positive integer, w is a positive integer; The method further comprises: In the case of X consecutive undecodable time slots, determining the response probability based on a first response probability formula; In the case where Y idle time slots occur consecutively, determining the response probability based on a second response probability formula; The first response probability formula is: ; The second response probability formula is: ; in, is the response probability, is the response probability of the previous time slot, i is a positive integer, a is the first parameter, b is the second parameter, X is a positive integer, and Y is a positive integer.
2. The data transmission method according to claim 1, It is characterized in that The method further comprises: When the number of the historical estimated values of the total number of tags is less than Q, the response probability is determined to be the response probability of the previous time slot.
3. The data transmission method according to claim 1, It is characterized in that The determining the expected number of the response tags includes: Determining the expected number of response tags based on a decoding success rate model and channel quality; The decoding success rate model is: ; in, represents the decoding success rate model, S represents the number of divided signal-to-noise ratio levels, M represents the maximum concurrency, and M is a positive integer. Represents the decoding success rate when the concurrency is M and the channel quality is SNR𝑠.
4. The data transmission method according to claim 1, It is characterized in that The step of determining a target tag based on the response signal includes: The target tag is determined based on a signal-to-noise ratio of the response signal.
5. The data transmission method according to claim 4, It is characterized in that The determining the target tag based on the signal-to-noise ratio of the response signal comprises: When the total number of tags remains unchanged, the tag to be read corresponding to the highest signal-to-noise ratio is determined as the target tag; When the total number of tags changes, the tag to be read corresponding to the lowest signal-to-noise ratio is determined as the target tag.
6. The data transmission method according to any one of claims 1 to 5, It is characterized in that The first response signal is also used to instruct the target tag to change the reading state.
7. A data transmission device for implementing the data transmission method according to claim 1, It is characterized in that Applicable to readers, including: A query unit, used to send a query command to at least one tag to be read, wherein the query command carries a response probability indicating whether the tag to be read responds; A first receiving unit, configured to receive a response signal sent by a tag to be read, wherein the response signal is sent based on the response probability; A first determining unit, configured to determine a target tag and a tag identifier corresponding to the target tag based on the response signal; A response unit, used for sending a first response signal carrying the tag identification to the tag to be read, wherein the first response signal is used for instructing the target tag to send a tag ID; The first receiving unit is further configured to receive a tag ID sent by the target tag.
8. A reader comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the data transmission method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Label generation method and device, electronic equipment and storage medium
CN113159880A
RFID tag anti-collision method and system based on fuzzy collision probability prediction
CN114386444A
