Timing adjustment method, storage medium, reader, electronic tag and system
By adjusting the transmission timing of electronic tags in the radio frequency identification system, the communication conflict caused by the simultaneous transmission of multiple tags was resolved, thus improving data transmission efficiency.
Patent Information
- Application Number
- CN202110633414.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-07
- Publication Date
- 2025-11-18
- 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 can easily occur, resulting in low data transmission efficiency.
By receiving data from multiple tags within a statistical period, a list of electronic tags is determined and compared with a preset list. Timing adjustment instructions are then generated to control the target electronic tags to adjust their launch times and avoid collisions.
This improves data transmission efficiency, enabling more tag data to be successfully received by the reader and reducing communication conflicts.
Smart Images

Figure CN115510883B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a timing adjustment method, a storage medium, a reader-writer, an electronic tag and a system. BACKGROUND
[0002] Radio Frequency Identification (RFID) technology is a technology of realizing non-contact automatic identification through space coupling of radio frequency signals. The core components of the radio frequency identification system include a reader-writer and an electronic tag. The reader-writer receives information from the electronic tag and can realize upper management of the entire application system by connecting with a computer. The electronic tag remotely and wirelessly transmits information stored by itself to the reader-writer to identify the identity of the goods, people or instruments represented by the electronic tag.
[0003] At present, when the radio frequency identification system is working, multiple electronic tags may be simultaneously within the action range of the reader-writer. When multiple electronic tags simultaneously send data to the reader-writer, the phenomenon of communication conflict and data mutual interference collision occurs, resulting in low data transmission efficiency. SUMMARY
[0004] The embodiments of the present application provide a timing adjustment method, a storage medium, a reader-writer, an electronic tag and a system, which can improve the data transmission efficiency.
[0005] In a first aspect, the embodiments of the present application provide a timing adjustment method, comprising:
[0006] receiving multiple tag data in a statistical period and determining the electronic tags corresponding to the tag data to obtain an electronic tag list of the statistical period;
[0007] comparing the electronic tag list of the statistical period with a preset electronic tag list to determine a target electronic tag to be adjusted;
[0008] generating a timing adjustment instruction of the target electronic tag to control the target electronic tag to adjust a transmission time of transmitting next tag data according to the timing adjustment instruction.
[0009] In a second aspect, the embodiments of the present application further provide a storage medium having a computer program stored thereon. When the computer program runs on a computer, the computer executes the flow of the timing adjustment method provided by the embodiments of the present application.
[0010] In a third aspect, the embodiments of the present application further provide a reader-writer comprising a memory and a processor. The memory has a computer program stored therein. The processor is configured to execute the flow of the timing adjustment method provided by the embodiments of the present application by calling the computer program stored in the memory.
[0011] In a fourth aspect, the embodiments of the present application further provide an electronic tag for transmitting tag data to a reader, the reader being the reader provided by the embodiments of the present application, and when the electronic tag is a target electronic tag, receiving a timing adjustment instruction transmitted by the reader to adjust a transmission time of next tag data according to the timing adjustment instruction.
[0012] In a fifth aspect, the embodiments of the present application further provide a timing adjustment system, comprising a reader and an electronic tag, wherein the reader is configured to receive a plurality of tag data in a statistical period and determine the electronic tag corresponding to each tag data to obtain an electronic tag list of the statistical period, compare the electronic tag list of the statistical period with a preset electronic tag list to determine a target electronic tag to be adjusted, generate a timing adjustment instruction of the target electronic tag, and control the target electronic tag to adjust a transmission time of next tag data according to the timing adjustment instruction; and the electronic tag is configured to transmit tag data to the reader, and when the electronic tag is the target electronic tag, the electronic tag is further configured to receive the timing adjustment instruction transmitted by the reader to adjust the transmission time of next tag data according to the timing adjustment instruction.
[0013] In the embodiments of the present application, firstly, a plurality of tag data is received in a statistical period and the electronic tag corresponding to each tag data is determined to obtain an electronic tag list of the statistical period; then, the electronic tag list of the statistical period is compared with a preset electronic tag list to determine a target electronic tag to be adjusted; and further, a timing adjustment instruction of the target electronic tag is generated to control the target electronic tag to adjust a transmission time of next tag data according to the timing adjustment instruction. According to the situation of the tag data received in the statistical period, the embodiments of the present application can determine which electronic tags transmit tag data that is not received and the timing needs to be adjusted, generate a timing adjustment instruction of the electronic tags, control the corresponding electronic tags to adjust the timing of next tag data transmission, so that the next tag data transmitted by the electronic tags can be received, and the data transmission efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0014] The technical solutions of the present application and the beneficial effects thereof will become apparent through the following detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
[0015] Figure 1 The scenario diagram of the timing adjustment method provided by the embodiments of the present application.
[0016] Figure 2 The first flow diagram of the timing adjustment method provided by the embodiments of the present application.
[0017] Figure 3 The distribution diagram of the tag data received in the statistical period T provided by the embodiments of the present application.
[0018] Figure 4 The second flowchart of the timing adjustment method provided by the embodiment of the present application is shown.
[0019] Figure 5 The first structure diagram of the reader-writer provided by the embodiment of the present application is shown.
[0020] Figure 6 The second structure diagram of the reader-writer provided by the embodiment of the present application is shown.
[0021] Figure 7 The structure diagram of the electronic tag provided by the embodiment of the present application is shown.
[0022] Figure 8 The structure diagram of the timing adjustment system provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all the embodiments obtained by those skilled in the art without creative effort belong to the protection scope of the present application.
[0024] The terms "first", "second", "third", and the like (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the described objects can be interchanged under appropriate circumstances. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, terminal, system including a series of steps, or including a series of modules or units, does not necessarily limit to the clearly listed steps or modules and units, but can also include steps or modules not clearly listed, and can also include other steps or modules inherent to the process, method, device, terminal or system.
[0025] It should be noted that the following text and drawing description is only used to explain the timing adjustment method, storage medium, reader-writer, electronic tag and system provided by the embodiments of the present application, and does not constitute a limitation on the steps of the embodiments of the present application.
[0026] Please refer to Figure 1 , Figure 1 The scene diagram of the timing adjustment method provided by the embodiment of the present application is shown. The scene can include a livestock group 100, an electronic tag 200, a reader-writer 300 and a user 400.
[0027] In the livestock breeding industry, in order to timely understand the health status of the livestock group, the user often needs to personally observe the health status of the livestock group. Livestock personnel need to enter the fence to conduct health examination on the livestock, such as measuring the temperature of the livestock. Not only is the environment dirty and messy, but also for a large-scale breeding farm with a large number of livestock, the efficiency of checking the health status of the livestock one by one is very low.
[0028] In the present application, each livestock in the livestock group 100 is provided with an electronic tag 200, which can collect relevant data of the livestock. For example, the electronic tag 200 can be worn on the ear of the livestock to collect temperature data and / or motion data of the livestock.
[0029] The electronic tag 200 and the reader-writer 300 are two important components of a radio frequency identification system. The electronic tag 200 and the reader-writer 300 are pre-established with a communication connection. The reader-writer 300 can receive the tag data collected by the electronic tag 200 and feed back the tag data. The tag data can be further processed subsequently, for example, the health status of the livestock can be determined according to the tag data. The electronic tag 200 can include an RFID electronic tag, and the reader-writer 300 can include an RFID reader-writer.
[0030] The reader-writer 300 can also establish a communication connection with other Internet devices, such as the mobile phone, computer and other devices of the breeding personnel or other relevant personnel, so that the tag data received from the electronic tag 200 can be sent to the mobile phone, computer and other devices of the breeding personnel or other relevant personnel, and the data of each livestock can be reported in real time. The breeder can determine the health status of the livestock according to the data of the livestock, and then decide whether to take measures such as examination and treatment on the livestock.
[0031] The electronic tag 200 can transmit tag data to the reader-writer 300. The reader-writer 300 can use the timing adjustment method provided in the present application to receive a plurality of tag data in a statistical period and determine the electronic tags corresponding to the tag data, obtain an electronic tag list of the statistical period, compare the electronic tag list of the statistical period with a preset electronic tag list, determine a target electronic tag to be adjusted, generate a timing adjustment instruction of the target electronic tag, and control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instruction.
[0032] When the electronic tag 200 is the target electronic tag, the electronic tag 200 receives the timing adjustment instruction transmitted by the reader-writer 300 to adjust the transmission time of the next tag data according to the timing adjustment instruction.
[0033] The present application provides a timing adjustment method, which can be applied to the reader-writer provided in the present application. Please refer to Figure 2 ,Figure 2 The first flowchart of the timing adjustment method provided by the embodiments of the present application can include the following steps:
[0034] S101, receiving a plurality of tag data in a statistical period and determining the electronic tags corresponding to the tag data, to obtain an electronic tag list of the statistical period.
[0035] The electronic tag periodically transmits tag data to the reader / writer. The reader / writer receives a plurality of tag data transmitted by the electronic tags in a statistical period T, wherein the plurality of tag data can come from a plurality of electronic tags. The length of the statistical period T can be set in advance, for example, by a user through an instruction to write to the reader / writer.
[0036] In an embodiment, the collector can include a transmitting antenna and a receiving antenna. When the statistical period starts, the collector turns on the receiving antenna and uses the receiving antenna to receive the tag data transmitted by the electronic tags.
[0037] When a plurality of tag data arrives at the reader / writer end at the same time, due to the mutual interference between the tag data, communication collision occurs, so that the reader / writer cannot correctly identify these tag data. This phenomenon is called "collision". The occurrence of collision will cause the reader / writer to fail to read part of the tag data, resulting in low data transmission efficiency between the electronic tag and the reader / writer.
[0038] In an embodiment, when the electronic tag periodically transmits tag data, the transmission period is not fixed, but has a slight fluctuation. The transmission period of the tag data transmitted by the electronic tag can be represented by t+r, wherein t is the 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. When the electronic tag transmits tag data at a certain time, if the random factor r of the transmission period is greater than 0, it means that the transmission period of the electronic tag is greater than the fixed period, if r is less than 0, it means that the transmission period of the electronic tag is less than the fixed period, and if r=0, it means that the transmission period of the electronic tag is equal to the fixed period. Thus, the transmission period of the electronic tag fluctuates randomly based on the fixed period.
[0039] Due to the existence of the random factor, even if two electronic tags collide at a certain time, but at the next time of transmitting tag signal, the transmission periods of the two electronic tags may fluctuate randomly due to the existence of the random factor, so that the time of transmitting tag data by the two electronic tags is staggered, and the time of arriving at the reader / writer is also staggered. Thus, for two electronic tags whose tag data may collide, although their tag data may not be received by the reader / writer due to collision at some time, they will not always be unable to be received by the reader / writer due to collision. Due to the existence of the random factor, in some cases, the tag data transmitted by the two electronic tags can be received by the reader / writer.
[0040] In one embodiment, the electronic tags corresponding to the received tag data can be identified, thereby obtaining a list of electronic tags for statistical period T after the statistical period T ends. The list of electronic tags for the statistical period represents the source of all tag data received within statistical period T.
[0041] One method is to identify the electronic tag corresponding to the tag data by verifying the identifier. Each electronic tag contains a unique identifier, namely the tag ID. When each electronic tag sends tag data to the reader, it carries its corresponding electronic tag identifier. Based on the identifier carried in each tag data, the electronic tag corresponding to that tag data can be identified.
[0042] The list of electronic tags for a statistical period can exist in the form of identifiers. That is, the list of electronic tags for a statistical period T can include the identifiers of all electronic tags corresponding to the tag data received within the statistical period T.
[0043] S102. Compare the list of electronic tags for the statistical period with the preset list of electronic tags to determine the target electronic tags to be adjusted.
[0044] A preset list of electronic tags is obtained by pre-setting all the electronic tags that the reader expects to read. This preset list can exist in the form of identifiers; that is, it can include the identifiers of all the electronic tags that the reader expects to read. For example, the electronic tags that the reader expects to read could be the electronic tags carried by each animal in a herd.
[0045] After obtaining the list of electronic tags for the statistical period T, the list of electronic tags for the statistical period T is compared with the preset list of electronic tags. Electronic tags that are included in the preset list of electronic tags but not included in the list of electronic tags for the statistical period are identified as target electronic tags to be adjusted.
[0046] When an electronic tag is included in a preset electronic tag list, it means the reader expects to read that tag. If an electronic tag is not included in the list for a given statistical period, it means the reader did not actually read that tag within that period T. Therefore, the target electronic tags to be adjusted are those that may have transmitted tag data within the statistical period T, but whose transmitted tag data was not read by the reader. The tag data of these electronic tags may have been missed due to a "collision."
[0047] S103. Generate timing adjustment instructions for the target electronic tag, so as to control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instructions.
[0048] In one embodiment, the timing adjustment instruction includes an identifier for the target electronic tag and a target time interval between the transmission of tag data and the transmission of the next tag data. The identifier for each electronic tag is unique. The step of generating the timing adjustment instruction for the target electronic tag may include:
[0049] (1) Determine the target time interval for the target electronic tag.
[0050] The step of determining the target time interval of the target electronic tag may include:
[0051] (1.1) Determine the idle time slots in the statistical period based on the receiving time of each tag data.
[0052] (1.2) Determine the target time interval of the target electronic tag based on the idle time slot.
[0053] The statistical period T of the reader can include multiple equally divided time slots. For example, the minimum identification interval of the reader and the minimum control interval of the electronic tag are obtained. The larger of the minimum identification interval and the minimum control interval is determined as the division scale of the statistical period. Let the duration of the statistical period be T and the division scale be tx. Then the statistical period is divided into n equal parts, n = T / tx. Each time interval of the division is a time slot, resulting in time slots t1, t2, t3, t4, t5, ...
[0054] The statistical period T may include idle time slots. While receiving multiple tag data points within the statistical period T, the reception time of each tag data point is recorded. Based on the distribution of the reception times of each tag data point across the time slots, idle time slots within the statistical period can be determined. The criteria for idle time slots can be defined by the user; for example, time slots containing fewer than a preset threshold of tag data points can be considered idle time slots.
[0055] For example, please see Figure 3 , Figure 3 This is a schematic diagram showing the distribution of tag data received within a statistical period T, as provided in an embodiment of this application. Figure 2 Taking the statistical period T as an example, which is divided into 5 time slots (t1, t2, t3, t4, t5), the asterisk (*) in each time slot represents the tag data received in that time slot.
[0056] Based on the reception time of each tag data, the distribution of tag data in each time slot can be determined as follows: there is 1 tag data in time slot t1, 1 tag data in time slot t2, 3 tag data in time slot t3, 1 tag data in time slot t4, and 0 tag data in time slot t5.
[0057] Based on the distribution of tag data reception times across different time slots, idle time slots within the statistical period can be determined. For example, when the number of tag data entries in a certain time slot is 0, that time slot can be identified as idle. Figure 2 The time slot t5 in the data is determined to be an idle time slot.
[0058] Once the idle time slots are identified, the target time interval of the target electronic tag can be determined based on the time corresponding to the idle time slot and the time when the target electronic tag originally planned to transmit tag data next.
[0059] (2) Generate timing adjustment instructions based on the identifier and the target time interval.
[0060] Based on the identifier and the target time interval, a timing adjustment instruction for the target electronic tag can be generated. This timing adjustment instruction can be used to adjust the timing of the next transmission of tag data by the target electronic tag, so that the tag data transmitted by the electronic tag next time is staggered from the tag data of other electronic tags that might otherwise collide, and is received by the reader in an idle time slot, thereby ensuring that the tag data of the target electronic tag can also be successfully read by the reader.
[0061] In one embodiment, the electronic tag activates its antenna and is in transmit mode, transmitting tag data to the reader. After each data transmission, the antenna switches from transmit to receive mode, and the antenna's activation time (tr) is extended to receive timing adjustment commands from the reader. The extension time (tr) can be set as needed. After tr has elapsed, the electronic tag's antenna will turn off.
[0062] When the antenna is in receive mode, if the electronic tag receives a timing adjustment command transmitted by the reader, it indicates that the electronic tag is the target electronic tag. According to the timing adjustment command, the transmission time of the next tag data is adjusted so that the time interval between the target electronic tag's transmitted tag data and the transmission of the next tag data equals the target time interval. Then, an adjustment response information is sent to the reader, indicating that the target electronic tag has completed the timing adjustment command for the transmission time of the next tag data.
[0063] In one embodiment, the reader includes a receiving antenna and a transmitting antenna, which can be continuously turned on and operate simultaneously. Within a statistical period T, the reader receives multiple tag data points through the receiving antenna and identifies the electronic tag corresponding to each data point. After the statistical period T ends, a list of electronic tags for that period is obtained. Within a statistical period T+1, the reader compares the electronic tag list for that period with a preset electronic tag list to identify the target electronic tag to be adjusted and adds its identifier to the tag adjustment set. Then, a timing adjustment command for the target electronic tag is generated to control the target electronic tag to adjust the transmission time of the next tag data point according to the timing adjustment command.
[0064] Furthermore, within the statistical period T+1, the reader can receive adjustment response information from the target electronic tag via the receiving antenna. When adjustment response information is received from the target electronic tag, the identifier of the target electronic tag is added to the adjustment success set to indicate that the timing adjustment command of the target electronic tag has been successfully transmitted and successfully responded to.
[0065] Therefore, after generating the timing adjustment command for the target electronic tag, the reader first determines whether the successful adjustment set contains the identifier of the target electronic tag. If the successful adjustment set contains the identifier of the target electronic tag, it means that the timing adjustment command for the target electronic tag has been successfully transmitted and successfully responded to, and the identifier of the target electronic tag is deleted from both the tag adjustment set and the successful adjustment set; if the successful adjustment set does not contain the identifier of the target electronic tag, it means that the timing adjustment command has not yet been transmitted to the target electronic tag, or the timing adjustment command was transmitted to the target electronic tag but was not successfully responded to, and the timing adjustment command is transmitted to the target electronic tag.
[0066] It should be noted that the statistical period T+1 is the next statistical period after statistical period T, simply meaning that the above steps can be executed within two separate periods. However, statistical period T and statistical period T+1 can also be any statistical period of the reader. Since the transmitting and receiving antennas in the reader operate independently and do not interfere with each other, they can perform their respective functions simultaneously. Therefore, all the steps in statistical period T and statistical period T+1 can be executed simultaneously in any statistical period.
[0067] For example, the reader can receive data from multiple tags via a receiving antenna during a statistical period T and identify the electronic tag corresponding to each data point. Simultaneously, the reader can compare the electronic tag list obtained in the previous statistical period (i.e., statistical period T-1) with a preset electronic tag list to determine the target electronic tag to be adjusted in statistical period T-1. It then generates a timing adjustment command for the target electronic tag in statistical period T-1, sends the timing adjustment command to the corresponding target electronic tag via a transmitting antenna, and receives the corresponding adjustment response information via a receiving antenna.
[0068] After the statistical period T ends, the reader obtains the list of electronic tags for statistical period T. In statistical period T+1, it compares the list of electronic tags obtained in statistical period T with a preset list of electronic tags to determine the target electronic tags for statistical period T. It then generates timing adjustment instructions for the target electronic tags in statistical period T and sends these instructions to the corresponding target electronic tags via the transmitting antenna, while receiving the corresponding adjustment response information via the receiving antenna. Simultaneously, the reader can receive multiple tag data points within statistical period T+1 via the receiving antenna and determine the electronic tags corresponding to each data point. This allows it to obtain the list of electronic tags for statistical period T+1 after its end, thus determining which electronic tags' timing adjustment instructions need to be generated in period T+2, and so on.
[0069] In one embodiment, as a new target electronic tag is identified in each statistical period, the identifier of the new target electronic tag is added to the tag adjustment set; as each timing adjustment command of a target electronic tag is successfully responded to, the identifier of the responded target electronic tag is added to the successful adjustment set; the reader continuously polls the tag adjustment set, and when it finds that the timing adjustment command of the target electronic tag corresponding to an identifier has been successfully responded to, the identifier of the corresponding target electronic tag is simultaneously deleted from both the tag adjustment set and the successful adjustment set. Thus, the identifiers contained in the tag adjustment set and the successful adjustment set are adjusted in real time, so that the identifiers in these two sets can reflect the status of each electronic tag in real time (whether adjustment is needed, or whether adjustment has been successful).
[0070] Please see Figure 4 , Figure 4 This is a schematic diagram of a second timing adjustment method provided in the embodiments of this application. The timing adjustment method may include:
[0071] S201. Receive multiple tag data within the statistical period and determine the electronic tag corresponding to each tag data.
[0072] Electronic tags periodically transmit tag data to the reader. Within a statistical period, the reader receives multiple tag data transmissions from the electronic tags, which can originate from multiple electronic tags. The duration of the statistical period T can be preset, for example, by being written to the reader by a user via instruction.
[0073] In one embodiment, the data collector may include a transmitting antenna and a receiving antenna. At the start of the statistical period, the data collector activates the receiving antenna to receive tag data transmitted by the electronic tags.
[0074] S202. Determine whether the time of the electronic tag corresponding to each tag data is consistent with the time of the reader. If yes, proceed to step S205; otherwise, proceed to step S203.
[0075] Both the electronic tag and the reader contain a clock to record the real-time time of the electronic tag and the reader. This clock can be set on a clock tag, for example.
[0076] In some cases, the clocks of the electronic tag and the reader may be inconsistent. For example, at a certain moment, the reader's time might be 21:00:00, while the electronic tag's time might be 21:01:00. This inconsistency will cause a mismatch between the reception time of the tag data recorded by the reader and the transmission time carried by the electronic tag when transmitting the data. For instance, the electronic tag might transmit data at 21:01:00, while the reader receives the data at 21:00:00. In this situation, the transmission and reception times are obtained according to two separate timing systems and cannot be used for subsequent processing.
[0077] In one embodiment, when the reader receives tag data from an electronic tag, it first determines whether the time of the electronic tag corresponding to the tag data is consistent with the reader's time. If the time of the electronic tag corresponding to the tag data is consistent with the reader's time, the reception time of the tag data transmitted by the electronic tag is recorded normally. If the time of the electronic tag corresponding to the tag data is inconsistent with the reader's time, the reception time of the tag data transmitted by the electronic tag is not recorded. Instead, the reader's time and the electronic tag's time are aligned until the time of the electronic tag corresponding to the tag data is consistent with the reader's time, at which point the data is recorded.
[0078] Specifically, when determining whether the time of the electronic tag corresponding to the tag data is consistent with the time of the reader, the transmission time carried by the tag data (timed by the electronic tag) and the reception time of the tag data arriving at the reader (timed by the reader) can be obtained, and it can be determined whether the difference between the transmission time and the reception time of the tag data is within the preset error range.
[0079] The error range can be, for example, ±1 millisecond (1 ms). When -1ms ≤ the difference between the transmission and reception times of the tag data ≤ 1ms, it is determined that the difference between the transmission and reception times of the tag data is within the preset error range, and the time of the electronic tag corresponding to the tag data is consistent with the time of the reader; when the difference between the transmission and reception times of the tag data is < -1ms or the difference between the transmission and reception times of the tag data is > 1ms, it is determined that the difference between the transmission and reception times of the tag data is not within the preset error range, and the time of the electronic tag corresponding to the tag data is inconsistent with the time of the reader.
[0080] S203. Identify electronic tags whose time is inconsistent with that of the reader as electronic tags to be timed.
[0081] S204. Generate a time alignment instruction for the electronic tag to be calibrated, and adjust the time of the electronic tag to be calibrated according to the time alignment instruction so that the time of the electronic tag to be calibrated is consistent with the time of the data collector.
[0082] When the time of the electronic tag corresponding to the tag data is inconsistent with the time of the reader, the electronic tag corresponding to the tag data is identified as the electronic tag to be calibrated, and a time alignment instruction is generated for the electronic tag to be calibrated to adjust the time of the electronic tag to be calibrated.
[0083] When aligning the time of the electronic tag to be calibrated with the time of the reader, the time of the reader can be used as the standard to calibrate the time of the electronic tag to be calibrated to match the time of the reader.
[0084] In one embodiment, the electronic tag activates its antenna and is in transmit mode, transmitting tag data to the reader. After each data transmission, the antenna switches from transmit to receive mode, and the antenna's activation time (tr) is extended to receive time alignment commands transmitted by the reader. The extension time (tr) can be set as needed. After tr has elapsed, the electronic tag's antenna will turn off.
[0085] When the antenna is in receive mode, if the electronic tag receives a time alignment command transmitted by the reader, it indicates that the electronic tag is a time-alignment tag. According to the time alignment command, the time of the electronic tag is adjusted to match the time of the data collector. Then, a time alignment response message is sent to the reader, indicating that the target electronic tag has completed the time alignment according to the time alignment command.
[0086] In one embodiment, the reader includes a receiving antenna and a transmitting antenna, which can be continuously turned on and operate simultaneously. The reader receives tag data through the receiving antenna and determines whether the time of the electronic tag corresponding to the tag data is consistent with the time of the reader. If the time of the electronic tag corresponding to the tag data is inconsistent with the time of the reader, the electronic tag corresponding to the tag data is identified as a time-alignment tag, the identifier of the time-alignment tag is added to the time-alignment tag set, and a time alignment instruction for the time-alignment tag is generated.
[0087] Simultaneously, the reader can receive time alignment response information from the RFID tag to be aligned via the receiving antenna. When the time alignment response information is received from the RFID tag to be aligned, the identifier of the RFID tag to be aligned is added to the time alignment success set to indicate that the time alignment command of the RFID tag to be aligned has been successfully transmitted and successfully responded to.
[0088] In one embodiment, the reader can cyclically read the time synchronization tag set. For the electronic tag to be synchronized indicated by the identifier in the time synchronization tag set, it first determines whether the identifier of the electronic tag to be synchronized is contained in the time synchronization success set. If the identifier of the electronic tag to be synchronized is contained in the time synchronization success set, it means that the time alignment command of the electronic tag to be synchronized has been successfully transmitted and successfully responded to, and the identifier of the electronic tag to be synchronized is deleted from the tag time synchronization set and the time synchronization success set; if the identifier of the electronic tag to be synchronized is not contained in the time synchronization success set, it means that the time alignment command has not been transmitted to the electronic tag to be synchronized, or the time alignment command has been transmitted to the electronic tag to be synchronized but has not been successfully responded to, and the time alignment command is transmitted to the electronic tag to be synchronized.
[0089] S205. Record the time when the tag data is received.
[0090] When the time of the electronic tag corresponding to the tag data matches the time of the reader, record the time when the tag data is received.
[0091] S206. At the end of the statistical period, obtain the list of electronic tags for the statistical period.
[0092] By identifying the electronic tags corresponding to the received tag data, a list of electronic tags for the statistical period can be obtained after the statistical period ends. This list represents the source of all tag data received within the statistical period.
[0093] One method is to identify the electronic tag corresponding to the tag data by verifying the identifier. Each electronic tag contains a unique identifier, namely the tag ID. When each electronic tag sends tag data to the reader, it carries its corresponding electronic tag identifier. Based on the identifier carried in each tag data, the electronic tag corresponding to that tag data can be identified.
[0094] The list of electronic tags for a statistical period can exist in the form of identifiers. That is, the list of electronic tags for a statistical period T can include the identifiers of all electronic tags corresponding to the tag data received within the statistical period.
[0095] S207. Compare the list of electronic tags for the statistical period with the preset list of electronic tags to determine the target electronic tags to be adjusted.
[0096] A preset list of electronic tags is obtained by pre-setting all the electronic tags that the reader expects to read. This preset list can exist in the form of identifiers; that is, it can include the identifiers of all the electronic tags that the reader expects to read. For example, the electronic tags that the reader expects to read could be the electronic tags carried by each animal in a herd.
[0097] After obtaining the list of electronic tags for the statistical period, the list of electronic tags for the statistical period is compared with the preset list of electronic tags. Electronic tags that are included in the preset list of electronic tags but not included in the list of electronic tags for the statistical period are identified as target electronic tags to be adjusted.
[0098] S208. Determine the idle time slots in the statistical period based on the reception time of each recorded tag data.
[0099] The statistical period of a reader can include multiple equally divided time slots. For example, the minimum identification interval of the reader and the minimum control interval of the electronic tag can be obtained. The larger of the minimum identification interval and the minimum control interval is determined as the division scale of the statistical period. Let the duration of the statistical period be T and the division scale be x. Then the statistical period is divided into n equal parts, n = T / x. Each time interval of the division is a time slot, resulting in time slots 1, 2, 3, 4, 5, ...
[0100] The statistical period may include idle time slots within all time slots. While receiving multiple tag data points during the statistical period, the reception time of each tag data point is recorded. Based on the distribution of the reception times of each tag data point across the time slots, idle time slots within the statistical period can be determined. The criteria for idle time slots can be defined by the user; for example, time slots containing fewer than a preset threshold of tag data points can be considered idle time slots.
[0101] For example, please see Figure 2 , Figure 2 This is a schematic diagram showing the distribution of tag data received within a statistical period, as provided in the embodiments of this application. Figure 2 Taking the statistical period as an example, which is divided into 5 time slots (1, 2, 3, 4, 5), the asterisk (*) in each time slot represents the tag data received in that time slot.
[0102] Based on the reception time of each tag data, the distribution of tag data in each time slot can be determined as follows: there is 1 tag data in time slot 1, 1 tag data in time slot 2, 3 tag data in time slot 3, 1 tag data in time slot 4, and 0 tag data in time slot 5.
[0103] Based on the distribution of tag data reception times across different time slots, idle time slots within the statistical period can be determined. For example, when the number of tag data entries in a certain time slot is 0, that time slot can be identified as idle. Figure 2 Time slot 5 in the data is designated as an idle time slot.
[0104] S209. Determine the target time interval of the target electronic tag based on the idle time slot.
[0105] Once the idle time slots are identified, the target time interval of the target electronic tag can be determined based on the time corresponding to the idle time slot and the time when the target electronic tag originally planned to transmit tag data next.
[0106] S210. Generate timing adjustment instructions based on the identifier of the target electronic tag and the target time interval, so as to control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instructions.
[0107] Based on the identifier and the target time interval, a timing adjustment instruction for the target electronic tag can be generated. This timing adjustment instruction can be used to adjust the timing of the next transmission of tag data by the target electronic tag, so that the tag data transmitted by the electronic tag next time is staggered from the tag data of other electronic tags that might otherwise collide, and is received by the reader in an idle time slot, thereby ensuring that the tag data of the target electronic tag can also be successfully read by the reader.
[0108] In one embodiment, the electronic tag activates its antenna and is in transmit mode, transmitting tag data to the reader. After each data transmission, the antenna switches from transmit to receive mode, and the antenna's activation time (tr) is extended to receive timing adjustment commands from the reader. The extension time (tr) can be set as needed. After tr has elapsed, the electronic tag's antenna will turn off.
[0109] When the antenna is in receive mode, if the electronic tag receives a timing adjustment command transmitted by the reader, it indicates that the electronic tag is the target electronic tag. According to the timing adjustment command, the transmission time of the next tag data is adjusted so that the time interval between the target electronic tag's transmitted tag data and the transmission of the next tag data equals the target time interval. Then, an adjustment response information is sent to the reader, indicating that the target electronic tag has completed the timing adjustment command for the transmission time of the next tag data.
[0110] In one embodiment, the reader includes a receiving antenna and a transmitting antenna, which can be continuously turned on and operate simultaneously. Within a statistical period T, the reader receives multiple tag data points through the receiving antenna and identifies the electronic tag corresponding to each data point. After the statistical period T ends, a list of electronic tags for that period is obtained. Within a statistical period T+1, the reader compares the electronic tag list for that period with a preset electronic tag list to identify the target electronic tag to be adjusted and adds its identifier to the tag adjustment set. Then, a timing adjustment command for the target electronic tag is generated to control the target electronic tag to adjust the transmission time of the next tag data point according to the timing adjustment command.
[0111] Furthermore, within the statistical period T+1, the reader can receive adjustment response information from the target electronic tag via the receiving antenna. When adjustment response information is received from the target electronic tag, the identifier of the target electronic tag is added to the adjustment success set to indicate that the timing adjustment command of the target electronic tag has been successfully transmitted and successfully responded to.
[0112] Therefore, after generating the timing adjustment command for the target electronic tag, the reader first determines whether the successful adjustment set contains the identifier of the target electronic tag. If the successful adjustment set contains the identifier of the target electronic tag, it means that the timing adjustment command for the target electronic tag has been successfully transmitted and successfully responded to, and the identifier of the target electronic tag is deleted from both the tag adjustment set and the successful adjustment set; if the successful adjustment set does not contain the identifier of the target electronic tag, it means that the timing adjustment command has not yet been transmitted to the target electronic tag, or the timing adjustment command was transmitted to the target electronic tag but was not successfully responded to, and the timing adjustment command is transmitted to the target electronic tag.
[0113] As described above, the timing adjustment method provided in this application first receives multiple tag data within a statistical period and determines the electronic tags corresponding to each tag data, obtaining a list of electronic tags for the statistical period; then, it compares the list of electronic tags for the statistical period with a preset list of electronic tags to determine the target electronic tags to be adjusted; and then generates a timing adjustment instruction for the target electronic tags to control the target electronic tags to adjust the transmission time of the next tag data according to the timing adjustment instruction. This application embodiment can determine which electronic tags' transmitted tag data has not been received and whose timing needs adjustment based on the tag data received within the statistical period, generate timing adjustment instructions for these electronic tags, and control the corresponding electronic tags to adjust the timing of the next transmission of tag data, so that the tag data transmitted by the current electronic tag can be received, improving data transmission efficiency.
[0114] 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.
[0115] This application also provides a reader / writer. Please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a first structural schematic diagram of a reader / writer provided in an embodiment of this application. The reader / writer 300 may include components such as a memory 311 and a processor 312. Those skilled in the art will understand that... Figure 5 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.
[0116] Memory 311 can be used to store applications and data. The applications stored in memory 311 contain executable code. Applications can be composed of various functional modules. Processor 312 executes various functional applications and data processing by running the applications stored in memory 311.
[0117] The processor 312 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 311 and calling the data stored in the memory 311, it performs various functions of the reader / writer and processes data, thereby monitoring the reader / writer as a whole.
[0118] In this embodiment, the processor 312 in the reader / writer loads the executable code corresponding to the processes of one or more applications into the memory 311 according to the following instructions, and the processor 312 runs the applications stored in the memory 311, thereby realizing the process:
[0119] Within a statistical period, multiple tag data are received and the electronic tags corresponding to each tag data are determined to obtain a list of electronic tags for the statistical period.
[0120] The electronic tag list for the statistical period is compared with the preset electronic tag list to determine the target electronic tags that need to be adjusted.
[0121] Generate timing adjustment instructions for the target electronic tag, and control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instructions.
[0122] Please continue reading. Figure 6 , Figure 6 This is a schematic diagram of a second structure of the reader / writer provided in an embodiment of this application. The reader / writer 300 may include a control unit 310, a clock chip 320, a power supply 330, a wireless transmission unit 340, a receiving antenna 350, and a transmitting antenna 360.
[0123] The control unit 310 can be a microcontroller unit (MCU); the clock chip 320 can be a real-time clock (RTC) in the form of an integrated circuit, using a crystal oscillator as the clock source to provide accurate real-time time; the power supply 330 is used to power the reader 300; the wireless transmission unit 340 can establish a wireless connection with the server, thereby sending the tag data received by the reader to the server.
[0124] The reader / writer includes a receiving antenna 350 and a transmitting antenna 360, which can operate independently without interfering with each other, while simultaneously performing their respective functions. The reader / writer 300 can receive multiple tag data points via the receiving antenna 350 within a statistical period T, and send timing adjustment commands generated from the tag data received in the statistical period T-1 to the target electronic tag via the transmitting antenna 360. It can also receive adjustment response information from the target electronic tag via the receiving antenna 350 in response to the timing adjustment commands.
[0125] In addition, the reader 300 can also send time alignment instructions to the target electronic tag to be aligned via the transmitting antenna 360, and receive time alignment response information from the target electronic tag via the receiving antenna 350.
[0126] In one embodiment, the control unit 310 includes a memory 311 and a processor 312. The memory 311 stores a computer program, and the processor 312 implements the following process by calling the computer program stored in the memory 311:
[0127] Within a statistical period, multiple tag data are received and the electronic tags corresponding to each tag data are determined to obtain a list of electronic tags for the statistical period.
[0128] The electronic tag list for the statistical period is compared with the preset electronic tag list to determine the target electronic tags that need to be adjusted.
[0129] Generate timing adjustment instructions for the target electronic tag, and control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instructions.
[0130] In one embodiment, when comparing the list of electronic tags for a statistical period with a preset list of electronic tags to determine the target electronic tag to be adjusted, the processor 312 executes:
[0131] Electronic tags that are included in the preset electronic tag list but not in the electronic tag list of the statistical period are identified as target electronic tags to be adjusted.
[0132] In one embodiment, the electronic tag includes mutually distinguishable identifiers, and after determining the target electronic tag to be adjusted, the processor 312 further performs:
[0133] Add the identifier of the target electronic tag to the tag adjustment set;
[0134] Processor 312 also performs:
[0135] When the adjustment response information is received from the target electronic tag, the identifier of the target electronic tag is added to the adjustment success set. The adjustment response information is used to indicate that the target electronic tag has completed the adjustment of the transmission time of the next tag data according to the timing adjustment instruction.
[0136] In one embodiment, after generating the timing adjustment instruction for the target electronic tag, the processor 312 further executes:
[0137] If the adjustment success set contains the identifier of the target electronic tag, then the identifier of the target electronic tag will be removed from both the tag adjustment set and the adjustment success set.
[0138] If the target electronic tag identifier is not included in the successful adjustment set, a timing adjustment command is sent to the target electronic tag.
[0139] In one embodiment, the timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and the target time interval between the transmission of tag data and the transmission of the next tag data. When generating the timing adjustment instruction for the target electronic tag, the processor 312 executes:
[0140] Determine the target time interval for the target electronic tag;
[0141] Generate timing adjustment instructions based on the identifier and the target time interval.
[0142] In one embodiment, processor 312 further performs:
[0143] When receiving data from multiple tags, record the time of reception for each tag.
[0144] The statistical period includes multiple averaged time slots. When determining the target time interval for the target electronic tag, processor 312 executes:
[0145] Based on the time of receipt of each tag's data, determine the idle time slots in the statistical period;
[0146] The target time interval for the target electronic tag is determined based on the idle time slot.
[0147] In one embodiment, the method is applied to a reader / writer, and when recording the reception time of each tag's data, the processor 312 executes:
[0148] If the time of the electronic tag corresponding to the tag data is consistent with the time of the reader, then the time of receiving the tag data is recorded.
[0149] In one embodiment, processor 312 further performs:
[0150] If the time of the electronic tag corresponding to the tag data is inconsistent with the time of the reader, the electronic tag with inconsistent time with the reader will be identified as an electronic tag to be timed.
[0151] Generate a time alignment instruction for the electronic tag to be calibrated, and adjust the time of the electronic tag to be calibrated according to the time alignment instruction so that the time of the electronic tag to be calibrated is consistent with the time of the data collector.
[0152] In one embodiment, the electronic tag includes mutually distinguishable identifiers, and after identifying an electronic tag whose time is inconsistent with that of the reader as a time-synchronization electronic tag, the processor 312 further performs:
[0153] Add the identifier of the electronic tag to be calibrated to the tag calibration set;
[0154] Processor 312 also performs:
[0155] When a time synchronization response is received from the time synchronization tag, the time synchronization tag is added to the time synchronization success set. The time synchronization response is used to indicate that the time synchronization tag has been adjusted according to the time alignment instruction.
[0156] In one embodiment, after generating the time alignment instruction for the electronic tag to be aligned, the processor 312 further executes:
[0157] If the set of successful time synchronizations contains the identifier of the electronic tag to be synchronized, then the identifier of the electronic tag to be synchronized will be removed from both the tag synchronization set and the set of successful time synchronizations.
[0158] If the set of successful time synchronizations does not contain an identifier for a time synchronization tag, a time alignment command is sent to the local time synchronization tag.
[0159] As can be seen from the above, the reader / writer provided in this application first receives multiple tag data within a statistical period and determines the electronic tags corresponding to each tag data, thus obtaining a list of electronic tags for the statistical period. Then, it compares the list of electronic tags for the statistical period with a preset list of electronic tags to determine the target electronic tags to be adjusted. Subsequently, it generates timing adjustment instructions for the target electronic tags, controlling the target electronic tags to adjust the transmission time of the next tag data transmission according to the timing adjustment instructions. This application embodiment can determine which electronic tags' transmitted tag data has not been received and whose timing needs adjustment based on the tag data received within the statistical period, generating timing adjustment instructions for these electronic tags, and controlling the corresponding electronic tags to adjust the timing of their next tag data transmission, so that the next tag data transmitted by the current electronic tag can be received, improving data transmission efficiency.
[0160] This application embodiment also provides an electronic tag for transmitting tag data to the reader 300 provided in this application embodiment.
[0161] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic tag provided in an embodiment of this application. The electronic tag 200 may include a control unit 210, a clock chip 220, a power supply 230, a sensor 240, and an antenna 250.
[0162] Among them, the control unit 210 can be a microcontroller unit (MCU); the clock chip 220 can be a real-time clock (RTC) in the form of an integrated circuit, using a crystal oscillator as the clock source to provide accurate real-time time; the power supply 230 is used to power the electronic tag 200, and the power supply 230 can be a battery; the sensor 240 is used to collect data, for example, the sensor 240 can be a temperature sensor to collect temperature data of livestock, the sensor 240 can also be a motion sensor to collect movement data of livestock, and so on.
[0163] The antenna 250 operates in two states: transmitting and receiving. The electronic tag can activate antenna 250, which is in transmitting mode, to transmit tag data to the reader 300. After each data transmission, the antenna 250 switches from transmitting to receiving mode, and the activation time (tr) is extended to receive timing adjustment and / or time alignment commands transmitted by the reader. The extension time (tr) can be set as needed. After the (tr) time has elapsed, the electronic tag's antenna 250 will deactivate.
[0164] When the electronic tag 200 is the target electronic tag, the electronic tag 200 receives the timing adjustment command transmitted by the reader through the antenna 250, and adjusts the transmission time of the next tag data according to the timing adjustment command. After adjusting the transmission time of the next tag data according to the timing adjustment command, the electronic tag 200 switches the antenna 250 to the transmission state and transmits the adjustment response information to the reader 300 through the antenna 250.
[0165] When the electronic tag 200 is a time-to-be-calibrated electronic tag, the electronic tag 200 receives the time alignment command transmitted by the reader through the antenna 250, and adjusts the time of the electronic tag to be calibrated according to the time alignment command. After adjusting the time of the electronic tag to be calibrated according to the time alignment command, the antenna 250 is switched to the transmission state, and the adjustment response information is transmitted to the reader 300 through the antenna 250.
[0166] This application also provides a timing adjustment system. Please refer to [link / reference]. Figure 8 , Figure 8 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 300 and an electronic tag 200.
[0167] The reader 300 is used to receive multiple tag data within a statistical period and determine the electronic tag corresponding to each tag data, obtain a list of electronic tags for the statistical period, compare the list of electronic tags for the statistical period with a preset list of electronic tags, determine the target electronic tag to be adjusted, generate a timing adjustment instruction for the target electronic tag, and control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instruction.
[0168] The electronic tag 200 is used to transmit tag data to the reader 300. When the electronic tag is the target electronic tag, the electronic tag is also used to receive the timing adjustment command transmitted by the reader, so as to adjust the transmission time of the next tag data according to the timing adjustment command.
[0169] 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.
[0170] 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.
[0171] 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.
[0172] The timing adjustment method, storage medium, reader, electronic tag, and system provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods 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, Applications in readers and writers include: Within the statistical period of the reader, multiple tag data are received and the electronic tags corresponding to each tag data are determined to obtain the electronic tag list for the statistical period. The electronic tag list for the statistical period is compared with the preset electronic tag list to determine the target electronic tags to be adjusted. Generate timing adjustment instructions for the target electronic tag, and control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instructions; The timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and a target time interval between the transmission of the tag data and the transmission of the next tag data by the target electronic tag. The generation of the timing adjustment instruction for the target electronic tag includes: When receiving the multiple tag data, record the reception time of each tag data; The statistical period of the reader includes multiple equally divided time slots. The minimum identification interval of the reader is obtained, and the minimum controllable interval of the electronic tag is obtained. The larger of the minimum identification interval and the minimum control interval is determined as the division scale of the statistical period. Let the duration of the statistical period be T, and the division scale be tx. Then the statistical period is divided into n equal parts, n = T / tx. Each divided time interval is considered a time slot. Determining the target time interval of the target electronic tag includes: Based on the reception time of each tag's data, determine the idle time slots in the statistical period; The target time interval of the target electronic tag is determined based on the time corresponding to the idle time slot and the time when the target electronic tag originally planned to transmit tag data next. The timing adjustment instruction is generated based on the identifier and the target time interval. The timing adjustment instruction is used to adjust the time when the target electronic tag will transmit tag data next, so that the tag data transmitted by the target electronic tag next time is staggered from the tag data of other electronic tags that may otherwise collide.
2. The timing adjustment method according to claim 1, characterized in that, The step of comparing the electronic tag list for the statistical period with a preset electronic tag list to determine the target electronic tags to be adjusted includes: Electronic tags that are included in the preset electronic tag list but not in the electronic tag list of the statistical period are identified as target electronic tags to be adjusted.
3. The timing adjustment method according to claim 1, characterized in that, The electronic tag includes mutually distinguishable identifiers, and after determining the target electronic tag to be adjusted, it also includes: Add the identifier of the target electronic tag to the tag adjustment set; The method further includes: When adjustment response information is received from the target electronic tag, the identifier of the target electronic tag is added to the adjustment success set. The adjustment response information is used to indicate that the target electronic tag has completed the adjustment of the transmission time of the next tag data according to the timing adjustment instruction.
4. The timing adjustment method according to claim 3, characterized in that, After generating the timing adjustment instruction for the target electronic tag, the method further includes: If the set of successful adjustments contains the identifier of the target electronic tag, then the identifier of the target electronic tag is removed from both the tag adjustment set and the set of successful adjustments. If the target electronic tag identifier is not included in the successful adjustment set, the timing adjustment command is sent to the target electronic tag.
5. The timing adjustment method according to claim 1, characterized in that, The method is applied to a reader / writer, and the recording of the reception time of each tag data includes: If the time of the electronic tag corresponding to the tag data is consistent with the time of the reader, then the time of receiving the tag data is recorded.
6. The timing adjustment method according to claim 5, characterized in that, The method further includes: If the time of the electronic tag corresponding to the tag data is inconsistent with the time of the reader, the electronic tag whose time is inconsistent with the time of the reader is identified as an electronic tag to be timed. Generate a time alignment instruction for the electronic tag to be calibrated, and adjust the time of the electronic tag to be calibrated according to the time alignment instruction so that the time of the electronic tag to be calibrated is consistent with the time of the data collector.
7. The timing adjustment method according to claim 6, characterized in that, Electronic tags include mutually distinguishable identifiers. After identifying electronic tags whose time is inconsistent with the reader's time as tags to be calibrated, the process further includes: Add the identifier of the electronic tag to be calibrated to the tag calibration set; The method further includes: When a time synchronization response is received from the electronic tag awaiting time synchronization, the electronic tag awaiting time synchronization is added to the time synchronization success set. The time synchronization response is used to indicate that the electronic tag awaiting time synchronization has completed the time adjustment according to the time alignment instruction.
8. The timing adjustment method according to claim 7, characterized in that, After generating the time alignment instruction for the electronic tag to be aligned, the method further includes: If the time synchronization success set contains the identifier of the electronic tag to be synchronized, then the identifier of the electronic tag to be synchronized is deleted from both the tag time synchronization set and the time synchronization success set. If the set of successful time synchronizations does not contain the identifier of the electronic tag to be synchronized, then the time alignment command is sent to the local electronic tag to be synchronized.
9. 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 8.
10. 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 8 by calling the computer program stored in the memory.
11. 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 8; When the electronic tag is the target electronic tag, the timing adjustment instruction transmitted by the reader is received, so as to adjust the transmission time of the next tag data according to the timing adjustment instruction.
12. A timing adjustment system, characterized in that, include: A reader / writer is used to receive multiple tag data within a statistical period and identify the electronic tags corresponding to each tag data, obtaining a list of electronic tags for the statistical period. This list is then compared with a preset list of electronic tags to determine the target electronic tag to be adjusted. A timing adjustment instruction for the target electronic tag is generated to control the target electronic tag to adjust the transmission time of the next tag data according to the timing adjustment instruction. The timing adjustment instruction for the target electronic tag includes the identifier of the target electronic tag and a target time interval between the transmission of the tag data and the transmission of the next tag data. Generating the timing adjustment instruction for the target electronic tag includes: recording the reception time of each tag data while receiving the multiple tag data; the reader / writer's statistical period includes multiple equally divided time slots; the minimum identification interval of the reader / writer is obtained; and the electronic tag is acquired. A controllable minimum control interval is defined as the larger of the minimum identification interval and the minimum control interval, which is used as the division scale for the statistical period. Let the duration of the statistical period be T, and the division scale be tx. Then, the statistical period is divided into n equal parts, n = T / tx. Each divided time interval is considered a time slot. Determining the target time slot for the target electronic tag includes: determining idle time slots in the statistical period based on the reception time of each tag data; determining the target time slot for the target electronic tag based on the time corresponding to the idle time slot and the original intended next time the target electronic tag was to transmit tag data; generating a timing adjustment instruction based on the identifier and the target time slot. The timing adjustment instruction is used to adjust the time when the target electronic tag will next transmit tag data, so that the tag data transmitted by the target electronic tag next time is staggered from the tag data of other electronic tags that might otherwise collide. An electronic tag is used to transmit tag data to a reader. When the electronic tag is a target electronic tag, the electronic tag is also used to receive a timing adjustment command transmitted by the reader, so as to adjust the transmission time of the next tag data according to the timing adjustment command.
Citation Information
Patent Citations
Interactive electronic tag technology-based anti-collision method
CN102122363A