Inventory method and apparatus, device, computer readable storage medium and computer program product
By filtering and connecting IoT devices to new base stations when they move out of the coverage area, the problem of inventory failure of mobility tags across base station ranges is solved, and inventory efficiency is improved.
Patent Information
- Application Number
- PCT/CN2025/094934
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-28
- Filing Date
- 2025-05-14
- Publication Date
- 2025-12-04
AI Technical Summary
In scenarios where passive IoT and cellular networks converge, mobile tags may fail to receive valid instructions after moving to the range of other base stations during the inventory process, resulting in inventory failure and reduced tag inventory efficiency.
By receiving instructions from the first base station, if it is determined that the IoT device has moved out of the coverage area, instructions from the base stations to be screened are received, and the second base station is selected from the base stations to be screened based on these instructions. The message carrying the first identifier and the unique identifier of the IoT device is received and sent to the second base station to realize cross-base station connection and inventory.
It improves the efficiency of inventory management for mobile IoT devices, ensuring continued effective inventory operations across base stations.
Smart Images

Figure CN2025094934_04122025_PF_FP_ABST
Abstract
Description
An inventory method, apparatus, device, computer-readable storage medium, and computer program product.
[0001] Cross-references to related applications
[0002] This application is based on and claims priority to Chinese Patent Application No. 2024106750221, filed on May 28, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of wireless communication technology, and in particular to an inventory method, apparatus, device, computer-readable storage medium, and computer program product. Background Technology
[0004] In scenarios where passive IoT and cellular networks converge, the limited capabilities of IoT devices (i.e., tags) prevent them from periodically and proactively reporting location information to the network (i.e., base stations). If the tags are mobile, they will no longer receive valid inventory instructions once they move to the range of other base stations during inventory checks, thus causing inventory checks to fail and reducing the efficiency of inventory checks. Summary of the Invention
[0005] This application provides an inventory method, apparatus, device, computer-readable storage medium, and computer program product that can solve the problem of reduced efficiency in inventorying tags in related technologies.
[0006] In a first aspect, embodiments of this application provide an inventory method applied to Internet of Things (IoT) devices, the method comprising:
[0007] Receive a first instruction sent by a first base station; wherein the first instruction carries a first identifier of the first base station;
[0008] If it is determined that the IoT device has moved out of the coverage area of the first base station, a second instruction sent by the base station to be screened is received;
[0009] Based on the second instruction, a second base station is selected from the base stations to be selected;
[0010] The system receives a third instruction sent by the second base station and sends a first message carrying the first identifier and the second identifier of the IoT device to the second base station based on the third instruction; wherein the second identifier is used to uniquely identify the IoT device.
[0011] Secondly, embodiments of this application provide an inventory method applied to a second base station, the method comprising:
[0012] Receive a second message sent by an IoT device, which carries a first identifier of the first base station;
[0013] Send a third instruction to the IoT device;
[0014] Determine a second number of second instructions to be sent to the IoT device, and send the second number of second instructions to the IoT device;
[0015] Receive a first message sent by the IoT device based on the third instruction and the second number of second instructions, carrying a first identifier of the first base station and a second identifier of the IoT device.
[0016] Thirdly, embodiments of this application provide a first inventory device applied to an Internet of Things (IoT) device, the device comprising:
[0017] The first receiving unit is configured to receive a first instruction sent by the first base station; wherein the first instruction carries a first identifier of the first base station.
[0018] The first determining unit is configured to receive a second instruction sent by the base station to be screened if it is determined that the Internet of Things device has moved out of the area corresponding to the first base station.
[0019] The first processing unit is configured to filter a second base station from the base stations to be filtered based on the second instruction;
[0020] The first sending unit is configured to receive a third instruction sent by the second base station, and send a first message carrying the first identifier and the second identifier of the IoT device to the second base station based on the third instruction; wherein the second identifier is used to uniquely identify the IoT device.
[0021] Fourthly, embodiments of this application provide a second inventory device applied to a second base station, the device comprising:
[0022] The second receiving unit is used to receive a second message sent by an Internet of Things device, which carries a first identifier of the first base station;
[0023] The second sending unit is used to send a third instruction to the IoT device;
[0024] The second determining unit is configured to determine a second number of second instructions to be sent to the IoT device, and send the second number of second instructions to the IoT device;
[0025] The second receiving unit is further configured to receive a first message sent by the IoT device based on the third instruction and the second number of second instructions, carrying the first identifier and the second identifier of the IoT device.
[0026] Fifthly, embodiments of this application provide an inventory counting device, the device comprising: a processor, a memory, and a communication bus;
[0027] The communication bus is used to realize the communication connection between the processor and the memory;
[0028] The processor is used to execute the inventory program in the memory to implement the steps of the inventory method described in the first or second aspect.
[0029] In a sixth aspect, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the inventory method described in the first or second aspect.
[0030] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the inventory method described in the first or second aspect.
[0031] The inventory method provided in this application embodiment first receives a first instruction sent by a first base station, and the first instruction carries a first identifier of the first base station. If it is determined that the IoT device has moved out of the coverage area of the first base station, a second instruction sent by a base station to be screened is received, and a second base station is screened from the base stations to be screened based on the second instruction. Then, a third instruction sent by the second base station is received, and a first message carrying the first identifier and the second identifier of the IoT device is sent to the second base station based on the third instruction. The second identifier is used to uniquely identify the IoT device. Attached Figure Description
[0032] Figure 1 is a schematic diagram of a tag inventory method in an inventory method provided in an embodiment of this application;
[0033] Figure 2(a) is a schematic diagram of a tag inventory method for a multi-base station scenario provided in an embodiment of this application;
[0034] Figure 2(b) is a schematic diagram of another tag inventory method for a multi-base station scenario provided in an embodiment of this application;
[0035] Figure 3 is a flowchart illustrating an inventory method provided in an embodiment of this application;
[0036] Figure 4 is a flowchart illustrating another inventory method provided in an embodiment of this application;
[0037] Figure 5 is a flowchart illustrating another inventory method provided in an embodiment of this application;
[0038] Figure 6 is a schematic diagram of the process of inventorying IoT devices in an inventory method provided in an embodiment of this application;
[0039] Figure 7 is a schematic diagram of the structure of a first inventory device provided in an embodiment of this application;
[0040] Figure 8 is a structural schematic diagram of a second inventory device provided in an embodiment of this application;
[0041] Figure 9 is a structural schematic diagram of an Internet of Things (IoT) device provided in an embodiment of this application;
[0042] Figure 10 is a schematic diagram of the structure of a second base station provided in an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] It should be noted that the serial numbers assigned to the objects described in this application, such as "first" and "second", are only used to distinguish the objects described and have no sequential or technical meaning.
[0045] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application. Before providing a further detailed description of the embodiments of this application, the nouns and terms used in the embodiments of this application will be explained, and the nouns and terms used in the embodiments of this application shall be interpreted as follows:
[0046] The Select command is used to select one or a group of tags.
[0047] The Query command is used to initialize and mark a new inventory cycle.
[0048] The Query Adjust command is used to adjust the Q value in a previous Query command.
[0049] The QueryRep command is used to instruct the tag to decrease the value of the slot counter.
[0050] ACK command: A tag used to acknowledge a response;
[0051] NAK command: Used to instruct the tag to return to the arbitrate state;
[0052] The Req_RN instruction: is used to instruct the tag to backscatter a new random number (i.e., RN16);
[0053] Read command: Used to read part or all of the contents of the tag's memory;
[0054] Write command: Used to write a word into the tag's memory;
[0055] The `kill` command is used to permanently disable a tag.
[0056] Lock command: Used to disable read and write access to the Kill command or access password and memory, or to allow read and write access to the Kill command or access password and memory.
[0057] It should be noted that the existing tag inventory process for Radio Frequency Identification (RFID) is shown in Figure 1. Specifically, Step 1: For a powered-on tag, the reader uses the Select command (as shown in Table 1) to select a tag whose specified memory content matches the Mask field. The matching tag performs the corresponding operation on its own Specific Reference Content (SL) flag or the selected Session flag (assert or deassert the SL and set the Session flag to A or B). Step 2: The reader sends a Query command (as shown in Table 2). Tags matching the SL and Session flags generate a 16-bit random number (RN16) and select the Q bit to fill the time slot counter. Step 3: The reader sends one or more QueryRep commands (as shown in Table 3). After receiving the QueryRep command, the tag decrements the time slot counter by one. After the tag's time slot counter reaches 0, the tag backscatters RN16. Step 4: After the reader can correctly receive the RN16 reflected by the tag, it sends an ACK command to the tag (as shown in Table 4 below) to confirm that there is no conflict in the tag access process. Step 5: After receiving the ACK command, the tag selects to reply with the device's Electronic Product Code (EPC) or a truncated EPC code (i.e., a part of the EPC code) according to the Truncate field in the previous Select command.
[0058] Table 1
[0059] Table 2
[0060] Table 3
[0061] Table 4
[0062] It should be noted that in the scenarios shown in Figures 2(a) and 2(b), to avoid interference between signaling from different cells (i.e., base stations) in overlapping coverage areas, the cell identifier (ID) needs to be added to the command to help the tag (i.e., IoT device) identify commands from different cells and execute the correct command. However, for mobile tags in this situation, once they move to the range of other base stations during the inventory process, they can no longer receive valid inventory commands (the base station identifiers in the received commands do not match), thus causing inventory failure for the tag. Considering the large number of mobile tags in the network, this will also greatly reduce the efficiency of tag inventory.
[0063] Based on this, this application provides an inventory method that can be applied to Internet of Things (IoT) devices. Referring to FIG3, the method includes the following steps:
[0064] Step 101: Receive the first instruction sent by the first base station.
[0065] The first instruction carries the first identifier of the first base station.
[0066] In this embodiment, the first instruction may refer to an instruction to start inventorying IoT devices; the first identifier may refer to the identifier of the first base station, which can be represented by ID1; the first base station may refer to the source base station, i.e., the base station that previously inventoried the IoT devices (i.e., tags); firstly, the source base station issues a Select instruction containing ID1, and selects the tag to be inventoried through the Select instruction. After receiving the Select instruction, the tag judges whether the fields of MemoryBank, Pointer, Length and Mask match. If they match, the tag performs the corresponding operation (assert or cancel assertion SL and set the Inventory flag of the tag's Session to A or B), and writes ID1 into the storage areas of both the initiating cell and the connecting cell; if they do not match, the tag ignores the Select instruction; then the source base station issues a first instruction containing ID1, thereby starting the inventory process of the source base station; it should be noted that when judging the match, the tag asserts or cancels assertion SL or sets the Inventory flag of the Session to A or B. The order in which the flag is set to A or B, and the operations of initiating the cell (i.e., initiating the base station) and connecting the cell (i.e., connecting the base station) are not specified; they can be executed in any order or simultaneously.
[0067] It should be noted that after receiving the first Select instruction whose MemoryBank, Pointer, and Length fields match the Mask field, or the first Query instruction whose Sel, Session, and Target fields match, the tag stores the base station identifier contained in the Select or Query instruction as both the initiating base station identifier and the connecting base station identifier. The initiating base station identifier identifies the base station at the start of the inventory process, used to determine whether to continue inventory and to forward the inventoryed tag information. The connecting base station identifier identifies the base station for which the corresponding instruction needs to be executed. Specifically, the tag maintains the initiating and connecting base station identifiers after ending an inventory process based on a certain condition. "No longer maintaining" can mean that the tag can leave the data stored in the memory areas containing the connecting and initiating base station identifiers unchanged, clear them, write invalid codes (invalid codes are specific sequences indicating that no valid base station identifier is currently stored), or write any sequence, and will not respond to any other Select or Query instructions that meet the writing rules for the connecting and initiating base station identifiers.
[0068] In one feasible implementation, the first instruction can specifically be a Query instruction.
[0069] Step 102: If it is determined that the IoT device has moved out of the coverage area of the first base station, receive the second instruction sent by the base station to be screened.
[0070] In this embodiment, the second instruction can refer to an instruction that can be used to instruct an IoT device to reduce the value of its own time slot counter, and the filtering instruction can continuously send a second instruction containing ID1; the base station to be filtered can refer to any base station; it can be determined first that the IoT device has moved out of the coverage area of the first base station, and if it is determined that the IoT device has moved out of the coverage area of the first base station, the second instruction sent by any base station can be received; in a feasible implementation, the second instruction can specifically refer to the QueryRep instruction.
[0071] Step 103: Select a second base station from the base stations to be screened based on the second instruction.
[0072] In this embodiment of the application, the second base station may refer to a base station that continues to inventory IoT devices; the second base station can be selected by filtering instructions based on subsequent timing or measurement parameters for the second instruction.
[0073] Step 104: Receive the third instruction sent by the second base station, and send a first message carrying the first identifier and the second identifier of the IoT device to the second base station based on the third instruction.
[0074] The second identifier is used to uniquely identify IoT devices.
[0075] In this embodiment, the third instruction may refer to the instruction from the second base station to continue inventorying the IoT device; the second identifier may refer to the identifier of the IoT device, which can be represented by ID2; when the IoT device receives the third instruction from the second base station, it indicates that the second base station accepts the continued inventory of the IoT device. Then, the IoT device can send a first message carrying the first and second identifiers to the second base station, indicating that the IoT device has switched from executing instructions from the first base station to executing instructions from the second base station. In one feasible implementation, the third instruction may refer to a continue inventory acceptance instruction (i.e., the Se_ACK instruction).
[0076] The inventory method provided in this application embodiment, when it is determined that the IoT device has moved out of the coverage area of the first base station that originally carried out the inventory, can re-determine a base station (i.e., a second base station) from the base stations to be screened, so as to continue to carry out the inventory of the IoT device through the second base station, thereby realizing the continuous inventory across base stations, instead of being unable to carry out the inventory of the IoT device after it moves out of the coverage area of the original base station as in related technologies, thereby improving the inventory efficiency of mobile IoT devices.
[0077] This application provides another inventory method, which can be applied to a second base station. Referring to FIG4, the method includes the following steps:
[0078] Step 201: Receive a second message sent by an IoT device, carrying a first identifier of the first base station.
[0079] In this embodiment of the application, the second message may refer to an "arrival indication message" backscattered by the IoT device, and the "arrival indication message" is an uplink message. Its payload includes at least an instruction code (which can uniquely identify the instruction), the ID of the base station to be connected, the ID of the initiating base station (i.e., the initiating cell ID), and the Session of the selected IoT device, and may also include a selection identifier (i.e., SL) and Inventoried flag information.
[0080] Step 202: Send the third instruction to the IoT device.
[0081] In this embodiment of the application, when it is determined that the second base station will continue to inventory the IoT devices, the second base station may send a third instruction to the IoT devices, and then the second base station will continue to inventory the IoT devices.
[0082] Step 203: Determine the second number of second instructions to be sent to the IoT device, and send the second number of second instructions to the IoT device.
[0083] In this embodiment of the application, the second quantity may refer to the number of second instructions sent by the second base station to the IoT device; during the storage process of the tag, a timer will run in the IoT device. The timer uses the crystal oscillator of the tag as the clock and starts after the tag receives the first matching instruction. Thereafter, the timer is decremented by 1 each time a second instruction is received, and it is decremented to 0 after receiving the second quantity of second instructions. At this time, the IoT device can perform subsequent operations.
[0084] Step 204: Receive a first message sent by the IoT device based on a third instruction and a second instruction of a second quantity, carrying a first identifier and a second identifier of the IoT device.
[0085] In this embodiment, after receiving the third instruction and a second number of second instructions in succession, the IoT device can send a first message carrying the first identifier of the first base station and the second identifier of the IoT device to the second base station, that is, the second base station completes the inventory of the IoT devices. In one feasible implementation, the second identifier can be the EPC code of the IoT device.
[0086] The inventory method provided in this application embodiment can receive a second message sent by an IoT device carrying a first identifier of a first base station, instructing a second base station to perform an inventory of the IoT device. Then, the second base station can continue to perform an inventory of the IoT device, instead of being unable to continue the inventory by another base station other than the original base station that performed the inventory of the IoT device, as is the case in related technologies. This achieves cross-base station continuous inventory, thereby improving the inventory efficiency of mobile IoT devices.
[0087] Based on the foregoing embodiments, this application provides yet another inventory method. Referring to Figures 5 and 6, the method includes the following steps:
[0088] Step 301: The IoT device receives the first instruction sent by the first base station.
[0089] The first instruction carries the first identifier of the first base station.
[0090] It should be noted that before the first instruction sent by the first base station, the first base station can issue a Select instruction containing cell ID1 to select the tag to be stored. After receiving the Select instruction, the tag determines whether the fields match based on the MemoryBank field, Pointer field, Length field, and Mask field. If they match, the tag performs the corresponding operation (assert or cancel assertion SL and set the Session's Inventory flag to A or B), and writes cell ID1 into the storage areas of both the initiating cell ID and the connected cell ID. If they do not match, the tag ignores the Select instruction. In this step, the order of the tag's assertion or cancel assertion SL operation or setting the Session's Inventory flag to A or B and the storage of the initiating cell ID and the connected cell ID is not specified, that is, they can be executed in any order or simultaneously.
[0091] Step 302: If the IoT device does not receive an instruction from the first base station within the first preset time period, it is determined that the IoT device has moved out of the coverage area of the first base station.
[0092] In this embodiment of the application, the first preset duration can be a duration set according to requirements and can be represented by T_max1. Since the IoT device has a built-in timer, when the IoT device does not receive any matching instruction sent by the first base station within the time period (i.e., T_max1) based on its own crystal oscillator timing, it can be determined that the IoT device has moved out of the coverage area of the first base station, and then the subsequent timing or measurement process for the second instruction can be started.
[0093] Step 303: The IoT device receives the second instruction sent by the base station to be screened.
[0094] It should be noted that after step 303, you can execute step 304, step 305, or step 306.
[0095] Step 304: If the IoT device receives the second instruction within the second preset time period, it determines the base station corresponding to the first received second instruction as the second base station.
[0096] In this embodiment, the second preset duration can be a duration set according to requirements and can be represented by T_max2. If no matching instruction is received from the first base station within T_max1, the timer built into the IoT device continues to count. If no matching instruction is received within the subsequent T1 time, that is, if the IoT device does not receive any matching instruction within the T_max1+T1 (i.e. T_max2) time, then after it receives the second instruction from any base station for the first time within the subsequent configured response time (which can be represented by T_offset), it determines that the first base station to send the second instruction is the second base station, and then the IoT device can immediately backscatter a second message.
[0097] It should be noted that if a tag still in the inventory process has timed out after T_max2, but receives a matching instruction without changing the connection to the base station, it will execute the instruction and restart the timer. The response time is an offset value, which may be affected by factors such as the tag's uplink transmission rate and the base station's processing latency.
[0098] Step 305: The IoT device determines the first number of second instructions sent by each base station to be screened within the third preset time period, and determines the second base station from the base stations to be screened based on the first number.
[0099] In this embodiment, the third preset duration can be a duration set according to requirements and can be represented by T_max3; the first quantity can refer to the number of second instructions sent by each base station to be screened; after no matching instruction sent by the first base station is received within T_max1, the timer built into the IoT device continues to count, and counts the second instructions received from the base stations to be screened (i.e., non-connected base stations) in the subsequent T2 time (i.e., count the received second instructions in T_max1+T2, i.e., T_max3). The number of second instructions sent by each base station to be screened is compared with the target threshold (i.e., Thr_count), and the base station with the most second instructions and a number greater than the target threshold can be selected as the second base station. It should be noted that if a second instruction sent by the second base station is received again within T_offset after T_max3, the IoT device can immediately backscatter a second message.
[0100] It should be noted that if the number of second instructions exceeds the target threshold and the base station with the most second instructions is not unique, the IoT device can randomly select one of the base stations as the second base station. If the number of second instructions received by the IoT device is less than or equal to Thr_count, and no matching instruction is received from the first base station within the subsequent T_offset, or if the IoT device's timer reaches T_max3 and a second base station has been selected, but no matching instruction or a second instruction matching the "second base station" is received within the subsequent T_offset; it should be noted that a matching instruction can refer to an instruction that matches the third identifier of the second base station and also meets other matching requirements (if any). If the instruction is a second instruction, then matching of the second base station's third identifier and Session is required; if the second instruction is a NAK instruction, then only matching of the second base station's third identifier is required.
[0101] Step 306: The IoT device determines the performance parameters of the signal transmitting the second instruction sent by each base station to be screened within the fourth preset time period, and determines the second base station from the base stations to be screened based on the performance parameters.
[0102] In this embodiment, the fourth preset duration can be a duration set according to requirements and can be represented by T_max4 (i.e., T_max1+T3); the performance parameter can refer to the signal strength or signal quality of the signal transmitting the second instruction sent by each base station to be screened; the tag continues to time, and in the subsequent T3 time period, the received signal strength or quality (RSRP or RSRQ) of the non-connected cell instruction is measured, and the base station with the best signal strength or quality that is greater than the target threshold (Thr_means) is selected as the second base station. It should be noted that after receiving the second instruction sent by the second base station again within the subsequently configured T_offset, a second message (i.e., arrival indication message) is immediately backscattered.
[0103] It should be noted that when the signal strength / signal quality received by the tag is greater than Thr_means, and the cell with the best signal strength or signal quality is not unique, the tag randomly selects one as the second base station (i.e., the proposed base station). If the signal strength or signal quality received by the tag is less than or equal to Thr_means, and no matching instruction (i.e., any instruction matching the first identifier of the first base station) is received within the subsequent T_offset time, or if the tag timer reaches T_max4 and a "proposed base station" has been selected, but no matching instruction or instruction matching the "third identifier of the proposed base station" is received within the subsequent T_offset time, a matching instruction can refer to an instruction that matches the first identifier of the first base station and also meets other matching requirements (if any). For example, if the instruction is a second instruction, the first identifier of the first base station and the session must match; if the instruction is a NAK instruction, only the first identifier of the first base station needs to match.
[0104] In one feasible implementation, signal strength can refer to Reference Signal Receiving Power (RSRP), and signal quality can refer to Reference Signal Receiving Quality (RSRQ).
[0105] It should be noted that, for steps 304 to 306: 1) If a tag that has not completed the inventory process receives a matching instruction within T_maxN+T_offset time after the last received matching instruction, the timer is immediately restarted, and if the tag is currently measuring, the measurement stops; 2) The thresholds for time, first quantity, and performance parameters can be configured by the network side or written into the tag by the tag manufacturer, or both of the above methods can be included; 3) If the tag supports selectable encoding and modulation methods, the tag backscatters the "arrival indication message" at the configured (network configuration or written into the tag) rate, encoding method, modulation method, and whether or not a pilot is included; otherwise, the second base station needs to perform blind detection on the received signal.
[0106] It should be noted that after step 306, steps 307 to 313 can be executed, or steps 308 to 313 can be executed directly.
[0107] Step 307: The IoT device sends a second message carrying the first identifier to the second base station.
[0108] It should be noted that the IoT device is powered on after receiving the excitation signal and remains powered on afterward. It should also be noted that the IoT device no longer maintains the initiating and connecting base stations after the last power outage. Therefore, the IoT device does not have valid information about the initiating and connecting base stations at this time.
[0109] Step 308: The second base station receives a second message sent by the IoT device, which carries the first identifier of the first base station.
[0110] It should be noted that after step 308, you can execute step 309, step 310, or steps 311 to 313.
[0111] Step 309: If the first identifier matches the third identifier of the second base station and the status of the second base station meets the inventory conditions, the second base station sends a third instruction to the IoT device.
[0112] In this embodiment, the matching of the first identifier and the third identifier of the first base station can mean that the first identifier and the third identifier are the same, and the state of the second base station meeting the inventory conditions can mean that the second base station is in a good state and can perform inventory of IoT devices. The first identifier and the third identifier can be matched, and the state of the second base station can be determined. When the first identifier and the third identifier match (i.e., the initiating base station is the second base station) and the state of the second base station meets the inventory conditions, a third instruction is sent to the IoT device. In one feasible implementation, the load of the second base station determines whether the second base station meets the inventory conditions. For example, if the current load of the second base station is heavy (e.g., performing inventory of tags with an expected quantity exceeding a certain threshold, or other urgent tasks), then the state of the second base station is determined not to meet the inventory conditions.
[0113] It should be noted that the third instruction can refer to the connection storage acceptance instruction (Se_ACK), where Se_ACK is a downlink instruction that includes at least the instruction code, the identifier of the base station sending the instruction, and the identifier of the initiating base station and the Session from the "Arrival Indication Message". Optional information may also include: respecifying the tag reply rate, encoding method, modulation method, and whether to use pilot signals. It can also specify an additional time slot number (i.e., S_offset). If this field is included, the newly arriving tag will have this additional value added to the original time slot number.
[0114] It should be noted that if the second base station stops inventorying the IoT device, the second base station will send a connection inventory rejection instruction (i.e., Se_NAK) to the IoT device. Se_NAK is a downlink instruction, and its payload includes at least the instruction code, the identifier of the base station sending the instruction, and the identifier of the initiating base station and the Session in the "Arrival Indication Message".
[0115] Step 310: If the first identifier and the third identifier do not match, and the identifier carried in the second message matches the identifier in the inventory configuration information of the second base station, the second base station sends a third instruction to the IoT device.
[0116] The inventory configuration information of the second base station includes a first identifier, or a first identifier and a fourth identifier corresponding to the IoT device; the fourth identifier is used to identify the process of the IoT device.
[0117] In this embodiment, the fourth identifier can refer to the Session of the IoT device. If the first identifier and the third identifier do not match, it means that the initiating base station is not the second base station. The matching of the identifier carried in the second message with the identifier in the inventory configuration information of the second base station can mean that the identifier carried in the second message is the first identifier, and the identifier in the inventory configuration information of the second base station is also the first identifier; or the identifier carried in the second message is the first identifier and the fourth identifier, and the identifier in the inventory configuration information of the second base station is also the first identifier and the fourth identifier. Specifically, the second base station records the identifier of the base station that is assisting and the corresponding Session list, and the identifier of the initiating base station (the first identifier of the first base station) and the Session contained in the "arrival indication message" are already in the list (i.e., it is already assisting the initiating base station in inventorying the Session). Then, the second base station sends the third instruction to the IoT device.
[0118] It should be noted that if the second base station is configured not to initiate tag inventory services to any non-base station, the second base station sends the Se_NAK command to the IoT device.
[0119] Step 311: If the first identifier does not match the third identifier and the identifier carried in the second message does not match the identifier in the inventory configuration information, the second base station sends a fourth instruction to the first base station.
[0120] In this embodiment of the application, the fourth instruction may refer to the instruction for communication between the second base station and the first base station, and the fourth instruction may specifically refer to the connection inventory query instruction. The connection inventory query instruction is a message exchanged between base stations through an interface. Its payload includes at least the instruction code, the identifier of the base station sending the instruction, and the Session fed back in the "Arrival Indication Message". Optional information may also include the selection identifier (i.e., SL) fed back in the "Arrival Indication Message" and the corresponding Inventory flag information. Optional information (such as SL and Inventory flag) can assist the base station receiving the "Connection Inventory Query Message" in verifying whether the tag requiring connection inventory was initiated by this base station, thereby determining whether to perform connection inventory.
[0121] Step 312: The second base station receives the confirmation instruction sent by the first base station in response to the fourth instruction.
[0122] The confirmation instruction is a message exchanged between base stations via an interface. Its payload includes at least: an instruction code, the identifier of the base station that sent the instruction, the Session in the "Continue Inventory Query Message", the continue inventory indication (indicating whether inventory needs to continue, for example: "0" indicates no more inventory, "1" indicates continue inventory), and N indicating the number of times the second instruction needs to be sent.
[0123] In this embodiment of the application, the second base station uses X n The interface sends a fourth instruction to the first base station. After receiving the fourth instruction, the first base station decides whether to continue storing the IoT device and then uses X... n The interface sends a confirmation command to the second base station.
[0124] Step 313: The second base station sends a third instruction to the IoT device based on the confirmation instruction and the status of the second base station.
[0125] In this embodiment of the application, after receiving the confirmation instruction, if the confirmation instruction indicates that the IoT device should be stored or the current load of the second base station is low, then a third instruction is sent to the IoT device.
[0126] It should be noted that if the confirmation instruction indicates that the IoT device should no longer be inventoried or the second base station is currently under heavy load (such as conducting an inventory of tags with an expected number exceeding a certain threshold, or other urgent tasks), then the Se_NAK instruction will be sent to the IoT device.
[0127] It should be noted that when an IoT device receives a third instruction or a Se_NAK instruction sent by a second base station (provided that the IoT device has not yet completed the inventory process), it can respond to the third instruction and the Se_NAK instruction based on the following rules: Specifically, for the scheme using step 304, if it has timed out for T_max1 and matches the first identifier and Session of the first base station in the Se_NAK instruction, then it ends the inventory process; if the tag has timed out for T_max1 and matches the first identifier and Session of the first base station in the Se_ACK instruction, the stored identifier of the connected base station is rewritten to the identifier of the second base station; if the matching Se_ACK instruction re-specifies the encoding method, modulation method, etc., then all subsequent replies from the tag will follow the updated method; if the matching Se_ACK instruction specifies a slot count additional value S_offset, then its original slot counter needs to be incremented by S_offset; otherwise, the tag ignores the Se_NAK instruction or the third instruction.
[0128] It should be noted that for the tag in step 304 that has timed out after T_max2, it may have already selected a "proposed base station" (it has sent an "arrival indication message") or it may not have selected a "proposed base station" (it has not yet sent an "arrival indication message"). The responses of the two tag states (those that have selected a "proposed base station" and those that have not) to the Se_NAK and Se_ACK commands can be unified; that is, the matching of the Se_NAK and Se_ACK commands is determined solely based on the identifier of the initiating base station and the Session. Based on this response method, tags using the scheme in step 304 that have timed out after T_max2 have the potential to access a cell more quickly based on a single Se_ACK command (i.e., access can be made to a base station once it is known that a base station allows continued storage of the initiating base station and the selected Session). For tags in steps 305 and 306, if the tag has timed out for T_max2, and the identifier of the base station sending the Se_NAK instruction matches the identifier of the "intended connection base station" and also matches the identifier of the initiating base station and the Session contained in the instruction, then the tag ends the inventory process. If the tag has timed out for T_max2, and the identifier of the base station sending the Se_ACK instruction matches the identifier of the "intended connection base station" and also matches the identifier of the initiating base station and the Session contained in the instruction, then the tag rewrites the stored connection base station ID to the identifier of the second base station. If the matching Se_ACK instruction re-specifies the encoding method, modulation method, and other information, then all subsequent replies from the tag will follow the updated method. If the matching Se_ACK instruction specifies a slot number addition value S_offset, then the tag's original slot counter needs to be incremented by S_offset; otherwise, the tag ignores the Se_NAK or Se_ACK instruction.
[0129] Step 314: The IoT device receives the third instruction sent by the second base station.
[0130] The third instruction is directed at the second message; the base stations to be screened include the second base station.
[0131] It should be noted that in steps 309 to 314, each base station can maintain two lists. One list records the ID of the base station assisting this base station in performing inventory and the corresponding inventory session; the other list records the ID of the base station that this base station is assisting and the corresponding session. Specifically, 1) If a base station records the identifiers of other base stations assisting in its inventory and the assisting Session, then when the initiating base station (denoted as A) decides to end the previously initiated inventory process for a certain Session (denoted as Session x), it can send an "Inventory End Indication" message (at this time, the direction identifier is "0") to all base stations assisting in the inventory of Session x through the interface; after receiving the message, in addition to deleting cell A from the list of cell base stations that B is assisting in the inventory, other subsequent actions include at least one of the following: sending a NAK command containing the identifier of the base station; stopping sending QueryRep commands for Session x; after receiving a message in the "Arrival Indication Message" that the initiating base station is A and the Session is Session x, issuing a Se_NAK command; no longer forwarding information such as the EPC code of the tag for Session x in the connection inventory process initiated by A to A. 2) If a base station records the identifiers of other base stations it is assisting, when this base station (denoted as C) needs to shut down or needs to terminate the assisting inventory process in a certain session (denoted as Session y) early due to some reason (such as base station shutdown or emergency inventory task), it can send an "inventory completion indication" message to all other base stations it is assisting in the inventory of Session y (at this time, the direction identifier is "1"). After receiving the message, other base stations will remove base station C from the list of those assisting this base station in the inventory.
[0132] Step 315: The second base station determines the second number of second instructions to be sent to the IoT device.
[0133] In this embodiment, the rule for determining the number of second instructions sent to the IoT device in the second instruction is as follows: If the IoT device (i.e., Session) has already been in the inventory process and the Se_ACK instruction does not specify S_offset, then the number of second instructions sent to the Session is max(M, N), where M is the number of second instructions that need to be sent in the previous inventory process, and N is the number of second instructions that need to be sent in the "query confirmation message"; if the Session has already been in the inventory process and the Se_ACK instruction specifies S_offset, then the number of second instructions sent to the Session is max(M, N+S_offset), where M is the number of second instructions that need to be sent in the previous inventory process, and N is the number of second instructions that need to be sent in the "query confirmation message"; otherwise, the number of second instructions sent to the Session is N; that is, based on the above rules, the second base station continues to issue second instructions to the IoT device (i.e., Session).
[0134] Step 316: The second base station sends a response instruction carrying a third identifier to the IoT device based on the third instruction and the second number of second instructions.
[0135] In this embodiment, after the second base station successively sends the third instruction and the second number of second instructions to the IoT device, the IoT device's time slot counter begins to decrease and, after decreasing to 0, backscatters RN16. When the second base station can correctly receive the backscattered RN16 from the IoT device, it issues a response instruction containing the third identifier of the second base station. In one feasible implementation, the response instruction may refer to the ACK instruction.
[0136] Step 317: The IoT device receives the second instruction and response instruction sent by the second base station.
[0137] The response command is sent by the second base station based on the indication command sent by the IoT device.
[0138] In this embodiment of the application, the instruction may refer to RN16.
[0139] Step 318: The IoT device sends a first message carrying the first identifier and the second identifier to the second base station based on the second instruction and the response instruction.
[0140] In this embodiment of the application, after receiving the second instruction and the response instruction in succession, the IoT device backscatters the first message carrying the first identifier and the second identifier to the second base station.
[0141] Step 319: The second base station receives a first message sent by the IoT device, which carries a first identifier and a second identifier.
[0142] It should be noted that the above embodiments may further include the following steps:
[0143] Step 320: The second base station sends a third message carrying a second identifier to the first base station based on the first message carrying the first identifier.
[0144] In this embodiment, after receiving a first message containing a first identifier and a second identifier, the second base station can communicate with the first base station through an interface. Specifically, the second base station can carry the first identifier of the first base station and send a third message carrying the second identifier to the first base station through the interface. That is, the second base station forwards the second identifier of the IoT device stored on disk to the first base station. It should be noted that the third message also includes information such as SL, Session, and Inventory flag.
[0145] Step 321: The second base station receives the feedback message sent by the first base station in response to the third message.
[0146] Step 322: The second base station sends processing instructions for the IoT device to the IoT device.
[0147] The processing instructions are sent based on feedback messages.
[0148] In this embodiment of the application, after receiving the second identifier and other information of the IoT device, the first base station sends a message (i.e., a feedback message) to the second base station. The feedback message indicates whether to issue a follow-up instruction to the IoT device and what kind of follow-up instruction to issue (if no follow-up operation is required from the second base station, the second base station may simply reply with a confirmation message or not reply at all).
[0149] In other embodiments of this application, the tag will end the inventory process when at least one of the following conditions is met: Condition 1: The tag loses power; Condition 2: The tag receives a NAK instruction matching the identifier of the connected base station; or the tag is permanently disabled based on a matching Kill instruction; Condition 3: The tag is in the process of an inventory round and receives a Select, Challenge, or Query instruction matching the identifier of the connected base station; Condition 4: For the tag in step 304, if it has timed out for T_max2 and received a Se_NAK instruction matching the identifier and Session of the initiating base station; For the tag in step 305 or 306, if it has timed out for T_max3 or T_max4 and received a Se_NAK instruction matching the identifier of the "intended connected base station" and both the identifier and Session of the initiating base station; Condition 5: If the tag uses the scheme in step 304, it has timed out for T_max2 and has not received a matching instruction or any QueryRep instruction within the subsequent T_offset time; It should be noted that the matching instruction can refer to an instruction that matches the identifier of the connected base station and also meets other matching requirements (if any). If the instruction is a QueryRep instruction, then matching of the cell ID and session is required; if the instruction is a NAK instruction, only matching of the base station identifier is required. Condition 6: If the tag uses the scheme in step 305, within the T_max3 measurement time after T_max1 timeout, the number of cell instructions received is not greater than the set threshold value, and no matching instruction (any instruction matching the identifier of the connected base station) is received within the subsequent T_offset time. Alternatively, the tag timeout reaches T_max3 and has selected "intended base station to connect to", but no matching instruction or QueryRep instruction matching the "identifier of the intended base station to connect to" is received within the subsequent T_offset time; it should be noted that a matching instruction can refer to an instruction that matches the identifier of the connected base station and also meets other matching requirements (if any). For example: If the instruction is a QueryRep instruction, matching of the base station identifier and session is required; if the instruction is a NAK instruction, only matching of the base station identifier is required. Condition 7: If the tag uses the scheme in step 306, within the measurement time T_max4 after T_max1 timeout, the received signal strength or quality (RSRP or RSRQ) of the cell is not greater than the threshold, and no matching instruction (any instruction matching the identifier of the connected base station) is received within the subsequent T_offset time. Alternatively, the tag timeout reaches T_max1+T_max2 and has selected the "proposed base station", but no matching instruction or QueryRep instruction matching the "identifier of the proposed base station" is received within the subsequent T_offset time. It should be noted that a matching instruction can refer to an instruction that matches the identifier of the connected base station and also meets other matching requirements (if any).For example: if the instruction is a QueryRep instruction, then the identifier of the connected base station and the session need to match; if the instruction is a NAK instruction, then only the identifier of the connected base station needs to match. Condition 8: After the tag reflects a message, it does not receive any matching reply within the time threshold (T_thres).
[0150] The inventory method provided in this application embodiment allows an IoT device to re-determine a base station (i.e., a second base station) from the pool of base stations when it is determined that the IoT device has moved out of the coverage area of the first base station that originally conducted the inventory. Then, a second message carrying the first identifier of the first base station can be sent to the second base station to instruct the second base station to conduct an inventory of the IoT device. The IoT device can then continue to be inventoried through the second base station, thereby achieving continuous inventory across base stations. This is different from the related technologies where the IoT device cannot be inventoried after it moves out of the coverage area of the original base station, thus improving the inventory efficiency of mobile IoT devices.
[0151] Based on the foregoing embodiments, this application provides a first inventory device, which can be applied to the inventory methods provided in the embodiments corresponding to FIG3 and FIG5. Referring to FIG7, the first inventory device 4 may include: a first receiving unit 41, a first determining unit 42, a first processing unit 43, and a first sending unit 44, wherein:
[0152] The first receiving unit 41 is used to receive a first instruction sent by the first base station; wherein the first instruction carries a first identifier of the first base station.
[0153] The first determining unit 42 is used to receive a second instruction sent by the base station to be screened if it is determined that the Internet of Things device has moved out of the area corresponding to the first base station.
[0154] The first processing unit 43 is used to filter the second base station from the base stations to be filtered based on the second instruction;
[0155] The first sending unit 44 is used to receive a third instruction sent by the second base station, and send a first message carrying a first identifier and a second identifier of the Internet of Things device to the second base station based on the third instruction; wherein, the second identifier is used to uniquely identify the Internet of Things device.
[0156] In other embodiments of this application, the first processing unit 43 is further configured to perform the following steps:
[0157] If no instruction is received from the first base station within the first preset time period, it is determined that the IoT device has moved out of the coverage area of the first base station.
[0158] In other embodiments of this application, the first processing unit 43 is further configured to perform the following steps:
[0159] If a second instruction is received within the second preset time period, the base station corresponding to the first received second instruction is determined to be the second base station.
[0160] Alternatively, determine the first number of second instructions sent by each base station to be screened within a third preset time period, and determine the second base station from the base stations to be screened based on the first number;
[0161] Alternatively, determine the performance parameters of the signals transmitting the second instruction sent by each base station to be screened within a fourth preset time period, and determine the second base station from the base stations to be screened based on the performance parameters.
[0162] In other embodiments of this application, the first sending unit 44 is further configured to perform the following steps:
[0163] Send a second message carrying the first identifier to the second base station;
[0164] In other embodiments of this application, the first sending unit 44 is further configured to perform the following steps:
[0165] Receive a third instruction sent by the second base station; wherein the third instruction is sent in response to the second message; the base station to be screened includes the second base station;
[0166] Receive a second instruction and a response instruction sent by a second base station; wherein the response instruction is sent by the second base station based on an indication instruction sent by an IoT device;
[0167] Based on the second instruction and the response instruction, a message carrying the first identifier and the second identifier is sent to the second base station.
[0168] It should be noted that the specific implementation process of the steps executed by each module in the embodiments of this application can be referred to the implementation process of the inventory method provided in the embodiments corresponding to Figures 3 and 5, which will not be repeated here.
[0169] The first inventory device provided in the embodiments of this application, when it is determined that the Internet of Things (IoT) device has moved out of the coverage area of the first base station that originally carried out the inventory, can re-determine a base station (i.e., a second base station) from the base stations to be screened, so as to continue to carry out the inventory of the IoT device through the second base station, thereby realizing the continuous inventory across base stations, instead of being unable to carry out the inventory of the IoT device after it moves out of the coverage area of the original base station as in related technologies, thereby improving the inventory efficiency of mobile IoT devices.
[0170] Based on the foregoing embodiments, this application provides a second inventory device, which can be applied to the inventory methods provided in the embodiments corresponding to FIG4 and FIG5. Referring to FIG8, the second inventory device 5 may include: a second receiving unit 51, a second sending unit 52, and a second determining unit 53, wherein:
[0171] The second receiving unit 51 is used to receive a second message sent by an Internet of Things device, which carries a first identifier of the first base station;
[0172] The second sending unit 52 is used to send a third instruction to the Internet of Things device;
[0173] The second determining unit 53 is used to determine the second number of second instructions to be sent to the Internet of Things (IoT) device, and to send the second number of second instructions to the IoT device.
[0174] The second receiving unit 51 is further configured to receive a first message sent by the IoT device based on a third instruction and a second number of second instructions, carrying a first identifier and a second identifier of the IoT device.
[0175] In other embodiments of this application, the second sending unit 52 is further configured to perform the following steps:
[0176] If the first identifier matches the third identifier of the second base station and the status of the second base station meets the inventory conditions, a third instruction is sent to the IoT device.
[0177] If the first identifier and the third identifier do not match, and the identifier carried in the second message matches the identifier in the inventory configuration information of the second base station, a third instruction is sent to the IoT device; wherein, the inventory configuration information of the second base station includes the first identifier, or the first identifier and the fourth identifier corresponding to the IoT device; the fourth identifier is used to identify the process of the IoT device.
[0178] In other embodiments of this application, the second sending unit 52 is further configured to perform the following steps:
[0179] If the first identifier does not match the third identifier and the identifier carried in the second message does not match the identifier in the inventory configuration information, a fourth instruction is sent to the first base station;
[0180] Receive the confirmation command sent by the first base station in response to the fourth command;
[0181] Based on the confirmation command and the status of the second base station, a third command is sent to the IoT device.
[0182] In other embodiments of this application, the second receiving unit 51 is further configured to perform the following steps:
[0183] Based on the third instruction and the second instruction of the second quantity, a response instruction carrying a third identifier is sent to the IoT device;
[0184] Receive a first message sent by an IoT device, which carries a first identifier and a second identifier.
[0185] In other embodiments of this application, the second sending unit 52 is further configured to perform the following steps:
[0186] Based on the first message carrying the first identifier, a third message carrying the second identifier is sent to the first base station;
[0187] Receive feedback messages from the first base station in response to the third message;
[0188] Send processing instructions for IoT devices to IoT devices; wherein the processing instructions are sent based on feedback messages.
[0189] It should be noted that the specific implementation process of the steps executed by each module in the embodiments of this application can be referred to the implementation process of the inventory method provided in the embodiments corresponding to Figures 4 and 5, which will not be repeated here.
[0190] The second inventory device provided in the embodiments of this application can receive a second message sent by an IoT device carrying a first identifier of a first base station to instruct the second base station to perform an inventory of the IoT device. After that, the second base station can continue to perform an inventory of the IoT device, instead of being unable to continue the inventory by another base station other than the original base station that performed the inventory of the IoT device, as is the case in related technologies. This realizes cross-base station continuous inventory, thereby improving the inventory efficiency of mobile IoT devices.
[0191] Based on the foregoing embodiments, embodiments of this application provide an Internet of Things (IoT) device that can be applied to the inventory methods provided in the embodiments corresponding to Figures 3 and 5. Referring to Figure 9, the IoT device 6 may include: a processor 61, a memory 62, and a communication bus 63, wherein:
[0192] Communication bus 63 is used to realize the communication connection between processor 61 and memory 62;
[0193] The processor 61 is used to execute the inventory program in the memory 62 to perform the following steps:
[0194] Receive a first instruction sent by a first base station; wherein the first instruction carries a first identifier of the first base station;
[0195] If it is determined that the IoT device has moved out of the coverage area of the first base station, the second instruction sent by the base station to be screened is received.
[0196] The second base station is selected from the base stations to be selected based on the second instruction;
[0197] The system receives a third instruction from the second base station and sends a first message carrying a first identifier and a second identifier of the IoT device to the second base station based on the third instruction; wherein the second identifier is used to uniquely identify the IoT device.
[0198] In other embodiments of this application, processor 61 is used to execute an inventory program in memory 62 to perform the following steps:
[0199] If no instruction is received from the first base station within the first preset time period, it is determined that the IoT device has moved out of the coverage area of the first base station.
[0200] In other embodiments of this application, processor 61 is used to execute an inventory program in memory 62 to filter a second base station from the base stations to be filtered based on a second instruction, in order to implement the following steps:
[0201] If a second instruction is received within the second preset time period, the base station corresponding to the first received second instruction is determined to be the second base station.
[0202] Alternatively, determine the first number of second instructions sent by each base station to be screened within a third preset time period, and determine the second base station from the base stations to be screened based on the first number;
[0203] Alternatively, determine the performance parameters of the signals transmitting the second instruction sent by each base station to be screened within a fourth preset time period, and determine the second base station from the base stations to be screened based on the performance parameters.
[0204] In other embodiments of this application, processor 61 is used to execute an inventory program in memory 62 to perform the following steps:
[0205] Send a second message carrying the first identifier to the second base station;
[0206] In other embodiments of this application, the processor 61 is configured to execute the inventory program in the memory 62 to send a message carrying a first identifier and a second identifier of the IoT device to the second base station based on a third instruction, in order to implement the following steps:
[0207] Receive a third instruction sent by the second base station; wherein the third instruction is sent in response to the second message; the base station to be screened includes the second base station;
[0208] Receive a second instruction and a response instruction sent by a second base station; wherein the response instruction is sent by the second base station based on an indication instruction sent by an IoT device;
[0209] Based on the second instruction and the response instruction, a message carrying the first identifier and the second identifier is sent to the second base station.
[0210] It should be noted that the specific details of the steps executed by the processor can be found in the implementation process of the inventory method provided in the embodiments corresponding to Figures 3 and 5, and will not be repeated here.
[0211] The IoT device provided in this application embodiment, when it is determined that the IoT device has moved out of the coverage area of the first base station that originally carried it out for inventory, can re-determine a base station (i.e., a second base station) from the base stations to be screened, so as to continue to carry out inventory of the IoT device through the second base station, thereby realizing cross-base station continuous inventory, instead of being unable to carry out inventory of the IoT device after it moves out of the coverage area of the original base station as in related technologies, thereby improving the inventory efficiency of mobile IoT devices.
[0212] Based on the foregoing embodiments, embodiments of this application provide a second base station, which can be applied to the inventory method provided in the embodiments corresponding to FIG4 and FIG5. Referring to FIG10, the IoT device 7 may include: a processor 71, a memory 72, and a communication bus 73, wherein:
[0213] Communication bus 73 is used to realize the communication connection between processor 71 and memory 72;
[0214] The processor 71 is used to execute the inventory program in the memory 72 to perform the following steps:
[0215] Receive a second message sent by an IoT device, which carries a first identifier of the first base station;
[0216] Send a third command to the IoT device;
[0217] Determine a second number of second instructions to be sent to the IoT device, and send the second number of second instructions to the IoT device;
[0218] Receive a first message from an IoT device, which carries a first identifier and a second identifier of the IoT device, based on a third instruction and a second number of second instructions.
[0219] In other embodiments of this application, processor 71 is used to execute the inventory program in memory 72 to send a third instruction to the Internet of Things device to achieve the following steps:
[0220] If the first identifier matches the third identifier of the second base station and the status of the second base station meets the inventory conditions, a third instruction is sent to the IoT device.
[0221] If the first identifier and the third identifier do not match, and the identifier carried in the second message matches the identifier in the inventory configuration information of the second base station, a third instruction is sent to the IoT device; wherein, the inventory configuration information of the second base station includes the first identifier, or the first identifier and the fourth identifier corresponding to the IoT device; the fourth identifier is used to identify the process of the IoT device.
[0222] In other embodiments of this application, processor 71 is used to execute an inventory program in memory 72 to perform the following steps:
[0223] If the first identifier does not match the third identifier and the identifier carried in the second message does not match the identifier in the inventory configuration information, a fourth instruction is sent to the first base station;
[0224] Receive the confirmation command sent by the first base station in response to the fourth command;
[0225] Based on the confirmation command and the status of the second base station, a third command is sent to the IoT device.
[0226] In other embodiments of this application, processor 71 is configured to execute a second instruction based on a third instruction and a second number of instructions of the inventory program in memory 72, and receive a first message carrying a first identifier of a first base station and a second identifier of an IoT device to perform the following steps:
[0227] Based on the third instruction and the second instruction of the second quantity, a response instruction carrying a third identifier is sent to the IoT device;
[0228] Receive a first message sent by an IoT device, which carries a first identifier and a second identifier.
[0229] In other embodiments of this application, processor 71 is used to execute an inventory program in memory 72 to perform the following steps:
[0230] Based on the first message carrying the first identifier, a third message carrying the second identifier is sent to the first base station;
[0231] Receive feedback messages from the first base station in response to the third message;
[0232] Send processing instructions for IoT devices to IoT devices; wherein the processing instructions are sent based on feedback messages.
[0233] It should be noted that the specific details of the steps executed by the processor can be found in the implementation process of the inventory method provided in the embodiments corresponding to Figures 4 and 5, and will not be repeated here.
[0234] The second base station provided in this application embodiment can receive a second message sent by an IoT device carrying a first identifier of the first base station, instructing the second base station to perform an inventory of the IoT device. After that, the second base station can continue to perform an inventory of the IoT device, instead of the inability to perform an inventory by another base station other than the original base station that performed the inventory of the IoT device, as is the case in related technologies. This realizes cross-base station continuous inventory, thereby improving the inventory efficiency of mobile IoT devices.
[0235] Based on the foregoing embodiments, this application provides a computer-readable storage medium that stores one or more programs that can be executed by one or more processors to implement the steps in the inventory method provided in the embodiments corresponding to FIG3, FIG4 and FIG5.
[0236] Based on the foregoing embodiments, this application also provides a computer program product, including a computer program that can be executed by the processor 61 of the Internet of Things device 6 and the processor 71 of the second base station 7 to implement the steps in the inventory method provided in the embodiments corresponding to FIG3, FIG4 and FIG5.
[0237] It should be noted that the aforementioned computer-readable storage media can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various electronic devices that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0238] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0239] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0240] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0241] 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, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0242] 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 that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0243] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0244] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for inventorying, applied to an Internet of Things (IoT) device, the method comprising: receiving a first instruction sent by a first base station, wherein the first instruction carries a first identifier of the first base station; receiving a second instruction sent by a to-be-screened base station, if it is determined that the IoT device moves out of a coverage area of the first base station; screening a second base station from the to-be-screened base station based on the second instruction; receiving a third instruction sent by the second base station, and sending a first message carrying the first identifier and a second identifier of the IoT device to the second base station based on the third instruction, wherein the second identifier is used to uniquely identify the IoT device. Before the receiving the second instruction sent by the to-be-screened base station, if it is determined that the IoT device moves out of the coverage area of the first base station, the method further comprises: determining that the IoT device moves out of the coverage area of the first base station, if no instruction sent by the first base station is received within a first preset time period. The screening the second base station from the to-be-screened base station based on the second instruction comprises: determining that a first base station corresponding to a first received second instruction is the second base station, if the second instruction is received within a second preset time period; or determining a first number of the second instructions sent by each to-be-screened base station within a third preset time period, and determining the second base station from the to-be-screened base station based on the first number; or determining a performance parameter of a signal carrying the second instruction received from each to-be-screened base station within a fourth preset time period, and determining the second base station from the to-be-screened base station based on the performance parameter. Before the receiving the third instruction sent by the second base station, the method further comprises: sending a second message carrying the first identifier to the second base station. Correspondingly, the sending the message carrying the first identifier and the second identifier of the IoT device to the second base station based on the third instruction comprises: receiving the third instruction sent by the second base station, wherein the third instruction is sent in response to the second message; the to-be-screened base station comprises the second base station; receiving the second instruction and a response instruction sent by the second base station, wherein the response instruction is sent by the second base station based on an indication instruction sent by the IoT device; and sending the message carrying the first identifier and the second identifier to the second base station based on the second instruction and the response instruction.
2. The method of claim 1, wherein, 5.A method for inventorying, applied to a second base station, the method comprising: receiving a second message carrying a first identifier of a first base station sent by an IoT device; sending a third instruction to the IoT device; determining a second number of second instructions sent to the IoT device, and sending the second number of second instructions to the IoT device; receiving a first message carrying the first identifier of the first base station and a second identifier of the IoT device sent by the IoT device based on the third instruction and the second number of second instructions. The sending the third instruction to the IoT device comprises:
3. The method of claim 1, wherein, 4. The method of claim 1, wherein, 6. The method of claim 5, wherein, if the first identity matches a third identity of the second base station and a state of the second base station satisfies an inventory condition, sending the third instruction to the Internet of Things device; if the first identity does not match the third identity and an identity carried in the second message matches an identity in inventory configuration information of the second base station, sending the third instruction to the Internet of Things device; wherein the inventory configuration information of the second base station comprises the first identity, or the first identity and a fourth identity corresponding to the Internet of Things device; the fourth identity is used to identify a process of the Internet of Things device.
7. The method of claim 6, wherein, The method further comprises: if the first identity does not match the third identity and the identity carried in the second message does not match the identity in the inventory configuration information, sending a fourth instruction to the first base station; receiving an acknowledgement instruction sent by the first base station for the fourth instruction; sending the third instruction to the Internet of Things device based on the acknowledgement instruction and the state of the second base station.
8. The method of claim 5, wherein, The receiving, based on the third instruction and the second number of second instructions, of a first message carrying a first identity of the first base station and a second identity of the Internet of Things device comprises: sending, based on the third instruction and the second number of second instructions, a response instruction carrying the third identity to the Internet of Things device; receiving a first message carrying the first identity and the second identity sent by the Internet of Things device.
9. The method of claim 5, wherein, The method further comprises: sending, based on the first message carrying the first identity, the third message carrying the second identity to the first base station; receiving a feedback message sent by the first base station for the third message; sending a processing instruction for the Internet of Things device to the Internet of Things device; wherein the processing instruction is sent based on the feedback message.
10. A first inventory device applied to an Internet of Things device, the device comprising: a first receiving unit configured to receive a first instruction sent by a first base station; wherein the first instruction carries a first identity of the first base station; a first determining unit configured to, if it is determined that the Internet of Things device moves out of an area corresponding to the first base station, receive a second instruction sent by a to-be-screened base station; a first processing unit configured to screen a second base station from the to-be-screened base station based on the second instruction; a first sending unit configured to receive a third instruction sent by the second base station, and send a first message carrying the first identity and a second identity of the Internet of Things device to the second base station based on the third instruction; wherein the second identity is used to uniquely identify the Internet of Things device.
11. A second inventory device applied to a second base station, the device comprising: a second receiving unit configured to receive a second message carrying a first identity of a first base station sent by an Internet of Things device; a second sending unit configured to send a third instruction to the Internet of Things device; a second determining unit configured to determine a second number of second instructions sent to the Internet of Things device, and send the second number of second instructions to the Internet of Things device; The second receiving unit is further configured to receive a first message carrying the first identifier and a second identifier of the IoT device, which is sent by the IoT device based on the third instruction and the second number of second instructions.
12. An inventory device, the device comprising: a processor, a memory, and a communication bus; the communication bus is configured to realize communication connection between the processor and the memory; the processor is configured to execute an inventory program in the memory to realize the steps of the inventory method according to any one of claims 1-4 or 5-9. 13.A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the inventory method according to any one of claims 1-4 or 5-9. 14.A computer program product comprising a computer program which, when executed by a processor, implements the steps of the inventory method according to any one of claims 1-4 or 5-9.
Citation Information
Patent Citations
Label positioning method and related equipment
CN114925788A
Label inventory method and device, node and storage medium
CN117933277A
Information transmission method and device and storage medium
CN117956552A
LPRF device wake up using wireless tag
US20100067420A1