Timing adjustment methods, storage media, readers, electronic tags and systems
By adjusting the transmission timing of electronic tags in the radio frequency identification system, the communication conflict caused by multiple tags transmitting data simultaneously was resolved, thus improving data transmission efficiency.
Patent Information
- Application Number
- CN202110632254.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-07
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2041-06-07
AI Technical Summary
When multiple electronic tags in an RFID system send data to the reader simultaneously, communication conflicts and data interference are likely to occur, resulting in low data transmission efficiency.
During the iteration cycle, multiple tag data are received and the reception time is recorded. Based on the reception time, the target tag data to be adjusted is determined, a timing adjustment instruction is generated, and the transmission time of the target electronic tag is adjusted to avoid data collisions and improve transmission efficiency.
By adjusting the transmission timing of electronic tags, data collisions are reduced, thus improving the data transmission efficiency of the RFID system.
Smart Images

Figure CN115510882B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a timing adjustment method, storage medium, reader / writer, electronic tag, and system. Background Technology
[0002] Radio Frequency Identification (RFID) technology is a non-contact automatic identification technology that uses spatial coupling of radio frequency signals. The core components of an RFID system include a reader and electronic tags. The reader receives information from the electronic tags and can be connected to a computer for upper-level management of the entire application system. The electronic tags wirelessly transmit their stored information remotely to the reader to identify the item, person, or device they represent.
[0003] Currently, when an RFID system is working, multiple electronic tags may be within the reader's range at the same time. When multiple electronic tags send data to the reader simultaneously, communication conflicts and data interference occur, resulting in low data transmission efficiency for the reader. Summary of the Invention
[0004] This application provides a timing adjustment method, storage medium, reader, electronic tag, and system that can improve data transmission efficiency.
[0005] In a first aspect, embodiments of this application provide a timing adjustment method, including:
[0006] During the iteration cycle, multiple tag data are received and the reception time of each tag data is recorded.
[0007] If the iteration termination condition is not met, the target label data to be adjusted is determined from multiple label data based on the receiving time of each label data.
[0008] Identify the target electronic tag corresponding to the target tag data and generate a timing adjustment instruction for the target electronic tag;
[0009] Adjust the timing of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeat the above steps until the iteration termination condition is met.
[0010] Secondly, embodiments of this application also provide a storage medium storing a computer program thereon, which, when run on a computer, causes the computer to execute the process in the timing adjustment method provided in embodiments of this application.
[0011] Thirdly, embodiments of this application also provide a reader / writer, including a memory and a processor. The memory stores a computer program, and the processor executes the process in the timing adjustment method provided in embodiments of this application by calling the computer program stored in the memory.
[0012] Fourthly, this application embodiment also provides an electronic tag for transmitting tag data to a reader / writer. The reader / writer is the reader / writer provided in this application embodiment. If the electronic tag is a target electronic tag, the transmission time of the next tag data is adjusted according to the timing adjustment instruction when the iteration termination condition is not met.
[0013] Fifthly, embodiments of this application also provide a timing adjustment system, including a reader and an electronic tag. The reader is used to receive multiple tag data and record the reception time of each tag data within an iteration cycle. When the iteration termination condition is not met, the reader determines the target tag data to be adjusted from the multiple tag data according to the reception time of each tag data, determines the target electronic tag corresponding to the target tag data, and generates a timing adjustment instruction for the target electronic tag. The timing adjustment instruction is used to adjust the transmission time of the target electronic tag to transmit the next tag data, and the above steps are repeated until the iteration termination condition is met. The electronic tag is used to transmit tag data to the reader. If the electronic tag is the target electronic tag, the timing adjustment instruction is used to adjust the transmission time of the next tag data when the iteration termination condition is not met.
[0014] In this embodiment, firstly, within the iteration cycle, multiple tag data are received and the reception time of each tag data is recorded. If the iteration termination condition is not met, the target tag data to be adjusted is determined from the multiple tag data based on the reception time of each tag data. Then, the target electronic tag corresponding to the target tag data is determined, and a timing adjustment instruction for the target electronic tag is generated. Subsequently, the transmission time of the target electronic tag transmitting the next tag data is adjusted according to the timing adjustment instruction, and the above steps are repeated until the iteration termination condition is met. This embodiment can continue iterating before the iteration termination condition is met. Within the iteration cycle, based on the distribution of the reception times of each tag data, it determines which tag data has a dense distribution of reception times and needs adjustment, thereby generating a timing adjustment instruction to adjust the timing of the corresponding electronic tag's next transmission of tag data. This ensures that the received tag data is staggered in time, avoiding data interference and collision, and improving data transmission efficiency. Attached Figure Description
[0015] The technical solution and its beneficial effects will become apparent from the following detailed description of specific embodiments of this application, in conjunction with the accompanying drawings.
[0016] Figure 1 This is a schematic diagram of a scenario for the timing adjustment method provided in an embodiment of this application.
[0017] Figure 2 This is a schematic diagram of the first type of timing adjustment method provided in the embodiments of this application.
[0018] Figure 3 This is a schematic diagram showing the distribution of tag data received during the iteration cycle provided in an embodiment of this application.
[0019] Figure 4 This is a schematic diagram of dense sets and free sets provided in an embodiment of this application.
[0020] Figure 5 This is a schematic diagram of time slot pairing provided for an embodiment of this application.
[0021] Figure 6 This is a schematic diagram of the second type of timing adjustment method provided in the embodiments of this application.
[0022] Figure 7 This is a schematic diagram of the third timing adjustment method provided in the embodiments of this application.
[0023] Figure 8 This is a schematic diagram of the fourth timing adjustment method provided in the embodiments of this application.
[0024] Figure 9 This is a schematic diagram of the fifth type of timing adjustment method provided in the embodiments of this application.
[0025] Figure 10 This is a schematic diagram of the reader / writer provided in an embodiment of this application.
[0026] Figure 11 This is a schematic diagram of the timing adjustment system provided in an embodiment of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0028] The terms "first," "second," "third," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the objects described in this way can be used interchangeably where appropriate. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, or apparatus, terminal, or system comprising a series of steps is not necessarily limited to those steps, modules, and units explicitly listed, but may also include steps, modules, or units not explicitly listed, or other steps, modules, or units inherent to such processes, methods, apparatus, terminals, or systems.
[0029] Please see Figure 1 , Figure 1 This is a schematic diagram of a scenario for the timing adjustment method provided in an embodiment of this application. The scenario may include a livestock herd 100, an electronic tag 200, a reader / writer 600, and a user 400.
[0030] In livestock farming, to promptly understand the health status of livestock herds, users often need to personally observe their animals. Livestock workers must enter the enclosures to conduct health checks, such as measuring animal weight. This process is not only unsanitary, but also extremely inefficient for large-scale farms with a large number of livestock.
[0031] In this application, each animal in the herd 100 is equipped with an electronic tag 200, which can collect relevant data about the animal. For example, the electronic tag 200 can be worn on the animal's ear to collect temperature data and / or movement data.
[0032] Electronic tag 200 and reader 600 are two important components of the radio frequency identification (RFID) system. A communication connection is pre-established between electronic tag 200 and reader 600. Reader 600 can receive tag data collected by electronic tag 200 and feed this data back. This tag data can then be further processed; for example, it can be used to determine the health status of livestock. Specifically, electronic tag 200 may include an RFID electronic tag, and reader 600 may include an RFID reader.
[0033] The reader 600 can also establish communication connections with other Internet devices, such as mobile phones and computers of farmers or other relevant personnel. This allows the tag data received from the electronic tag 200 to be sent to the mobile phones and computers of farmers or other relevant personnel, providing real-time reports on various data of each animal. Farmers can use this data to judge the health status of the animals and decide whether to take relevant measures such as inspection and treatment.
[0034] The electronic tag 200 can transmit tag data to the reader 600. The reader 600 can use the timing adjustment method provided in the embodiments of this application. During the iteration cycle, it receives multiple tag data and records the reception time of each tag data. When the iteration termination condition is not met, it determines the target tag data to be adjusted from the multiple tag data according to the reception time of each tag data. It determines the target electronic tag corresponding to the target tag data and generates a timing adjustment instruction for the target electronic tag. It adjusts the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeats the above steps until the iteration termination condition is met.
[0035] When electronic tag 200 is the target electronic tag, if the iteration termination condition is not met, electronic tag 200 adjusts the transmission time of the next tag data according to the timing adjustment instruction.
[0036] This application provides a timing adjustment method, which can be applied to the reader / writer provided in this application. Please refer to... Figure 2 , Figure 2 This is a schematic flowchart of the first timing adjustment method provided in the embodiments of this application. The timing adjustment method may include:
[0037] 101. During the iteration cycle, receive multiple tag data and record the reception time of each tag data.
[0038] Electronic tags periodically transmit tag data to the reader, which receives multiple data transmissions from various electronic tags. The reader records the moment each tag data transmission occurs.
[0039] When multiple tag data arrive at the reader simultaneously, communication conflicts occur due to mutual interference between the tag data, preventing the reader from correctly identifying these tag data. This phenomenon is called a "collision." Collisions cause the reader to fail to read some tag data, resulting in low data transmission efficiency between the electronic tags and the reader.
[0040] In one embodiment, when the electronic tag periodically transmits tag data, the transmission period is not constant but fluctuates slightly. The transmission period of the electronic tag transmitting tag data can be represented by t+r, where t is a fixed period in the transmission period and r is a random factor. r can be greater than 0, less than 0, or equal to 0. Specifically, when the electronic tag transmits tag data, if the random factor r of the transmission period is greater than 0, it means that the electronic tag's transmission period is longer than the fixed period; if r is less than 0, it means that the electronic tag's transmission period is shorter than the fixed period; and if r = 0, it means that the electronic tag's transmission period is equal to the fixed period. Thus, the transmission period of the electronic tag fluctuates randomly based on the fixed period.
[0041] Due to the existence of random factors, even if two electronic tags collide at one time, their transmission periods may fluctuate randomly during the next transmission, causing their data transmission times to stagger and their arrival times at the reader to also stagger. Therefore, for two electronic tags whose data may collide, although sometimes the reader may not receive all of their data due to the collision, they will not remain unreceived indefinitely due to continuous collisions. Because of the random factors, in some cases, the reader can receive the data transmitted by both electronic tags.
[0042] 102. When the iteration termination condition is not met, determine the target label data to be adjusted from multiple label data based on the reception time of each label data.
[0043] This application embodiment adjusts the timing of tag data using an iterative algorithm. When the iteration termination condition is not met (i.e. during the iteration process), the target tag data to be adjusted is determined from multiple tag data based on the reception time of each tag data in each iteration cycle.
[0044] In one embodiment, the iteration period includes multiple equally divided time slots. For example, the minimum identification interval dt of the reader is obtained, and the minimum identification interval dt is determined as the division scale of the iteration period. Let the duration of the iteration period be T, and the division scale be dt. Then the iteration period is divided into n equal parts, n = T / dt. Each divided time interval is a time slot, resulting in time slots t1, t2, t3, t4, t5, ...
[0045] In one embodiment, dt / 2 < r < dt < t. Where dt is the minimum identification interval of the reader, t is the fixed period of the electronic tag, and r is the random factor of the electronic tag.
[0046] The time slots in the iteration cycle may include dense time slots and idle time slots. The criteria for dense time slots and idle time slots can be defined by the user. For example, a time slot containing more than or equal to a first preset threshold of tag data can be defined as a dense time slot, and a time slot containing less than a second preset threshold of tag data can be defined as an idle time slot.
[0047] Based on the distribution of the reception times of each tag data within the iteration cycle, dense and idle time slots can be determined from all time slots in the iteration cycle. That is, after the steps of receiving multiple tag data and recording the reception time of each tag data within the iteration cycle, the process may further include:
[0048] The distribution of tag data in each time slot is determined based on the reception time of each tag data.
[0049] Based on the distribution of tag data in each time slot, dense time slots and idle time slots are identified from all time slots.
[0050] The step of identifying dense and idle time slots from all time slots may include:
[0051] (1) Using a preset number of continuous time slots as statistical units, determine all statistical units corresponding to the iteration cycle;
[0052] (2) Determine the number of tag data in each statistical unit based on the distribution of tag data in each time slot;
[0053] (3) When the number of tag data in the statistical unit is greater than or equal to the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot matching the time slot index is determined as a dense time slot;
[0054] (4) When the number of tag data in the statistical unit is less than the first preset threshold, determine the time slot index corresponding to the statistical unit, and determine the time slot that matches the time slot index as an idle time slot.
[0055] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating the distribution of tag data received within an iteration period, as provided in this embodiment. The iteration period T is divided into seven time slots, t1 to t7. A circle in a time slot indicates that tag data transmitted by an electronic tag was received within that time slot of the iteration period; the absence of a circle in a time slot indicates that no tag data transmitted by an electronic tag was received within that time slot of the iteration period. Different colors represent tag data from different electronic tags, for example, in... Figure 3In this embodiment, the tag data in time slots t1 and t3 originates from the same electronic tag, and the tag data in time slots t2 and t5 also originate from the same electronic tag. The multiple tag data received during the iteration period T may include multiple tag data transmitted by the same electronic tag.
[0056] like Figure 3 As shown, in all time slots of the iteration period T, there is label data distribution in time slots t1 to t5, and no label data distribution in time slots t6 and t7.
[0057] In one embodiment, when there is tag data distributed in a time slot, the value of the time slot can be recorded as 1, and when there is no tag data distributed in a time slot, the value of the time slot can be recorded as 0.
[0058] To determine the dense and idle time slots in the iteration cycle, in one embodiment, two consecutive time slots can be used as statistical units to determine all statistical units corresponding to the iteration cycle, and the number of tag data in each statistical unit can be determined according to the distribution of tag data in each time slot.
[0059] For example, such as Figure 3 The iteration cycles shown, in chronological order, have the following number of label data in all statistical units corresponding to the iteration cycles: 2, 2, 2, 2, 1, 0.
[0060] When the number of tag data in the statistical unit is greater than or equal to the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot matching the time slot index is determined as a dense time slot; when the number of tag data in the statistical unit is less than the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot matching the time slot index is determined as an idle time slot.
[0061] The first preset threshold can be the number of time slots in the statistical unit minus 1, and the second preset threshold can be set to 1. For example, when a statistical unit contains 3 time slots, the first preset threshold can be set to 2 and the second preset threshold can be set to 1; when a statistical unit contains 2 time slots, the first preset threshold can be set to 1 and the second preset threshold can be set to 1.
[0062] It is understood that the first preset threshold and the second preset threshold can also be set in other ways, and this application does not restrict the setting methods of the first preset threshold and the second preset threshold.
[0063] like Figure 3As shown, the number of tag data in the 1st, 2nd, 3rd, and 4th statistical units is greater than or equal to 1. Therefore, the time slot index corresponding to the 1st, 2nd, 3rd, and 4th statistical units is determined, and the time slots that match the time slot index corresponding to the 1st, 2nd, 3rd, and 4th statistical units are determined as dense time slots. The number of tag data in the 6th statistical unit is less than 1. Therefore, the time slot index corresponding to the 6th statistical unit is determined, and the time slots that match the time slot index corresponding to the 6th statistical unit are determined as idle time slots.
[0064] Please see Figure 4 , Figure 4 This is a schematic diagram of dense sets and idle sets provided in an embodiment of this application. In one embodiment, the correspondence between statistical units and time slot indices can be set according to requirements. For example, the time slot index corresponding to a statistical unit can be determined according to the following value function:
[0065] index=cell[0]+Math.ceil(cell / 2)
[0066] Where cell[0] is the time slot index corresponding to the earliest time slot in the time slots contained in the statistical unit, and Math.ceil is the rounding operator. Math.ceil(cell / 2) means taking the integer result of (cell / 2).
[0067] For example, when cell = 4, the time slot index corresponding to the first statistical unit is index = 1 + Math.ceil(4 / 2) = 3; when cell = 3, the time slot index corresponding to the first statistical unit is index = 1 + Math.ceil(3 / 2) = 2.
[0068] When cell = 2, the time slot index corresponding to the first statistical unit is index = 1 + Math.ceil(2 / 2) = 2, the time slot index corresponding to the second statistical unit is index = 2 + Math.ceil(2 / 2) = 3, the time slot index corresponding to the third statistical unit is index = 3 + Math.ceil(2 / 2) = 4, and the time slot index corresponding to the fourth statistical unit is index = 4 + Math.ceil(2 / 2) = 5. The time slots t2, t3, t4, and t5 that match the time slot indices 2, 3, 4, and 5 can be identified as dense time slots. The time slot index corresponding to the sixth statistical unit is index = 6 + Math.ceil(2 / 2) = 7, and the time slot t7 that matches the time slot index 7 can be identified as a dense time slot.
[0069] Therefore, according to Figure 3The distribution of tag data in the shown iteration cycle indicates that the dense time slots in this iteration cycle are t2, t3, t4, and t5, and the idle time slot is t7. After determining the dense and idle time slots, the time slot index of the dense time slots can be stored in the dense set concentrated_li[], and the time slot index of the idle time slots can be stored in the idle set free_li[].
[0070] Once the dense time slots are identified, the label data within those dense time slots can be designated as the target label data to be adjusted.
[0071] 103. Determine the target electronic tag corresponding to the target tag data and generate the timing adjustment instruction for the target electronic tag.
[0072] Electronic tags contain identifiers that distinguish users from each other; each electronic tag's identifier is unique. When an electronic tag transmits tag data to a reader, it carries its own identifier. By determining the identifier corresponding to the target tag data, the reader can identify the electronic tag that matches that identifier as the target electronic tag.
[0073] In one embodiment, the step of generating the timing adjustment instruction for the target electronic tag may include:
[0074] (1) Determine the target time difference of the target electronic tag.
[0075] The significance of the target time difference lies in adjusting the transmission time of the next data transmission of the target electronic tag forward or backward in terms of timing. The adjustment value is equal to the absolute value of the target time difference. Whether the adjustment is forward or backward depends on whether the target time difference is greater than or less than 0. If the target time difference is greater than 0, the transmission time of the next data transmission of the target electronic tag is adjusted backward; if the target time difference is less than 0, the transmission time of the next data transmission of the target electronic tag is adjusted forward; if the target time difference is equal to 0, the transmission time of the next data transmission of the electronic tag is not adjusted.
[0076] In one embodiment, the step of determining the target time difference of the target electronic tag may include:
[0077] (1.1) Determine the target dense time slot and target idle time slot corresponding to the target electronic tag.
[0078] In step (1.1), the step of determining the target dense time slot and the target idle time slot corresponding to the target electronic tag may include:
[0079] (1.1.1) Determine the target dense time slot corresponding to the target electronic tag;
[0080] (1.1.2) Starting from the last dense time slot and the last idle time slot in the iteration cycle, pair up the dense time slots and idle time slots in the iteration cycle from back to front;
[0081] (1.1.3) Based on the pairing results, determine the target idle time slot corresponding to the target dense time slot.
[0082] Please see Figure 5 , Figure 5 This is a schematic diagram of time slot pairing provided for an embodiment of this application. Figure 5 As shown, in one embodiment, given all dense time slots and all idle time slots in the iteration cycle, starting from the last dense time slot and the last idle time slot in the iteration cycle, pairing dense time slots and idle time slots in the iteration cycle from the end to the beginning. For example, each time, one dense time slot and one idle time slot are sequentially taken from the end of the dense set and the idle set and paired together. After pairing is completed, the target idle time slot that matches the target dense time slot can be determined based on the pairing results.
[0083] (1.2) Obtain the time slot index of the target dense time slot and the time slot index of the target idle time slot.
[0084] Get the time slot index of the target dense time slot, concentrated_li[index], and the time slot index of the target idle time slot, free_li[index].
[0085] (1.3) Obtain the duration of the time slot.
[0086] Obtain the duration dt of the time slot in the iteration cycle.
[0087] (1.4) Determine the target time difference of the target electronic tag based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot.
[0088] In one embodiment, when determining the target time difference of the target electronic tag based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot, the following formula can be used:
[0089] Δt=(free_li[index]-concentrated_li[index])*dt
[0090] Wherein, free_li[index] is the time slot index of the target free time slot, concentrated_li[index] is the time slot index of the target concentrated time slot, and dt is the duration of the time slot.
[0091] (2) Generate timing adjustment instructions based on the identifier and the target time difference.
[0092] The identifier indicates the target electronic tag, and the target time difference indicates the transmission time when the target electronic tag will transmit the next tag data. Timing adjustment instructions are generated based on the identifier and the target time interval.
[0093] 104. Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeat the above steps until the iteration termination condition is met.
[0094] In one embodiment, before the iteration termination condition is met, the reader can send a timing adjustment instruction to the target electronic tag. The target electronic tag receives the timing adjustment instruction and adjusts the transmission time of the target electronic tag to transmit the next tag data according to the identifier indicated in the timing adjustment instruction and the target time difference.
[0095] If the iteration conditions are not met, the above steps 101 to 104 are repeated continuously. In each iteration cycle, a batch of timing adjustment instructions are sent to each electronic tag to adjust the transmission time of each electronic tag to transmit the next tag data.
[0096] As the iteration progresses, the number of dense and idle time slots in the iteration cycle decreases, and the distribution of tag data in each time slot becomes more and more uniform until the iteration termination condition is met, at which point the iteration stops.
[0097] The iteration termination condition may include:
[0098] (1) The number of electronic tags received within the iteration cycle is equal to the preset number.
[0099] The preset quantity refers to the number of electronic tags that the reader expects to read.
[0100] (2) The number of dense time slots in the iteration cycle is 0.
[0101] When the number of dense time slots in the iteration cycle is 0, it indicates that the data of each label is sparsely distributed and no further adjustment is needed.
[0102] (3) The number of idle time slots in the iteration cycle is 0.
[0103] When the number of idle time slots in the iteration cycle is 0, it means that there is no room for adjustment.
[0104] (4) The vacancy rate of the iteration cycle is less than or equal to the vacancy rate threshold.
[0105] In one embodiment, the number of tag data received within the iteration cycle is counted to determine the theoretical maximum value of tag data that can be received within the iteration cycle, and the idle rate of the iteration cycle is determined based on the number of tag data received and the theoretical maximum value.
[0106] The four optional iteration termination conditions listed above can be used individually as the iteration termination condition for the timing increment method provided in this application embodiment, or they can be combined as the iteration termination conditions for the timing increment method provided in this application embodiment. It should be noted that, in addition to the four iteration termination conditions listed above, other iteration termination conditions can also be set according to actual needs, and this application embodiment does not impose any restrictions on this.
[0107] In one embodiment, the parameters involved in the iteration termination condition can be created and initialized before the iteration, and the values of these parameters can be updated as new tag data is received during the iteration process.
[0108] For example, the following parameters can be created:
[0109] Iteration period: T(s), the iteration period T is a preset parameter of the reader, which can be written to the reader by the user through commands;
[0110] The number of tag data received within the iteration period T: RN (tags);
[0111] The number of electronic tags received within the iteration period T: N (tags);
[0112] The expected number of electronic tags received within the iteration period T: EN;
[0113] Fixed transmission period of electronic tags: t(s);
[0114] The minimum adjustable time precision of the electronic tag: t_precision(s);
[0115] The theoretical maximum value of electronic tags that can be received within the iteration period T: Rrad_max = T / dt;
[0116] VacantRate = (Read_max - RN) * 100% / Read_max;
[0117] The length of the statistical unit is cell (cell > 1);
[0118] The threshold C for density determination (C≤length(cell)).
[0119] For example, initializing the parameters before entering an iteration can include:
[0120] Initialize the set of identifiers of the electronic tags received in all iteration cycles, total[].
[0121] Initialize the set of electronic tags received during the iteration period T, t_read_total[].
[0122] Initialize the set of electronic tags t_sequence[Read_max] that the reader can receive within the iteration period T. Each element in the set t_sequence[Read_max] stores the tag data in one time slot.
[0123] In one embodiment, at the beginning of each iteration cycle, the start time T_start of the iteration cycle is recorded; each time new tag data is received, the set total[] is traversed, and the identifier of the electronic tag corresponding to the newly received tag data is compared with the elements in the set total[] to determine whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set total[]. If not, the identifier of the electronic tag corresponding to the newly received tag data is added to the end of the set total[]; if yes, no addition operation is performed.
[0124] In one embodiment, at the beginning of each iteration cycle, the elements in the set t_read_total[] are cleared. Upon receiving new tag data, the set t_read_total[] is traversed, and the identifier of the electronic tag corresponding to the newly received tag data is compared with the elements in the set t_read_total[] to determine if the identifier of the electronic tag corresponding to the newly received tag data exists in the set t_read_total[]. If not, the identifier of the electronic tag corresponding to the newly received tag data is added to the end of the set t_read_total[]; if it exists, no addition operation is performed.
[0125] In one embodiment, a timer is used to record the number RN of tag data received within an iteration cycle. At the beginning of each iteration cycle, RN is set to 0. During the iteration cycle, the value of RN is incremented by one for each tag data received. Thus, at the end of an iteration cycle, the number RN of tag data received by the reader within that iteration cycle T is obtained.
[0126] In one embodiment, at the end of an iteration cycle, the number N of electronic tags received during the iteration cycle T is equal to the length of the set t_read_total[], i.e., N = length(t_read_total).
[0127] Please see Figure 6 , Figure 6This is a second flowchart illustrating the timing adjustment method provided in this application. In this embodiment, the iteration termination condition includes the number of electronic tags received within the iteration period being equal to a preset number. The timing adjustment method may include:
[0128] 201. During the iteration cycle, receive multiple tag data and record the reception time of each tag data.
[0129] Before entering the iteration, create the following parameters:
[0130] The number of electronic tags received within the iteration period T: N (tags);
[0131] The expected number of electronic tags received within the iteration period T: EN;
[0132] Before entering the iteration, the parameters are initialized, including:
[0133] Initialize the set of identifiers of the electronic tags received in all iteration cycles, total[].
[0134] Initialize the set of electronic tags received during the iteration period T, t_read_total[].
[0135] Initialize the set of electronic tags t_sequence[Read_max] that the reader can receive within the iteration period T. Each element in the set t_sequence[Read_max] stores the tag data in one time slot.
[0136] At the start of iteration period T, the elements in the set t_read_total[] are cleared. During the iteration period, multiple tag data are received and the reception time of each tag data is recorded.
[0137] For each new tag received, the set total[] is traversed. The identifier of the electronic tag corresponding to the newly received tag is compared with the elements in the set total[] to determine whether the identifier of the electronic tag corresponding to the newly received tag exists in the set total[]. If not, the identifier of the electronic tag corresponding to the newly received tag is added to the end of the set total[]; if yes, no addition operation is performed.
[0138] For each new tag received, the set t_read_total[] is traversed. The identifier of the electronic tag corresponding to the newly received tag data is compared with the elements in the set t_read_total[] to determine whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set t_read_total[]. If not, the identifier of the electronic tag corresponding to the newly received tag data is added to the end of the set t_read_total[]; if it exists, no addition operation is performed.
[0139] 202. Count the number of electronic tags corresponding to the tag data received within the iteration cycle.
[0140] At the end of the iteration, the number N corresponding to the tag data received within the iteration period T is equal to the length of the set t_read_total[], that is, N = length(t_read_total).
[0141] 203. Determine whether the number of electronic tags is equal to the preset number. If yes, proceed to step 207; otherwise, proceed to step 204.
[0142] The preset quantity can be the number of electronic tags (e.g., EN) expected to be received within the iteration period T. EN can be determined as follows: EN = length(total). That is, the total number of electronic tags received by the reader within all iteration periods is taken as the number of electronic tags (e.g., EN) expected to be received within the iteration period T.
[0143] If the number of electronic tags equals the preset number, proceed to step 207 and end the iteration; if the number of electronic tags does not equal the preset number, proceed to the next step, adjust the launch time of the target device, and re-count the data in the next iteration cycle.
[0144] 204. Based on the receiving time of each tag data, determine the target tag data to be adjusted from multiple tag data.
[0145] 205. Determine the target electronic tag corresponding to the target tag data and generate the timing adjustment instruction for the target electronic tag.
[0146] 206. Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and return to step 201.
[0147] 207. End iteration.
[0148] Please see Figure 7 , Figure 7 This is a schematic diagram of a third timing adjustment method provided in the embodiments of this application. The timing adjustment method may include:
[0149] 301. During the iteration cycle, receive multiple tag data and record the reception time of each tag data.
[0150] Before entering the iteration, create the following parameters:
[0151] The length of the statistical unit is cell (cell > 1);
[0152] The threshold C for density determination (C≤length(cell));
[0153] Before entering the iteration, a dense time slot set concentrated_li[] is created, and the concentrated time slot set concentrated_li[] is initialized at the beginning of each iteration.
[0154] Within the iteration cycle, dense time slots can be determined using the method described in the previous embodiment based on the length of the statistical unit (cell) and the density threshold C. The specific process will not be repeated here.
[0155] During the iteration cycle, each time a dense time slot is determined, the dense time slot can be added to the dense time slot set concentrated_li[].
[0156] 302. The number of dense time slots in the statistical iteration cycle.
[0157] The number of dense time slots in the statistical iteration cycle, i.e. the length of the dense time slot set, length(concentrated_li).
[0158] 303. Determine whether the number of dense time slots in the iteration cycle is greater than 0. If yes, proceed to step 304; otherwise, proceed to step 307.
[0159] If the number of dense time slots in the iteration cycle is equal to 0, proceed to step 307 and end the iteration; if the number of dense time slots in the iteration cycle is greater than 0, proceed to the next step, adjust the launch time of the target device and re-count in the next iteration cycle.
[0160] 304. Based on the receiving time of each tag data, determine the target tag data to be adjusted from multiple tag data.
[0161] 305. Determine the target electronic tag corresponding to the target tag data and generate the timing adjustment instruction for the target electronic tag.
[0162] 306. Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and return to step 301.
[0163] 307. End iteration.
[0164] Please see Figure 8 , Figure 8 This is a schematic flowchart of the fourth timing adjustment method provided in the embodiments of this application. The timing adjustment method may include:
[0165] 401. During the iteration cycle, receive multiple tag data and record the reception time of each tag data.
[0166] Before entering the iteration, create the following parameters:
[0167] The length of the statistical unit (cell > 1) and the second preset threshold.
[0168] Before entering the iteration, create a set of free time slots free_li[], and initialize a set of dense time slots free_li[] at the beginning of each iteration.
[0169] Within the iteration cycle, the idle time slot can be determined using the method described in the previous embodiment based on the length of the statistical unit (cell) and the second preset threshold. The specific process will not be repeated here.
[0170] During the iteration cycle, each time an idle time slot is identified, it can be added to the idle time slot set free_li[].
[0171] 402. Count the number of idle time slots in the iteration cycle.
[0172] The number of idle time slots in the statistical iteration cycle is counted, which is the length of the set of idle time slots, length(free_li).
[0173] 403. Determine if the number of idle time slots in the iteration cycle is greater than 0. If yes, proceed to step 404; otherwise, proceed to step 407.
[0174] If the number of dense time slots in the iteration cycle is equal to 0, proceed to step 407 and end the iteration; if the number of dense time slots in the iteration cycle is greater than 0, proceed to the next step, adjust the launch time of the target device and re-count in the next iteration cycle.
[0175] 404. Based on the reception time of each tag data, determine the target tag data to be adjusted from multiple tag data.
[0176] 405. Determine the target electronic tag corresponding to the target tag data and generate the timing adjustment instruction for the target electronic tag.
[0177] 406. Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and return to step 401.
[0178] 407. End iteration.
[0179] Please see Figure 9 , Figure 9 This is a fifth flowchart illustrating the timing adjustment method provided in this application embodiment. The timing adjustment method may include:
[0180] 501. During the iteration cycle, receive multiple tag data and record the reception time of each tag data.
[0181] Before entering the iteration, create the following parameters:
[0182] The number of tag data received within the iteration period T: RN (tags);
[0183] The theoretical maximum value of electronic tags that can be received within the iteration period T: Rrad_max = T / dt;
[0184] VacantRate = (Read_max - RN) * 100% / Read_max;
[0185] Before entering the iteration, the parameters are initialized, including:
[0186] Initialize the set of electronic tags t_sequence[Read_max] that the reader can receive within the iteration period T. Each element in the set t_sequence[Read_max] stores the tag data in one time slot.
[0187] During the iteration cycle, multiple tag data are received and the reception time of each tag data is recorded.
[0188] 502. Count the number of tag data received within the iteration cycle.
[0189] A timer is used to record the number of tag data RN received within an iteration cycle. At the beginning of each iteration cycle, RN is set to 0. During the iteration cycle, the value of RN is incremented by one for each tag data received. Thus, at the end of an iteration cycle, the number of tag data RN received by the reader within that iteration cycle T is obtained.
[0190] 503. Determine the theoretical maximum value of the tag data that can be received within the iteration cycle.
[0191] Get the duration T of the reader's preset iteration cycle;
[0192] Obtain the minimum identification interval dt of the electronic tag;
[0193] The theoretical maximum value of tag data that can be received within the iteration period T is calculated as Rrad_max = T / dt, based on the preset iteration period T of the reader and the minimum identification interval dt of the electronic tag.
[0194] 504. Determine the vacancy rate of the iteration cycle based on the number of received tag data and the theoretical maximum value.
[0195] The vacancy rate of the iteration cycle is determined based on the number of received tag data and the theoretical maximum value: VacantRate = (Read_max - RN) * 100% / Read_max.
[0196] 505. Determine whether the vacancy rate of the iteration cycle is greater than the vacancy rate threshold. If yes, proceed to step 506; otherwise, proceed to step 509.
[0197] If the vacancy rate of the iteration cycle is less than or equal to the vacancy rate threshold, proceed to step 509 and end the iteration; if the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, proceed to the next step, adjust the launch time of the target device and re-perform statistics in the next iteration cycle.
[0198] 506. Based on the receiving time of each tag data, determine the target tag data to be adjusted from multiple tag data.
[0199] 507. Determine the target electronic tag corresponding to the target tag data and generate the timing adjustment instruction for the target electronic tag.
[0200] 508. Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and return to step 501.
[0201] 509. End iteration.
[0202] As can be seen from the above, the timing adjustment method provided in this application first receives multiple tag data and records the reception time of each tag data within the iteration cycle; when the iteration termination condition is not met, the target tag data to be adjusted is determined from the multiple tag data based on the reception time of each tag data; then, the target electronic tag corresponding to the target tag data is determined, and a timing adjustment instruction for the target electronic tag is generated; then, the transmission time of the target electronic tag transmitting the next tag data is adjusted according to the timing adjustment instruction, and the above steps are repeated until the iteration termination condition is met. This application embodiment can continue iterating before the iteration termination condition is met. Within the iteration cycle, based on the distribution of the reception times of each tag data, it determines which tag data has a densely distributed reception time and needs adjustment, thereby generating a timing adjustment instruction to adjust the timing of the corresponding electronic tag's next transmission of tag data, so that the received tag data are staggered in time, avoiding data interference and collision, and improving data transmission efficiency.
[0203] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed on a computer, it causes the computer to execute the process in the timing adjustment method provided in this embodiment.
[0204] This application also provides a reader / writer, including a memory and a processor. The processor executes the timing adjustment method provided in this embodiment by calling a computer program stored in the memory.
[0205] Please see Figure 10 , Figure 10 This is a schematic diagram of the reader / writer provided in an embodiment of this application.
[0206] The reader / writer 600 may include components such as a memory 601 and a processor 602. Those skilled in the art will understand that... Figure 7 The reader structure shown does not constitute a limitation on the reader and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0207] Memory 601 can be used to store applications and data. The applications stored in memory 601 contain executable code. Applications can be composed of various functional modules. Processor 602 executes various functional applications and data processing by running the applications stored in memory 601.
[0208] The processor 602 is the control center of the reader / writer. It connects all parts of the reader / writer through various interfaces and lines. By running or executing the application program stored in the memory 601 and calling the data stored in the memory 601, it performs various functions of the reader / writer and processes data, thereby monitoring the reader / writer as a whole.
[0209] In this embodiment, the processor 602 in the reader / writer loads the executable code corresponding to the processes of one or more applications into the memory 601 according to the following instructions, and the processor 602 runs the applications stored in the memory 601, thereby realizing the process:
[0210] During the iteration cycle, multiple tag data are received and the reception time of each tag data is recorded.
[0211] If the iteration termination condition is not met, the target tag data to be adjusted is determined from the multiple tag data based on the reception time of each tag data.
[0212] Determine the target electronic tag corresponding to the target tag data, and generate a timing adjustment instruction for the target electronic tag;
[0213] Adjust the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeat the above steps until the iteration termination condition is met.
[0214] In one embodiment, the iteration termination condition includes the number of electronic tags received within the iteration period being equal to a preset number. After receiving multiple tag data and recording the reception time of each tag data, the processor 602 further executes:
[0215] The number of electronic tags corresponding to the tag data received within the iteration cycle is counted.
[0216] When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes:
[0217] When the number of electronic tags is not equal to the preset number, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
[0218] In one embodiment, the iteration period includes multiple evenly divided time slots, the time slots including dense time slots and idle time slots. After receiving multiple tag data and recording the reception time of each tag data within the iteration period, the processor 602 further executes:
[0219] The distribution of tag data in each time slot is determined based on the reception time of each tag data.
[0220] Based on the distribution of tag data in each time slot, dense time slots and idle time slots are identified from all time slots.
[0221] In one embodiment, upon determining the dense and idle time slots from all time slots, processor 602 performs:
[0222] Using a preset number of consecutive time slots as statistical units, all statistical units corresponding to the iteration cycle are determined;
[0223] Based on the distribution of tag data in each time slot, determine the number of tag data in each statistical unit;
[0224] When the number of tag data in the statistical unit is greater than or equal to the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot matching the time slot index is determined as a dense time slot.
[0225] When the number of tag data in the statistical unit is less than the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot that matches the time slot index is determined as an idle time slot.
[0226] In one embodiment, the iteration termination condition includes the number of dense time slots in the iteration cycle being 0. After determining the dense time slots and idle time slots from all time slots based on the distribution of tag data in each time slot, the processor 602 further executes:
[0227] Count the number of dense time slots in the aforementioned iteration cycle;
[0228] When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes:
[0229] When the number of dense time slots in the iteration cycle is greater than 0, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
[0230] In one embodiment, the iteration termination condition includes the number of idle time slots in the iteration cycle being 0. After determining the dense time slots and idle time slots from all time slots based on the distribution of tag data in each time slot, the processor 602 further executes:
[0231] Count the number of idle time slots in the iteration cycle;
[0232] When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes:
[0233] When the number of idle time slots in the iteration cycle is greater than 0, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
[0234] In one embodiment, the iteration termination condition includes the vacancy rate of the iteration period being less than or equal to a vacancy rate threshold. After receiving multiple tag data and recording the reception time of each tag data, the processor 602 further executes:
[0235] Count the number of tag data received within the iteration cycle;
[0236] Determine the theoretical maximum value of the tag data that can be received within the said iteration period;
[0237] The idle rate of the iteration cycle is determined based on the number of received tag data and the theoretical maximum value;
[0238] When the iteration termination condition is not met, and the target tag data to be adjusted is determined from the plurality of tag data based on the reception time of each tag data, the processor 602 executes:
[0239] When the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
[0240] In one embodiment, the electronic tag includes mutually distinguishable identifiers, and when the target electronic tag corresponding to the target tag data is determined, the processor 602 executes:
[0241] Determine the identifier corresponding to the target label data;
[0242] The electronic tag corresponding to the identifier is identified as the target electronic tag.
[0243] In one embodiment, the timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and the target time difference value to be adjusted when the target electronic tag transmits the next tag data. When generating the timing adjustment instruction for the target electronic tag, the processor 602 executes:
[0244] Determine the target time difference of the target electronic tag;
[0245] The timing adjustment instruction is generated based on the identifier and the target time difference.
[0246] In one embodiment, when determining the target time difference of the target electronic tag, the processor 602 executes:
[0247] Determine the target dense time slot and target idle time slot corresponding to the target electronic tag;
[0248] Obtain the time slot index of the target dense time slot and the time slot index of the target idle time slot;
[0249] Obtain the duration of the time slot;
[0250] The target time difference of the target electronic tag is determined based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot.
[0251] In one embodiment, when determining the target dense time slot and the target idle time slot corresponding to the target electronic tag, the processor 602 executes:
[0252] Determine the target dense time slot corresponding to the target electronic tag;
[0253] Starting from the last dense time slot and the last idle time slot in the iteration cycle, pair up the dense time slots and idle time slots in the iteration cycle from back to front;
[0254] Based on the pairing results, the target idle time slot corresponding to the target dense time slot is determined.
[0255] In one embodiment, when determining the target time difference value of the target electronic tag based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot, the processor 602 executes:
[0256] The target time difference of the target electronic tag is determined using the following formula:
[0257] Δt=(free_li[index]-concentrated_li[index])*dt
[0258] Wherein, free_li[index] is the time slot index of the target free time slot, concentrated_li[index] is the time slot index of the target concentrated time slot, and the duration of the time slot is _____.
[0259] In one embodiment, when adjusting the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, the processor 602 executes:
[0260] The target electronic tag is adjusted to transmit the next tag data based on the target time difference.
[0261] As can be seen from the above, the reader / writer provided in this application first receives multiple tag data and records the reception time of each tag data within the iteration cycle. When the iteration termination condition is not met, the target tag data to be adjusted is determined from the multiple tag data based on the reception time of each tag data. Then, the target electronic tag corresponding to the target tag data is determined, and a timing adjustment instruction for the target electronic tag is generated. Then, the transmission time of the target electronic tag transmitting the next tag data is adjusted according to the timing adjustment instruction, and the above steps are repeated until the iteration termination condition is met. This application embodiment can continue iterating before the iteration termination condition is met. Within the iteration cycle, based on the distribution of the reception times of each tag data, it determines which tag data has a dense distribution of reception times and needs to be adjusted, thereby generating a timing adjustment instruction to adjust the timing of the next transmission of tag data by the corresponding electronic tag, so that the received tag data is staggered in time, avoiding mutual interference and collision of data, and improving data transmission efficiency.
[0262] This application also provides an electronic tag for transmitting tag data to the reader / writer provided in this application. If the electronic tag is a target electronic tag, then if the iteration termination condition is not met, the transmission time of the next tag data is adjusted according to the timing adjustment instruction.
[0263] This application also provides a timing adjustment system. Please refer to [link / reference]. Figure 11 , Figure 11 This is a schematic diagram of the timing adjustment system provided in an embodiment of this application. The timing adjustment system includes a reader / writer 600 and an electronic tag 200.
[0264] The reader 600 is used to receive multiple tag data and record the reception time of each tag data during the iteration cycle. When the iteration termination condition is not met, the reader determines the target tag data to be adjusted from the multiple tag data according to the reception time of each tag data, determines the target electronic tag corresponding to the target tag data, generates the timing adjustment instruction of the target electronic tag, adjusts the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeats the above steps until the iteration termination condition is met.
[0265] Electronic tag 200 is used to transmit tag data to the reader. If the electronic tag is a target electronic tag, the transmission time of the next tag data is adjusted according to the timing adjustment instruction if the iteration termination condition is not met.
[0266] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the timing adjustment method above, which will not be repeated here.
[0267] It should be noted that, regarding the timing adjustment method of the embodiments of this application, those skilled in the art will understand that all or part of the process of implementing the timing adjustment method of the embodiments of this application can be accomplished by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor. During execution, it can include the process of the embodiments of the timing adjustment method. The computer-readable storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), etc.
[0268] For the timing adjustment device in this application embodiment, its functional modules can be integrated into a single processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0269] The foregoing has provided a detailed description of a timing adjustment method, storage medium, reader, electronic tag, and system provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A timing adjustment method, characterized in that, include: During the iteration cycle, multiple tag data are received and the reception time of each tag data is recorded. The iteration cycle includes multiple evenly divided time slots, which include dense time slots and idle time slots. If the iteration termination condition is not met, the target tag data to be adjusted is determined from the multiple tag data based on the reception time of each tag data. The target electronic tag corresponding to the target tag data is determined, and a timing adjustment instruction for the target electronic tag is generated. The timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and the target time difference to be adjusted when the target electronic tag transmits the next tag data. The timing adjustment instruction is used to adjust the transmission time of the target electronic tag to transmit the next tag data, and the above steps are repeated until the iteration termination condition is met. The electronic tag includes mutually distinguishable identifiers, and determining the target electronic tag corresponding to the target tag data includes: determining the identifier corresponding to the target tag data; and determining the electronic tag corresponding to the identifier as the target electronic tag. The timing adjustment instruction for generating the target electronic tag includes: Determine the target dense time slot corresponding to the target electronic tag; Starting from the last dense time slot and the last idle time slot in the iteration cycle, pair up the dense time slots and idle time slots in the iteration cycle from back to front; Based on the pairing results, determine the target idle time slot corresponding to the target dense time slot; Obtain the time slot index of the target dense time slot and the time slot index of the target idle time slot; Obtain the duration of the time slot; The target time difference value of the target electronic tag is determined based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot; The timing adjustment instruction is generated based on the identifier and the target time difference.
2. The timing adjustment method according to claim 1, characterized in that, The iteration termination condition includes the number of electronic tags received within the iteration period being equal to a preset number. After receiving multiple tag data and recording the reception time of each tag data, it also includes: The number of electronic tags corresponding to the tag data received within the iteration cycle is counted. When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes: When the number of electronic tags is not equal to the preset number, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
3. The timing adjustment method according to claim 1, characterized in that, After receiving multiple tag data and recording the reception time of each tag data within the iteration cycle, the process further includes: The distribution of tag data in each time slot is determined based on the reception time of each tag data. Based on the distribution of tag data in each time slot, dense time slots and idle time slots are identified from all time slots.
4. The timing adjustment method according to claim 3, characterized in that, The process of identifying dense and idle time slots from all time slots includes: Using a preset number of consecutive time slots as statistical units, all statistical units corresponding to the iteration cycle are determined; Based on the distribution of tag data in each time slot, determine the number of tag data in each statistical unit; When the number of tag data in the statistical unit is greater than or equal to the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot matching the time slot index is determined as a dense time slot; When the number of tag data in the statistical unit is less than the first preset threshold, the time slot index corresponding to the statistical unit is determined, and the time slot that matches the time slot index is determined as an idle time slot.
5. The timing adjustment method according to claim 3, characterized in that, The iteration termination condition includes the number of dense time slots in the iteration cycle being 0. After determining the dense time slots and idle time slots from all time slots based on the distribution of tag data in each time slot, the method further includes: Count the number of dense time slots in the aforementioned iteration cycle; When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes: When the number of dense time slots in the iteration cycle is greater than 0, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
6. The timing adjustment method according to claim 3, characterized in that, The iteration termination condition includes the number of idle time slots in the iteration cycle being 0. After determining the dense time slots and idle time slots from all time slots based on the distribution of tag data in each time slot, the method further includes: Count the number of idle time slots in the iteration cycle; When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes: When the number of idle time slots in the iteration cycle is greater than 0, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
7. The timing adjustment method according to claim 3, characterized in that, The iteration termination condition includes the vacancy rate of the iteration period being less than or equal to the vacancy rate threshold. After receiving multiple tag data and recording the reception time of each tag data, the method further includes: Count the number of tag data received within the iteration cycle; Determine the theoretical maximum value of the tag data that can be received within the said iteration period; The idle rate of the iteration cycle is determined based on the number of received tag data and the theoretical maximum value; When the iteration termination condition is not met, determining the target label data to be adjusted from the plurality of label data based on the reception time of each label data includes: When the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, the target tag data to be adjusted is determined from the multiple tag data according to the receiving time of each tag data.
8. The timing adjustment method according to claim 1, characterized in that, The step of determining the target time difference value of the target electronic tag based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot includes: The target time difference of the target electronic tag is determined using the following formula: in, The time slot index of the target idle time slot. The time slot index for the target dense time slot, The duration of the time slot is denoted as .
9. The timing adjustment method according to claim 1, characterized in that, The step of adjusting the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction includes: The target electronic tag is adjusted to transmit the next tag data based on the target time difference.
10. A storage medium, characterized in that, The storage medium stores a computer program that, when run on a computer, causes the computer to perform the steps of the timing adjustment method as described in any one of claims 1 to 9.
11. A reader / writer, characterized in that, include: A processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the timing adjustment method according to any one of claims 1 to 9 by calling the computer program stored in the memory.
12. An electronic tag, characterized in that, The electronic tag is used for: Transmit tag data to a reader / writer, wherein the reader / writer is the reader / writer as described in claim 11; If the electronic tag is a target electronic tag, then if the iteration termination condition is not met, the launch time of the next tag data is adjusted according to the timing adjustment instruction.
13. A timing adjustment system, characterized in that, include: The reader / writer is used to receive multiple tag data and record the reception time of each tag data within an iteration cycle. When the iteration termination condition is not met, it determines the target tag data to be adjusted from the multiple tag data based on the reception time of each tag data, determines the target electronic tag corresponding to the target tag data, and generates a timing adjustment instruction for the target electronic tag. It adjusts the transmission time of the target electronic tag to transmit the next tag data according to the timing adjustment instruction, and repeats the above steps until the iteration termination condition is met. The iteration cycle includes multiple evenly divided time slots, including dense time slots and idle time slots. The timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and the target time difference value to be adjusted when the target electronic tag transmits the next tag data. The electronic tag includes mutually distinguishable identifiers, and determining the target electronic tag corresponding to the target tag data includes: determining the identifier corresponding to the target tag data; and determining the electronic tag corresponding to the identifier as the target electronic tag. The generation of the timing adjustment instruction for the target electronic tag includes: determining the target dense time slot corresponding to the target electronic tag; starting from the last dense time slot and the last idle time slot in the iteration cycle, pairing the dense time slots and idle time slots in the iteration cycle from back to front; determining the target idle time slot corresponding to the target dense time slot based on the pairing result; obtaining the time slot index of the target dense time slot and the time slot index of the target idle time slot; obtaining the duration of the time slot; determining the target time difference value of the target electronic tag based on the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the duration of the time slot; and generating the timing adjustment instruction based on the identifier and the target time difference value. Electronic tags are used to transmit tag data to the reader. If the electronic tag is a target electronic tag, the transmission time of the next tag data is adjusted according to the timing adjustment instruction if the iteration termination condition is not met.
Citation Information
Patent Citations
Interactive electronic tag technology-based anti-collision method
CN102122363A
