Label inventory method, reader-writer, label, storage medium and product
By carrying the number of sensing time slots in the inventory instruction, the target tag determines the time slot counter based on the number of sensing time slots. The sensing tag completes the inventory within a specific time slot, while the non-sensing tag completes the inventory in other time slots. This solves the problem of non-sensing tags preempting the sensing tag's time slots and improves the efficiency of reading tag information.
Patent Information
- Application Number
- CN202411784483.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-12-16
AI Technical Summary
In the existing RFID tag data reporting mechanism, non-sensing tags preempt the storage time slots of sensing tags, resulting in low efficiency in reading tag information.
By including the number of sensing time slots in the inventory instruction, the target tag determines the time slot counter based on the number of sensing time slots. The sensing tag completes the inventory within a specific time slot, while the non-sensing tag completes the inventory in other time slots, thus avoiding time slot conflicts.
It improves the efficiency of reading tag information, ensures the priority of sensing tags, and supports synchronous sampling of multiple sensing tags.
Smart Images

Figure CN121145895A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a tag inventory method, reader / writer, tag, storage medium, and computer program product. Background Technology
[0002] Currently, RFID tag data reporting uses a random collision reporting mechanism based on the ALOHA protocol. After the reader broadcasts the Query inventory command, each tag randomly selects a slot counter (slotcount, e.g., 5 from 0-15). Tags with a slot count of 0 directly return a 16-bit random number (RN16). At this point, multiple tags may simultaneously report RN16. If the reader successfully demodulates RN16, it reads the tag's EPC via the Ack command, indicating that the reader has successfully read one tag. Subsequently, the reader sends a QueryRep command, decrementing the slot counters of all tags by 1. Tags with a slot count of 0 then report RN16, and this process repeats until all slots are exhausted.
[0003] In related technologies, when a reader is storing tags, it broadcasts storage instructions to all tags directly, and then stores all tags according to the broadcast storage instructions. Since some tags need to be read frequently, while the remaining tags do not need to be read frequently, the tags that do not need to be read frequently will compete for storage time slot resources when the tags that need to be read are stored. This reduces the information reading efficiency of the tags that need to be read frequently, that is, it reduces the efficiency of reading tag information. Summary of the Invention
[0004] To address the aforementioned technical problems, this application aims to provide a tag storage method, a reader / writer, a tag, a storage medium, and a computer program product, which can improve the efficiency of reading tag information.
[0005] The technical solution of this application is implemented as follows:
[0006] This application provides a tag inventory method for target tags, the tag inventory method comprising:
[0007] Receive disk storage instructions from the reader / writer;
[0008] Obtain the number of sensing time slots from the inventory instruction;
[0009] The time slot counter is determined based on the number of sensing time slots;
[0010] The disk storage command is responded to according to the time slot counter.
[0011] This application embodiment provides another tag storage method applied to a reader / writer, the tag storage method comprising:
[0012] An inventory instruction is issued to multiple target tags, and the inventory instruction carries the number of sensing time slots.
[0013] In the time slot corresponding to the number of sensing time slots, the inventory process for the multiple target tags is performed.
[0014] This application provides a target label, the target label including:
[0015] The receiving unit is used to receive disk storage instructions issued by the reader / writer;
[0016] An acquisition unit is used to acquire the number of sensing time slots from the inventory instruction;
[0017] The determining unit is used to determine the time slot counter based on the number of sensing time slots;
[0018] A response unit is used to respond to the disk storage command according to the time slot counter.
[0019] This application provides a reader / writer, which includes:
[0020] The sending unit is used to send inventory instructions to multiple target tags, wherein the inventory instructions carry the number of sensing time slots;
[0021] An execution unit is used to perform an inventory process for the multiple target tags in the time slot corresponding to the number of sensing time slots.
[0022] This application provides a target label, the target label including:
[0023] The system comprises a first memory, a first processor, and a first communication bus. The first memory communicates with the first processor via the first communication bus. The first memory stores a tag inventory program executable by the first processor. When the tag inventory program is executed, the tag inventory method applied to the target tags described above is executed by the first processor.
[0024] This application provides a reader / writer, which includes:
[0025] The system comprises a second memory, a second processor, and a second communication bus. The second memory communicates with the second processor via the second communication bus. The second memory stores a tag storage program executable by the second processor. When the tag storage program is executed, the tag storage method described above for use in a reader is executed by the second processor.
[0026] This application provides a storage medium storing a computer program applied to a reader and a target tag. The computer program, when executed by a first processor, implements the tag storage method described above for the target tag; and when executed by a second processor, it implements the tag storage method described above for the reader.
[0027] This application also provides a computer program product, including a computer program that can be executed by a first processor to complete the steps of the aforementioned tag inventory method applied to target tags, and the computer program can be executed by a second processor to complete the steps of the aforementioned tag inventory method applied to a reader.
[0028] This application provides a tag inventory method, a reader / writer, a tag, a storage medium, and a computer program product. The tag inventory method includes: receiving an inventory instruction from the reader / writer; obtaining the number of sensing time slots from the inventory instruction; determining a time slot counter based on the number of sensing time slots; and responding to the inventory instruction based on the time slot counter. Using this method, the target tag obtains the number of sensing time slots from the inventory instruction issued by the reader / writer. When the target tag is a sensing tag, the time slot counter for the sensing tag is determined based on the number of sensing time slots. When the target tag is a non-sensing tag, the time slot counter for the non-sensing tag can also be determined based on the number of sensing time slots. Thus, the inventory process for the sensing tag is completed within the time slot corresponding to the time slot counter of the sensing tag, and the inventory for the non-sensing tag is completed within the time slot corresponding to the time slot counter of the non-sensing tag. This ensures that the inventory of non-sensing tags and the inventory of sensing tags occur in different time slots, avoiding the problem of non-sensing tags preempting the inventory time slots of sensing tags, thereby improving the efficiency of reading tag information. Attached Figure Description
[0029] Figure 1 This application provides a schematic diagram of a prior art tag data reporting mechanism.
[0030] Figure 2 A schematic diagram of a prior art wireless sensing principle provided in an embodiment of this application;
[0031] Figure 3 A method flow for tag inventory provided in this application embodiment Figure 1 ;
[0032] Figure 4 A method flow for tag inventory provided in this application embodiment Figure 2 ;
[0033] Figure 5A schematic diagram of an exemplary interactive process in a perceptual inventory mode provided for an embodiment of this application;
[0034] Figure 6 A schematic diagram illustrating an exemplary sensing tag time slot and a regular tag time slot, provided for embodiments of this application;
[0035] Figure 7 A schematic diagram of the composition structure of a target label provided in an embodiment of this application. Figure 1 ;
[0036] Figure 8 A schematic diagram of the composition structure of a target label provided in an embodiment of this application. Figure 2 ;
[0037] Figure 9 A schematic diagram of the composition structure of a reader / writer provided in an embodiment of this application. Figure 1 ;
[0038] Figure 10 A schematic diagram of the composition structure of a reader / writer provided in an embodiment of this application. Figure 2 . Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0040] In related technologies, such as Figure 1 As shown: RFID tag data reporting uses a random collision reporting mechanism based on the ALOHA protocol. After the reader issues a Query inventory command, the tag randomly selects a slot count (e.g., 5 from 0-15). Tags with a slot count of 0 directly return a 16-bit random number (RN16). At this point, multiple tags may simultaneously report RN16. If the reader successfully demodulates RN16, it reads the tag's EPC via the Ack command. The reader has now successfully read one tag. Subsequently, the reader sends a QueryRep command, decrementing the slot count of all tags by 1. Tags with a slot count of 0 then report RN16. This process repeats until all slots are exhausted.
[0041] A single Query command cannot read all tags, and even if the tags respond normally, it cannot guarantee that tags will be reported in every time slot. Therefore, the application layer needs to repeatedly call the Query command to store all tags.
[0042] Among them, such as Figure 2As shown: UHF RFID wireless sensing is a wireless sensing mechanism based on channel state information. It achieves target sensing by analyzing changes in the characteristics (signal strength and signal phase) of the uplink signals backscattered from passive tags received by the reader, including location tracking, behavior recognition, and vital sign monitoring. For example, when a person wears clothing with tags, the reader obtains the signal characteristic data of each tag's returned signal by periodically reading the tags, and identifies the person's breathing and heart rate by analyzing changes in the signal characteristic data.
[0043] In this sensing system, the sensing data is obtained by reading each tag. Therefore, it is necessary to continuously and periodically read all sensing tags EPC and obtain the carrier signal strength and phase corresponding to this EPC signal.
[0044] This application provides a tag inventory method, which is applied to target tags. Figure 3 A flowchart of a tag inventory method provided in this application embodiment is shown below. Figure 3 As shown, tag storage methods may include:
[0045] S101: Receive disk storage instructions issued by the reader / writer.
[0046] The tag inventory method provided in this application is applicable to scenarios where target tags need to be inventoried.
[0047] In the embodiments of this application, the target tag can be implemented in various forms. For example, the target tag described in this application may include a terminal, a passive device, etc., and the target tag may also be other devices. The specific embodiments of this application are not limited in this regard.
[0048] In this embodiment, the target tag is a tag to be inventoried according to the inventory instruction. There can be multiple target tags, and the specific number can be determined based on actual circumstances; this embodiment does not limit this number.
[0049] It should be noted that the target label can execute the corresponding inventory process according to the inventory instruction.
[0050] In this embodiment of the application, after the reader broadcasts the inventory instruction on the communication channel, the target tag receives the inventory instruction and then executes the inventory process corresponding to the target tag.
[0051] In this embodiment, the target label includes a perceptual label and a non-perceptual label; the non-perceptual label is the label in the prior art. The perceptual label is the label in the non-prior art.
[0052] It should be noted that non-sensory tags are used for traditional inventory management, and the goal of the reader for ordinary tags is to read them as quickly as possible. Sensory tags are used for RFID wireless sensing services; therefore, in sensing services, the goal of the reader for sensing tags is to read them repeatedly at regular intervals.
[0053] In this embodiment of the application, the number of sensing tags can be at least one, and the specific number of sensing tags can be determined according to the actual situation. This embodiment of the application does not limit this.
[0054] In this embodiment of the application, the number of non-perceptual tags can be at least one, and the specific number of non-perceptual tags can be determined according to the actual situation. This embodiment of the application does not limit this.
[0055] In the embodiments of this application, the number of sensing tags can be the same as the number of non-sensing tags, or the number of sensing tags can be different from the number of non-sensing tags: that is, the number of sensing tags is less than the number of non-sensing tags, or the number of sensing tags is greater than the number of non-sensing tags.
[0056] In this embodiment, the parameters carried in the inventory instruction differ from those carried in inventory instructions in the prior art. Specifically, this inventory instruction carries the number of sensing time slots (SQ) and the time slot parameter (Q), while the inventory instructions in the prior art carry the time slot parameter (Q) but do not carry the number of sensing time slots (SQ).
[0057] S102. Obtain the number of sensing time slots from the inventory instructions.
[0058] In this embodiment of the application, after the target tag receives the disk storage instruction issued by the reader, it obtains the number of sensing time slots from the disk storage instruction.
[0059] In this embodiment of the application, the inventory instruction carries the number of sensing time slots, that is, the inventory instruction carries SQ, and the number of sensing time slots can be directly obtained from the inventory instruction.
[0060] It should be noted that when the reader initiates a disk storage operation, the disk storage command issued by the reader carries the number of sensing time slots.
[0061] S103. Determine the time slot counter based on the number of sensing time slots.
[0062] In this embodiment of the application, after the target tag obtains the number of sensing time slots from the inventory instruction, it determines the time slot counter based on the number of sensing time slots.
[0063] In this embodiment of the application, the target tag includes a sensing tag and a non-sensing tag, and the corresponding time slot counter also includes the time slot counter corresponding to the sensing tag and the time slot counter corresponding to the non-sensing tag.
[0064] In this embodiment of the application, the process of determining the time slot counter based on the number of sensing time slots for the target tag includes: when the target tag is a sensing tag, obtaining the tag identifier of the target tag; and determining the time slot counter based on the tag identifier and the number of sensing time slots.
[0065] It should be noted that the time slot counter is different from the other time slot counters of other sensing tags; other sensing tags are the remaining sensing tags in the target tags besides the sensing tags.
[0066] In this embodiment of the application, the tag identifier can be the electronic product code (EPC) of the tag or the identity document (ID) of the tag. The specific identifier can be determined according to the actual situation, and this embodiment of the application does not limit it.
[0067] In this embodiment of the application, the tag identifier of the target tag can be obtained from the target tag information database, or from other devices, or through other means. The specific method can be determined according to the actual situation, and this embodiment of the application does not limit it.
[0068] It should be noted that the label is identified by numerical information.
[0069] In this embodiment, the process of determining the time slot counter based on the tag identifier and the number of sensing time slots includes: performing a modulo operation based on the tag identifier and the number of sensing time slots to obtain the time slot counter; alternatively, other calculation methods can be used to determine a time slot counter that is different from the time slot counters corresponding to other sensing tags based on the tag identifier and the number of sensing time slots; the specific implementation method can be determined according to the actual situation, and this embodiment does not limit it.
[0070] For example, if there are four sensing tags, then each of the four sensing tags can determine a different time slot counter based on its tag identifier and the number of sensing time slots. For instance, the time slot counter determined by the first sensing tag might be 0, the second sensing tag 1, the third sensing tag 2, and the fourth sensing tag 3. That is, the time slot counters corresponding to the four sensing tags are different.
[0071] It should also be noted that when the target tag is a sensing tag, the value range of the sensing tag's slot count is [0, SQ-1], and the value of the slot count is different for different sensing tags. The minimum value of the sensing counter is 0, and the maximum value is SQ-1.
[0072] For example, the tag EPC mod SQ (i.e., the slot counter is obtained by performing a modulo operation based on the tag identifier (tag EPC) and the number of sensing slots (SQ)). For instance, if there are 5 sensing tags, and the reader issues SQ=5, by appropriately setting the EPC values of these 5 sensing tags, the slot counts of the 5 sensing tags are 0, 1, 2, 3, and 4 respectively. That is, the slot counter of the first sensing tag is 0, the slot counter of the second sensing tag is 1, the slot counter of the third sensing tag is 2, the slot counter of the fourth sensing tag is 3, and the slot counter of the fifth sensing tag is 4.
[0073] It should be noted that when the time slot counter value of the sensing tag is 0, the sensing tag reports in the first reporting time slot, and the inventory process for the sensing tag is performed in the first reporting time slot; when the time slot counter value of the sensing tag is 1, the sensing tag reports in the second reporting time slot, and the inventory process for the sensing tag is performed in the second reporting time slot; when the time slot counter value of the sensing tag is 2, the sensing tag reports in the third reporting time slot, and the inventory process for the sensing tag is performed in the third reporting time slot; when the time slot counter value of the sensing tag is 3, the sensing tag reports in the fourth reporting time slot, and the inventory process for the sensing tag is performed in the fourth reporting time slot; and so on.
[0074] In this embodiment of the application, the process of determining the time slot counter based on the number of sensing time slots for the target tag includes: when the target tag is a non-sensing tag, determining the time slot counter based on the time slot parameters carried in the inventory instruction and the number of sensing time slots.
[0075] In this embodiment of the application, the process of determining the time slot counter based on the time slot parameters and the number of sensing time slots carried in the inventory instruction includes: determining the minimum value of the time slot counter based on the number of sensing time slots, determining the maximum value of the time slot counter based on the time slot parameters, and randomly determining a value between the maximum and minimum values as the value of the time slot counter.
[0076] For example, when the target tag is a non-perceptual tag, the value range of the time slot counter of the target tag is [SQ, 2]. Q -1], that is, the minimum value of the slot counter of the non-sensory tag is SQ, and the maximum value of the slot counter of the non-sensory tag is 2.Q -1. Within the value range of the time slot counter [SQ, 2...] Q In [-1], a non-perceptual tag can randomly select a value as the value of the time slot counter.
[0077] In this embodiment, the time slot counter of the sensing tag is less than the time slot counter of the non-sensing tag, that is, the priority corresponding to the time slot counter of the sensing tag is higher than the priority corresponding to the time slot counter of the non-sensing tag.
[0078] S104. Respond to the disk storage command according to the time slot counter.
[0079] In this embodiment of the application, after the target tag determines the time slot counter based on the number of sensing time slots, it responds to the inventory instruction based on the time slot counter.
[0080] In this embodiment of the application, the process of the target tag responding to the disking instruction according to the time slot counter includes: when the time slot counter identifies the current time slot as the reporting time slot, reporting RN16 to the reader.
[0081] In this embodiment of the application, when the value of the time slot counter is 0, it is determined that the time slot counter identifies the current time slot as the reporting time slot, and then the target tag is reported to RN16.
[0082] In this embodiment of the application, after the target tag reports RN16 to the reader, it reports the tag identifier to the reader upon receiving ACK information sent by the reader; upon receiving the queryRep instruction sent by the reader, it updates the time slot counter to obtain the updated time slot counter.
[0083] In this embodiment of the application, after the target tag reports RN16 to the reader, the reader will send ACK information to the target tag. Then the target tag reports its tag identifier to the reader. When the target tag receives the queryRep instruction issued by the reader, it completes the disk storage process for the target tag. At this time, the target tag updates its own time slot counter and obtains the updated time slot counter.
[0084] For example, when the value of the time slot counter is 0, the target tag reports RN16 to the reader, the reader sends ACK information to the target tag, the target tag reports the tag identifier to the reader, the reader issues a queryRep command to the target tag, and then the target tag decrements the value of the time slot counter by 1 (that is, the target tag updates its own time slot counter) to obtain the updated time slot counter.
[0085] In this embodiment of the application, when the time slot counter indicates that the current time slot is not a reporting time slot and a queryRep instruction is received, the target tag updates the time slot counter to obtain the updated time slot counter.
[0086] In this embodiment of the application, when the target tag indicates that the current time slot is not a reporting time slot and receives a queryRep instruction, it will also update the time slot counter (e.g., the target tag will decrement the value of the time slot counter by 1) to obtain the updated time slot counter.
[0087] Understandably, the target tag obtains the number of sensing time slots from the disking instructions issued by the reader. When the target tag is a sensing tag, the time slot counter of the sensing tag is determined based on the number of sensing time slots. When the target tag is a non-sensing tag, the time slot counter of the non-sensing tag can also be determined based on the number of sensing time slots. Thus, the disking process of the sensing tag is completed within the time slot corresponding to the time slot counter of the sensing tag, and the non-sensing tag is disked within the time slot corresponding to the time slot counter of the non-sensing tag. This ensures that the disking of non-sensing tags and the disking of sensing tags are carried out in different time slots, avoiding the problem of non-sensing tags preempting the disking time slots of sensing tags, thereby improving the efficiency of reading tag information.
[0088] This application provides a tag storage method, which is applied to a reader / writer. Figure 4 A flowchart of a tag inventory method provided in this application embodiment is shown below. Figure 4 As shown, tag storage methods may include:
[0089] S201. Issue inventory instructions to multiple target tags, with the number of sensing time slots carried in the inventory instructions.
[0090] The tag inventory method provided in this application embodiment is applicable to scenarios where the reader / writer inventories target tags.
[0091] In the embodiments of this application, the reader / writer can be implemented in various forms. For example, the reader / writer described in this application may include a server, a core network, or other devices, and the specific embodiments of this application are not limited thereto.
[0092] In this embodiment, the multiple target labels include perceptual labels and non-perceptual labels; non-perceptual labels are labels in the prior art. Perceptual labels are labels not in the prior art.
[0093] It should be noted that non-sensory tags are used for traditional inventory management, and the goal of the reader for ordinary tags is to read them as quickly as possible. Sensory tags are used for RFID wireless sensing services; therefore, in sensing services, the goal of the reader for sensing tags is to read them repeatedly at regular intervals.
[0094] In this embodiment of the application, after the reader broadcasts the inventory instruction on the communication channel, multiple target tags receive the inventory instruction and then execute the inventory process corresponding to each of the multiple target tags.
[0095] In this embodiment of the application, the number of sensing tags can be at least one, and the specific number of sensing tags can be determined according to the actual situation. This embodiment of the application does not limit this.
[0096] In this embodiment of the application, the number of non-perceptual tags can be at least one, and the specific number of non-perceptual tags can be determined according to the actual situation. This embodiment of the application does not limit this.
[0097] In the embodiments of this application, the number of sensing tags can be the same as the number of non-sensing tags, or the number of sensing tags can be different from the number of non-sensing tags: that is, the number of sensing tags is less than the number of non-sensing tags, or the number of sensing tags is greater than the number of non-sensing tags.
[0098] In this embodiment, the parameters carried in the inventory instructions issued by the reader to multiple target tags are different from those carried in inventory instructions in the prior art. Specifically, this inventory instruction carries not only the number of sensing time slots (SQ) but also the time slot parameter (Q), while the inventory instructions in the prior art carry the time slot parameter (Q) but do not carry the number of sensing time slots (SQ).
[0099] In this embodiment, after the reader sends an inventory instruction to multiple target tags, if there is a time slot conflict or a time slot is idle in the time slot corresponding to the sensing tag among the multiple target tags, an alarm message is generated; so as to use the alarm message to indicate the problem of time slot conflict or time slot idle in the time slot corresponding to the sensing tag.
[0100] In this embodiment, the alarm information can be voice information, text information, or other forms of information. The specific form of the alarm information can be determined according to the actual situation, and this embodiment does not limit it.
[0101] In this embodiment of the application, the reader can alert maintenance personnel to potential deployment errors in the system based on the generated alarm information, that is, to alert maintenance personnel to the problem of time slot conflict or time slot idleness in the time slot corresponding to the tag.
[0102] In this embodiment, the method by which the reader detects whether there is a time slot conflict or a time slot idle in the time slot corresponding to the sensing tag among multiple target tags can be determined according to the actual situation, and this embodiment does not limit it.
[0103] In this embodiment of the application, the reader can also generate alarm information when it detects that there is a time slot conflict or a time slot is idle in the time slot corresponding to the non-aware tag among multiple target tags, so as to use the alarm information to indicate that there is a time slot conflict or a time slot is idle in the time slot corresponding to the non-aware tag.
[0104] S202. In the time slot corresponding to the number of sensing time slots, perform the inventory process for multiple target tags.
[0105] In this embodiment of the application, after the reader issues an inventory instruction to multiple target tags, it performs an inventory process for the multiple target tags in the time slot corresponding to the number of sensing time slots.
[0106] In this embodiment of the application, the process of the reader issuing inventory instructions to multiple target tags includes: issuing inventory instructions to multiple target tags when the current periodic inventory time is reached; correspondingly, after the reader executes the inventory process for multiple target tags in the time slot corresponding to the number of sensing time slots, when the next periodic inventory time is reached and before the inventory of some tags among the non-sensing tags of the multiple target tags is completed, the reader stops continuing to execute the inventory process for some tags according to QueryRep, and reissues inventory instructions to multiple target tags, so as to inventory the sensing tags and some tags among the multiple target tags according to the reissued inventory instructions.
[0107] In this embodiment of the application, the tag inventory method is executed periodically. When the current periodic inventory time is reached, the reader sends an inventory instruction to multiple target tags.
[0108] In this embodiment, the reader issues inventory instructions periodically according to a set periodic interval. That is, when the timer arrives, the reader will stop the current inventory process (no longer use QueryRep to start the current inventory time slot) and restart a round of sensing inventory. Regardless of whether the previous round of sensing tags was successfully inventoried, all sensing tags are re-invented. Ordinary tags can still choose whether to enable the A / B face inventory mechanism.
[0109] For example, when the current periodic inventory time is reached, the reader issues inventory instructions to multiple target tags. The sensing tags among the multiple target tags determine a time slot counter based on the tag identifier of the sensing tag and the number of sensing time slots carried in the inventory instruction, and respond to the inventory instruction according to the time slot counter. After the sensing tags are inventoried, the non-sensing tags begin their inventory operation; that is, the first non-sensing tag among the non-sensing tags performs the inventory operation first; after the first non-sensing tag is inventoried, the second non-sensing tag among the non-sensing tags performs the inventory operation first; and so on. When the inventory of the first non-perceptual tag is completed, the third non-perceptual tag among the non-perceptual tags will be inventoried first; ...; when the inventory of the Nth non-perceptual tag is completed, the next periodic inventory time arrives, and the (N+1)th to Mth non-perceptual tags have not been inventoried, the inventory process for the (N+1)th to Mth non-perceptual tags will be stopped according to QueryRep, and inventory instructions will be reissued to multiple target tags to inventory the perceptual tags and the (N+1)th to Mth non-perceptual tags among the multiple target tags according to the reissued inventory instructions. The number of non-perceptual tags is M.
[0110] For example, such as Figure 5 As shown, the reader / writer includes three storage modes: normal storage mode, selected storage mode, and sensing storage mode. The target tags include normal tags (i.e., non-sensing tags) and sensing tags. In normal storage mode, all tags within the reader / writer's range are stored, and all tags report data equally through a random collision mechanism, without distinguishing between normal tags (i.e., non-sensing tags) and sensing tags. In selected storage mode, a subset of tags are selected for storage using the `select` command, and the selected tags report data equally through a random collision mechanism, without distinguishing between normal tags (i.e., non-sensing tags) and sensing tags. In sensing storage mode, different time slots are configured for sensing tags and normal tags in the storage instruction, simultaneously satisfying the reading requirements of both sensing tags and normal tags. Specifically, normal storage mode and selected storage mode are existing technical solutions. This application proposes a sensing storage mode and a corresponding implementation technical solution. The sensing storage mode can be represented by adding a new storage instruction or adding a flag bit in the `Query` instruction. Ordinary tags (i.e., non-sensory tags) are the existing solutions. This application proposes a sensing tag, which can determine whether it is an ordinary tag or a sensing tag by its own attributes (fixed or configurable), so the reader does not need to determine the type of the reported tag. Figure 5To facilitate the interaction process in the sensing and storage mode, the storage command issued by the reader carries the number of sensing time slots (the number of sensing time slots SQ in this application is different from Q in the prior art). The sensing tag generates a unique time slot counter for each sensing tag based on the number of sensing time slots SQ and its own EPC area data (i.e., tag identifier). The sensing tag determines the time slot counter based on the tag identifier and the number of sensing time slots. Ordinary tags generate a random time slot counter based on the number of sensing time slots SQ and the time slot parameter Q in the prior art. (i.e., non-sensing tags determine the time slot counter based on the time slot parameter carried in the storage command and the number of sensing time slots). Subsequently, each tag will report the tag EPC data based on the value of the time slot counter in the existing protocol and the RN16 collision mechanism.
[0111] It is understandable that the tag storage method in this application consumes fewer system resources, can ensure the priority of reported sensing tags, and supports synchronous sampling of multiple sensing tags.
[0112] For example, if multiple target tags include 5 sensing tags and 20 ordinary tags (non-sensing tags), the EPC (tag identifier) of the 5 sensing tags is 32 bits, such as: 1# sensing tag: 0xFFFFFF00, 2# sensing tag: 0xFFFFFF01, 3# sensing tag: 0xFFFFFF02, 4# sensing tag: 0xFFF11103, 5# sensing tag: 0xFFF22204. The EPC codes of the 20 non-sensing tags are not fixed. The reader sends a sensing disk storage instruction QueryS (which carries SQ=5, Q=5). The sensing tags calculate EPC (tag identifier) mod SQ (number of sensing slots), so the slot counts of sensing tags 1-5 will be 0, 1, 2, 3, 4 (that is, the slot counter values of the 5 sensing tags are 0, 1, 2, 3, 4 respectively), while the ordinary tags will randomly generate slot counts (i.e., the slot counters of the non-sensing tags) between [5, 31]. Tag reading process as follows Figure 6 As shown, perception tags 1-5 will always be in the first five time slots. If an empty or conflicting tag appears, a system anomaly will be indicated (e.g., ...). Figure 6The third inventory check occurs when: (Alarm information is generated when time slot #2 is idle; alarm information is generated when time slot conflict occurs for sensing tag #4). Specifically, if a conflict consistently exists in a sensing time slot, it may indicate an error in the sensing tag's EPC setting, resulting in a mismatch with the SQ value. Starting from the 6th time slot, ordinary tags will preempt time slots through collision conflicts, leading to situations where time slots are idle or conflicting. When the scheduled inventory check time arrives, regardless of the Q value setting, this inventory check will stop reporting time slots and restart the next round of inventory checks. In the next round of inventory checks, sensing tags will be re-invented. Ordinary tags can use the A / B inventory mechanism to only inventory tags that were not successfully inventoryed previously, thus ensuring the availability of sensing inventory time slots and "best effort" to inventory ordinary tags during idle periods within the scheduled interval.
[0113] Understandably, by including the number of sensing time slots in the disk storage command, the reader enables the sensing tag receiving the command (i.e., when the target tag is a sensing tag) to determine its time slot counter based on the number of sensing time slots. Similarly, the non-sensing tag receiving the command (i.e., when the target tag is a non-sensing tag) can determine its time slot counter based on the number of sensing time slots. This allows the reader to complete the disk storage of the sensing tag within the time slot corresponding to the time slot counter of the sensing tag, and to disk the non-sensing tag within the time slot corresponding to the time slot counter of the non-sensing tag. This ensures that the disk storage of non-sensing tags and sensing tags occurs in different time slots, avoiding the problem of non-sensing tags preempting the disk storage time slots of sensing tags, thus improving the efficiency of reading tag information.
[0114] Based on the same inventive concept as the above-mentioned tag inventory method, this application provides a target tag 1, corresponding to a tag inventory method; Figure 7 A schematic diagram of the composition structure of a target label provided in an embodiment of this application. Figure 1 The target label 1 may include:
[0115] The receiving unit 11 is used to receive the disk storage command issued by the reader / writer;
[0116] Acquisition unit 12 is used to acquire the number of sensing time slots from the inventory instruction;
[0117] Determining unit 13 is used to determine a time slot counter based on the number of sensing time slots;
[0118] The response unit 14 is used to respond to the disk storage command according to the time slot counter.
[0119] In some embodiments of this application, the acquisition unit 12 is used to acquire the tag identifier of the target tag when the target tag is a perception tag;
[0120] The determining unit 13 is used to determine the time slot counter based on the tag identifier and the number of sensing time slots; the time slot counter is different from the other time slot counters of other sensing tags; the other sensing tags are the remaining sensing tags in the target tags other than the sensing tag.
[0121] In some embodiments of this application, the determining unit 13 is used to determine the time slot counter based on the time slot parameters carried in the inventory instruction and the number of sensing time slots when the target tag is a non-sensing tag; the priority corresponding to the time slot counter of the sensing tag is higher than the priority corresponding to the time slot counter of the non-sensing tag.
[0122] In some embodiments of this application, the target tag further includes a reporting unit;
[0123] The reporting unit is used to report RN16 to the reader when the time slot counter identifies the current time slot as a reporting time slot.
[0124] In some embodiments of this application, the target tag further includes an updating unit;
[0125] The reporting unit is used to report the tag identifier to the reader upon receiving ACK information sent by the reader;
[0126] The update unit is used to update the time slot counter upon receiving the queryRep instruction sent by the reader, thereby obtaining the updated time slot counter.
[0127] In some embodiments of this application, the updating unit is used to update the time slot counter when the time slot counter indicates that the current time slot is not a reporting time slot and a queryRep instruction is received, so as to obtain an updated time slot counter.
[0128] It should be noted that, in practical applications, the receiving unit 11, the acquiring unit 12, the determining unit 13, and the responding unit 14 described above can be implemented by the first processor 15 on the target tag, specifically by a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processor), or FPGA (Field Programmable Gate Array), etc.; the data storage described above can be implemented by the first memory 16 on the target tag.
[0129] This application also provides a target label, such as... Figure 8 As shown, the target tag includes: a first processor 15, a first memory 16, and a first communication bus 17. The first memory 16 communicates with the first processor 15 through the first communication bus 17. The first memory 16 stores programs executable by the first processor 15. When the program is executed, the tag storage method described above is executed through the first processor 15.
[0130] In practical applications, the first memory 16 can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the first processor 15.
[0131] This application provides a computer-readable storage medium having a computer program thereon, which, when executed by a first processor 15, implements the tag storage method as described above.
[0132] For example, embodiments of this application also provide a computer program product, including a computer program that can be executed by a first processor 15 in a target tag to complete the steps described in the aforementioned tag inventory method.
[0133] Understandably, the target tag obtains the number of sensing time slots from the disking instructions issued by the reader. When the target tag is a sensing tag, the time slot counter of the sensing tag is determined based on the number of sensing time slots. When the target tag is a non-sensing tag, the time slot counter of the non-sensing tag can also be determined based on the number of sensing time slots. Thus, the disking process of the sensing tag is completed within the time slot corresponding to the time slot counter of the sensing tag, and the non-sensing tag is disked within the time slot corresponding to the time slot counter of the non-sensing tag. This ensures that the disking of non-sensing tags and the disking of sensing tags are carried out in different time slots, avoiding the problem of non-sensing tags preempting the disking time slots of sensing tags, thereby improving the efficiency of reading tag information.
[0134] Based on the same inventive concept as the above-mentioned tag inventory method, this application provides a reader / writer 2, corresponding to a tag inventory method; Figure 9 A schematic diagram of the composition structure of a reader / writer provided in an embodiment of this application. Figure 1 The reader / writer 2 may include:
[0135] Sending unit 21 is used to send inventory instructions to multiple target tags, wherein the inventory instructions carry the number of sensing time slots;
[0136] The execution unit 22 is used to perform an inventory process for the multiple target tags in the time slot corresponding to the number of sensing time slots.
[0137] In some embodiments of this application, the reader / writer further includes a generation unit;
[0138] The generation unit is used to generate alarm information when there is a time slot conflict or a time slot idle in the time slot corresponding to the sensing tag among the plurality of target tags; so as to use the alarm information to indicate that there is a time slot conflict or time slot idle in the time slot corresponding to the sensing tag.
[0139] In some embodiments of this application, the reader / writer further includes a distribution unit;
[0140] The issuing unit is used to issue inventory instructions to multiple target tags when the current periodic inventory time is reached;
[0141] The execution unit 22 is configured to, when the next periodic inventory time is reached and the inventory of some of the non-perceptual tags among the plurality of target tags has not yet been completed, stop continuing to execute the inventory process of the partial tags according to QueryRep, and reissue the inventory instruction to the plurality of target tags, so as to inventory the perceptual tags and the partial tags among the plurality of target tags according to the reissued inventory instruction.
[0142] It should be noted that, in practical applications, the aforementioned sending unit 21 and execution unit 22 can be implemented by the second processor 23 on the reader / writer, specifically by a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processor), or FPGA (Field Programmable Gate Array), etc.; the aforementioned data storage can be implemented by the second memory 24 on the reader / writer.
[0143] This application also provides a reader / writer, such as... Figure 10As shown, the reader includes a second processor 23, a second memory 24, and a second communication bus 25. The second memory 24 communicates with the second processor 23 through the second communication bus 25. The second memory 24 stores programs executable by the second processor 23. When the program is executed, the tag storage method described above is executed through the second processor 23.
[0144] In practical applications, the aforementioned second memory 24 can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the second processor 23.
[0145] This application provides a computer-readable storage medium having a computer program thereon, which, when executed by a second processor 23, implements the tag storage method as described above.
[0146] For example, embodiments of this application also provide a computer program product, including a computer program that can be executed by a second processor 23 in a reader to complete the steps described in the aforementioned tag storage method.
[0147] Understandably, by including the number of sensing time slots in the disk storage command, the reader enables the sensing tag receiving the command (i.e., when the target tag is a sensing tag) to determine its time slot counter based on the number of sensing time slots. Similarly, the non-sensing tag receiving the command (i.e., when the target tag is a non-sensing tag) can determine its time slot counter based on the number of sensing time slots. This allows the reader to complete the disk storage of the sensing tag within the time slot corresponding to the time slot counter of the sensing tag, and to disk the non-sensing tag within the time slot corresponding to the time slot counter of the non-sensing tag. This ensures that the disk storage of non-sensing tags and sensing tags occurs in different time slots, avoiding the problem of non-sensing tags preempting the disk storage time slots of sensing tags, thus improving the efficiency of reading tag information.
[0148] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0149] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0150] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0151] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0152] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.
Claims
1. A tag inventory method, characterized in that, Applied to target tags, the method includes: Receive disk storage instructions from the reader; Obtain the number of sensing time slots from the inventory instruction; The time slot counter is determined based on the number of sensing time slots; The disk storage command is responded to according to the time slot counter.
2. The method according to claim 1, characterized in that, The step of determining the time slot counter based on the number of sensed time slots includes: If the target label is a perception label, obtain the label identifier of the target label; The time slot counter is determined based on the tag identifier and the number of sensing time slots; the time slot counter is different from the other time slot counters of other sensing tags; the other sensing tags are the remaining sensing tags in the target tags other than the sensing tag.
3. The method according to claim 1, characterized in that, The step of determining the time slot counter based on the number of sensed time slots includes: When the target tag is a non-sensing tag, the time slot counter is determined according to the time slot parameters carried in the inventory instruction and the number of sensing time slots; the priority of the time slot counter corresponding to the sensing tag is higher than the priority of the time slot counter corresponding to the non-sensing tag.
4. The method according to claim 1, characterized in that, The step of responding to the disk storage command according to the time slot counter includes: When the time slot counter identifies the current time slot as a reporting time slot, RN16 is reported to the reader / writer.
5. The method according to claim 4, characterized in that, After reporting RN16 to the reader, the method further includes: Upon receiving an ACK message from the reader, the tag identifier is reported to the reader; Upon receiving the queryRep command sent by the reader, the time slot counter is updated to obtain the updated time slot counter.
6. The method according to claim 5, characterized in that, The method further includes: If the time slot counter indicates that the current time slot is not a reporting time slot and a queryRep command is received, the time slot counter is updated to obtain the updated time slot counter.
7. A label inventory method, characterized in that, Applied to a reader / writer, the method includes: An inventory instruction is issued to multiple target tags, and the inventory instruction carries the number of sensing time slots. In the time slot corresponding to the number of sensing time slots, the inventory process for the multiple target tags is performed.
8. The method according to claim 7, characterized in that, After issuing inventory instructions to multiple target tags, the method further includes: If there is a time slot conflict or a time slot is idle in the time slot corresponding to the sensing tag among the multiple target tags, an alarm message is generated; the alarm message is used to indicate that there is a time slot conflict or a time slot is idle in the time slot corresponding to the sensing tag.
9. The method according to claim 7, characterized in that, The step of issuing inventory instructions to multiple target tags includes: When the current periodic inventory time is reached, inventory instructions are issued to multiple target tags; Accordingly, after performing the inventory process for the multiple target tags in the time slot corresponding to the number of sensing time slots, the method further includes: When the next periodic inventory time arrives, and before the inventory of some of the non-perceptual tags among the multiple target tags is completed, the inventory process for the partial tags is stopped according to QueryRep, and the inventory instruction is reissued to the multiple target tags to inventory the perceptual tags and the partial tags among the multiple target tags according to the reissued inventory instruction.
10. A target label, characterized in that, The target labels include: The receiving unit is used to receive disk storage instructions issued by the reader / writer; An acquisition unit is used to acquire the number of sensing time slots from the inventory instruction; The determining unit is used to determine the time slot counter based on the number of sensing time slots; A response unit is used to respond to the disk storage command according to the time slot counter.
11. A reader / writer, characterized in that, The reader / writer includes: The sending unit is used to send inventory instructions to multiple target tags, wherein the inventory instructions carry the number of sensing time slots; An execution unit is used to perform an inventory process for the multiple target tags in the time slot corresponding to the number of sensing time slots.
12. A target label, characterized in that, The target labels include: The system comprises a first memory, a first processor, and a first communication bus. The first memory communicates with the first processor via the first communication bus. The first memory stores a tag-encoded program executable by the first processor. When the tag-encoded program is executed, the method described in any one of claims 1 to 6 is performed by the first processor.
13. A reader / writer, characterized in that, The reader / writer includes: A second memory, a second processor, and a second communication bus, wherein the second memory communicates with the second processor via the second communication bus, and the second memory stores a tag-encoded program executable by the second processor. When the tag-encoded program is executed, the method described in any one of claims 7 to 9 is performed by the second processor.
14. A storage medium storing a computer program thereon, applicable to a reader and a target tag, characterized in that, When the computer program is executed by the first processor, it implements the method according to any one of claims 1 to 6; when the computer program is executed by the second processor, it implements the method according to any one of claims 7 to 8.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the first processor, it implements the method according to any one of claims 1 to 6; when the computer program is executed by the second processor, it implements the method according to any one of claims 7 to 9.