Article retrieval method and system based on door lock label

Through the multi-layer scanning instructions and result aggregation technology of door lock labels, the problem of inaccurate search results in the multi-layer label environment is solved, efficient and accurate item positioning is achieved, network redundancy is reduced, and user experience is improved.

CN120386900AActive Publication Date: 2025-07-29DESSMANN CHINA MACHINERY & ELECTRONICS +1

Patent Information

Application Number
CN202510773745.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-07-29
Estimated Expiration
2045-06-11

AI Technical Summary

Technical Problem

The existing item retrieval system does not aggregate and filter the search results in a multi-layer label environment, and lacks deep scanning capabilities in misses, resulting in users wasting time and energy when searching for items.

Method used

Through the multi-layer scanning instructions of the door lock tag, an extended query network is established, scanning results are aggregated and filtered, and the GATT protocol is used to establish connections with tags, switching scanning modes, generating multi-layer tag collections, and feedback the final location and path through the encrypted channel.

Benefits of technology

It realizes efficient and accurate item retrieval in a multi-layer label environment, reduces network redundancy, and improves the accuracy and efficiency of item positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386900A_ABST
    Figure CN120386900A_ABST
Patent Text Reader

Abstract

The invention discloses an article retrieval method and system based on door lock labels, and the method comprises the steps: initial query request processing: obtaining a missed result and a to-be-queried label list according to an article query request sent by a user through a mobile terminal; multi-layer scanning instruction issuing: according to the to-be-inquired label list, establishing connection between a door lock and a first-layer label, issuing a scanning instruction containing a target Tag-DID and a door lock ID, and obtaining an extended inquiry network; aggregating and filtering scanning results: aggregating the query requests of the same target Tag-DID according to the scanning results of each layer of tags in the extended query network to obtain a de-duplicated scanning record; and target position positioning and feedback: extracting tag position information of a hit target Tag-DID according to a scanning record returned by the deepest layer of tag, and generating a query result containing a target position and a path. By utilizing the embodiment of the invention, comprehensive and efficient article retrieval can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of retrieval technology, and particularly relates to an article retrieval method and system based on door lock tags. Background Art

[0002] With the rapid development of Internet of Things technology, smart home systems are becoming increasingly popular. Among them, smart door locks not only enhance home security but also integrate various functions such as Bluetooth communication and article retrieval, greatly facilitating daily life. However, existing article retrieval systems face some challenges in practical applications, including the limitations of single-layer tag scanning, inaccurate aggregation and filtering of retrieval results in multi-layer tag environments, and the lack of deep scanning ability in case of non-hit situations. This wastes users' time and energy when looking for articles. Summary of the Invention

[0003] The purpose of the present invention is to provide an article retrieval method and system based on door lock tags to solve the deficiencies in the prior art and achieve comprehensive and efficient article retrieval.

[0004] An embodiment of the present application provides an article retrieval method based on door lock tags, and the method includes: Initial query request processing: According to the article query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a non-hit result and a list of tags to be queried; Multi-layer scanning instruction issuance: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scanning instruction including the target Tag-DID and the door lock ID; wherein, the first-layer tags switch to the central mode to scan adjacent tags, generate the second-layer tag set, and update the non-hit result according to the scanning result to obtain an extended query network; Aggregation and filtering of scanning results: According to the scanning results of each layer of tags in the extended query network, the query requests for the same target Tag-DID are aggregated; wherein, if the same tag receives the same query instructions from multiple superiors, it only responds to the earliest received instruction and returns the scanning result through the original path to obtain a deduplicated scanning record; Target location positioning and feedback: According to the scanning record returned by the deepest layer of tags, the tag location information of the hit target Tag-DID is extracted; wherein, the door lock summarizes the scanning records of each layer, generates a query result including the target location and path, and feeds it back to the user mobile terminal to complete article retrieval.

[0005] Optionally, the initial query request processing includes: Request parsing and verification: Based on the query request sent by the mobile terminal, the door lock extracts the target Tag-DID and user identity information; among them, the verification is achieved by comparing the APP-ID with the door lock registration information to obtain a legal query request; First-layer scan execution: Based on the legal query request, the door lock starts a Bluetooth scan to obtain directly connectable tag advertisement data packets; among them, the scan uses a connectable advertisement mode to parse the Tag-DID in the packet to obtain the first-layer tag set; Initial result judgment: According to the matching result between the first-layer tag set and the target Tag-DID, if not hit, a multi-layer scan instruction including the door lock ID and the target Tag-DID is generated to obtain the list of tags to be queried.

[0006] Optionally, the multi-layer scan instruction distribution includes: Connection establishment and instruction encapsulation: According to the list of tags to be queried, the door lock establishes a connection with each first-layer tag through the GATT protocol; among them, the instruction encapsulation includes the target Tag-DID, the door lock ID, and the scan timeout parameter to obtain a standardized scan instruction; Tag mode switching and scan: According to the received scan instruction, the first-layer tag disconnects from the door lock and switches to the central mode; among them, the scan uses connectable advertisement listening to obtain the Tag-DID of adjacent tags and generates the second-layer tag set; Result temporary storage and reporting: According to the comparison result between the second-layer tag set and the target Tag-DID, the first-layer tag switches back to the peripheral mode and reconnects to the door lock; among them, when not hit, the extended list of tags to be queried is reported, and when hit, the target location is directly returned.

[0007] Optionally, the scan result aggregation and filtering includes: Instruction conflict detection: According to the scan instruction received by the tag, the included door lock ID and target Tag-DID are extracted; among them, if the same tag receives multiple instructions with the same door lock ID and target Tag-DID, only the earliest received instruction is cached to obtain a deduplicated instruction set; Scan execution and result marking: According to the deduplicated instruction set, the tag performs a single Bluetooth scan and marks the result attribution; among them, the marking includes the upper-level tag ID that initiated the instruction and the target Tag-DID to obtain a scan record with path information; Selective result reporting: According to the marking information, the tag only sends the complete scan result to the upper-level tag of the earliest instruction; among them, the upper-levels of other same requests only receive a brief confirmation message to reduce network redundancy.

[0008] Optionally, the target location positioning and feedback includes: Leaf label identification extraction: Based on the scan records returned by the deepest layer of labels, parse the included self Tag-DID and target Tag-DID; among them, the record retains the leaf label ID when returning layer by layer to obtain position anchor information. Path backtracking and integration: Based on the scan records reported by each layer of labels, the door lock reconstructs the query path; among them, the integration filters out irrelevant records through the door lock ID and target Tag-DID to obtain an effective position path. Result generation and push: Based on the leaf label ID in the effective position path, the door lock generates a visualization result including the adjacent position of the target item; among them, the result is pushed to the user's mobile terminal through an encrypted channel to complete the retrieval loop.

[0009] Another embodiment of the present application provides an item retrieval system based on door lock labels, and the system includes: A processing module for initial query request processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth label ID as the Tag-DID and obtains the first-layer label set through Bluetooth scanning; among them, if the target Tag-DID is not included in the first-layer label set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried. A distribution module for multi-layer scanning instruction distribution: According to the list of tags to be queried, the door lock establishes a connection with the first-layer label and distributes a scanning instruction including the target Tag-DID and the door lock ID; among them, the first-layer label switches to the center mode to scan adjacent labels, generates a second-layer label set, and updates the miss result according to the scan result to obtain an extended query network. A filtering module for scan result aggregation and filtering: According to the scan results of each layer of labels in the extended query network, aggregate the query requests for the same target Tag-DID; among them, if the same label receives the same query instruction from multiple superiors, only respond to the earliest received instruction and return the scan result through the original path to obtain a deduplicated scan record. A feedback module for target position location and feedback: According to the scan record returned by the deepest layer of labels, extract the label position information of the hit target Tag-DID; among them, the door lock summarizes the scan records of each layer, generates a query result including the target position and path, and feeds it back to the user's mobile terminal to complete the item retrieval.

[0010] Another embodiment of the present application provides a storage medium, in which a computer program is stored, and the computer program is set to execute the method described in any one of the above when running.

[0011] Another embodiment of the present application provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of the above.

[0012] Compared with the prior art, a method for item retrieval based on door lock tags provided by the present invention includes: initial query request processing: obtaining an unhit result and a list of tags to be queried according to an item query request sent by a user through a mobile terminal; multi-layer scan instruction issuance: according to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scan instruction including a target Tag-DID and a door lock ID to obtain an extended query network; scan result aggregation and filtering: according to the scan results of each layer of tags in the extended query network, aggregating the query requests with the same target Tag-DID to obtain a deduplicated scan record; target location positioning and feedback: according to the scan record returned by the deepest layer of tags, extracting the tag location information of the hit target Tag-DID and generating a query result including the target location and the path, so as to achieve comprehensive and efficient item retrieval. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a hardware structure block diagram of a computer terminal for a method for item retrieval based on door lock tags provided by an embodiment of the present invention; Figure 2 is a flowchart of a method for item retrieval based on door lock tags provided by an embodiment of the present invention; Figure 3 is a structural diagram of a system for item retrieval based on door lock tags provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0014] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0015] An embodiment of the present invention first provides a method for item retrieval based on door lock tags. This method can be applied to an electronic device, such as a computer terminal, specifically a general computer, etc.

[0016] The following takes running on a computer terminal as an example for a detailed description. Figure 1 is a hardware structure block diagram of a computer terminal for a method for item retrieval based on door lock tags provided by an embodiment of the present invention. As Figure 1 shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory may include a non-volatile storage medium and an internal memory.

[0017] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions which, when executed, can cause the processor to execute any one of the item retrieval methods based on door lock tags.

[0018] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.

[0019] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, it can cause the processor to execute any one of the item retrieval methods based on door lock tags.

[0020] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 1 the structure shown in

[0021] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0022] See Figure 2 , an embodiment of the present invention provides an item retrieval method based on door lock tags, which may include the following steps: S201, Initial query request processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID, and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried; specifically, the initial query request processing includes: Request parsing and verification: Based on the query request sent by the mobile terminal, the door lock extracts the target Tag-DID and user identity information; among them, the verification is achieved by comparing the APP-ID with the door lock registration information to obtain a legal query request; First-layer scanning execution: Based on the legal query request, the door lock starts Bluetooth scanning to obtain directly connectable tag advertisement data packets; among them, the scanning uses the connectable advertisement mode to parse the Tag-DID in the packet to obtain the first-layer tag set; Preliminary result judgment: According to the matching result between the first-layer tag set and the target Tag-DID, if not hit, a multi-layer scanning instruction containing the door lock ID and the target Tag-DID is generated to obtain the list of tags to be queried.

[0023] S202, Multi-layer scanning instruction issuance: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scanning instruction containing the target Tag-DID and the door lock ID; among them, the first-layer tags switch to the central mode to scan adjacent tags, generate the second-layer tag set, and update the non-hit result according to the scanning result to obtain an extended query network; specifically, the multi-layer scanning instruction issuance includes: Connection establishment and instruction encapsulation: According to the list of tags to be queried, the door lock establishes a connection with each first-layer tag through the GATT protocol; among them, the instruction encapsulation contains the target Tag-DID, the door lock ID, and the scanning timeout parameter to obtain a standardized scanning instruction; Tag mode switching and scanning: According to the received scanning instruction, the first-layer tags disconnect from the door lock and switch to the central mode; among them, the scanning uses connectable advertisement listening to obtain the Tag-DID of adjacent tags and generate the second-layer tag set; Result temporary storage and reporting: According to the comparison result between the second-layer tag set and the target Tag-DID, the first-layer tags switch back to the peripheral mode and reconnect to the door lock; among them, when not hit, the extended list of tags to be queried is reported, and when hit, the target location is directly returned.

[0024] S203, Scanning result aggregation and filtering: According to the scanning results of each layer of tags in the extended query network, the query requests for the same target Tag-DID are aggregated; among them, if the same tag receives the same query instructions from multiple superiors, only the earliest received instruction is responded to, and the scanning result is returned through the original path to obtain the deduplicated scanning record; specifically, the scanning result aggregation and filtering includes: Instruction conflict detection: According to the scanning instructions received by the tag, the door lock ID and the target Tag-DID included are extracted; among them, if the same tag receives multiple instructions with the same door lock ID and target Tag-DID, only the earliest received instruction is cached to obtain the deduplicated instruction set; Scan execution and result marking: Based on the deduplication instruction set, the tag performs a single Bluetooth scan and marks the result attribution; wherein the tag includes the ID of the parent tag initiating the instruction and the target Tag-DID, and obtains a scan record with path information; Selective result reporting: Based on the tag information, the tag only sends the complete scan result to the superior tag with the earliest instruction; among them, other superiors with the same request only receive brief confirmation information, reducing network redundancy.

[0025] S204, Target Position Location and Feedback: Based on the scan records returned by the deepest layer of tags, the tag location information of the target Tag-DID is extracted; the door lock aggregates the scan records of each layer, generates a query result including the target location and path, and feeds it back to the user's mobile terminal to complete the item retrieval. Specifically, the target position location and feedback include: Leaf tag identifier extraction: Based on the scan records returned by the deepest tag layer, the self-Tag-DID and target Tag-DID contained in the records are parsed. The leaf tag ID is retained when the records are returned layer by layer to obtain the location anchor information. Path tracing and integration: Based on the scan records reported by each layer of tags, the door lock reconstructs the query path; wherein, the integration filters irrelevant records through the door lock ID and target Tag-DID to obtain a valid location path; Result generation and push: Based on the leaf tag ID in the valid location path, the door lock generates a visualization result containing the nearby location of the target object; wherein, the result is pushed to the user's mobile terminal through an encrypted channel, completing the retrieval closed loop.

[0026] In practice, each object is equipped with a Bluetooth tag. When the owner is unsure whether an object is at home, they can communicate with the door lock through a mobile app, and the door lock will sense the presence of the corresponding Bluetooth tag. However, if an object is piled under a pile of goods or placed in a room separated by several walls, the door lock will not be able to sense the corresponding Bluetooth tag.

[0027] A Bluetooth tag is a wireless short-range communication device based on Bluetooth technology. Its implementation principle is based on Bluetooth Low Energy (BLE) technology, which can transmit data in low-power mode, thus extending the battery life of the device. When a Bluetooth tag leaves the factory, it will be assigned a unique ID (Bluetooth-Tag Declaration ID, abbreviated as Tag-DID), which is the identity identifier of the Bluetooth tag, similar to the MAC address of a WiFi device. This unique ID ensures that the Bluetooth tag can be accurately identified and tracked. Bluetooth device scanning realizes the discovery of the Tag-DID of other Bluetooth devices through the Bluetooth broadcast and listening mechanism.

[0028] 1. Core idea: Each object contains a Bluetooth tag. When the owner is unsure whether a certain object is at home, they can communicate with the door lock through the mobile phone, and the door lock senses whether the corresponding Bluetooth tag exists. However, if an object is pressed under a pile of goods or placed in a room separated by several walls, the door lock cannot sense the corresponding Bluetooth tag at this time. The solution is designed as follows: When the owner sends a message containing a certain tag ID to the door lock using the mobile phone APP; the door lock traverses the Bluetooth tags that can be sensed currently. If the ID is not found, it notifies these Bluetooth tags to collect the Bluetooth tag IDs that they can sense respectively. Through successive progressions, if a certain Bluetooth tag senses the ID, it will transmit the information back to the door lock through the original circuit, and the door lock will reply to the owner's mobile phone.

[0029] Further improvement is as follows: For a certain tag, it may receive queries from multiple superior tags. For queries with the same ID, it only responds to one of the superior tags; if multiple IDs need to be searched, at this time, multiple remote Bluetooth tags will be transmitted back through different paths.

[0030] Improvement Point 1: When the initial requester sends a request, it needs to carry an ID, and subsequent transmitters need to retain the ID of the initial requester; for the superiors of the same initial ID, only one superior is accepted. 2. Each transmitter needs to record the superior information and the ID of the object to be retrieved for the convenience of result feedback. Here, for the retrieval requests of the same object with the same initial ID, although only one is accepted, all responses need to be given during feedback. When giving feedback, the result needs to carry the ID of the object to be retrieved and the ID of the initial requester. For the feedback results with the same object ID and initial requester ID, only one copy is accepted. At the same time, for the same requests from multiple superiors, only one response is needed; for the counting problem, the object ID is unknown, but the initial requester ID is known. The processing principle is the same. If partial summarization is performed on the tags, each node needs to summarize again. When giving feedback, the bottommost level needs to carry its own ID. In order to know where the object ID is specifically, when giving feedback, find the leaf tag of the object tag and carry the ID in the result. At this time, only those with three different tag IDs are filtered.

[0031] 2. The complete technical implementation process is as follows: (1) Prerequisites: The main door of the owner is installed with an intelligent door lock, and the inner panel of the door lock is equipped with a Bluetooth communication module, which supports Bluetooth tag scanning and Bluetooth communication.

[0032] The owner's mobile phone is installed with the APP of the intelligent door lock, which has an independent APP-ID.

[0033] The owner's object is equipped with a Bluetooth communication module (hereinafter referred to as a Bluetooth tag for objects equipped with a Bluetooth communication module), which has an independent Bluetooth Tag-DID. When sending an advertisement packet, it carries the Bluetooth tag ID number and supports Bluetooth connection communication. The Bluetooth tag supports dual-mode operation (the tag can be connected to the door lock as a peripheral and at the same time scan other tags as a central).

[0034] Method for scanning Bluetooth tags (illustrated with the example of the low-power Bluetooth BLE version, which is referred to in the following steps): The Bluetooth tag is in the peripheral mode and periodically / regularly sends advertising data packets (including the basic information of the Bluetooth tag, which is divided into non-connectable and connectable advertisements. The connectable advertisement mode is used for multi-layer scanning in the present invention), including the MAC address (i.e., Tag-DID), UUID, indication bit (whether it is connectable), etc. of the Bluetooth tag; the door lock is in the central mode and actively / passively scans / listens for surrounding Bluetooth signals (i.e., channel scanning), receives and parses the advertising data packets sent from the Bluetooth tag, and extracts the Tag-DID from them. (Generally, the pairing process is as follows: Both the Bluetooth tag and the door lock are in the on state. The Bluetooth tag is in the peripheral mode and the door lock is in the central mode. When the door lock can extract the MAC address (i.e., Tag-DID) of the tag by listening to the advertising data packet of the Bluetooth tag, the sensed Tag-DID is manually selected on the door lock panel and paired and confirmed one by one. This pairing process is not the focus of the present invention and will not be elaborated.) (2) To query whether the object Tag-DID (A15) is at home, the owner opens the mobile APP to communicate with the door lock and uses the Bluetooth tag scanning of the door lock to find the object.

[0035] The owner opens the mobile APP to connect to the smart door lock at home, selects the object to be queried (for example, the Bluetooth ID number of the object is Tag-DID (A15)) in the Bluetooth object query column on the interaction page of the APP and clicks to confirm. The APP sends a "query object" message to the door lock, including Tag-DID (A15), etc. The door lock receives the "query object" message from the owner's APP, extracts the Bluetooth ID number Tag-DID (A15), initiates Bluetooth tag scanning. According to the method in step (1), the door lock obtains the advertising data packets sent by the object Bluetooth tag (including the Bluetooth tag ID number of the object, etc.) through listening, and checks whether the Tag-DID of all scanned Bluetooth tags contains Tag-DID (A15) by comparing the tag ID numbers. According to the matching situation (at this time, if Tag-DID (A15) is included, the query result is "yes", if Tag-DID (A15) is not included, the query result is "no"), it replies with a "query result" to the APP, including Tag-DID (A15), whether it is found or not, etc. The owner conducts subsequent handling according to the result of whether the object is found in the "query result" message received by the APP from the door lock. This will not be elaborated here.

[0036] (3)Further improvement: The door lock connects to the scanned Bluetooth tags one by one, notifies the Bluetooth tags to perform Bluetooth tag scanning, and sends the scanning results back to the door lock to form a "first-layer scanning record table". The door lock aggregates and checks whether there are Bluetooth tags queried by the owner and returns the result to the owner. If Tag-DID (A15) is not found in the "first-layer scanning record table", the second layer and the third layer of scanning are performed, advancing layer by layer. The deepest Bluetooth tag returns the scanning results along the original path until the Bluetooth tag to be queried is found or the hierarchy reaches the threshold requirement and no further scanning of the next layer is continued.

[0037] In step (2), when the Bluetooth device of the door lock initiates a Bluetooth device scan, since the object queried by the owner (assuming Tag-DID (A15) is to be queried) is pressed under a pile of goods or placed in a room separated by several walls, the Bluetooth tag cannot be sensed by the Bluetooth scan of the door lock at this time. To solve this problem, the following optimizations are made: Supplementary preset conditions: The door lock supports connecting no more than 20 Bluetooth devices simultaneously (generally, due to technical reasons, the number of Bluetooth devices that support simultaneous connection does not exceed 20). The number of Bluetooth tags in the owner's home is no more than 20 (for the convenience of description, assume there are 15; if there are more Bluetooth tags, grouping, step-by-step and other methods need to be adopted separately to achieve connection, send scanning instructions and receive reply messages in the implementation of the present invention, which will not be elaborated herein); The Bluetooth tag defaults to the peripheral role and switches to the central role when performing Bluetooth scanning. The Bluetooth tag supports storing 200 Bluetooth tag scanning records. The Bluetooth tag has been successfully paired with the door lock, and the Bluetooth tags have also been successfully paired with each other.

[0038] The door lock performs Bluetooth tag scanning according to step (2) (for example, the door lock directly performs Bluetooth tag scanning and obtains 10 Tag-DIDs, among which Tag-DID (A15) is not included), and stores the scanning results in the "first-layer scanning record table", including the Tag-DIDs of each Bluetooth tag, etc. Then the door lock initiates a connection to the Bluetooth tags one by one according to the "first-layer scanning record table" and sends a "connection request" message to it, including the Bluetooth ID (M) of the door lock, the query target Tag-DID (A15), etc. The Bluetooth tag receives the "connection request", stores the Bluetooth ID (M) of the door lock, the query target Tag-DID (A15) and replies with a confirmation message to establish a connection (at this time, the door lock establishes connections with 10 door locks); The door lock sends a "start scanning" instruction through the Bluetooth protocol (generally using the GATT (Generic Attribute Profile) protocol), including the target Tag-DID (A15), the scanning duration parameter, etc., and requires the Bluetooth tag to perform scanning.

[0039] After receiving the "Start Scan" command, the Bluetooth tag disconnects from the door lock and switches from Peripheral Mode to Central Mode to perform the scan. The Bluetooth tag scans other Bluetooth tags according to the method in step (1) and caches them as Bluetooth tag scan records. At the same time, it queries and compares whether there is a Tag-DID (A15). After the Bluetooth tag disconnects from the door lock, the door lock detects the disconnection and enters the waiting state.

[0040] After the Bluetooth tag completes the scan, it switches from central mode back to peripheral mode and resends the advertising data packet. The door lock detects the Bluetooth tag's advertising data packet and re-initiates a connection request. After the connection is established, the Bluetooth tag sends the Bluetooth tag scan record to the door lock via the GATT protocol, including the tag's Tag-DID, the scanned Tag-DID, or Tag-DID (A15) (depending on whether the tag query and comparison result is found, if the result is "yes", only the target tag Tag-DID (A15) is sent; if the result is "no", all scanned Tag-DIDs are sent). The door lock receives and reads the Bluetooth tag scan record sent by the Bluetooth tag and stores it in the door lock's "Second Layer Scan Record Table", which includes the scanner ID Tag-DID (in this case, the scanner is the first layer Bluetooth tag scanned by the door lock), the scanned ID number (in this case, the scanned Bluetooth tag is the second layer Bluetooth tag scanned by the first layer Bluetooth tag), etc. The door lock queries whether the "second-layer scanning record table" contains Tag-DID (A15) according to the method in step (2). If the query result is "yes", it will reply to the owner APP, and the owner will process it on the APP, and the process will end; if the query result is "no", then according to the above method, the door lock notifies the first-layer Bluetooth tag, and then the first-layer tag notifies the second-layer tag to perform the Bluetooth tag scanning operation, and returns the scanning result to the door lock through the original route. The door lock obtains the "third-layer scanning record table". If the "third-layer scanning record table" still does not have Tag-DID (A15), the third-layer tag is initiated to perform the Bluetooth tag scanning operation, and the process is advanced layer by layer until Tag-DID (A15) is found or the number of layers reaches the threshold (generally the number of layers can be set to five layers) and no further entry is made to the next layer, and the process ends.

[0041] (4) Further improvement: If the Bluetooth tag of the object on this layer receives "start scanning" instructions from multiple upper-layer tags, first compare the query target Tag-DID in the instructions. If it is the same target Tag-DID, only reply the scanning result to one of the upper layers. If it is different target Tag-DIDs, it must reply according to different upper layers. Optional improvement 1: Starting from the door lock, the Bluetooth tags of the objects on each subsequent layer carry the Tag-DID (M) number of the door lock when forwarding the "start scanning" instructions of the upper layer. If the Bluetooth tag of a certain object on any layer receives "start scanning" instructions from multiple superiors and has the same Tag-DID (M) number of the door lock, it only receives one superior and ignores the "start scanning" instructions of other superiors. Optional improvement 2: For "start scanning" instructions from different superiors and for the same query target Tag-DID, after the scanning is completed, only reply the detailed scanning result message to the superior that received the "start scanning" instruction earliest, while other superiors reply simple scanning result messages. The superiors that receive the simple scanning result reply message do not continue to reply upward, while the superiors that receive the detailed scanning result need to continue to reply upward.

[0042] In step (3), for a certain tag on a certain layer (such as Tag-DID (C) on the third layer), Tag-DID (C) may receive queries from multiple tags on the second layer (such as Tag-DID (B1) and Tag-DID (B2) on the second layer). Then Tag-DID (C) needs to separately respond to and execute the "start scanning" instructions of Tag-DID (B1) and Tag-DID (B2), resulting in multiple connection interruptions and repeated connections for Tag-DID (C), as well as multiple switches between the Central Mode and the Peripheral Mode. To solve this problem, the optimization is as follows: For example, after the Tag-DID (C) of the third layer establishes a connection with the Tag-DID (B1) and Tag-DID (B2) of the second layer, it receives the "start scanning" instructions of the Tag-DID (B1) and Tag-DID (B2) (including the target Tag-DID to be searched). Whether the target Tag-DIDs in the "start scanning" instructions of the Tag-DID (B1) and Tag-DID (B2) received by the Tag-DID (C) are the same. If they are different target Tag-DIDs to be searched (for example, Tag-DID (B1) requests to search for Tag-DID (X), and Tag-DID (B2) requests to search for Tag-DID (Y)), then after the Tag-DID (C) performs a Bluetooth tag scan once (at this time, both Tag-DID (B1) and Tag-DID (B2) request "start scanning"), it analyzes the scan results according to step (3), and returns the scan results along the original path according to different results (for example, if Tag-DID (X) is scanned, the reply message sent to Tag-DID (B1) only contains its own Tag-DID (C), the upper-layer Tag-DID (B1), and the target Tag-DID (X)); the reply message sent to Tag-DID (B2) only contains its own Tag-DID (C), the upper-layer Tag-DID (B2), and all the scanned Tag-DIDs); if they are the same target Tag-DID to be searched (for example, both Tag-DID (B1) and Tag-DID (B2) request to search for Tag-DID (A15)), then after performing the Bluetooth tag scan, only reply to one of the superiors (for example, either one of Tag-DID (B1) and Tag-DID (B2)). In this way, the door lock can query multiple target Tag-DIDs simultaneously through a multi-layer promotion method.

[0043] Optional improvement 1: When the door lock issues a "start scanning" instruction, the instruction includes the target Tag-DID to be searched and the Tag-DID (M) of the door lock. Subsequently, if a Bluetooth tag scan is initiated layer by layer, both the target Tag-DID and the Tag-DID (M) of the door lock need to be carried, and the Bluetooth tags of the subsequent intermediate levels only accept one "start scanning" instruction from the upper layer. In this way, the "start scanning" instructions sent by the intermediate layer are restricted, and only the instructions issued by the Tag-DID (M) of the door lock are received, reducing the overhead of each layer of Bluetooth tags.

[0044] For example: The door lock sends an instruction of "start scanning", which includes Tag-DID (M), the target Tag-DID to be searched (A15). After receiving the "start scanning" instruction from the door lock, the Tag-DID (B1) in the second layer (here, taking Tag-DID (B1) as an example, the other tagging methods in the second layer are the same) enters the process of sending an instruction of "start scanning" to the third layer, which includes its own Tag-DID (B1), Tag-DID (M), and the target Tag-DID to be searched (A15). If the Tag-DID (C1) in the third layer (here, taking Tag-DID (C1) as an example, the other tagging methods in the second layer are the same) receives the "start scanning" instruction from the Tag-DID (B1) in the second layer, it enters the process of sending an instruction of "start scanning" to the fourth layer, which includes its own Tag-DID (C1), Tag-DID (M), and the target Tag-DID to be searched (A15).

[0045] Optional improvement 2: Taking the Tag-DID (C) in the third layer as an example for illustration.

[0046] After the Tag-DID (C) in the third layer establishes connections with the Tag-DID (B1), Tag-DID (B2), and Tag-DID (B3) in the second layer, it successively receives the "start scanning" instructions from the Tag-DID (B1), Tag-DID (B2), and Tag-DID (B3) in order. The target to be searched in the instructions is the same Tag-DID (A15). After the Tag-DID (C) performs a Bluetooth tag scan, it analyzes the scan results according to step (3) and replies to different upper layers according to different results (here, taking the case of not scanning the target Tag-DID (A15) for description, and replying to messages in the same way when scanning the Tag-DID (A15)). The reply message to the Tag-DID (B1) (the upper level that the Tag-DID (C) first receives the "start scanning" instruction from) includes its own Tag-DID (C), whether the target is scanned or not, and all the scanned Tag-DIDs (there may be multiple). After receiving the reply from the Tag-DID (C), the Tag-DID (B1) returns it to the door lock level by level along the original path, and the door lock sends the result to the owner's mobile APP. The reply messages to the Tag-DID (B2) and Tag-DID (B3) include its own Tag-DID (C), whether the target is scanned or not. After receiving the reply from the Tag-DID (C), the Tag-DID (B2) and Tag-DID (B3) only cache it within the label for 5 minutes and then automatically delete it, and do not continue to report layer by layer, so as to reduce a large number of identical reply messages received by the upper layer.

[0047] (5) Further improvement: Each level of Bluetooth tag needs to record the information of the upper level and the Bluetooth ID of the object to be retrieved, which is convenient for result transmission. Further improvement, the deepest layer of Bluetooth tag carries its own Bluetooth ID in the message replied to the upper layer, and this Bluetooth ID is retained during the subsequent layer-by-layer transmission to the door lock. Then when the final door lock receives and aggregates the data, it can extract the Bluetooth ID of the search target finally scanned according to the scan record, that is, the target is near this Bluetooth ID, and the result is replied to the owner's mobile phone APP.

[0048] In step (4), if the query results returned layer by layer finally converge to the door lock, the door lock forms "the first layer scan record table", "the nth layer scan record table", etc. (According to the method in step (3), after the layer-by-layer feedback, the door lock initiates a deeper layer-by-layer scan query uniformly. Then the scan results returned after each layer scan can form scan record tables of different levels). If the target Tag-DID (A15) is found until a certain level, but it is not known from the "nth layer scan record table" where the Tag-DID (A15) is specifically (that is, which known tag scanned the Tag-DID (A15), or in other words, near which known tag is the Tag-DID (A15)). To solve this problem, the optimization is as follows: According to the method in step (4), for a certain tag at a certain layer (such as Tag-DID (C1) at the third layer), when receiving queries from multiple tags at the second layer (such as Tag-DID (B1) and Tag-DID (B2) at the second layer), at this time, after Tag-DID (C1) receives the "start scanning" instruction, it caches these 2 instructions, namely Instruction 1 which contains Tag-DID (M), the search target Tag-DID (A15), and the upper layer Tag-DID (B1), and Instruction 2 which contains Tag-DID (M), the search target Tag-DID (A15), and the upper layer Tag-DID (B2). According to the method in step (4), Tag-DID (C1) only accepts one "start scanning" instruction, such as Instruction 1. After Tag-DID (C1) finishes scanning, it sends scan records to both Tag-DID (B1) and Tag-DID (B2) at the upper layer (note that for the same object retrieval request with the same initial ID, although only one is accepted, responses need to be given for both during the return transmission), and the content includes Tag-DID (M), the search target Tag-DID (A15), and the Tag-DIDs in each scan record.

[0049] At this time, if the Tag-DID (B1) of the second layer receives the reply results of multiple third-layer tags (such as Tag-DID (C1), Tag-DID (C2), etc. of the third layer), compare the reply results. If they are the same (such as both being Tag-DID (M), the search target Tag-DID (A15), and scanning each Tag-DID in the record, it means that Tag-DID (C1) and Tag-DID (C2) are together and the scanned results are the same), then only accept one copy of the result and upload it to the upper layer (at this time, since the two results are the same, either one can be taken). At this time, if the Tag-DID (B1) of the second layer has multiple identical "start scanning" requests from the upper level of the first layer (such as at this time Tag-DID (B1) receives requests from two tags, Tag-DID (A1) and Tag-DID (A2), both of which contain Tag-DID (M) and the search target Tag-DID (A15)), then Tag-DID (B1) only replies to any one of the two tags, Tag-DID (A1) and Tag-DID (A2) (because the requests sent by Tag-DID (A1) and Tag-DID (A2) are the same at this time).

[0050] When the results of all scans at the nth layer are returned layer by layer until they are passed to the door lock, the door lock receives and summarizes them to form a "nth layer scan record table". At this time, the door lock can know the label scan result records of all levels.

[0051] Further improvement: After the "start scanning" request instruction is executed and the scan is performed on the Bluetooth tag at the deepest layer, carry the Bluetooth tag ID in the reply message returned to the upper layer, and the Bluetooth tag ID needs to be retained at each subsequent layer reported layer by layer until the door lock receives and summarizes it, and record the Bluetooth tag ID that performs the scan in the "nth layer scan record table".

[0052] For example, the deepest - layer Bluetooth tag Tag - DID (Z1) receives the "start scanning" request instruction from the upper layer, which includes Tag - DID (M), the target Tag - DID to be searched (A15), and the upper - layer tag Tag - DID (Y1) that sends the instruction. After Tag - DID (Z1) executes and completes the Bluetooth tag scanning, if the scanned Bluetooth tag scan records are Tag - DID (n1) - Tag - DID (n5) and Tag - DID (A15), the reply message sent back to the upper - layer tag Tag - DID (Y1) includes Tag - DID (M), the target Tag - DID to be searched (A15), this tag Tag - DID (Z1), and Tag - DID (n1) - Tag - DID (n5). After the upper - layer Tag - DID (Y1) receives the reply messages from Tag - DID (Z1) and other lower - layer tags that have sent the "start scanning" request instruction, it filters according to whether they carry Tag - DID (M), the target Tag - DID to be searched (A15), and Tag - DID (Y1) (Note: When forwarding back, the leaf tag that finds the object tag includes its ID in the result. At this time, only those with three different tag IDs are filtered. For example, the absence of Tag - DID (Y1) means it is not sent to this tag, the absence of Tag - DID (M) means it is not a query sent by the door lock, and the absence of Tag - DID (A15) means it is not the scan result for the target to be searched). The reply message sent to the upper layer includes: Tag - DID (M), the target Tag - DID to be searched (A15), Tag - DID (Z1), and Tag - DID (n1) - Tag - DID (n5). And all forwarded reply messages before the door lock Z need to carry Tag - DID (Z1) (Note: Because the target Tag - DID to be searched (A15) is finally scanned by Tag - DID (Z1)). When the door lock finally receives and summarizes into the "n - th layer scan record table", it includes Tag - DID (Z1), the target Tag - DID to be searched (A15), Tag - DID (n1) - Tag - DID (n5), etc.

[0053] The door lock queries the "nth layer scan record table" with the door lock ID Tag-DID (M) and the target ID Tag-DID (A15), and extracts the scan record with Tag-DID (A15) from it. For example, the record is found: door lock ID Tag-DID (M), target ID Tag-DID (A15), Tag-DID (Z1). At this time, it can be determined that Tag-DID (A15) is near Tag-DID (Z1) (because Tag-DID (Z1) scanned Tag-DID (A15)). The door lock sends a reply message of "query item" to the owner's mobile phone APP, including Tag-DID (A15), found or not (yes), location (Tag-DID (Z1)), etc. (if multiple tags scan this target, all records that scan this target can be sent to the owner for the owner to query). The owner can view the reply message of the door lock through the mobile phone APP, and then know that Tag-DID (A15) has been found (found or not (yes) in the reply message), and the location is near Tag-DID (Z1) (location (Tag-DID (Z1)) in the reply message). The owner can make subsequent dispositions based on this result, which will not be elaborated here.

[0054] Advantageous effects: The door lock requests the lower-layer tags to assist in Bluetooth tag scanning in a progressive manner layer by layer. The Bluetooth tag that finally scans the target carries back its own tag number. The door lock can then determine whether the target is found, and its location is near the Bluetooth tag that is finally scanned.

[0055] It can be seen that for the initial query request processing: according to the item query request sent by the user through the mobile terminal, an unhit result and a list of tags to be queried are obtained; for the multi-layer scan instruction issuance: according to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scan instruction including the target Tag-DID and the door lock ID to obtain an extended query network; for the scan result aggregation and filtering: according to the scan results of each layer of tags in the extended query network, the query requests for the same target Tag-DID are aggregated to obtain the de-duplicated scan records; for the target location positioning and feedback: according to the scan records returned by the deepest layer of tags, the tag location information of the hit target Tag-DID is extracted to generate a query result including the target location and the path, so as to achieve comprehensive and efficient item retrieval.

[0056] Another embodiment of the present invention provides an item retrieval system based on door lock tags. Refer to Figure 3 , the system may include: Processing module 301 is used for initial query request processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID, and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried. Issuing module 302 is used for multi-layer scanning instruction issuing: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scanning instruction containing the target Tag-DID and the door lock ID; wherein, the first-layer tags switch to the central mode to scan adjacent tags, generate the second-layer tag set, and update the miss result according to the scanning result to obtain an extended query network. Filtering module 303 is used for scanning result aggregation and filtering: According to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID; wherein, if the same tag receives the same query instructions from multiple superiors, only respond to the earliest received instruction and return the scanning result through the original path to obtain the de-duplicated scanning record. Feedback module 304 is used for target location positioning and feedback: According to the scanning record returned by the deepest layer of tags, extract the tag location information of the tag that hits the target Tag-DID; wherein, the door lock summarizes the scanning records of each layer, generates a query result containing the target location and the path, and feeds it back to the user mobile terminal to complete the item retrieval.

[0057] It can be seen that for the initial query request processing: According to the item query request sent by the user through the mobile terminal, a miss result and a list of tags to be queried are obtained; for the multi-layer scanning instruction issuing: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scanning instruction containing the target Tag-DID and the door lock ID to obtain an extended query network; for the scanning result aggregation and filtering: According to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID to obtain the de-duplicated scanning record; for the target location positioning and feedback: According to the scanning record returned by the deepest layer of tags, extract the tag location information of the tag that hits the target Tag-DID and generate a query result containing the target location and the path, so as to realize comprehensive and efficient item retrieval.

[0058] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

[0059] Specifically, in this embodiment, the above storage medium can be set to store a computer program for executing the following steps: S201, Initial Query Request Processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID, and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried. S202, Multi-layer Scanning Instruction Issuance: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tag and issues a scanning instruction containing the target Tag-DID and the door lock ID; wherein, the first-layer tag switches to the central mode to scan adjacent tags, generates the second-layer tag set, and updates the miss result according to the scanning result to obtain an extended query network. S203, Scanning Result Aggregation and Filtering: According to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID; wherein, if the same tag receives the same query instructions from multiple superiors, only respond to the earliest received instruction and return the scanning result through the original path to obtain a deduplicated scanning record. S204, Target Location Positioning and Feedback: According to the scanning record returned by the deepest layer of tags, extract the tag position information of the tag that hits the target Tag-DID; wherein, the door lock aggregates the scanning records of each layer, generates a query result containing the target location and the path, and feeds it back to the user's mobile terminal to complete the item retrieval.

[0060] It can be seen that for the initial query request processing: according to the item query request sent by the user through the mobile terminal, a miss result and a list of tags to be queried are obtained; for the multi-layer scanning instruction issuance: according to the list of tags to be queried, the door lock establishes a connection with the first-layer tag and issues a scanning instruction containing the target Tag-DID and the door lock ID to obtain an extended query network; for the scanning result aggregation and filtering: according to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID to obtain a deduplicated scanning record; for the target location positioning and feedback: according to the scanning record returned by the deepest layer of tags, extract the tag position information of the tag that hits the target Tag-DID and generate a query result containing the target location and the path, so as to achieve comprehensive and efficient item retrieval.

[0061] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0062] Specifically, the above electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0063] Specifically, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program: S201, Initial query request processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID, and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried; S202, Multi-layer scanning instruction distribution: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and distributes a scanning instruction containing the target Tag-DID and the door lock ID; wherein, the first-layer tags switch to the center mode to scan adjacent tags, generate the second-layer tag set, and update the miss result according to the scanning result to obtain an extended query network; S203, Scanning result aggregation and filtering: According to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID; wherein, if the same tag receives the same query instructions from multiple superiors, only respond to the earliest received instruction and return the scanning result through the original path to obtain a deduplicated scanning record; S204, Target location positioning and feedback: According to the scanning record returned by the deepest layer of tags, extract the tag location information of the target Tag-DID that is hit; wherein, the door lock aggregates the scanning records of each layer, generates a query result containing the target location and path, and feeds it back to the user's mobile terminal to complete the item retrieval.

[0064] It can be seen that for the initial query request processing: according to the item query request sent by the user through the mobile terminal, a miss result and a list of tags to be queried are obtained; for the multi-layer scanning instruction distribution: according to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and distributes a scanning instruction containing the target Tag-DID and the door lock ID to obtain an extended query network; for the scanning result aggregation and filtering: according to the scanning results of each layer of tags in the extended query network, aggregate the query requests for the same target Tag-DID to obtain a deduplicated scanning record; for the target location positioning and feedback: according to the scanning record returned by the deepest layer of tags, extract the tag location information of the target Tag-DID that is hit and generate a query result containing the target location and path, so as to achieve comprehensive and efficient item retrieval.

[0065] The structure, features and effects of the present invention have been described in detail based on the embodiments shown in the drawings. The above is only the preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or equivalent embodiments modified to equivalent changes, which still do not exceed the spirit covered by the specification and the drawings, shall fall within the protection scope of the present invention.

Claims

1. A method for retrieving items based on door lock tags, characterized in that: The method includes: Initial query request processing: According to the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as Tag-DID, and obtains the first-layer tag set through Bluetooth scanning; wherein, if the target Tag-DID is not included in the first-layer tag set, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried. Multi-layer scanning instruction distribution: According to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and distributes a scanning instruction containing the target Tag-DID and the door lock ID; wherein, the first-layer tags switch to the central mode to scan adjacent tags, generate the second-layer tag set, and update the miss result according to the scanning result to obtain an extended query network. Aggregation and filtering of scanning results: According to the scanning results of each layer of tags in the extended query network, the query requests for the same target Tag-DID are aggregated; wherein, if the same tag receives the same query instruction from multiple superiors, it only responds to the earliest received instruction and returns the scanning result through the original path to obtain a deduplicated scanning record. Target location positioning and feedback: According to the scanning record returned by the deepest layer of tags, the tag location information of the hit target Tag-DID is extracted; wherein, the door lock summarizes the scanning records of each layer, generates a query result containing the target location and path, and feeds it back to the user mobile terminal to complete item retrieval.

2. The method according to claim 1, characterized in that The initial query request processing includes: Request parsing and verification: According to the query request sent by the mobile terminal, the door lock extracts the target Tag-DID and the user identity information; wherein, the verification is implemented by comparing the APP-ID with the door lock registration information to obtain a legal query request. First-layer scanning execution: According to the legal query request, the door lock starts Bluetooth scanning to obtain the directly connectable tag advertisement data packet; wherein, the scanning uses the connectable advertisement mode to parse the Tag-DID in the packet to obtain the first-layer tag set. Preliminary result judgment: According to the matching result between the first-layer tag set and the target Tag-DID, if it misses, a multi-layer scanning instruction containing the door lock ID and the target Tag-DID is generated to obtain a list of tags to be queried.

3. The method according to claim 2, characterized in that The multi-layer scanning instruction distribution includes: Connection establishment and instruction encapsulation: According to the list of tags to be queried, the door lock establishes a connection with each first-layer tag through the GATT protocol; wherein, the instruction encapsulation includes the target Tag-DID, the door lock ID, and the scanning timeout parameter to obtain a standardized scanning instruction. Tag mode switching and scanning: According to the received scanning instruction, the first-layer tags disconnect from the door lock and switch to the central mode; wherein, the scanning uses the connectable advertisement listening to obtain the Tag-DID of adjacent tags and generate the second-layer tag set. Result temporary storage and reporting: According to the comparison result between the second-layer tag set and the target Tag-DID, the first-layer tags switch back to the peripheral mode and reconnect to the door lock; wherein, when it misses, the extended list of tags to be queried is reported, and when it hits, the target location is directly returned.

4. The method according to claim 3, characterized in that The aggregation and filtering of scanning results include: Command conflict detection: Based on the scanning command received by the tag, the door lock ID and target Tag-DID contained in it are extracted. If the same tag receives multiple commands with the same door lock ID and target Tag-DID, only the earliest received command is cached to obtain a deduplicated command set. Scan execution and result marking: Based on the deduplication instruction set, the tag performs a single Bluetooth scan and marks the result attribution; wherein the tag includes the ID of the parent tag initiating the instruction and the target Tag-DID, and obtains a scan record with path information; Selective result reporting: Based on the tag information, the tag only sends the complete scan result to the superior tag with the earliest instruction; among them, other superiors with the same request only receive brief confirmation information, reducing network redundancy.

5. The method according to claim 4, characterized in that, The target position positioning and feedback include: Leaf tag identifier extraction: Based on the scan records returned by the deepest tag layer, the self-Tag-DID and target Tag-DID contained in the records are parsed. The leaf tag ID is retained when the records are returned layer by layer to obtain the location anchor information. Path tracing and integration: Based on the scan records reported by each layer of tags, the door lock reconstructs the query path; wherein, the integration filters irrelevant records through the door lock ID and target Tag-DID to obtain a valid location path; Result generation and push: Based on the leaf tag ID in the valid location path, the door lock generates a visualization result containing the nearby location of the target object; wherein, the result is pushed to the user's mobile terminal through an encrypted channel, completing the retrieval closed loop.

6. An item retrieval system based on a door lock tag, characterized in that, The system comprises: The processing module is used to process the initial query request: Based on the item query request sent by the user through the mobile terminal, the door lock extracts the target Bluetooth tag ID as the Tag-DID and obtains the first-layer tag set through Bluetooth scanning. If the first-layer tag set does not contain the target Tag-DID, a multi-layer scanning instruction is generated to obtain a miss result and a list of tags to be queried. The issuing module is used to issue multi-layer scanning instructions: according to the list of tags to be queried, the door lock establishes a connection with the first-layer tags and issues a scanning instruction containing the target Tag-DID and the door lock ID; wherein, the first-layer tags switch to the center mode to scan the adjacent tags, generate the second-layer tag set, and update the miss result according to the scanning result to obtain the expanded query network; A filtering module is used to aggregate and filter scan results: based on the scan results of each layer of tags in the extended query network, query requests for the same target Tag-DID are aggregated. If the same tag receives the same query instruction from multiple superiors, it only responds to the instruction received earliest and returns the scan result through the original path to obtain a deduplicated scan record. The feedback module is used for target location positioning and feedback: based on the scanning records returned by the deepest layer of tags, the tag location information of the target Tag-DID is extracted; among them, the door lock summarizes the scanning records of each layer, generates a query result containing the target location and path, and feeds it back to the user's mobile terminal to complete the item retrieval.

7. The system according to claim 6, characterized in that The processing module is specifically used to: Request parsing and verification: Based on the query request sent by the mobile terminal, the door lock extracts the target Tag-DID and user identity information; among them, the verification is achieved by comparing the APP-ID with the door lock registration information to obtain a legal query request; First-layer scanning execution: Based on the legal query request, the door lock starts Bluetooth scanning to obtain directly connectable tag advertisement data packets; among them, the scanning adopts a connectable advertisement mode to parse the Tag-DID in the packet to obtain the first-layer tag set; Preliminary result judgment: According to the matching result between the first-layer tag set and the target Tag-DID, if it fails to match, a multi-layer scanning instruction containing the door lock ID and the target Tag-DID is generated to obtain the list of tags to be queried.

8. The system according to claim 7, characterized in that, The sending module is specifically used for: Connection establishment and instruction encapsulation: Based on the list of tags to be queried, the door lock establishes a connection with each first-layer tag through the GATT protocol; among them, the instruction encapsulation includes the target Tag-DID, the door lock ID, and the scanning timeout parameter to obtain a standardized scanning instruction; Tag mode switching and scanning: According to the received scanning instruction, the first-layer tag disconnects from the door lock and switches to the central mode; among them, the scanning adopts connectable advertisement listening to obtain the Tag-DID of adjacent tags and generates a second-layer tag set; Result temporary storage and reporting: According to the comparison result between the second-layer tag set and the target Tag-DID, the first-layer tag switches back to the peripheral mode and reconnects to the door lock; among them, when it fails to match, the extended list of tags to be queried is reported, and when it matches, the target location is directly returned.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is set to execute the method described in any one of claims 1-5 when running.

10. An electronic device, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is set to run the computer program to execute the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Mobile location and multimedia information pushing network system based on Bluetooth

    CN102946378A

  • Mobile terminal, Bluetooth networking article searching method and storage medium

    CN111328053A

  • Household WiFi Bluetooth automatic alarm device and alarm method

    CN113256923A

  • Positioning object searching method and system and related equipment

    CN115278536A

  • User interface for sharing location of searchable items

    CN119893516A

Cited By

  • Object searching method and system based on combination of door lock and geographic relationship feedback

    CN121056820A

  • A method and system for searching for an object based on a door lock combined with geographical relationship feedback

    CN121056820B

  • Article retrieval method based on door lock label

    CN121301398A