A method and system for locating a vehicle based on a door lock
By pairing the owner's vehicle Bluetooth tag with the smart door lock and using an improved IGMP/PIM multicast routing mechanism, a neighbor group is built and announcement suppression is implemented, which solves the problems of hardware investment and network redundancy in vehicle positioning in the community and achieves accurate positioning and improved stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DESSMANN CHINA MACHINERY & ELECTRONICS
- Filing Date
- 2026-04-22
- Publication Date
- 2026-07-10
AI Technical Summary
Existing technologies for vehicle positioning in residential communities require additional hardware investment, have limited positioning accuracy, cannot effectively identify the residential unit to which a vehicle belongs, and suffer from network redundancy and interference, affecting positioning efficiency and stability.
By pairing the owner's vehicle Bluetooth tag with the smart lock, and utilizing the improved IGMP join message and bidirectional PIM multicast routing mechanism, a neighbor group is built and an announcement suppression policy is implemented to achieve automated sensing and push of vehicle location.
It can achieve precise vehicle positioning and resident association at the community level without adding new hardware, improve the efficiency and stability of the positioning system, reduce redundant messages, reduce network load, and adapt to irregular door lock layouts and dynamic parking scenarios.
Smart Images

Figure CN122069478B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of smart door lock technology, and in particular to a method and system for locating vehicles in a residential community based on door locks. Background Technology
[0002] With the widespread adoption of smart community construction, utilizing technologies such as Bluetooth for vehicle location management has become an important means of improving community safety and convenience. Existing solutions largely rely on deploying dedicated Bluetooth beacons or readers at parking lots or fixed locations, determining location through communication between vehicle tags and fixed devices. This method requires additional hardware investment, and positioning accuracy is limited by the distribution density and coverage of the beacons. Furthermore, existing technologies struggle to effectively identify the specific resident unit to which a vehicle belongs, and cannot achieve low-cost, fine-grained vehicle location tracking and attribution determination in public areas of the community. In addition, concurrent communication of a large number of Bluetooth tags can easily cause network redundancy and interference, affecting positioning efficiency and system stability. Therefore, there is an urgent need for a solution that can reuse existing resident smart door locks and other terminal devices to achieve accurate vehicle-resident correlation positioning, while also possessing good network efficiency and scalability. Summary of the Invention
[0003] The purpose of this invention is to provide a method and system for locating vehicles in a residential community based on door locks, in order to overcome the shortcomings of the prior art. This method enables accurate location of vehicles and their association with residents at the community level without the need for additional dedicated hardware, thereby improving the efficiency and stability of the positioning system.
[0004] One embodiment of this application provides a method for locking vehicles in a residential community based on gate locking, the method comprising:
[0005] Device pairing and multicast registration: Based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address to complete the registration in the community multicast network;
[0006] Neighbor relationship learning and neighbor group construction: Based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is counted and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure.
[0007] Tag detection and announcement suppression forwarding: Based on the same Bluetooth tag announcement message received by each interface in the neighbor group, the group announcement suppression policy is executed and a random timer mechanism is used to select and forward the message received by a single interface to obtain the tag location announcement after suppressing redundancy.
[0008] Vehicle location update and final push: Based on the notification message with the paired tag ID received by the owner's door lock, update the latest vehicle location information according to the timestamp, and push the final vehicle location range to the owner's mobile terminal after stabilization.
[0009] Optionally, the device pairing and multicast registration includes:
[0010] Device pairing: Based on the owner's instructions, the vehicle's Bluetooth tag is paired and bound to the smart door lock, and the door lock records the unique ID of the Bluetooth tag;
[0011] Multicast join message generation: Based on the Bluetooth tag ID that the door lock has been paired with, an improved IGMP join message is generated. In addition to the standard fields, the message also carries the door lock ID and the paired Bluetooth tag ID.
[0012] Multicast registration complete: Based on the preset multicast address, the improved IGMP add message is sent to the directly connected router. The router records the Bluetooth tag ID in the corresponding outgoing interface of the multicast forwarding table, thus completing the multicast registration.
[0013] Optionally, the neighbor relationship learning and neighbor group construction include:
[0014] Neighbor relationship learning start: Based on the Bluetooth tag announcement messages received by the router from each interface, a learning process with a preset time window period is started;
[0015] Co-occurrence statistics: Based on the announcement messages with the same Bluetooth tag ID received from different interfaces within the same time window, count the number of co-occurrences between interfaces and build a neighbor relationship table;
[0016] Neighbor group construction: Based on the records in the neighbor relationship table where the number of times interfaces co-occurs exceeds a preset threshold, the set of high-frequency co-occurring interfaces centered on each interface is constructed as the neighbor group of that interface;
[0017] Group ID assignment: Based on the completed neighbor groups, assign a unique group ID to each neighbor group, and assign a group ID to each interface within the group.
[0018] Optionally, the tag detection and notification suppression forwarding includes:
[0019] Announcement reception and suppression triggering: When the router receives a Bluetooth tag announcement message from a certain interface in the neighbor group, it immediately suppresses all interfaces in the neighbor group from forwarding the message to the multicast forwarding table interface.
[0020] Random timer start: Start an independent random timer for the Bluetooth tag ID based on each interface where forwarding is suppressed;
[0021] Single Interface Wake-up Forwarding: Based on the interface corresponding to the earliest expiring random timer, the router forwards the Bluetooth tag advertisement message received from that interface;
[0022] Suppress other interfaces within the group: Based on the interface that has forwarded the message, immediately stop all random timers started by all other interfaces in the neighboring group for the same Bluetooth tag ID, and discard subsequent identical tag advertisement messages received from these interfaces.
[0023] Optionally, the vehicle location update and final push include:
[0024] Location information reception and parsing: Based on the notification message received from the owner's door lock monitoring multicast address, parse the door lock ID, Bluetooth tag ID, signal strength and timestamp in the message;
[0025] Location information update: Based on the matching result of the parsed Bluetooth tag ID and the local paired tag ID, if the match is successful, the timestamp is compared. If the new timestamp is later than the existing record, the vehicle location is updated to the door lock location from which the message originated.
[0026] Historical location records: Based on the updated old location information, it is converted into historical records and saved to form the vehicle's movement trajectory;
[0027] Final location push: Based on the stable state where no new notification messages are received within a preset time, the latest vehicle location information will be sent to the owner's mobile terminal APP.
[0028] Optionally, the method also includes a table entry recovery mechanism when the router restarts:
[0029] Anomaly Detection: Based on the situation where a router restart event causes the loss of multicast forwarding table entries, when the router receives a Bluetooth tag advertisement message, it detects that there is no corresponding forwarding table entry;
[0030] Broadcast-triggered reconstruction: Based on the anomaly detection results, the router only extracts the Bluetooth tag ID from the packet for broadcasting;
[0031] Active registration recovery: Based on the fact that the owner's door lock receives the broadcast message and the local pairing tag ID is successfully matched, the improved IGMP join message carrying the tag ID is actively resent;
[0032] Table reconstruction complete: Based on the resent join message received by the router, the multicast forwarding table entry is rebuilt and the normal packet forwarding process is restored.
[0033] Another embodiment of this application provides a system for locating vehicles in a community based on door locks, the system comprising:
[0034] The registration module is used for device pairing and multicast registration: based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address to complete the registration in the community multicast network;
[0035] The module is used for neighbor relationship learning and neighbor group construction: based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is counted and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure.
[0036] The forwarding module is used for tag detection and announcement suppression forwarding: based on the same Bluetooth tag announcement message received by each interface in the neighbor group, it executes the group announcement suppression policy and selects to forward the message received by a single interface through a random timer mechanism to obtain the tag location announcement after suppressing redundancy.
[0037] The push module is used for vehicle location updates and final push: based on the notification message with the paired tag ID received by the owner's door lock, the latest vehicle location information is updated according to the timestamp, and the final vehicle location range is pushed to the owner's mobile terminal after stabilization.
[0038] Another embodiment of this application provides a storage medium storing a computer program, wherein the computer program is configured to execute the method described in any of the preceding claims when running.
[0039] Another embodiment of this application provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the method described in any of the preceding claims.
[0040] Compared with existing technologies, this invention provides a method for locating vehicles in a residential community based on door locks. According to the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to a preset multicast address. Based on the Bluetooth tag announcement messages received by the router from each interface, a logically aggregated door lock neighbor group structure is obtained. Based on the same Bluetooth tag announcement messages received by each interface within the neighbor group, an intra-group announcement suppression strategy is executed, and a random timer mechanism is used to select and forward messages received from a single interface, resulting in a tag location announcement with reduced redundancy. Based on the announcement messages carrying the pairing tag ID received by the owner's door lock, the latest vehicle location information is updated according to the timestamp, and after stabilization, the final vehicle location range is pushed to the owner's mobile terminal. This enables precise community-level vehicle positioning and resident association without the need for additional dedicated hardware, improving the efficiency and stability of the positioning system. Attached Figure Description
[0041] Figure 1 A hardware structure block diagram of a computer terminal for a method of locating vehicles in a community based on door locks, provided in an embodiment of the present invention;
[0042] Figure 2A flowchart illustrating a method for locating vehicles in a residential community based on door locks, provided in an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of a system for locating vehicles in a community based on door locking, provided as an embodiment of the present invention. Detailed Implementation
[0044] 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.
[0045] In modern residential communities, vehicle management often faces problems such as unclear parking locations, difficulty in finding vehicles, and disputes over parking space occupancy. This is especially true in large, older communities where residents often forget the exact location of their vehicles. Traditional vehicle positioning solutions, such as GPS, have low accuracy and cannot quickly pinpoint the exact location of a vehicle within the community. Furthermore, they rely on the owner's mobile phone or in-vehicle devices, failing to achieve automated vehicle location sensing and push notifications.
[0046] This invention first provides a method for locating vehicles in a residential community based on door locks. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers.
[0047] The following detailed explanation uses a computer terminal as an example. Figure 1 This is a hardware structure block diagram of a computer terminal for a method of locating vehicles in a residential community based on door locking, provided as an embodiment of the present invention. (See diagram below.) Figure 1 As shown, the computer device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include non-volatile storage media and internal memory.
[0048] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any method based on gate-locked vehicle positioning within a community.
[0049] The processor provides computing and control capabilities, supporting the operation of the entire computer device.
[0050] Internal memory provides an environment for the execution of computer programs in non-volatile storage media. When executed by a processor, the computer program enables the processor to execute any method of locking vehicles in a gated community.
[0051] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 1The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0052] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0053] See Figure 2 The present invention provides a method for locating vehicles in a residential community based on gate locking, which may include the following steps:
[0054] S201, Device Pairing and Multicast Registration: Based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart lock, the lock sends an improved IGMP join message carrying the pairing tag ID to a preset multicast address to complete registration in the community multicast network; specifically, the device pairing and multicast registration includes:
[0055] Device pairing: Based on the owner's instructions, the vehicle's Bluetooth tag is paired and bound to the smart door lock, and the door lock records the unique ID of the Bluetooth tag;
[0056] Multicast join message generation: Based on the Bluetooth tag ID that the door lock has been paired with, an improved IGMP join message is generated. In addition to the standard fields, the message also carries the door lock ID and the paired Bluetooth tag ID.
[0057] Multicast registration complete: Based on the preset multicast address, the improved IGMP add message is sent to the directly connected router. The router records the Bluetooth tag ID in the corresponding outgoing interface of the multicast forwarding table, thus completing the multicast registration.
[0058] S202, Neighbor Relationship Learning and Neighbor Group Construction: Based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is statistically analyzed, and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure; specifically, the neighbor relationship learning and neighbor group construction includes:
[0059] Neighbor relationship learning start: Based on the Bluetooth tag announcement messages received by the router from each interface, a learning process with a preset time window period is started;
[0060] Co-occurrence statistics: Based on the announcement messages with the same Bluetooth tag ID received from different interfaces within the same time window, count the number of co-occurrences between interfaces and build a neighbor relationship table;
[0061] Neighbor group construction: Based on the records in the neighbor relationship table where the number of times interfaces co-occurs exceeds a preset threshold, the set of high-frequency co-occurring interfaces centered on each interface is constructed as the neighbor group of that interface;
[0062] Group ID assignment: Based on the completed neighbor groups, assign a unique group ID to each neighbor group, and assign a group ID to each interface within the group.
[0063] S203, Tag Detection and Advertisement Suppression Forwarding: Based on the same Bluetooth tag advertisement message received by each interface within the neighbor group, the group-wide advertisement suppression strategy is executed, and a random timer mechanism is used to select and forward messages received by a single interface to obtain the tag location advertisement after suppressing redundancy; specifically, the tag detection and advertisement suppression forwarding includes:
[0064] Announcement reception and suppression triggering: When the router receives a Bluetooth tag announcement message from a certain interface in the neighbor group, it immediately suppresses all interfaces in the neighbor group from forwarding the message to the multicast forwarding table interface.
[0065] Random timer start: Start an independent random timer for the Bluetooth tag ID based on each interface where forwarding is suppressed;
[0066] Single Interface Wake-up Forwarding: Based on the interface corresponding to the earliest expiring random timer, the router forwards the Bluetooth tag advertisement message received from that interface;
[0067] Suppress other interfaces within the group: Based on the interface that has forwarded the message, immediately stop all random timers started by other interfaces in the neighboring group for the same Bluetooth tag ID, and discard subsequent identical tag advertisement messages received from these interfaces.
[0068] S204, Vehicle Location Update and Final Push: Based on the notification message carrying the paired tag ID received by the owner's door lock, the latest vehicle location information is updated according to the timestamp, and the final vehicle location range is pushed to the owner's mobile terminal after stabilization. Specifically, the vehicle location update and final push includes:
[0069] Location information reception and parsing: Based on the notification message received from the owner's door lock monitoring multicast address, parse the door lock ID, Bluetooth tag ID, signal strength and timestamp in the message;
[0070] Location information update: Based on the matching result of the parsed Bluetooth tag ID and the local paired tag ID, if the match is successful, the timestamp is compared. If the new timestamp is later than the existing record, the vehicle location is updated to the door lock location from which the message originated.
[0071] Historical location records: Based on the updated old location information, it is converted into historical records and saved to form the vehicle's movement trajectory;
[0072] Final location push: Based on the stable state where no new notification messages are received within a preset time, the latest vehicle location information will be sent to the owner's mobile terminal APP.
[0073] Furthermore, the method also includes a table entry recovery mechanism during router reboot:
[0074] Anomaly Detection: Based on the situation where a router restart event causes the loss of multicast forwarding table entries, when the router receives a Bluetooth tag advertisement message, it detects that there is no corresponding forwarding table entry;
[0075] Broadcast-triggered reconstruction: Based on the anomaly detection results, the router only extracts the Bluetooth tag ID from the packet for broadcasting;
[0076] Active registration recovery: Based on the fact that the owner's door lock receives the broadcast message and the local pairing tag ID is successfully matched, the improved IGMP join message carrying the tag ID is actively resent;
[0077] Table reconstruction complete: Based on the resent join message received by the router, the multicast forwarding table entry is rebuilt and the normal packet forwarding process is restored.
[0078] This invention provides a method and system for vehicle positioning in a residential community based on Bluetooth tags and bidirectional PIM multicast communication. By pairing a resident's door lock with a vehicle's Bluetooth tag and combining an improved IGMP multicast protocol with a bidirectional PIM multicast routing mechanism, real-time vehicle positioning and location notification within the community are achieved. The door lock continuously listens for nearby vehicle Bluetooth tags and sends tag notification messages. The router optimizes message forwarding based on a bidirectional PIM multicast tree through neighbor circle learning and intra-group & inter-group notification suppression strategies, ensuring that the resident's door lock receives only one Bluetooth tag notification message from the neighbor group that ultimately discovers the vehicle's location, thus achieving efficient and low-interference vehicle positioning services.
[0079] Solution:
[0080] I. Prerequisites:
[0081] Smart door locks are installed in each unit and at the unit entrance within the community. These locks have Bluetooth listening and communication modules, supporting pairing with nearby Bluetooth tags and multicast message transmission. Residents equip their vehicles with Bluetooth tags (such as Bluetooth Low Energy Beacon), each with a unique ID. After installation, each resident's door lock pairs with their vehicle's Bluetooth tag, records the tag ID, and sends an IGMP join message to join a preset multicast group (multicast address preset to 228.10.10.1), carrying the paired Bluetooth tag ID in the message. Routers are deployed within the community to build an IoT network. Door locks connect to the routers via wired or wireless connections. The routers operate on a Bidirectional PIM multicast routing protocol, supporting IGMP message processing and multicast forwarding. Door locks communicate and exchange messages with each other through the routers. Bidirectional PIM uses a shared bidirectional tree centered on the rendezvous point (RP), allowing multicast messages to be transmitted bidirectionally along this tree without needing to build a separate source tree for each source, making it suitable for scenarios where group members frequently join and leave.
[0082] II. Solution Steps:
[0083] 1. After the Bluetooth tag is paired and registered with the homeowner's door lock, the router learns over a period of time and establishes a neighbor group centered on the door lock.
[0084] (1) The owner purchases Bluetooth tags and usually places them in the vehicle. The owner pairs the Bluetooth tags with their own door lock through a mobile APP or local operation of the door lock. The door lock records the Bluetooth tag ID. The smart door locks of the original residents and the unit entrance in the community send IGMP join messages to the directly connected router. The multicast address is 228.10.10.1. The message also carries the door lock ID (e.g., 5-01-101, the door lock ID format is fixed as building number-unit number-room number, the room number of the unit entrance door lock is 100) and the ID of the Bluetooth tag that has been paired with the owner (if there is no paired Bluetooth tag, the value of this field is NULL), indicating that the door lock is interested in the location information of the tag.
[0085] (2) After receiving the IGMP join message, the router records the corresponding Bluetooth tag ID on the door lock interface in the multicast forwarding table (*, 228.10.10.1) (forming an ID list when there are multiple tags), and sends an improved PIM message (carrying the Bluetooth tag ID) to the RP direction to update the forwarding table entries of the multicast tree.
[0086] (3) The Bluetooth modules of all door locks in the community continuously listen to the signals of surrounding Bluetooth devices. When a Bluetooth tag of a nearby vehicle is detected, the door lock immediately generates a "Bluetooth tag announcement" multicast message with a destination address of 228.10.10.1. The message also carries the door lock ID, Bluetooth tag ID, signal strength, and timestamp.
[0087] (4) After receiving the "Bluetooth Tag Advertisement" message, the router connected to the door lock needs to forward the message to the RP and also to other PIM neighbor interfaces (this improvement is to avoid door locks that are close to each other belonging to different routers. Since multicast messages in bidirectional PIM scenarios can only be sent from the RP to the receiver, if the routers of adjacent door locks do not have receivers, they cannot know the existence of each other's door locks, which leads to the construction of neighbor groups being limited by the physical range of the routers). At the same time, the neighbor circle learning process centered on each interface begins:
[0088] 1. The router uses time t (which can be configured according to actual needs, such as 5 seconds) as the time window to count the Bluetooth tag ID and door lock ID of the "Bluetooth Tag Announcement" messages received from each interface (including other interfaces of this router directly connected to the door lock and PIM neighbor interfaces connected to other routers).
[0089] 2. For each interface, the router records all Bluetooth tag IDs received from that interface within the t window, and records a "neighbor interface list" for each tag ID, as shown in Table 1. This list includes other interfaces that received the same tag ID within the same time window (including interfaces directly connected to door locks and PIM neighbor interfaces connected to other routers).
[0090] Table 1
[0091] ;
[0092] 3. The learning period lasts for a period of time (e.g., 1 month), during which the router continuously accumulates the neighbor interface list data for each interface. The router maintains a "neighbor relationship table" for each interface, as shown in Table 2, which records the number of times the interface co-occurs with each other interface (i.e., the number of times the same tag ID is received within the same time window).
[0093] Table 2
[0094] ;
[0095] (5) After the learning period ends, the router builds a neighbor group centered on each interface:
[0096] 1. For each interface, the router selects other interfaces whose co-occurrence frequency exceeds a set threshold (which can be configured according to actual needs, such as 100 times) based on its neighbor relationship table, and forms a neighbor group centered on that interface.
[0097] 2. The router assigns a unique "group ID" to each neighbor group. Each interface has an independent "group ID" within the group. The central interface of each neighbor group is numbered 0 within the group, i.e., the group ID is "group ID-0". Other interface numbers are sorted according to rules (such as interface ID size or co-occurrence count), such as "group ID-1" and "group ID-2".
[0098] 3. An interface can belong to multiple neighbor groups (as a neighbor of other interfaces), but it can only have one neighbor group centered on itself, which is called the central interface of that neighbor group.
[0099] Since homeowners need to locate their vehicle's Bluetooth tag via door locks, but door locks are distributed irregularly in the community (some are close together, others are far apart), the router addresses this by allowing each interface to learn and build a neighbor group centered on itself. This logically treats all nearby interfaces within a single neighbor group as a single object. When a homeowner initiates a car search, the search area can be narrowed down to a single neighbor group, while simultaneously reducing the number of packets sent.
[0100] 2: Tag detection and notification suppression:
[0101] (1) After the learning period ends, the exploration phase begins. At this time, when the router receives an advertisement message for Bluetooth tag A from a certain interface (such as interface 1-01-01), the router executes the advertisement suppression policy:
[0102] 1. Using the neighbor group (e.g., group 1) centered on interface 1-01-01 as the unit, immediately suppress all interfaces in this neighbor group (including interfaces that have not received the "Bluetooth Tag Advertisement") in the multicast forwarding table (*, 228.10.10.1) from forwarding the "Bluetooth Tag Advertisement" message they received to the forwarding table output interfaces (including output interfaces in the RP direction and output interfaces that record the same Bluetooth tag ID). At the same time, cache the message on the current interface. The purpose of suppression is to prevent the door lock of the Bluetooth tag from receiving the message immediately. If the vehicle moves in the community, such messages will keep disturbing the door lock if the suppression is not implemented.
[0103] 2. The router starts a separate random timer (configurable, e.g., 0~t seconds) for "Bluetooth Tag A" on each of the suppressed forwarding interfaces in the same neighbor group. When the timer of an interface expires, if that interface has already received a "Bluetooth Tag Advertisement" message, it will be the first to "wake up" (if it has not received an advertisement message, the timer stops counting down, and it will not forward any subsequent advertisement messages even if received). The router forwards the "Bluetooth Tag Advertisement" message received from that interface and immediately stops the timer of all other interfaces in the same neighbor group, and will not forward any subsequent "Bluetooth Tag Advertisement" messages received from these interfaces. Before the timer expires, multiple interfaces belonging to the same neighbor group may still be receiving advertisement messages for Bluetooth Tag A, such as interface 1-01-02 receiving a Bluetooth advertisement message 1 second after the timer starts, and interface 1-01-03 receiving a Bluetooth advertisement message 2 seconds after the timer starts. When the timer of one interface (e.g., interface 1-01-01) expires, and that interface wakes up first, the router immediately stops the timers of all other interfaces in the same neighbor group. Bluetooth tag advertisement messages received by interfaces 1-01-02 and 1-01-03, regardless of whether they were received before or after this moment, are discarded and not forwarded. The router forwards the Bluetooth tag advertisement message received from interface 1-01-01. The router queries the Bluetooth tag IDs recorded on each member interface of the local (*, 228.10.10.1) multicast group and forwards it from the interface that also records the Bluetooth tag A ID. The message carries the door lock ID, Bluetooth tag A ID, signal strength, and timestamp. After forwarding, the random timers started by each interface in group 1 for "Bluetooth tag A" are restored to their initial state.
[0104] (2) This mechanism ensures that only one door lock in the same neighbor group receives the "Bluetooth tag announcement" message and it is ultimately forwarded, reducing redundant messages and reducing network load.
[0105] 3: Vehicle location update and owner's door lock reception:
[0106] (1) When a vehicle moves within the community and is detected by the door lock of the central interface connected to other neighbor groups (such as group 2), the router corresponding to that group repeats the above suppression announcement process. When the timer of a certain interface in group 2 that received the "Bluetooth tag announcement" expires first, the interface wakes up, the router queries the forwarding table (*, 228.10.10.1), matches the Bluetooth tag ID recorded by the interface, and forwards the "Bluetooth tag announcement" message.
[0107] (2) The owner's door lock continuously listens for announcement messages at the multicast address 228.10.10.1. When it receives an announcement for the first time carrying its own paired tag ID, the door lock parses the door lock ID and timestamp in the message and saves the vehicle's current location information locally (such as "the vehicle is located near Room 102, Unit 1, Building 1").
[0108] (3) If a new notification with the same Bluetooth tag ID but from another door lock with a later timestamp is received (indicating that the vehicle has been moved), the door lock will update its data to the latest location and save the old location information as a history record. After a certain period of time (configurable, such as 5 minutes), when no new "Bluetooth tag notification" messages are received, the owner's door lock will send the vehicle's final location information to the door lock APP on the owner's mobile phone, informing the user to quickly locate the vehicle's range using this location.
[0109] (4) Through this grouping suppression notification mechanism, when the owner's vehicle moves and passes through multiple neighbor groups, each neighbor group will generate and send a "Bluetooth tag notification" message. Although the owner's door lock receives multiple notification messages, the last notification message is the one closest to the vehicle's parking location. This also avoids each door lock repeatedly sending the same Bluetooth tag notification message, consuming the owner's door lock and router resources, and improving the user experience.
[0110] Beneficial Effects: This solution, based on Bluetooth tags and bidirectional PIM multicast communication technology, combined with improved IGMP and bidirectional PIM protocols, as well as neighbor group learning and notification suppression mechanisms, achieves efficient and accurate vehicle positioning and location push within the community. It eliminates the need for vehicle owners' mobile phones or in-vehicle devices to actively report their locations. Through automatic door lock monitoring, intelligent router forwarding, and automatic reception and updating by resident door locks, it achieves fully automated perception and push of vehicle location. The neighbor group learning and notification suppression mechanisms ensure that only one door lock triggers a valid notification for the same Bluetooth tag within the same neighbor group, significantly reducing redundant messages and lowering network congestion and device resource consumption. It is suitable for all types of communities, especially older ones, and does not rely on fixed parking spaces. It supports dynamic parking and movement scenarios, and the system builds logical neighbor groups through self-learning to adapt to irregular door lock layouts. Vehicle location information is only propagated within the community via multicast, ensuring that residents only receive location information for their own vehicles, thus avoiding the risk of location information leakage.
[0111] Protection Points: 1. A neighbor group construction and learning mechanism: The router, through statistical analysis of Bluetooth tag advertisement messages received via its interfaces, self-learns to form neighbor groups centered on those interfaces. Group members are determined based on a co-occurrence threshold. During the neighbor group's learning period, an improved multicast forwarding mechanism (which defaults to forwarding Bluetooth tag advertisement messages to the router interface) aggregates physically close door locks, optimizing the vehicle location range and message forwarding efficiency. 2. An advertisement suppression and random timer triggering mechanism: Within the same neighbor group, Bluetooth tag advertisement messages (carrying door lock ID, Bluetooth tag ID, signal strength, and timestamp, supporting precise positioning and timing judgment) are suppressed. A random timer is used to select and forward messages received from a single interface, avoiding duplicate advertisements within the group. 3. A vehicle location update and historical record management method: The owner's door lock updates its latest location based on a timestamp, historical locations are traceable, and the final vehicle location range is pushed to a mobile app after a certain period, achieving precise positioning.
[0112] As can be seen, based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address; based on the Bluetooth tag announcement messages received by the router from each interface, a logically aggregated door lock neighbor group structure is obtained; based on the same Bluetooth tag announcement messages received by each interface within the neighbor group, an intra-group announcement suppression strategy is executed, and a random timer mechanism is used to select and forward messages received by a single interface, resulting in a tag location announcement after suppressing redundancy; based on the announcement message carrying the pairing tag ID received by the owner's door lock, the latest vehicle location information is updated according to the timestamp, and after stabilization, the final vehicle location range is pushed to the owner's mobile terminal. This enables precise community-level vehicle positioning and resident association without the need for additional dedicated hardware, improving the efficiency and stability of the positioning system.
[0113] Another embodiment of the present invention provides a system for locating vehicles in a community based on door locking, see [link to relevant documentation]. Figure 3 The system may include:
[0114] Registration module 301 is used for device pairing and multicast registration: based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address to complete the registration in the community multicast network;
[0115] Module 302 is used for neighbor relationship learning and neighbor group construction: based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is counted and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure.
[0116] Forwarding module 303 is used for tag detection and announcement suppression forwarding: based on the same Bluetooth tag announcement message received by each interface in the neighbor group, it executes the group announcement suppression strategy and selects to forward the message received by a single interface through a random timer mechanism to obtain the tag location announcement after suppressing redundancy.
[0117] The push module 304 is used for vehicle location update and final push: based on the notification message with the paired tag ID received by the owner's door lock, it updates the latest vehicle location information according to the timestamp, and pushes the final vehicle location range to the owner's mobile terminal after stabilization.
[0118] This invention also provides a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0119] This invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0120] Specifically, the aforementioned electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the aforementioned processor, and the input / output device is connected to the aforementioned processor.
[0121] The above description, based on the embodiments shown in the figures, details the structure, features, and effects of the present invention. The above description is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the figures. Any changes made in accordance with the concept of the present invention, or equivalent embodiments modified to have equivalent changes, that do not exceed the spirit covered by the specification and figures, should be within the protection scope of the present invention.
Claims
1. A method for locating vehicles in a residential community based on gate locking, characterized in that, The method includes: Device pairing and multicast registration: Based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address to complete the registration in the community multicast network; Neighbor relationship learning and neighbor group construction: Based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is counted and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure. Tag detection and announcement suppression forwarding: Based on the same Bluetooth tag announcement message received by each interface in the neighbor group, the group announcement suppression policy is executed and a random timer mechanism is used to select and forward the message received by a single interface to obtain the tag location announcement after suppressing redundancy. Vehicle location update and final push: Based on the notification message with the paired tag ID received by the owner's door lock, update the latest vehicle location information according to the timestamp, and push the final vehicle location range to the owner's mobile terminal after stabilization.
2. The method according to claim 1, characterized in that, The device pairing and multicast registration include: Device pairing: Based on the owner's instructions, the vehicle's Bluetooth tag is paired and bound to the smart door lock, and the door lock records the unique ID of the Bluetooth tag; Multicast join message generation: Based on the Bluetooth tag ID that the door lock has been paired with, an improved IGMP join message is generated. In addition to the standard fields, the message also carries the door lock ID and the paired Bluetooth tag ID. Multicast registration complete: Based on the preset multicast address, the improved IGMP add message is sent to the directly connected router. The router records the Bluetooth tag ID in the corresponding outgoing interface of the multicast forwarding table, thus completing the multicast registration.
3. The method according to claim 2, characterized in that, The neighbor relationship learning and neighbor group construction include: Neighbor relationship learning start: Based on the Bluetooth tag announcement messages received by the router from each interface, a learning process with a preset time window period is started; Co-occurrence statistics: Based on the announcement messages with the same Bluetooth tag ID received from different interfaces within the same time window, count the number of co-occurrences between interfaces and build a neighbor relationship table; Neighbor group construction: Based on the records in the neighbor relationship table where the number of times interfaces co-occurs exceeds a preset threshold, the set of high-frequency co-occurring interfaces centered on each interface is constructed as the neighbor group of that interface; Group ID assignment: Based on the completed neighbor groups, assign a unique group ID to each neighbor group, and assign a group ID to each interface within the group.
4. The method according to claim 3, characterized in that, The label detection and notification suppression forwarding include: Announcement reception and suppression triggering: When the router receives a Bluetooth tag announcement message from a certain interface in the neighbor group, it immediately suppresses all interfaces in the neighbor group from forwarding the message to the multicast forwarding table interface. Random timer start: Start an independent random timer for the Bluetooth tag ID based on each interface where forwarding is suppressed; Single Interface Wake-up Forwarding: Based on the interface corresponding to the earliest expiring random timer, the router forwards the Bluetooth tag advertisement message received from that interface; Suppress other interfaces within the group: Based on the interface that has forwarded the message, immediately stop all random timers started by other interfaces in the neighboring group for the same Bluetooth tag ID, and discard subsequent identical tag advertisement messages received from these interfaces.
5. The method according to claim 4, characterized in that, The vehicle location update and final push include: Location information reception and parsing: Based on the notification message received from the owner's door lock monitoring multicast address, parse the door lock ID, Bluetooth tag ID, signal strength and timestamp in the message; Location information update: Based on the matching result of the parsed Bluetooth tag ID and the local paired tag ID, if the match is successful, the timestamp is compared. If the new timestamp is later than the existing record, the vehicle location is updated to the door lock location from which the message originated. Historical location records: Based on the updated old location information, it is converted into historical records and saved to form the vehicle's movement trajectory; Final location push: Based on the stable state where no new notification messages are received within a preset time, the latest vehicle location information will be sent to the owner's mobile terminal APP.
6. The method according to claim 5, characterized in that, The method also includes a table entry recovery mechanism during router reboot: Anomaly Detection: Based on the situation where a router restart event causes the loss of multicast forwarding table entries, when the router receives a Bluetooth tag advertisement message, it detects that there is no corresponding forwarding table entry; Broadcast-triggered reconstruction: Based on the anomaly detection results, the router only extracts the Bluetooth tag ID from the packet for broadcasting; Active registration recovery: Based on the fact that the owner's door lock receives the broadcast message and the local pairing tag ID is successfully matched, the improved IGMP join message carrying the tag ID is actively resent; Table reconstruction complete: Based on the resent join message received by the router, the multicast forwarding table entry is rebuilt and the normal packet forwarding process is restored.
7. A system for locating vehicles in a residential community based on gate locking, characterized in that, The system includes: The registration module is used for device pairing and multicast registration: based on the pairing relationship between the owner's vehicle Bluetooth tag and the smart door lock, the door lock sends an improved IGMP join message carrying the pairing tag ID to the preset multicast address to complete the registration in the community multicast network; The module is used for neighbor relationship learning and neighbor group construction: based on the Bluetooth tag advertisement messages received by the router from each interface, the co-occurrence relationship between interfaces is counted and a neighbor group centered on each interface is constructed to obtain a logically aggregated door lock neighbor group structure. The forwarding module is used for tag detection and announcement suppression forwarding: based on the same Bluetooth tag announcement message received by each interface in the neighbor group, it executes the group announcement suppression policy and selects to forward the message received by a single interface through a random timer mechanism to obtain the tag location announcement after suppressing redundancy. The push module is used for vehicle location updates and final push: based on the notification message with the paired tag ID received by the owner's door lock, the latest vehicle location information is updated according to the timestamp, and the final vehicle location range is pushed to the owner's mobile terminal after stabilization.
8. The system according to claim 7, characterized in that, The registration module is specifically used for: Device pairing: Based on the owner's instructions, the vehicle's Bluetooth tag is paired and bound to the smart door lock, and the door lock records the unique ID of the Bluetooth tag; Multicast join message generation: Based on the Bluetooth tag ID that the door lock has been paired with, an improved IGMP join message is generated. In addition to the standard fields, the message also carries the door lock ID and the paired Bluetooth tag ID. Multicast registration complete: Based on the preset multicast address, the improved IGMP add message is sent to the directly connected router. The router records the Bluetooth tag ID in the corresponding outgoing interface of the multicast forwarding table, thus completing the multicast registration.
9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method of any one of claims 1-6 when it is run.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method of any one of claims 1-6.