CN115510882A - Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system - Google Patents

Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system Download PDF

Info

Publication number
CN115510882A
CN115510882A CN202110632254.5A CN202110632254A CN115510882A CN 115510882 A CN115510882 A CN 115510882A CN 202110632254 A CN202110632254 A CN 202110632254A CN 115510882 A CN115510882 A CN 115510882A
Authority
CN
China
Prior art keywords
time
target
tag data
tag
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110632254.5A
Other languages
Chinese (zh)
Inventor
刁尚华
邓银刚
谢洪涛
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongrong Digital Technology Co ltd
Original Assignee
Shenzhen Zhongrong Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongrong Digital Technology Co ltd filed Critical Shenzhen Zhongrong Digital Technology Co ltd
Priority to CN202110632254.5A priority Critical patent/CN115510882A/en
Publication of CN115510882A publication Critical patent/CN115510882A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07749Constructional details, e.g. mounting of circuits in the carrier the record carrier being capable of non-contact communication, e.g. constructional details of the antenna of a non-contact smart card

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Electromagnetism (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a time sequence adjusting method, a storage medium, a reader-writer, an electronic tag and a system. The method comprises the following steps: in an iteration cycle, receiving a plurality of label data and recording the receiving time of each label data; when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data; determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag; and then adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met. According to the embodiment of the application, iteration can be continued before the iteration termination condition is met, and the time sequence of the next time of transmitting the tag data by the electronic tag is adjusted according to the distribution condition of the receiving time of each tag data, so that the received tag data are staggered in time, mutual interference and collision of the data are avoided, and the data transmission efficiency is improved.

Description

Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a timing adjustment method, a storage medium, a reader/writer, an electronic tag, and a system.
Background
The Radio Frequency Identification (RFID) technology is a technology for realizing non-contact automatic identification by spatial coupling of radio frequency signals. The core components of the radio frequency identification system comprise a reader-writer and an electronic tag, wherein the reader-writer receives information from the electronic tag, and can realize upper management of the whole application system by being connected with a computer, and the electronic tag remotely and wirelessly transmits information stored in the reader-writer so as to identify the identity of an article, a person or an appliance represented by the electronic tag.
At present, when a radio frequency identification system works, a plurality of electronic tags may be simultaneously in the action range of a reader-writer, and when the plurality of electronic tags simultaneously send data to the reader-writer, the phenomena of communication collision and data mutual interference and collision occur, so that the data transmission efficiency of the reader-writer is low.
Disclosure of Invention
The embodiment of the application provides a time sequence adjusting method, a storage medium, a reader-writer, an electronic tag and a system, which can improve the data transmission efficiency.
In a first aspect, an embodiment of the present application provides a timing adjustment method, including:
in an iteration cycle, receiving a plurality of label data and recording the receiving time of each label data;
when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data;
determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag;
and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met.
In a second aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the flow in the timing adjustment method provided in the embodiment of the present application.
In a third aspect, an embodiment of the present application further provides a reader, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute a flow in the timing adjustment method provided in the embodiment of the present application by calling the computer program stored in the memory.
In a fourth aspect, an embodiment of the present application further provides an electronic tag, configured to transmit tag data to a reader/writer, where the reader/writer is the reader/writer provided in the embodiment of the present application, and if the electronic tag is a target electronic tag, the electronic tag adjusts a transmission time of next tag data according to a timing adjustment instruction when an iteration termination condition is not met.
In a fifth aspect, an embodiment of the present application further provides a timing adjustment system, including a reader/writer and an electronic tag, where the reader/writer is configured to receive a plurality of tag data and record a receiving time of each tag data in an iteration cycle, determine target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data when an iteration termination condition is not satisfied, determine a target electronic tag corresponding to the target tag data, generate a timing adjustment instruction of the target electronic tag, adjust an emission time at which the target electronic tag emits next tag data according to the timing adjustment instruction, and repeat the above steps until the iteration termination condition is satisfied, where the electronic tag is configured to emit the tag data to the reader/writer, and if the electronic tag is the target electronic tag, adjust an emission time of the next tag data according to the timing adjustment instruction when the iteration termination condition is not satisfied.
In the embodiment of the application, firstly, in an iteration cycle, a plurality of label data are received and the receiving time of each label data is recorded; when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data; then determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag; and then adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met. The embodiment of the application can continuously iterate before an iteration termination condition is met, and the receiving moments of the tag data are determined to be densely distributed and need to be adjusted in an iteration period according to the distribution condition of the receiving moments of the tag data, so that a time sequence adjusting instruction is generated to adjust the time sequence of the next time of transmitting the tag data by the corresponding electronic tag, the received tag data are staggered in time, mutual interference and collision of the data are avoided, and the data transmission efficiency is improved.
Drawings
The technical solutions and advantages of the present application will be apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of a scenario of a timing adjustment method according to an embodiment of the present disclosure.
Fig. 2 is a first flowchart of a timing adjustment method according to an embodiment of the present disclosure.
Fig. 3 is a schematic distribution diagram of tag data received in an iteration cycle according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a dense set and an idle set provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of timeslot pairing according to an embodiment of the present application.
Fig. 6 is a second flowchart of the timing adjustment method according to the embodiment of the present application.
Fig. 7 is a third flowchart illustrating a timing adjustment method according to an embodiment of the present application.
Fig. 8 is a fourth flowchart illustrating a timing adjustment method according to an embodiment of the present application.
Fig. 9 is a fifth flowchart illustrating a timing adjustment method according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a reader/writer according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a timing adjustment system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All embodiments obtained by a person skilled in the art based on the embodiments in the present application without any inventive step are within the scope of the present invention.
The terms "first," "second," "third," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, terminal, system comprising a list of steps is not necessarily limited to those steps or modules or elements expressly listed, and may include other steps or modules or elements not expressly listed, or inherent to such process, method, apparatus, terminal, or system.
Referring to fig. 1, fig. 1 is a schematic view of a timing adjustment method according to an embodiment of the present disclosure. The scene may include the herd 100, the electronic tag 200, the reader 600, and the user 400.
In the livestock breeding industry, in order to know the health condition of livestock in time, a user is often required to personally observe the health condition of the livestock. The stockman needs to enter the enclosure to perform a health check on the livestock, such as measuring questions of the livestock. Not only the environment is dirty, but also for large-scale farms with a large number of livestock, the efficiency of examining the health status of the livestock one by one is very low.
In the present application, each animal in the livestock group 100 is provided with an electronic tag 200, and the electronic tag 200 may collect data related to the animal, for example, the electronic tag 200 may be provided on the ear of the animal for collecting temperature data and/or motion data of the animal.
The electronic tag 200 and the reader 600 are two important components of the rfid system. Communication connection is pre-established between the electronic tag 200 and the reader-writer 600, the reader-writer 600 can receive tag data acquired by the electronic tag 200, feed back the tag data, and further process the tag data subsequently, for example, the health condition of livestock can be judged according to the tag data. The electronic tag 200 may include an RFID electronic tag, and the reader/writer 600 may include an RFID reader/writer.
The reader/writer 600 can also establish communication connection with other internet devices, such as mobile phones, computers and other devices of the breeding personnel or other related personnel, so that the tag data received from the electronic tag 200 can be sent to the mobile phones, computers and other devices of the breeding personnel or other related personnel, various data of each livestock can be reported in real time, and a breeding house can judge the health condition of the livestock according to the data of the livestock, and further determine whether to take relevant measures such as examination and treatment on the livestock.
The electronic tag 200 may transmit tag data to the reader 600, and the reader 600 may receive a plurality of tag data and record the receiving time of each tag data in an iteration cycle by using the timing adjustment method provided in the embodiment of the present application; when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data; determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag; and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until an iteration termination condition is met.
And when the electronic tag 200 is the target electronic tag and the electronic tag 200 does not meet the iteration termination condition, adjusting the transmission moment of the next tag data according to the time sequence adjusting instruction.
The embodiment of the application provides a timing sequence adjusting method, which can be applied to a reader-writer provided by the embodiment of the application. Referring to fig. 2, fig. 2 is a first flowchart illustrating a timing adjustment method according to an embodiment of the present disclosure, where the timing adjustment method includes:
101. and in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
The electronic tag periodically transmits tag data to the reader-writer, and the reader-writer receives a plurality of tag data transmitted by the electronic tag, wherein the plurality of tag data can be from the plurality of electronic tags. When the tag data is received, the receiving time when the reader-writer receives each tag data is recorded.
When a plurality of tag data arrive at the reader/writer end at the same time, communication collision occurs due to mutual interference between the tag data, so that the reader/writer cannot correctly recognize the tag data, and this phenomenon becomes "collision". The occurrence of the collision may cause that the reader/writer cannot read part of the tag data, resulting in low data transmission efficiency between the electronic tag and the reader/writer.
In one embodiment, when the electronic tag periodically transmits tag data, the transmission period is not constant, but slightly fluctuates. The transmission period of the electronic tag for transmitting the 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 may be greater than 0, smaller than 0, or equal to 0. When the electronic tag transmits tag data at a certain time, if a random factor r of an emission period is greater than 0, the emission period representing the electronic tag is greater than a fixed period, if r is less than 0, the emission period representing the electronic tag is smaller than the fixed period, and if r =0, the emission period representing the electronic tag is equal to the fixed period. Thus, the emission period of the electronic tag fluctuates randomly with respect to a fixed period.
Due to the existence of the random factor, even if two electronic tags collide at a certain time, when the tag signal is transmitted next time, the transmission periods of the two electronic tags may fluctuate randomly due to the existence of the random factor, so that the time for transmitting the tag data is staggered, and the time for reaching the reader-writer is also staggered. Therefore, for two electronic tags with tag data possibly colliding, although the tag data of the two electronic tags may not be received by the reader/writer all the time due to collision, and due to the existence of the random factor, the tag data transmitted by the two electronic tags may be received by the reader/writer in some cases.
102. And when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data.
The time sequence of the tag data is adjusted through an iterative algorithm. When the iteration termination condition is not met (namely in the iteration process), the target tag data to be adjusted is determined from the plurality of tag data according to the receiving time of each tag data in each iteration period.
In an embodiment, the iteration cycle comprises a plurality of equally divided time slots. For example, a minimum identification interval dt of the reader-writer is obtained, the minimum identification interval dt is determined as a division scale of an iteration cycle, the duration of the iteration cycle is set to be T, the division scale is dt, the iteration cycle is averagely divided into n parts, n = T/dt, each divided time interval is used as a time slot, and time slots T1, T2, T3, T4, T5 … … are obtained.
In one embodiment, dt/2 < r < dt < t. Dt is the minimum identification interval of the reader-writer, t is the fixed period of the electronic tag, and r is the random factor of the electronic tag.
Among the slots of the iterative cycle, dense slots and idle slots may be included. The criteria of the dense time slot and the idle time slot may be defined by themselves, for example, a time slot containing tag data whose number is greater than or equal to a first preset threshold is used as the dense time slot, and a time slot containing tag data whose number is less than a second preset threshold is used as the idle time slot.
According to the distribution of the receiving time of each label data in the iteration period, the dense time slot and the idle time slot can be determined from all the time slots of the iteration period. That is, after the step of receiving a plurality of tag data and recording the reception time of each tag data in the iteration cycle, the method may further include:
determining the distribution condition of the tag data in each time slot according to the receiving time of each tag data;
and determining dense time slots and idle time slots from all the time slots according to the distribution condition of the label data in each time slot.
The step of determining the dense time slot and the idle time slot from all the time slots may include:
(1) Determining all statistical units corresponding to the iteration cycle by taking a preset number of continuous time slots as statistical units;
(2) Determining the number of the tag data in each statistical unit according to the distribution condition of the tag data in each time slot;
(3) When the number of the tag data in the statistical unit is greater than or equal to a first preset threshold value, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as a dense time slot;
(4) And when the number of the tag data in the statistical unit is smaller than the first preset threshold, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as an idle time slot.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating distribution of tag data received in an iteration cycle according to an embodiment of the present disclosure. Where the iteration period T is divided into 7 time slots T1-T7. The circle in the time slot indicates that the tag data transmitted by the electronic tag is received in the time slot in the iteration period, and when the circle is not received in the time slot, the circle indicates that the tag data transmitted by the electronic tag is not received in the time slot in the iteration period. Different colors represent tag data from different electronic tags, for example, in fig. 3, the tag data in the time slot t1 and the time slot t3 are from the same electronic tag, and the tag data in the time slot t2 and the time slot t5 are from the same electronic tag. In the embodiment of the application, the plurality of tag data received in the iteration period T may include a plurality of tag data transmitted by the same electronic tag.
As shown in fig. 3, in all the time slots of the iteration period T, there is a distribution of tag data in the time slots T1 to T5, and there is no distribution of tag data in the time slots T6 and T7.
In one embodiment, when there is a distribution of tag data in a slot, the value of the slot may be recorded as 1, and when there is no distribution of tag data in the slot, the value of the slot may be recorded as 0.
In order to determine the dense time slots and the idle time slots in the iteration cycle, in an embodiment, 2 consecutive time slots may be used as a statistical unit, all statistical units corresponding to the iteration cycle are determined, and the number of tag data in each statistical unit is determined according to the distribution of the tag data in each time slot.
For example, as shown in fig. 3, in an iteration cycle, according to a time sequence, the number of tag data in all statistical units corresponding to the iteration cycle is: 2,2,2,2,1,0.
When the number of the tag data in the statistical unit is greater than or equal to a first preset threshold value, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as a dense time slot; and when the number of the tag data in the statistical unit is smaller than the first preset threshold, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as an idle time slot.
The first preset threshold may be the number of time slots-1 included in the statistical unit, and the second preset threshold may be set to 1. For example, when 3 slots are included in one statistic unit, the first preset threshold may be set to 2, and the second preset threshold may be set to 1, and when 2 slots are included in one statistic unit, the first preset threshold may be set to 1, and the second preset threshold may be set to 1.
It can be understood that the first preset threshold and the second preset threshold may also be set in other manners, and the setting manners of the first preset threshold and the second preset threshold are not limited in the present application.
As shown in fig. 3, the number of the tag data in the 1 st, 2 nd, 3 th, and 4 th statistical units is greater than or equal to 1, and thus, the slot indexes corresponding to the 1 st, 2 nd, 3 th, and 4 th statistical units are determined, and the slot matching the slot indexes corresponding to the 1 st, 2 nd, 3 th, and 4 th statistical units is determined as a dense slot, and the number of the tag data in the 6 th statistical unit is less than 1, and thus, the slot index corresponding to the 6 th statistical unit is determined, and the slot matching the slot index corresponding to the 6 th statistical unit is determined as a free slot.
Referring to fig. 4, fig. 4 is a schematic diagram of a dense set and an idle set according to an embodiment of the present application. In an embodiment, the correspondence between the statistical unit and the slot index may be set according to requirements. For example, the slot index corresponding to the statistical unit may be determined according to the following value function:
index=cell[0]+Math.ceil(cell/2)
wherein, cell [0] is a time slot index corresponding to the time slot with the earliest time in the time slots contained in the statistical unit, math.ceil is an integer calculator, and Math.ceil (cell/2) represents that the calculation result of (cell/2) is an integer.
For example, when cell =4, the timeslot index corresponding to the 1 st statistical unit is index =1+ math. Ceil (4/2) =3; when cell =3, the slot index corresponding to the 1 st statistical unit is index =1+ math. Ceil (3/2) =2.
When cell =2, the slot index corresponding to the 1 st statistical unit is index =1+ math. Ceil (2/2) =2, the slot index corresponding to the 2 nd statistical unit is index =2+ math. Ceil (2/2) =3, the slot index corresponding to the 3 rd statistical unit is index =3+ math. Ceil (2/2) =4, the slot index corresponding to the 4 th statistical unit is index =4+ math. Ceil (2/2) =5, and the slots t2, t3, t4, and t5 matching the slot indexes 2, 3, 4, and 5 can be determined as dense slots; the slot index corresponding to the 6 th statistic unit is index =6+ Math. Ceil (2/2) =7, and the slot t7 matching with the slot index 7 can be determined as a dense slot.
Therefore, according to the distribution of the label data in the iteration cycle shown in fig. 3, it can be determined that the dense time slots are t2, t3, t4, and t5, and the idle time slot is t7 in the iteration cycle. After the dense time slot and the idle time slot are determined, the time slot index of the dense time slot may be stored in the dense set centralized _ li [ ], and the time slot index of the idle time slot may be stored in the idle set free _ li [ ].
After the dense time slot is determined, the tag data in the dense time slot may be determined as the target tag data to be adjusted.
103. And determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag.
The electronic tags contain identifiers which are distinguished from each other by users, and the identifier of each electronic tag is unique. When the electronic tag transmits tag data to the reader/writer, the electronic tag carries its own identifier. The reader-writer can determine the electronic tag matched with the corresponding identifier as the target electronic tag by determining the identifier corresponding to the target tag data.
In an embodiment, the step of generating the timing adjustment instruction of the target electronic tag may include:
(1) And determining a target time difference value of the target electronic tag.
Wherein, the meaning of target time difference lies in: and adjusting the transmission time of the next transmission of the tag data by the target electronic tag forwards or backwards in time sequence. The value of the adjustment is equal to the absolute value of the target time difference, adjusted forward or backward, depending on whether the target time difference is greater than 0 or less than 0. If the target time difference is larger than 0, adjusting the emission time of the target electronic tag for next emission of tag data backwards; if the target time difference is less than 0, forward adjusting the emission time of the next emission of the tag data of the target electronic tag; and if the target time difference is equal to 0, not adjusting the emission time of the next emission of the tag data of the electronic tag.
In an embodiment, the step of determining the target time difference value of the target electronic tag may include:
and (1.1) determining a target dense time slot and a target idle time slot corresponding to the target electronic tag.
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:
(1.1.1) determining a target dense time slot corresponding to the target electronic tag;
(1.1.2) pairing the dense time slots and the idle time slots in the iteration period from the last dense time slot and the last idle time slot in the iteration period from back to front;
and (1.1.3) determining a target idle time slot corresponding to the target dense time slot according to the pairing result.
Referring to fig. 5, fig. 5 is a schematic diagram of timeslot pairing according to an embodiment of the present application. As shown in fig. 5, in an embodiment, given all the dense time slots and all the idle time slots in the iteration cycle, the dense time slots and the idle time slots in the iteration cycle are paired two by two from the last dense time slot and the last idle time slot in the iteration cycle. For example, a dense time slot and an idle time slot are sequentially taken from the last of the dense set and the idle set each time for pairwise pairing. After pairing is completed, the target idle time slot matched with the target dense time slot can be determined according to the pairing result.
And (1.2) acquiring the time slot index of the target dense time slot and the time slot index of the target idle time slot.
And acquiring the time slot index centralized _ li [ index ] of the target dense time slot and the time slot index free _ li [ index ] of the target idle time slot.
And (1.3) acquiring the time length of the time slot.
And acquiring the time length dt of the time slot in the iteration period.
And (1.4) determining a target time difference value of the target electronic tag according to the time slot index of the target dense time slot, the time slot index of the target idle time slot and the time length of the time slot.
In an embodiment, when determining the target time difference value of the target electronic tag according to the time slot index of the target dense time slot, the time slot index of the target idle time slot, and the time length of the time slot, the following formula may be adopted:
Δt=(free_li[index]-concentrated_li[index])*dt
wherein free _ li [ index ] is the slot index of the target free slot, centralized _ li [ index ] is the slot index of the target dense slot, and dt is the time length of the slot.
(2) And generating a time sequence adjusting instruction according to the identifier and the target time difference value.
The identifier can indicate the target electronic tag, and the target time difference value can indicate the transmission moment when the target electronic tag transmits the next tag data. And generating a timing adjustment instruction according to the identifier and the target time interval.
104. And adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met.
In an embodiment, before the iteration termination condition is satisfied, the reader may send the timing adjustment instruction to the target electronic tag, and the target electronic tag receives the timing adjustment instruction and adjusts the transmission time at which the target electronic tag transmits the next tag data according to the identifier indicated in the timing adjustment instruction and the target time difference.
If the iteration condition is not satisfied all the time, repeating the steps 101 to 104 all the time, and transmitting a batch of timing sequence adjustment instructions to each electronic tag in each iteration period to adjust the transmission time of the next tag data transmitted by each electronic tag.
With the progress of iteration, the dense time slots and the idle time slots in the iteration period are less and less, the distribution of the label data in each time slot is more and more uniform, and the iteration is stopped until the iteration termination condition is met.
Wherein the iteration termination condition may include:
(1) The number of received electronic tags in the iteration cycle is equal to the preset number.
The preset number refers to the number of the electronic tags that the reader-writer expects to read.
(2) The number of dense slots in an iteration cycle is 0.
When the number of the dense time slots in the iteration period is 0, the sparse distribution of the data of each label is represented, and adjustment is not needed.
(3) The number of free slots in an iteration cycle is 0.
When the number of free slots in an iteration cycle is 0, it means that there is no room for adaptation.
(4) The vacancy rate of the iteration cycle is less than or equal to the vacancy rate threshold.
In one embodiment, the number of the received tag data in the iteration period is counted, a theoretical maximum value of the tag data which can be received in the iteration period is determined, and the vacancy rate of the iteration period is determined according to the number of the received tag data and the theoretical maximum value.
The 4 optional iteration termination conditions listed above may be used as the iteration termination conditions of the time scaling method provided in the embodiment of the present application in a manner of taking one of the 4 optional iteration termination conditions, or may be used as the iteration termination conditions of the time scaling method provided in the embodiment of the present application in a combined manner. It should be noted that, besides the above-mentioned 4 iteration termination conditions, other iteration termination conditions may also be set according to actual needs, and the embodiment of the present application does not limit this.
In one embodiment, for the parameters involved in the iteration termination condition, the parameters may be created and initialized before the iteration, and the values of the parameters are updated as new tag data is received during the iteration.
For example, the following parameters may be created:
an iteration cycle: t(s), wherein the iteration period T is a preset parameter of the reader-writer and can be written into the reader-writer by a user in an instruction mode;
the number of tag data received within the iteration period T: RN (number);
the number of the electronic tags received in the iteration period T is as follows: n (number);
the number of electronic tags expected to be received within the iteration period T: EN;
fixed emission period of the electronic tag: t(s);
minimum time precision adjustable by the electronic tag: t _ precision(s);
theoretical maximum value of the electronic tag that can be received within the iteration period T: rrad _ max = T/dt;
the idle rate VacantRate = (Read _ max-RN) × 100%/Read _ max for iteration period T;
counting the length cell of a unit (cell > 1);
a threshold C (C ≦ length (cell)) for density determination.
For example, initializing parameters before entering an iteration may include:
initializing a set total [ ] of identifiers of the electronic tags received in all iteration cycles;
initializing an electronic tag set T _ read _ total [ ] received in an iteration period T;
each element in the electronic tag set T _ sequence [ Read _ max ], which can be received by the reader-writer within the initialization iteration period T, stores tag data in one time slot.
In one embodiment, at the beginning of each iteration cycle, the start time T _ start of the iteration cycle is recorded; and traversing the set total [ ] every time a new piece of tag data is received, comparing the identifier of the electronic tag corresponding to the newly received tag data with the elements in the set total [ ], and judging whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set total [ ]. If not, adding the identifier of the electronic tag corresponding to the newly received tag data to the end of the set total [ ]; if so, the adding operation is not executed.
In one embodiment, at the beginning of each iteration cycle, the elements in set t _ read _ total [ ] are cleared; and when new tag data is received, traversing the set t _ read _ total [ ], comparing the identifier of the electronic tag corresponding to the newly received tag data with elements in the set t _ read _ total [ ], and judging whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set t _ read _ total [ ]. If not, adding the identifier of the electronic tag corresponding to the newly received tag data to the last of the set t _ read _ total [ ]; if so, no add operation is performed.
In an embodiment, a timer is used to record the amount of tag data RN received during an iteration cycle. And setting the RN to be 0 at the beginning of each iteration period, and adding one to the value of the RN every time one label data is received in each iteration period, so that the quantity of the label data received by the reader-writer in the iteration period T is obtained at the end of one iteration period.
In an embodiment, at the end of an iteration period, the number N of received electronic tags in the iteration period T is equal to the length of the set T _ read _ total [ ], i.e. N = length (T _ read _ total).
Referring to fig. 6, fig. 6 is a second flowchart of a timing adjustment method according to an embodiment of the present disclosure, in which an iteration termination condition includes that the number of received electronic tags in an iteration cycle is equal to a preset number, and the timing adjustment method may include:
201. and in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
Before entering the iteration, the following parameters are created:
the number of the electronic tags received in the iteration period T is as follows: n (number);
the number of electronic tags expected to be received in the iteration period T is as follows: EN;
initializing the parameters before entering the iteration comprises:
initializing a set total [ ] of identifiers of the electronic tags received in all iteration cycles;
initializing an electronic tag set T _ read _ total [ ] received in an iteration period T;
each element in the electronic tag set T _ sequence [ Read _ max ], which can be received by the reader-writer within the initialization iteration period T, stores tag data in one time slot.
At the beginning of the iteration period T, the elements in the set T _ read _ total [ ] are emptied. And in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
And traversing the set total [ ] every time a new piece of tag data is received, comparing the identifier of the electronic tag corresponding to the newly received tag data with the elements in the set total [ ], and judging whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set total [ ]. If not, adding the identifier of the electronic tag corresponding to the newly received tag data to the last of the set total [ ]; if yes, the adding operation is not executed.
And when new tag data is received, traversing the set t _ read _ total [ ], comparing the identifier of the electronic tag corresponding to the newly received tag data with elements in the set t _ read _ total [ ], and judging whether the identifier of the electronic tag corresponding to the newly received tag data exists in the set t _ read _ total [ ]. If not, adding the identifier of the electronic tag corresponding to the newly received tag data to the last of the set t _ read _ total [ ]; if so, no add operation is performed.
202. And counting the number of the electronic tags corresponding to the tag data received in the iteration period.
When the iteration is finished, counting that the number N of the electronic tags corresponding to the tag data received in the iteration period T is equal to the length of the set T _ read _ total [ ], that is, N = length (T _ read _ total).
203. And judging whether the number of the electronic tags is equal to the preset number, if so, entering step 207, and otherwise, entering step 204.
The preset number may be the number EN of the electronic tags expected to be received in the iteration period T. EN can be determined by: EN = length (total). Namely, the total number of the electronic tags received by the reader-writer in all the iteration cycles is taken as the number EN of the electronic tags expected to be received in the iteration cycle T.
If the number of the electronic tags is equal to the preset number, the step 207 is entered, and the iteration is ended; and if the number of the electronic tags is not equal to the preset number, entering the subsequent step, adjusting the emission time of the target equipment and counting again in the next iteration period.
204. And determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data.
205. And determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag.
206. And adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and returning to the step 201.
207. And finishing the iteration.
Referring to fig. 7, fig. 7 is a third flowchart illustrating a timing adjustment method according to an embodiment of the present disclosure, where the timing adjustment method includes:
301. and in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
Before entering the iteration, the following parameters are created:
counting the length cell of a unit (cell > 1);
a threshold value C (C is less than or equal to length (cell)) for density determination;
before entering an iteration, a dense timeslot set centralized _ li [ ] is created and initialized at the beginning of each iteration.
In the iteration cycle, the method in the foregoing embodiment may be used to determine the dense time slot according to the length cell of the statistical unit and the threshold C of the density determination, and the specific process is not described again.
During the iteration cycle, each time a dense timeslot is determined, the dense timeslot may be added to the dense timeslot set centralized _ li [ ].
302. And counting the number of dense time slots in the iteration period.
The number of dense slots in the iteration cycle, i.e. the length of the dense slot set, is counted.
303. And judging whether the number of the dense time slots in the iteration period is more than 0. If so, go to step 304, otherwise go to step 307.
If the number of the dense time slots in the iteration cycle is equal to 0, entering step 307, and ending the iteration; and if the number of the dense time slots in the iteration period is more than 0, entering the subsequent step, adjusting the transmitting time of the target equipment and counting again in the next iteration period.
304. And determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data.
305. And determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag.
306. And adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and returning to the step 301.
307. And finishing the iteration.
Referring to fig. 8, fig. 8 is a fourth flowchart illustrating a timing adjustment method according to an embodiment of the present disclosure, where the timing adjustment method includes:
401. and in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
Before entering the iteration, the following parameters are created:
counting the length cell (cell > 1) of the unit and a second preset threshold value.
Before entering an iteration, a set of free slots free _ li [ ] is created and a set of dense slots free _ li [ ] is initialized at the beginning of each iteration.
In the iteration cycle, the method in the foregoing embodiment may be used to determine the idle time slot according to the length cell of the statistical unit and the second preset threshold, and the specific process is not described again.
During the iteration cycle, each time an idle timeslot is determined, the idle timeslot may be added to the set of idle timeslots free _ li [ ].
402. And counting the number of idle time slots in the iteration period.
And counting the number of the idle time slots in the iteration cycle, namely the length (free _ li) of the idle time slot set.
403. And judging whether the number of idle time slots in the iteration period is greater than 0. If yes, go to step 404, otherwise go to step 407.
If the number of dense time slots in the iteration cycle is equal to 0, step 407 is entered, and the iteration is ended; and if the number of the dense time slots in the iteration period is more than 0, entering the subsequent step, adjusting the transmitting time of the target equipment and counting again in the next iteration period.
404. And determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
405. And determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag.
406. And adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and returning to the step 401.
407. And finishing the iteration.
Referring to fig. 9, fig. 9 is a fifth flowchart illustrating a timing adjustment method according to an embodiment of the present disclosure, where the timing adjustment method includes:
501. and in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
Before entering the iteration, the following parameters are created:
the number of tag data received within the iteration period T: RN (number);
theoretical maximum value of the electronic tag that can be received within the iteration period T: rrad _ max = T/dt;
the idle rate VacantRate = (Read _ max-RN) × 100%/Read _ max for iteration period T;
initializing the parameters before entering the iteration comprises:
each element in the electronic tag set T _ sequence [ Read _ max ], which can be received by the reader-writer within the initialization iteration period T, stores tag data in one time slot.
And in the iteration period, receiving a plurality of label data and recording the receiving time of each label data.
502. The number of tag data received in an iteration cycle is counted.
A timer is used to record the amount of tag data RN received during an iteration cycle. And setting the RN to be 0 at the beginning of each iteration period, and adding one to the value of the RN every time label data is received in the iteration period, so that the quantity RN of the label data received by the reader-writer in the iteration period T is obtained at the end of the iteration period.
503. A theoretical maximum value of tag data that may be received during an iteration cycle is determined.
Acquiring the duration T of a preset iteration cycle of the reader-writer;
acquiring a minimum identification interval dt of the electronic tag;
and calculating the theoretical maximum value Rrad _ max = T/dt of the tag data which can be received in the iteration period T according to the duration T of the preset iteration period of the reader-writer and the minimum identification interval dt of the electronic tag.
504. And determining the idle rate of the iteration period according to the number of the received label data and the theoretical maximum value.
The null rate vacartrate = (Read _ max-RN) × 100%/Read _ max for the iteration cycle is determined from the number of tag data received and the theoretical maximum.
505. And judging whether the vacancy rate of the iteration cycle is greater than a vacancy rate threshold value. If so, go to step 506, otherwise go to step 509.
If the idle rate of the iteration cycle is less than or equal to the idle rate threshold, go to step 509 to end the iteration; and if the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, entering the subsequent step, adjusting the emission time of the target equipment and carrying out statistics again in the next iteration cycle.
506. And determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data.
507. And determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag.
508. And adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and returning to the step 501.
509. And finishing the iteration.
As can be seen from the above, in the timing adjustment method provided in the embodiment of the present application, first, in an iteration cycle, a plurality of tag data are received and the receiving time of each tag data is recorded; when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data; then determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag; and then adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met. The embodiment of the application can continuously iterate before an iteration termination condition is met, and the receiving moments of the tag data are determined to be densely distributed and need to be adjusted in an iteration period according to the distribution condition of the receiving moments of the tag data, so that a time sequence adjusting instruction is generated to adjust the time sequence of the next time of transmitting the tag data by the corresponding electronic tag, the received tag data are staggered in time, mutual interference and collision of the data are avoided, and the data transmission efficiency is improved.
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is enabled to execute the flow in the timing adjustment method provided in this embodiment.
The embodiment of the present application further provides a reader, which includes a memory and a processor, where the processor is configured to execute the procedure in the timing adjustment method provided in the embodiment by calling a computer program stored in the memory.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a reader/writer according to an embodiment of the present disclosure.
The reader 600 may include components such as a memory 601 and a processor 602. Those skilled in the art will appreciate that the reader/writer configuration shown in fig. 7 does not constitute a limitation of the reader/writer, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The memory 601 may be used to store applications and data. The memory 601 stores applications containing executable code. The application programs may constitute various functional modules. The processor 602 executes various functional applications and data processing by running application programs stored in the memory 601.
The processor 602 is a control center of the reader/writer, connects various parts of the entire reader/writer by using various interfaces and lines, and executes various functions of the reader/writer and processes data by running or executing an application program stored in the memory 601 and calling data stored in the memory 601, thereby performing overall monitoring of the reader/writer.
In this embodiment, the processor 602 in the reader/writer loads the executable code corresponding to the process of one or more application programs into the memory 601 according to the following instructions, and the processor 602 runs the application programs stored in the memory 601, thereby implementing the flow:
in an iteration cycle, receiving a plurality of label data and recording the receiving time of each label data;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data;
determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag;
and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until an iteration termination condition is met.
In an embodiment, the iteration termination condition includes that the number of received electronic tags in the iteration cycle is equal to a preset number, and after receiving a plurality of tag data and recording the receiving time of each tag data, the processor 602 further performs:
counting the number of electronic tags corresponding to the tag data received in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the number of the electronic tags is not equal to the preset number, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
In an embodiment, the iteration cycle includes a plurality of equally divided time slots, the time slots include a dense time slot and an idle time slot, and after receiving a plurality of tag data and recording the receiving time of each tag data in the iteration cycle, the processor 602 further performs:
determining the distribution condition of the tag data in each time slot according to the receiving time of each tag data;
and determining dense time slots and idle time slots from all the time slots according to the distribution condition of the label data in each time slot.
In one embodiment, when the dense time slot and the free time slot are determined from all the time slots, the processor 602 performs:
determining all statistical units corresponding to the iteration cycle by taking a preset number of continuous time slots as statistical units;
determining the number of the tag data in each statistical unit according to the distribution condition of the tag data in each time slot;
when the number of the tag data in the statistical unit is greater than or equal to a first preset threshold value, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as a dense time slot;
and when the number of the tag data in the statistical unit is smaller than the first preset threshold, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as an idle time slot.
In an embodiment, the iteration termination condition includes that the number of dense time slots in the iteration cycle is 0, and after determining dense time slots and idle time slots from all time slots according to the distribution of the tag data in each time slot, the processor 602 further performs:
counting the number of dense time slots in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the number of the intensive time slots in the iteration period is more than 0, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
In an embodiment, the iteration termination condition includes that the number of idle timeslots in the iteration cycle is 0, and after determining a dense timeslot and an idle timeslot from all timeslots according to the distribution of the tag data in each timeslot, the processor 602 further performs:
counting the number of idle time slots in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the number of the idle time slots in the iteration period is more than 0, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
In an embodiment, the iteration termination condition includes that an idle rate of the iteration cycle is less than or equal to an idle rate threshold, and after receiving a plurality of tag data and recording a receiving time of each tag data, the processor 602 further performs:
counting the number of the label data received in the iteration period;
determining a theoretical maximum value of tag data that can be received during the iteration cycle;
determining the idle rate of the iteration cycle according to the number of the received label data and the theoretical maximum value;
when the iteration termination condition is not satisfied, and when the target tag data to be adjusted is determined from the plurality of tag data according to the receiving time of each tag data, the processor 602 executes:
and when the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
In an embodiment, the electronic tags include identifiers that are different from each other, and when determining the target electronic tag corresponding to the target tag data, the processor 602 performs:
determining an identifier corresponding to the target tag data;
and determining the electronic tag corresponding to the identifier as the target electronic tag.
In an embodiment, the timing adjustment instruction of the target electronic tag includes an identifier of the target electronic tag and a target time difference value adjusted when the target electronic tag transmits next tag data, and when the timing adjustment instruction of the target electronic tag is generated, the processor 602 executes:
determining a target time difference value of the target electronic tag;
and generating the time sequence adjusting instruction according to the identifier and the target time difference value.
In an embodiment, when determining the target time difference value of the target electronic tag, the processor 602 performs:
determining a target dense time slot and a target idle time slot corresponding to the target electronic tag;
acquiring a time slot index of the target dense time slot and a time slot index of the target idle time slot;
acquiring the time length of the time slot;
and determining a target time difference value of the target electronic tag according to the time slot index of the target dense time slot, the time slot index of the target idle time slot and the time length of the time slot.
In an embodiment, when determining a target dense timeslot and a target idle timeslot corresponding to the target electronic tag, the processor 602 performs:
determining a 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, pairwise pairing the dense time slot and the idle time slot in the iteration cycle from back to front;
and determining a target idle time slot corresponding to the target dense time slot according to the pairing result.
In an embodiment, when determining the target time difference value of the target electronic tag according to the slot index of the target dense slot, the slot index of the target idle slot, and the duration of the slot, the processor 602 performs:
determining a target time difference value of the target electronic tag by adopting the following formula:
Δt=(free_li[index]-concentrated_li[index])*dt
wherein free _ li [ index ] is the slot index of the target idle slot, and the centralized _ li [ index ] is the slot index of the target dense slot and is the time length of the slot.
In an embodiment, when the transmission time of the target electronic tag for transmitting the next tag data is adjusted according to the timing adjustment instruction, the processor 602 performs:
and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the target time difference.
As can be seen from the above, the reader provided in the embodiment of the present application first receives a plurality of tag data and records the receiving time of each tag data in an iteration cycle; when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data; then determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjustment instruction of the target electronic tag; and then adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met. The embodiment of the application can continuously iterate before an iteration termination condition is met, and the receiving moments of the tag data are determined to be densely distributed and need to be adjusted in an iteration period according to the distribution condition of the receiving moments of the tag data, so that a time sequence adjusting instruction is generated to adjust the time sequence of the next time of transmitting the tag data by the corresponding electronic tag, the received tag data are staggered in time, mutual interference and collision of the data are avoided, and the data transmission efficiency is improved.
The embodiment of the application also provides an electronic tag, which is used for transmitting tag data to the reader-writer provided by the embodiment of the application. And if the electronic tag is the target electronic tag, adjusting the emission moment of the next tag data according to the time sequence adjusting instruction when the iteration termination condition is not met.
The embodiment of the application also provides a time sequence adjusting system. Referring to fig. 11, fig. 11 is a schematic structural diagram of a timing adjustment system according to an embodiment of the present disclosure. The timing adjustment system includes a reader/writer 600 and an electronic tag 200:
the reader-writer 600 is configured to receive a plurality of tag data and record a receiving time of each tag data in an iteration cycle, determine target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data when an iteration termination condition is not met, determine a target electronic tag corresponding to the target tag data, generate a timing adjustment instruction of the target electronic tag, adjust a transmitting time at which the target electronic tag transmits next tag data according to the timing adjustment instruction, and repeat the above steps until the iteration termination condition is met;
and the electronic tag 200 is used for transmitting tag data to a reader-writer, and if the electronic tag is a target electronic tag, adjusting the transmission time of the next tag data according to the time sequence adjusting instruction when the iteration termination condition is not met.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the timing adjustment method, and are not described herein again.
It should be noted that, for the timing adjustment method of the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the timing adjustment method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include, for example, the process of the embodiment of the timing adjustment method. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the timing adjustment apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
A timing adjustment method, a storage medium, a reader/writer, an electronic tag and a system provided in the embodiments of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (17)

1. A timing adjustment method, comprising:
in an iteration cycle, receiving a plurality of label data and recording the receiving time of each label data;
when the iteration termination condition is not met, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data;
determining a target electronic tag corresponding to the target tag data, and generating a time sequence adjusting instruction of the target electronic tag;
and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the time sequence adjusting instruction, and repeating the steps until an iteration termination condition is met.
2. The timing adjustment method according to claim 1, wherein the iteration termination condition includes that the number of received electronic tags in an iteration cycle is equal to a preset number, and after receiving a plurality of tag data and recording a receiving time of each tag data, the method further comprises:
counting the number of electronic tags corresponding to the tag data received in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the number of the electronic tags is not equal to the preset number, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
3. The timing adjustment method according to claim 1, wherein the iteration cycle includes a plurality of equally divided time slots, the time slots include dense time slots and idle time slots, and after receiving a plurality of tag data and recording a receiving time of each tag data in the iteration cycle, the method further includes:
determining the distribution condition of the tag data in each time slot according to the receiving time of each tag data;
and determining dense time slots and idle time slots from all the time slots according to the distribution condition of the label data in each time slot.
4. The timing adjustment method of claim 3, wherein the determining the dense time slots and the free time slots from all the time slots comprises:
determining all statistical units corresponding to the iteration cycle by taking a preset number of continuous time slots as statistical units;
determining the number of the tag data in each statistical unit according to the distribution condition of the tag data in each time slot;
when the number of the tag data in the statistical unit is greater than or equal to a first preset threshold value, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as a dense time slot;
and when the number of the tag data in the statistical unit is smaller than the first preset threshold, determining a time slot index corresponding to the statistical unit, and determining a time slot matched with the time slot index as an idle time slot.
5. The timing adjustment method according to claim 3, wherein the iteration termination condition includes that the number of dense time slots in the iteration cycle is 0, and after determining dense time slots and idle time slots from all time slots according to a distribution of tag data in each time slot, the method further comprises:
counting the number of dense time slots in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the number of the intensive time slots in the iteration period is more than 0, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
6. The timing adjustment method according to claim 3, wherein the iteration termination condition includes that the number of idle timeslots in the iteration cycle is 0, and after determining the dense timeslots and the idle timeslots from all timeslots according to the distribution of the tag data in each timeslot, the method further comprises:
counting the number of idle time slots in the iteration period;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises the following steps:
and when the number of the idle time slots in the iteration period is more than 0, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
7. The timing adjustment method according to claim 3, wherein the iteration termination condition includes that a vacancy rate of the iteration cycle is less than or equal to a vacancy rate threshold, and after receiving the plurality of tag data and recording a receiving time of each tag data, the method further comprises:
counting the number of the received label data in the iteration period;
determining a theoretical maximum value of tag data that can be received during the iteration cycle;
determining the idle rate of the iteration period according to the number of the received label data and the theoretical maximum value;
when the iteration termination condition is not met, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data comprises:
and when the vacancy rate of the iteration cycle is greater than the vacancy rate threshold, determining target tag data to be adjusted from the plurality of tag data according to the receiving time of each tag data.
8. The timing adjustment method according to any one of claims 3 to 7, wherein the electronic tags include identifiers that are different from each other, and the determining the target electronic tag corresponding to the target tag data includes:
determining an identifier corresponding to the target tag data;
and determining the electronic tag corresponding to the identifier as the target electronic tag.
9. The timing adjustment method according to claim 8, wherein the timing adjustment instruction of the target electronic tag includes an identifier of the target electronic tag and a target time difference value adjusted when the target electronic tag transmits next tag data, and the generating the timing adjustment instruction of the target electronic tag includes:
determining a target time difference value of the target electronic tag;
and generating the time sequence adjusting instruction according to the identifier and the target time difference value.
10. The timing adjustment method of claim 9, wherein the determining the target time difference value of the target electronic tag comprises:
determining a target dense time slot and a target idle time slot corresponding to the target electronic tag;
acquiring a time slot index of the target dense time slot and a time slot index of the target idle time slot;
acquiring the time length of the time slot;
and determining a target time difference value of the target electronic tag according to the time slot index of the target dense time slot, the time slot index of the target idle time slot and the time length of the time slot.
11. The timing adjustment method according to claim 10, wherein the determining the target dense timeslot and the target idle timeslot corresponding to the target electronic tag comprises:
determining a 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, pairwise pairing the dense time slot and the idle time slot in the iteration cycle from back to front;
and determining a target idle time slot corresponding to the target dense time slot according to the pairing result.
12. The timing adjustment method according to claim 10, wherein the determining the target time difference value of the target electronic tag according to the slot index of the target dense slot, the slot index of the target idle slot, and the duration of the slot comprises:
determining a target time difference value of the target electronic tag by adopting the following formula:
Δt=(free_li[index]-concentrated_li[index])*dt
wherein free _ li [ index ] is the slot index of the target idle slot, and the centralized _ li [ index ] is the slot index of the target dense slot and is the time length of the slot.
13. The method of claim 9, wherein the adjusting the transmission time of the target electronic tag for transmitting the next tag data according to the timing adjustment command comprises:
and adjusting the transmitting time of the next tag data transmitted by the target electronic tag according to the target time difference.
14. A storage medium having stored therein a computer program for causing a computer to perform the steps of the timing adjustment method according to any one of claims 1 to 13 when the computer program runs on the computer.
15. A reader/writer characterized by comprising: a processor and a memory, the memory having a computer program stored therein, the processor executing the steps of the timing adjustment method of any one of claims 1 to 13 by calling the computer program stored in the memory.
16. An electronic tag, wherein the electronic tag is configured to:
transmitting the tag data to a reader/writer, the reader/writer being the reader/writer according to claim 15;
and if the electronic tag is the target electronic tag, adjusting the emission moment of the next tag data according to the time sequence adjusting instruction when the iteration termination condition is not met.
17. A timing adjustment system, comprising:
the reader-writer is used for receiving a plurality of label data and recording the receiving time of each label data in an iteration cycle, determining target label data to be adjusted from the plurality of label data according to the receiving time of each label data when the iteration termination condition is not met, determining a target electronic label corresponding to the target label data, generating a time sequence adjusting instruction of the target electronic label, adjusting the transmitting time of the next label data transmitted by the target electronic label according to the time sequence adjusting instruction, and repeating the steps until the iteration termination condition is met;
and the electronic tag is used for transmitting tag data to a reader-writer, and if the electronic tag is a target electronic tag, the transmitting moment of the next tag data is adjusted according to the time sequence adjusting instruction when the iteration termination condition is not met.
CN202110632254.5A 2021-06-07 2021-06-07 Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system Pending CN115510882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110632254.5A CN115510882A (en) 2021-06-07 2021-06-07 Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110632254.5A CN115510882A (en) 2021-06-07 2021-06-07 Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system

Publications (1)

Publication Number Publication Date
CN115510882A true CN115510882A (en) 2022-12-23

Family

ID=84499724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110632254.5A Pending CN115510882A (en) 2021-06-07 2021-06-07 Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system

Country Status (1)

Country Link
CN (1) CN115510882A (en)

Similar Documents

Publication Publication Date Title
Cha et al. Novel anti-collision algorithms for fast object identification in RFID system
Chen A feasible and easy-to-implement anticollision algorithm for the EPCglobal UHF class-1 generation-2 RFID protocol
CN109002743B (en) Anti-collision method for label checking and reader-writer
JP2009518746A (en) Method and system for optimizing the operation of a radio frequency identification (RFID) reader
CN108491908B (en) Visual intelligent warehousing system and method based on radio frequency identification
US20180268177A1 (en) Systems and Methods for Estimation of a Population of Passive RFID Sensors
US20080122583A1 (en) System and method for RFID tag communication
Liu et al. Fast counting the key tags in anonymous RFID systems
Lee et al. Analysis of RFID anti-collision algorithms using smart antennas
Xie et al. Implementation of differential tag sampling for COTS RFID systems
CN115510881A (en) Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system
CN115510882A (en) Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system
KR102085873B1 (en) Method and apparatus for selective communication between tag and reader using filter
KR100829794B1 (en) Method of identifying radio frequency tag in rfid system
CN109784434B (en) Intelligent container and RFID (radio frequency identification) tag query and inventory method and system thereof
KR100964782B1 (en) Method, reader that optimizing a framesize using Q-algorithm in RFID system
CN113283260B (en) Method for intelligently switching channels of multi-channel reader-writer, reader-writer and storage medium
CN106127094B (en) Radio frequency identification system and its multiple labels anti-collision preanalysis formula recognition methods
Fan et al. Gen2‐Based Tag Anti‐collision Algorithms Using Chebyshev's Inequality and Adjustable Frame Size
Prodanoff et al. RFID Model for Simulating Framed Slotted ALOHA Based Anti-Collision Protocol for Muti-Tag Identification
CN115510883A (en) Timing sequence adjusting method, storage medium, reader-writer, electronic tag and system
JP4291350B2 (en) Wireless communication device
CN110781878A (en) Target area determination method and device, storage medium and electronic device
Tong et al. Modeling the anti-collision process of RFID system by markov chain
Larionov et al. A stochastic model for the analysis of session and power switching effects on the performance of UHF RFID system with mobile tags

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination