A collaborative emergency processing method and system based on door lock electricity
By adopting a collaborative emergency response method that dynamically elects roles within the door lock group and adjusts the horn mode, the coordination problem of smart door lock systems in large-scale emergency scenarios is solved, load balancing and continuous alarms are achieved, and the robustness and energy efficiency of the system are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-10
AI Technical Summary
Existing smart door lock emergency systems lack information interaction and coordination mechanisms in large-scale collaborative emergency scenarios, resulting in alarm blind spots when individual door locks run out of power. Fixed horn patterns cannot be dynamically adjusted, leading to poor system robustness and sustainability, and making it difficult to achieve dynamic allocation and relay of horn tasks.
By using methods such as dynamic election of door lock group roles, execution of relay horn rules, negotiation of alternating horn sounds within the group, and triggering of cross-group mutual assistance horn sounds, the system achieves role allocation within the door lock group, sound relay guidance, and cross-group mutual assistance, and dynamically adjusts the horn sounding mode to achieve load balancing and continuous alarm.
It improves the robustness and continuity of the alarm system in emergency situations, ensures the continuity of audible guidance and overall energy efficiency, and avoids alarm blind spots caused by the depletion of power in a single door lock.
Smart Images

Figure CN121438439B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of intelligent door locks, and particularly relates to a cooperative emergency processing method and system based on door lock power. BACKGROUND
[0002] In the field of intelligent buildings and emergency security, electronic door lock systems with siren alarm functions have been widely used. However, the existing door lock emergency systems have obvious deficiencies in handling large-scale and cooperative emergency scenarios (such as emergency evacuation). Traditional systems mostly adopt independent working modes, and there is a lack of information interaction and cooperative mechanism between door locks, which leads to the formation of alarm blind areas due to the depletion of power of a single door lock in emergency situations. At the same time, the fixed siren mode cannot be dynamically adjusted according to the actual power status, which may accelerate power consumption due to continuous high-power siren, and cannot intelligently compensate for the failure of some door locks by other door locks, so the overall robustness and sustainability of the system are poor. In addition, the existing technology lacks an effective cross-device negotiation mechanism, and it is difficult to realize dynamic allocation and relay of siren tasks without a central node, so it cannot provide continuous and reliable sound guidance for personnel evacuation. SUMMARY
[0003] The purpose of the present application is to provide a cooperative emergency processing method and system based on door lock power, to solve the deficiencies in the prior art, and to realize autonomous cooperation and load balancing of siren tasks in emergency situations, and to improve the robustness, sustainability and overall energy efficiency of the alarm system.
[0004] One embodiment of the present application provides a cooperative emergency processing method based on door lock power, which comprises:
[0005] Dynamic election of door lock group roles: according to an emergency start instruction, the members in each door lock group exchange valid power information to dynamically elect a master door lock and a vice door lock, and obtain a role allocation result in the door lock group;
[0006] Relay siren rule execution: according to a preset evacuation path order, each door lock group successively sounds the siren at fixed time intervals to form a sound relay guide, and dynamically switches the siren mode according to the door lock power state;
[0007] Intra-group alternate siren negotiation: according to the medium power state of the master door lock, the master and vice door locks in the group negotiate the alternate siren cycle proportion based on the predicted continuous siren duration, and transfer the negotiation information through groupcast messages to realize distributed cooperation without local storage;
[0008] Cross-group mutual assistance siren triggering: according to the low power state or dynamic trend prediction of the door lock group, an auxiliary alarm request is triggered for the front and rear door lock groups, and the siren duration of each door lock group is dynamically adjusted based on the response result to form a cross-group mutual assistance mechanism.
[0009] Optionally, the dynamic election of the door lock group role comprises:
[0010] Effective power calculation: according to the current display power percentage, the battery health coefficient and the temperature coefficient of each door lock, the effective power of each door lock is calculated;
[0011] Role election trigger: according to the received emergency start instruction, the members in the door lock group exchange effective power information through unicast;
[0012] Election decision execution: according to the effective power comparison result, the door lock with high effective power is elected as the master door lock, and if the power is the same, the actual ID size is decided to obtain the door lock group role allocation result;
[0013] Election result announcement: according to the election result, the master door lock sends a role announcement message through groupcast to complete the role synchronization in the door lock group.
[0014] Optionally, the relay siren rule execution comprises:
[0015] Siren relay start: according to the fact that the first door lock group G1 receives all door lock group role announcements, a relay alarm message containing the planned siren time is sent through groupcast and the siren is executed;
[0016] Relay message transmission: according to the preset evacuation path sequence, each door lock group listens to the last hop groupcast message, and sends the relay alarm message of the group at the planned siren time point and siren;
[0017] Siren mode judgment: according to the comparison result of the effective power of the master door lock and the preset threshold, the normal siren mode in the group, the alternate siren mode in the group, the low-power cross-group mutual assistance siren mode or the low-power siren mode in the group are dynamically selected;
[0018] Multi-round cycle execution: according to the event that the last door lock group Gq completes the siren, a new round of siren cycle is started from the G1 door lock group, forming a continuous sound guide.
[0019] Optionally, the alternate siren negotiation in the group comprises:
[0020] Alternate siren trigger: according to the fact that the effective power of the master door lock is in the medium power interval, an alternate siren start flag is set in the relay alarm message and the expected continuous siren duration is carried;
[0021] Periodic proportion negotiation: according to the alternate siren start flag received by the vice door lock, the expected continuous siren duration of itself is calculated, compared with the duration of the master door lock, and the alternate siren cycle proportion is calculated by taking the integer;
[0022] Negotiation information transmission: according to the negotiation result, the vice door lock sends an alternate siren negotiation notification message through groupcast, and the subsequent door lock group carries and transmits the alternate siren negotiation list in the relay alarm message.
[0023] Alternating siren execution: According to the negotiation list information in the relay alarm message, the master and vice door locks of the door lock group rotate in turn to perform the siren task according to the cycle proportion, and dynamically update the current cycle state;
[0024] Cycle re-negotiation mechanism: According to the deviation between the actual power consumption speed and the expected value, any member in the door lock group can trigger the re-negotiation process to update the alternating siren cycle proportion and synchronize through the multicast message.
[0025] Optionally, the cross-group mutual assistance siren trigger includes:
[0026] Auxiliary alarm request trigger: According to the judgment result that the effective power of the door lock group is lower than the low power threshold, or based on global state statistics and power consumption trend prediction, set the auxiliary alarm request flag in the relay alarm message;
[0027] Cross-group response commitment: According to the received auxiliary alarm request, the subsequent door lock group and the previous door lock group reply to accept or reject the auxiliary request through the multicast message according to the preset priority;
[0028] Siren duration dynamic adjustment: According to the cross-group response result, dynamically adjust the siren duration of the request door lock group, the previous door lock group and the subsequent door lock group to form a one-sound, two-sound or three-sound siren mode;
[0029] Help opportunity optimization: When the effective power of the door lock group is in the medium-low power threshold and the low power threshold interval, query the global door lock group siren mode through multicast, and count the proportion of normal and alternating siren door lock groups. When the proportion exceeds the help threshold, trigger the auxiliary alarm request in advance;
[0030] Trend prediction help: When the effective power of the door lock group is in the normal siren power threshold and the medium-low power threshold interval, pass through the relay message and calculate the global average power change rate in real time. When the power consumption rate of the door lock group is significantly higher than the average level, trigger the auxiliary alarm request in advance.
[0031] Optionally, the method further includes a coordination mechanism:
[0032] Global state statistics mechanism: Through door lock group siren mode query request and response, the distribution of each siren mode in the system is counted in real time, providing data support for predictive help;
[0033] Power consumption trend prediction mechanism: Calculate the power change rate of each door lock group, and pass and update the global average power change rate in the relay alarm message to realize system-level power consumption trend monitoring;
[0034] Distributed negotiation storage mechanism: By passing the alternating siren negotiation information in the multicast message, avoid local storage of the door lock, ensure the persistence and consistency of the negotiation information;
[0035] Multi-mode seamless switching mechanism: Based on changes in battery status, negotiation results, and cross-group responses, it enables smooth switching between different horn modes, ensuring the continuity of emergency guidance.
[0036] Another embodiment of this application provides a collaborative emergency response system based on door lock power, the system comprising:
[0037] The election module is used for dynamic election of door lock group roles: according to the emergency start command, members in each door lock group exchange valid power information to dynamically elect the main door lock and the secondary door lock, and obtain the role allocation results within the door lock group;
[0038] The execution module is used to execute the relay horn rule: according to the preset evacuation route sequence, each door lock group sounds its horn in sequence at fixed time intervals to form a sound relay guidance, and dynamically switches the horn mode according to the door lock power status;
[0039] The negotiation module is used for alternating horn ringing negotiation within the group: based on the equal power status of the main door lock, the main and auxiliary door locks within the group are triggered to negotiate the alternating horn ringing cycle ratio based on the expected continuous horn ringing duration, and the negotiation information is transmitted through multicast messages to achieve distributed collaboration without local storage;
[0040] The triggering module is used for cross-group mutual assistance alarm triggering: based on the low power status or dynamic trend prediction of the door lock group, it triggers the auxiliary alarm request of the front and rear door lock groups, and dynamically adjusts the alarm duration of each door lock group based on the response results, forming a cross-group mutual assistance mechanism.
[0041] 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.
[0042] 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.
[0043] Compared with existing technologies, this invention provides a collaborative emergency response method based on door lock power levels. According to an emergency activation command, members within each door lock group exchange effective power information to dynamically elect a master and slave door lock, resulting in a role allocation within the door lock group. Following a preset evacuation route sequence, each door lock group sounds its horn sequentially at fixed time intervals, forming a sound relay for guidance, and dynamically switches horn modes based on the door lock power status. Based on the moderate power status of the master door lock, the master and slave door locks within the group negotiate an alternating horn cycle ratio based on the expected continuous horn duration, and transmit the negotiation information via multicast messages. Based on the low power status or dynamic trend prediction of the door lock group, auxiliary alarm requests are triggered for the preceding and following door lock groups, and the horn duration of each door lock group is dynamically adjusted based on the response results. This enables autonomous coordination and load balancing of horn-sounding tasks in emergency situations, improving the robustness, continuity, and overall energy efficiency of the alarm system. Attached Figure Description
[0044] Figure 1 A hardware structure block diagram of a computer terminal for a collaborative emergency handling method based on door lock power provided in an embodiment of the present invention;
[0045] Figure 2 A flowchart illustrating a collaborative emergency response method based on door lock power consumption provided in an embodiment of the present invention;
[0046] Figure 3 This is a schematic diagram of a collaborative emergency response system based on door lock power, provided as an embodiment of the present invention. Detailed Implementation
[0047] 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.
[0048] Hotels, commercial office buildings, apartments, and other similar establishments typically have multiple rooms on each floor, and emergency evacuation lights are installed in the hallways. These lights can be used to guide evacuees during emergencies such as fires and earthquakes. However, emergency evacuation lights only provide visual guidance, which is a limited method. People may not notice these lights in time during emergency evacuations, and they are also ineffective in guiding visually impaired individuals such as the blind or visually impaired.
[0049] This invention first provides a collaborative emergency response method based on door lock power. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers.
[0050] 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 collaborative emergency handling method based on door lock power consumption, provided as an embodiment of the present invention. Figure 1As shown, the computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory can include a non-volatile storage medium and an internal memory.
[0051] 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 perform any one of the collaborative emergency processing methods based on the door lock electric quantity.
[0052] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
[0053] The internal memory provides an environment for the execution of the computer program in the non-volatile storage medium, which, when executed by the processor, can cause the processor to perform any one of the collaborative emergency processing methods based on the door lock electric quantity.
[0054] 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 the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0055] It should be understood that the processor can be a central processing unit (CPU), and the processor 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 gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0056] Referring to Figure 2 The embodiments of the present application provide a collaborative emergency processing method based on door lock electric quantity, which can include the following steps:
[0057] S201, dynamic election of door lock group roles: according to the emergency start instruction, the members in each door lock group exchange valid electric quantity information to dynamically elect a master door lock and a vice door lock, and obtain a role allocation result in the door lock group. Specifically, the dynamic election of door lock group roles includes:
[0058] Effective power calculation: according to the current display power percentage, battery health coefficient and temperature coefficient of each door lock, the effective power of each door lock is calculated;
[0059] Role election trigger: according to the received emergency start instruction, the members in the door lock group exchange effective power information through unicast;
[0060] Election decision execution: according to the effective power comparison result, the door lock with high effective power is elected as the master door lock, and if the power is the same, the actual ID size is decided to obtain the role allocation result of the door lock group;
[0061] Election result notification: according to the election result, the master door lock sends a role notification message through multicast to complete the role synchronization in the door lock group.
[0062] S202, relay siren rule execution: according to the preset evacuation path order, each door lock group sounds the siren at fixed time intervals in turn to form a sound relay guide, and dynamically switches the siren mode according to the door lock power state; Specifically, the relay siren rule execution includes:
[0063] Siren relay start: according to the fact that the first door lock group G1 receives all door lock group role announcements, the relay alarm message containing the planned siren time is sent through multicast and the siren is executed;
[0064] Relay message transmission: according to the preset evacuation path order, each door lock group listens to the last hop multicast message, and sends the relay alarm message of the group at the planned siren time point and sounds the siren;
[0065] Siren mode judgment: according to the comparison result of the effective power of the master door lock and the preset threshold, dynamically select the normal siren mode in the group, the alternate siren mode in the group, the low-power cross-group mutual assistance siren mode or the low-power siren mode in the group alone;
[0066] Multi-cycle execution: according to the event that the last door lock group Gq completes the siren, a new round of siren cycle is started from the G1 door lock group, forming a continuous sound guide.
[0067] S203, in-group alternate siren negotiation: according to the medium power state of the master door lock, the master and vice door locks in the group negotiate the alternate siren cycle proportion based on the predicted continuous siren duration, and the negotiation information is transmitted through multicast message to realize distributed collaboration without local storage; Specifically, the in-group alternate siren negotiation includes:
[0068] Alternate siren trigger: according to the fact that the effective power of the master door lock is in the medium power interval, set the alternate siren start flag in the relay alarm message and carry the predicted continuous siren duration;
[0069] Periodic proportion negotiation: According to the alternate siren starting flag received by the auxiliary door lock, the expected duration of the siren is calculated, compared with the main door lock duration, and the whole is taken as the integer to calculate the period proportion of the alternate siren;
[0070] Negotiation information transmission: According to the negotiation result, the auxiliary door lock sends the alternate siren negotiation notification message through multicast, and the subsequent door lock group carries and transmits the alternate siren negotiation list in the relay alarm message;
[0071] Alternate siren execution: According to the negotiation list information in the relay alarm message, the main and auxiliary door locks of the door lock group rotate to execute the siren task according to the period proportion, and dynamically update the current period state;
[0072] Periodic renegotiation mechanism: According to the deviation between the actual power consumption speed and the expected value, any member in the door lock group can trigger the renegotiation process to update the alternate siren period proportion and synchronize through multicast message.
[0073] S204, cross-group mutual assistance siren trigger: According to the low power state or dynamic trend prediction of the door lock group, the auxiliary alarm request of the front and rear door lock groups is triggered, and the siren duration of each door lock group is dynamically adjusted based on the response result to form a cross-group mutual assistance mechanism. Specifically, the cross-group mutual assistance siren trigger includes:
[0074] Auxiliary alarm request trigger: According to the judgment result that the effective power of the door lock group is lower than the low power threshold, or based on global state statistics and power consumption trend prediction, set the auxiliary alarm request flag in the relay alarm message;
[0075] Cross-group response commitment: According to the received auxiliary alarm request, the subsequent door lock group and the previous door lock group reply to accept or reject the auxiliary request through multicast message according to the preset priority;
[0076] Siren duration dynamic adjustment: According to the cross-group response result, the siren duration of the request door lock group, the previous door lock group and the subsequent door lock group is dynamically adjusted to form a one-sound, two-sound or three-sound siren mode;
[0077] Help opportunity optimization: When the effective power of the door lock group is in the medium-low power threshold and the low power threshold interval, query the global door lock group siren mode through multicast, and the proportion of normal and alternate siren door lock groups is calculated. When the proportion exceeds the help threshold, the auxiliary alarm request is triggered in advance;
[0078] Trend prediction help: When the effective power of the door lock group is in the normal siren power threshold and the medium-low power threshold interval, the global average power change rate is calculated through relay message transmission and real-time calculation. When the power consumption rate of the door lock group is significantly higher than the average level, the auxiliary alarm request is triggered in advance.
[0079] Further, the method further includes a cooperative mechanism:
[0080] Global state statistics mechanism: Through the door lock group whistle mode query request and response, real-time statistics of the distribution of each whistle mode in the system, providing data support for predictive assistance;
[0081] Electricity consumption trend prediction mechanism: Through the calculation of the electricity change rate of each door lock group, the global average electricity change rate is transmitted and updated in the relay alarm message, realizing system-level electricity consumption trend monitoring;
[0082] Distributed negotiation storage mechanism: By transmitting the alternating whistle negotiation information in the multicast message, local storage of the door lock is avoided, ensuring the persistence and consistency of the negotiation information;
[0083] Multi-mode seamless switching mechanism: According to the change of electricity state, negotiation result and cross-group response, smooth switching between different whistle modes is realized, ensuring the continuity of emergency guidance.
[0084] For hotels, commercial office buildings, apartments and other places, each room is equipped with an intelligent door lock, which communicates through the building WiFi network and cooperates to sound the alarm, playing a role in emergency evacuation guidance, and can be used as a supplement to the evacuation mode of emergency evacuation lights.
[0085] Different door locks have different effective electricity, some have sufficient electricity, some have moderate electricity, and some have low electricity. Different whistle alarm strategies need to be specified for different electricity, and the overall alarm time of all door lock groups needs to be long, so that some low or moderate electricity door locks do not become a bottleneck.
[0086] I. Technical solution:
[0087] (I) Core idea:
[0088] Preset conditions:
[0089] Building floor door locks are connected through WiFi networking and managed by a door lock management platform. For a specified evacuation path, the door lock groups (consisting of two opposite door locks; if there is no opposite door lock, it can also be formed into a group independently) are virtually numbered as G1 to Gq groups from far to near of the evacuation port. After starting the emergency guidance, the system will sequentially and circularly whistle alarm (each whistle is "Ding~Ding~" 2 sounds) with a fixed alarm interval length ∆t, forming a sound relay to guide personnel to evacuate along the sound. The platform will pre-configure key information such as evacuation path and multicast address and distribute it to all door locks to prepare for the start of the process.
[0090] Core process:
[0091] 1. Dynamic determination of main and auxiliary door lock roles in door lock group:
[0092] After the emergency starts, the door locks in the group elect the master and the deputy door locks by exchanging the valid power information. The one with higher power is the master door lock (Gn_A), and if the power is the same, the one with the larger actual ID wins. After the election is completed, the master door lock multicasts the result, and after all the door locks in the group are elected, the G1 group starts the horn relay.
[0093] 2. Horn rules between door lock groups:
[0094] The door lock groups perform the horn in the order of G1, G2,..., Gq, and each door lock group performs the horn for 2 seconds ("Ding~Ding~" 2 sounds), and the interval between the horns is At (such as 2 seconds). After the horn of Gq is completed, a new round starts from G1, and so on. The horn mode in the door lock group is described as follows.
[0095] 3. Mode 1: normal horn mode in the group (horn alarm relay of the master door lock in the group under normal power):
[0096] For the door lock group Gn (n = 1, 2, 3,..., q), if the valid power of the master door lock is greater than or equal to the normal horn threshold (such as 50%), the master door lock independently undertakes the horn alarm task, and the process is as follows:
[0097] The door lock group G1 is responsible for the horn first, and the master door lock of G1 first judges whether the valid power is greater than or equal to the normal horn threshold, and if so, multicasts the "relay alarm message" (including the virtual number of the door lock group, the virtual number of the horn door lock, the planned horn time point, the virtual number of the next hop door lock group, etc.) and performs the horn alarm at the planned horn time point.
[0098] The door lock group G2 listens to the multicast message and relays, and the master door lock also judges whether the valid power is greater than or equal to the normal horn threshold, and if so, multicasts the "relay alarm message" and performs the horn alarm at the planned horn time point.
[0099] Finally, after the door lock group Gq relays (i.e., completes the first round of emergency direction alarm), a new round of alarm starts from the door lock group G1.
[0100] 4. Mode 2 (Mode 2 is the core protection point): alternate horn mode in the group (horn alarm relay of the master door lock under medium power in the group):
[0101] Under the medium power mode of the master door lock (i.e., the valid power is less than the normal horn threshold and greater than or equal to the low power threshold (such as 20%)), the master door lock and the deputy door lock alternately undertake the horn alarm task by turns. This mode makes the consumption rate of the power of the two door locks in the group consistent, and maximizes the endurance of the entire door lock group. The process is as follows:
[0102] The main door lock Gn_A of the door lock group Gn first judges its effective power after receiving the "relay alarm message" of the previous hop door lock group. If the effective power is less than the normal siren threshold and greater than or equal to the low power threshold (i.e., medium power), the door lock group multicasts the "relay alarm message" containing the door lock group virtual number (Gn), the siren door lock virtual number (Gn_A), the planned siren time point (the planned siren time point in the previous relay alarm message + the waiting interval length Δt), the next hop door lock group virtual number (G(n+1)), the alternate siren start flag in the group (value 1), the estimated continuous siren time length (Gn_A estimates according to its power, for example, 500 seconds, used for negotiation with Gn_B for the alternate siren period), the message timestamp, and sounds the alarm at the planned siren time point. The G(n+1) door lock group receives the multicast message and performs relay alarm (according to the effective power, respectively, according to mode 1, mode 2 or mode 3, mode 4).
[0103] At the same time, the secondary door lock Gn_B of the door lock group Gn detects the multicast message and finds that the sender is the opposite door lock and the alternate siren start flag in the message is 1. If the effective power is greater than or equal to the low power threshold, it agrees to alternate siren (if it is less than the low power threshold, it directly unicasts a rejection message to the main door lock Gn_A, i.e., the main door lock still undertakes the siren alarm task). It then calculates the estimated continuous siren time length (for example, 300 seconds) and compares it with the estimated continuous siren time length of the opposite door member (500 seconds) to obtain the alternate siren period ratio (k:m, such as 5:3) by integral calculation. It is determined that Gn_A undertakes the siren task for k (such as 5) periods (rounds) first, and then Gn_B undertakes the siren task for m (such as 3) periods (rounds) (this way is adopted to make the power consumption rates of the two tend to be consistent and maximize the total siren time of the entire door lock group). Then, Gn_B multicasts the "in-group alternate siren negotiation notification message" (this message is used to notify the current door lock group to be relayed) containing the negotiation door lock group virtual number (Gn), the negotiation notification door lock virtual number (Gn_B), the alternate period confirmation flag (0: indicates addition), the alternate period allocation information ([k,m], indicates k:m; in this example, [5,3] indicates that Gn_A undertakes 5 periods of siren (including this time) first, and then Gn_B undertakes 3 periods of siren, and then alternates), the current period state information ([1,0], indicates 1:0; in this example, it indicates that Gn_A has undertaken 1 period and Gn_B has undertaken 0 period).
[0104] The current relay alarm door lock group (not the negotiation door lock group, but the subsequent door lock group of the negotiation door lock group, that is, the door lock group that receives the last hop multicast message and is ready to send the multicast message and alarm) at this time adds the following field information: "alternating siren negotiation list" in the "relay alarm message" prepared for multicast sending after detecting the "in-group alternating siren negotiation notification message". The field contains 1-multiple alternating siren negotiation information of the negotiation door lock group, which is stored in a list. Each alternating siren negotiation information contains negotiation door lock group virtual number (such as Gn), alternating period allocation information (such as [k, m]), and current period state information (such as [1, 0]). The subsequent door lock group of the relay alarm door lock group copies and carries the alternating siren negotiation list information in the "relay alarm message" for multicast sending, and when it is the turn of the relay alarm, if it detects a new "in-group alternating siren negotiation notification message" sent by other door locks, it adds the negotiation information of the new negotiation door lock group (that is, the virtual number of the new negotiation door lock group, the alternating period allocation information, and the current period state information) in the "relay alarm message" prepared for sending in the alternating siren negotiation list field.
[0105] After the door lock group Gq completes the relay alarm, a new cycle starts from G1. Then, in this round, after the door lock group Gn receives the relay alarm message of the last hop door lock group again, the master door lock and the vice door lock find that the negotiation door lock group virtual number Gn is included in the "alternating siren negotiation list" field in the relay alarm message (which indicates that it is the negotiation information of the door lock group itself), and then see the corresponding alternating period allocation information (such as [5, 3]) and current period state information (such as [1, 0]) in the field, which indicates which door lock is to sound the siren (in the current example, it can be determined that the master door lock is allocated to the 5th cycle, and the current completed cycle is the 1st cycle, so it can be determined that the master door lock needs to sound the siren for the 2nd time), so the master door lock multicasts the "relay alarm message" (at this time, the "alternating siren negotiation list" field in the multicast message needs to be updated to [2, 0] corresponding to the master door lock, which indicates that the master door lock has sounded the siren for the 2nd time), and sounds the siren at the planned siren time. Similarly, the subsequent door lock group continues to carry the updated "alternating siren negotiation list" information when multicasting the message.
[0106] Then, after the door lock group Gq completes the relay alarm, a new cycle starts from G1. When the door lock group Gn is the relay alarm this time, the master door lock and the vice door lock analyze the "alternating siren negotiation list" field in the relay alarm message of the last hop door lock, see the alternating period allocation information ([5, 3]) and the current period state information ([2, 0]) corresponding to Gn, and determine that the master door lock needs to sound the siren again and update the current period state information (to [3, 0]). This is the same as the above.
[0107] If in the new round, the door lock group Gn relay alarm, the main door lock and the auxiliary door lock find that the alternating cycle allocation information ([5, 3]) and the current cycle state information ([5, 0]) corresponding to Gn in the last hop door lock message, it is clear that the main door lock has completed the allocated 5 rounds of siren, and this time the auxiliary door lock relays the alarm and updates the current cycle state information (changed to [5, 1]). Further, if in the subsequent round, the door lock group Gn relay alarm, the main door lock and the auxiliary door lock find that the alternating cycle allocation information ([5, 3]) and the current cycle state information ([5, 3]) corresponding to Gn in the last hop door lock message, it is clear that this time the main door lock relays the alarm again and updates the current cycle state information (changed to [1, 0]).
[0108] In the above manner, the main and auxiliary door locks in the door lock group realize alternating siren according to the alternating cycle proportion after negotiation based on the effective power. The alternating siren negotiation information is transmitted in sequence through the multicast message. The reason for this design is that the local storage medium of the negotiation door lock group is limited, and needs to store other key information such as emergency evacuation path information, so the negotiation information is not saved locally. In addition, if the negotiation information is only saved in the door lock cache, the cache data will be lost due to door lock restart and other reasons, and subsequent negotiation is required, which wastes time. Therefore, the negotiation information of the alternating siren is transmitted in sequence through the relay alarm message. After the negotiation door lock group receives the last hop multicast message, it can directly determine and realize the alternating siren based on the message, without the need for local storage and re-negotiation, thereby improving the efficiency.
[0109] After the negotiation door lock group Gn has alternately executed several cycles, any party of the member door lock can unicast the "cycle re-negotiation message" to the opposite door lock if necessary (such as finding that the power consumption speed exceeds the expected value), containing the re-negotiation door lock virtual number, the group alternating siren re-negotiation flag (taking the value 1), the updated estimated continuous siren time length, etc. The opposite door lock re-calculates the estimated continuous siren time length and re-calculates the alternating cycle allocation information. If it is consistent with the original alternating cycle, the re-negotiation door lock is unicast rejected; if the alternating cycle allocation information changes (such as [k', m']), the "group alternating siren negotiation update message" is multicast sent, containing the negotiation door lock group virtual number (Gn), the negotiation update door lock virtual number (Gn_A or Gn_B), the alternating cycle confirmation flag (1: indicating update), the alternating cycle allocation information ([k', m']).
[0110] The current relay alarm door lock group at this time (again, not the negotiation door lock group Gn, but the door lock group that is currently receiving the last hop multicast message and preparing to relay and send the multicast message and alarm), after detecting the "in-group alternating siren negotiation update message" sent by the Gn multicast, updates the alternating period allocation corresponding to the negotiation door lock group Gn in the "alternating siren negotiation list" field in the "relay alarm message" being prepared for multicast sending (update to [k', m']), and is transmitted in turn through the subsequent door lock groups. Subsequently, the negotiation door lock group Gn receives the last hop door lock group message, parses the alternating siren negotiation list information, and performs alternating siren according to the newly negotiated period.
[0111] 5. Mode 3: low power cross-group mutual assistance siren mode, mode 4: low power in-group alone siren mode
[0112] Scenario (1): low power cross-group mutual assistance siren mode and low power in-group alone siren mode triggering in general case
[0113] When the main door lock of the Gn door lock group effectively consumes less than the low power threshold, the front and rear door lock group auxiliary alarm request is triggered, if the subsequent door lock group or the previous door lock group agrees, the low power cross-group mutual assistance siren mode is entered; if both refuse, the low power in-group alone siren mode is entered. The flow is as follows:
[0114] If the main door lock of the Gn door lock group has an effective power less than the low power threshold, the "auxiliary alarm request flag" is set when the multicast relay alarm message is sent. This time it still normally siren 2 times.
[0115] The subsequent door lock group G(n+1) detects the request, and when it is the turn to relay, it sends the "relay alarm message" through multicast, and synchronously replies whether to accept the request (use the auxiliary alarm request response field to reply, code 11 for acceptance, 10 for refusal; the first bit 1 indicates the subsequent door lock group). This time it also normally sires 2 times.
[0116] If G(n+1) refuses, the previous door lock group G(n-1) will detect this result and send an additional "front and rear door lock group auxiliary alarm request response message" through multicast to reply whether to accept the request by itself (also use the auxiliary alarm request response field to reply, code 01 for acceptance, 00 for refusal; the first bit 0 indicates the previous door lock group). This time it also normally sires 2 times.
[0117] From the next round, the relevant door lock groups adjust the siren mode according to the response result: in the case of G(n+1) acceptance, Gn relays first siren 1 time, then G(n+1) relays siren 3 times; in the case of G(n+1) refusal but G(n-1) acceptance, G(n-1) relays first siren 3 times, then Gn relays siren 1 time; in the case of both refusal, Gn still maintains siren 2 times, until the power is extremely low.
[0118] Scenario (2): Trigger the front and rear door lock group auxiliary alarm request in advance by counting the number of door lock groups with abnormal and alternating siren:
[0119] In the above process 5 scenario (1), the door lock group master door lock triggers the front and rear door lock group auxiliary alarm request in the low power situation. At this time, the common situation may be that the front and rear door lock groups have been alarmed for a long time, and the power is not high. Therefore, the probability of the low power door lock group seeking help being rejected is large, so that the help is lost. In addition to judging the help based on the low power, the door lock group also increases a help scenario: when the effective power of the door lock group is less than the medium-low power threshold but greater than or equal to the low power threshold, first count the number of door lock groups with normal and alternating siren in all door lock groups. If the number accounts for more than the help threshold, trigger the front and rear door lock group auxiliary alarm request in advance, otherwise do not trigger in advance. The process is as follows:
[0120] The door lock group Gn currently alarmed door lock (may be master door lock or vice door lock) before sending the multicast message "relay alarm message" and siren, finds that its effective power is less than the medium-low power threshold but greater than or equal to the low power threshold, and adds the field "door lock group siren mode query" (1: indicates request) in the multicast message sent.
[0121] Each door lock group (G(n+1), G(n+2),..., Gq, G1,..., G(n-1)) on the relay path listens to the message, and when it is in turn to send the "relay alarm message", the door lock group siren mode of itself is attached to the multicast message (only one round is sent). The siren mode takes value: 0 represents mode 1 (normal siren mode within the group), 1 represents mode 2 (alternating siren mode within the group), 2 represents mode 3 (low power cross-group mutual assistance siren mode), and 3 represents mode 4 (low power group alone siren mode).
[0122] The door lock group Gn listens to the multicast message of each door lock group, and counts the siren mode of all other door lock groups. The number of door lock groups with normal and alternating siren (i.e. mode 1 and mode 2) is judged. If the number accounts for more than the help threshold (such as 50%, indicating that more than half of the door lock groups are not low power) in all door lock groups, the front and rear door lock group auxiliary alarm request flag in the multicast message is set to 1 when it is in turn to send the relay alarm message next time, and the auxiliary alarm request is triggered in advance. The subsequent process is described in process 5 scenario (1) and will not be repeated.
[0123] Scenario (3): Trigger the front and rear door lock group auxiliary alarm request in advance by comparing the global average power change rate:
[0124] In the above scenario (2) of flow 5, the door lock group effective power is in the interval between the medium-low power threshold and the low power threshold, the front and rear door lock group auxiliary alarm request is triggered in advance. If the power consumption of the door lock group is faster (higher than the average level of all door lock groups), even in scenario (2), the power may be consumed faster and become a bottleneck in the relay chain. Therefore, this scenario is based on scenario (2) described above, if the door lock group effective power is in the interval between the normal horn power threshold and the medium-low power threshold, further compare the door lock group power change rate with the global average power change rate, if the former is greater than the latter by a certain amplitude, the front and rear door lock group auxiliary alarm request is triggered in advance. The flow is as follows:
[0125] Each door lock group Gn current alarm door lock, before multicasting the "relay alarm message" and the horn, records the current power, and compares it with the power at the last time of the horn, calculates the power change rate R_self of this horn itself = (last power-current power) / time interval.
[0126] The two member door locks in Gn continuously exchange their respective power change rate information through unicast message. Therefore, the door lock group power change rate of the current alarm door lock of Gn can be grasped in real time: if it is a double-member door lock group, R_n = (R_self_A+R_self_B) / 2 (i.e. the average of the master and auxiliary door lock power change rates); if it is a single-member door lock group, R_n = R_self.
[0127] When it is the turn of door lock group Gn to send "relay alarm message", it first obtains the global average power change rate GR_prev transmitted by the last hop door lock group G(n-1) from the received multicast message; then Gn calculates the latest global average power change rate GR_new = (GR_prev*(n-1)+R_n) / n to the door lock group; then sends "relay alarm message" containing the latest global average power change rate. The successor door lock receives the multicast message of the last hop door lock, and calculates the latest global average power change rate, and transmits it in turn with the relay alarm through the multicast message. Finally, the multicast message of door lock group Gq contains the global average power change rate of the whole path.
[0128] After that, at the beginning of a new round of emergency pointing cycle, from G1 to Gq, the current alarm door lock of each door lock group first judges whether its effective power is in the interval between the normal horn power threshold and the medium-low power threshold after updating the door lock group power change rate and the global average power change rate; if so, further compare the door lock group power change rate with the global average power change rate, if the former is higher than the latter by a certain proportion (such as 20%), trigger the front and rear door lock group auxiliary alarm request in advance (the front and rear door lock group auxiliary alarm request flag in the multicast message is set to 1). The subsequent process is described in scenario (1) of flow 5, and will not be repeated here.
[0129] (II) Technical implementation complete process:
[0130] Preconditions:
[0131] The floor is provided with multiple rooms, and all of them are installed with intelligent door locks. All door locks are uniformly connected to the building WiFi network, and centralized management is realized through the door lock management platform, and NTP service is used to keep time synchronization.
[0132] Each floor can be provided with multiple evacuation paths (from the corridor to the floor evacuation port), and each door lock belongs to only one path. The following will be described by taking a single evacuation path as an example. The door locks of the opposite doors in the corridor form a door lock group (if there is no door lock opposite the door, then one door lock can also form a door lock group). For a designated evacuation path, it is composed of multiple door lock groups, which are represented by Gn (n = 1, 2,..., q). The virtual number of the door lock group farthest from the floor evacuation port is G1, the virtual number of the next farthest door lock group is G2, and the virtual number of the nearest door lock group is Gq. Gn is composed of two door locks of opposite doors (the virtual numbers are Gn_A and Gn_B respectively) (if there is only one door lock, it is Gn_A), wherein A is the main door lock and B is the auxiliary door lock. The roles of the main and auxiliary door locks are determined after the start of the emergency pointing, i.e. the door lock with more power in the door lock group is determined as the main door lock, and the other is the auxiliary door lock. The roles of the main and auxiliary door locks are determined in this emergency pointing process and do not change.
[0133] After starting the emergency pointing, the door lock group will start the alarm (such as "Dit~Dit~", the same below) from G1, and then wait for an interval length (Δt, such as 2 seconds) before sounding from G2, and then G3, G4, etc., and finally sounding from Gq (from G1 to Gq, which completes a round of emergency pointing alarm), and then starts a new round of alarm from G1, realizing emergency evacuation pointing based on door lock alarm sound (i.e. people in the corridor can evacuate in the direction of the evacuation port by following the sound of the door lock).
[0134] The door lock management platform has previously configured emergency evacuation path information, including door lock group number list (Gn list), door lock group member ID list (which is the actual ID list of the door lock group members, not the emergency pointing virtual number; at this time, the roles of A and B are not determined), door lock group member IP list, single sounding alarm number (such as 2 times), alarm interval length (such as Δt seconds), multicast group address (MC) corresponding to the path, etc., and is issued in advance to each door lock.
[0135] Core process:
[0136] 1. Dynamic determination of the roles of the main and auxiliary door locks in the door lock group:
[0137] After starting the emergency pointing, the door lock management platform broadcasts and issues the "start emergency pointing" instruction. All door locks join the multicast group MC.
[0138] The door lock group member door lock respectively sends a "in-group role election message" to another door lock in the group (if any), containing its own valid power information. The valid power = current display power percentage * battery health degree coefficient * temperature coefficient, and the battery health degree coefficient and temperature coefficient take values in the interval of 0-1. After receiving the status information of the in-group door member, each member door lock independently runs the same decision algorithm to ensure consistent election results. The decision algorithm, for example, first compares the valid power of the other party and itself, and the one with the larger valid power is the main door lock (the main door lock initially undertakes the group horn alarm task, so it needs to select the one with the larger valid power). If the values are the same, then compare the actual IDs of the two door locks, and the one with the larger ID is the main door lock.
[0139] In the door lock group Gn, the door lock determined as the main door lock has a virtual number Gn_A, and the door lock opposite the door is the secondary door lock with a virtual number Gn_B. The main door lock of all door lock groups multicasts a "main door lock announcement message" containing the door lock group virtual number (Gn), the main door lock virtual number (Gn_A), and the main door lock actual ID. The message has two functions: one is to clearly inform the secondary door lock in the group of the election results; the other is to feedback to G1 that the election has been completed and the horn is ready to sound. After receiving the multicast message of the main door lock of all door lock groups, the door lock group G1 automatically starts the horn alarm relay process.
[0140] 2. Horn rules between door lock groups:
[0141] The horn sounds in the order of G1, G2,..., Gq, and each door lock group sounds for 2 seconds ("Ding~Ding~" 2 sounds), and the interval between the horns is ∆t (such as 2 seconds). After Gq finishes sounding, a new round starts from G1, and so on. The in-group horn mode mainly includes in-group normal horn mode, in-group alternate horn mode, low-power cross-group mutual horn mode, and low-power in-group alone horn mode, which are described as follows.
[0142] 3. Mode 1: In-group normal horn mode (horn alarm relay of the main door lock in the group under normal power):
[0143] For the door lock group Gn (n = 1, 2, 3,..., q), if the main door lock's own valid power is greater than or equal to the normal horn threshold (such as 50%), the main door lock undertakes the horn alarm task, and the door lock group is in the in-group normal horn mode. The process is as follows:
[0144] The door lock group G1 is responsible for sounding the whistle first. The main door lock G1_A first judges whether the effective power is greater than or equal to the normal whistle threshold value. If yes, the “relay alarm message” is multicast, containing the door lock group virtual number (G1), the whistle door lock virtual number (G1_A), the planned whistle time point (for the first whistle door lock group, the planned whistle time point is NOW, indicating the same as the message timestamp, immediately whistle), the next hop door lock group virtual number (G2), and the message timestamp. And immediately whistle alarm (“Ding~Ding~” 2 sounds, a total of 2 seconds).
[0145] The door lock group G2 detects the multicast message, and the G2 member door lock finds that the next hop is the group it belongs to. Then it relays, and the main door lock G2_A judges whether the effective power is greater than or equal to the normal whistle threshold value. If yes, the “relay alarm message” is multicast, containing the door lock group virtual number (G2), the whistle door lock virtual number (G2_A), the planned whistle time point (from the G2 door lock group, the subsequent planned whistle time point is the planned whistle time point in the last relay alarm message + the waiting interval length (Δt), if the calculated time point is less than the current time point, update it to NOW, indicating the same as the message timestamp, and immediately whistle), the next hop door lock group virtual number (G3), and the message timestamp. At the planned whistle time point, whistle alarm (“Ding~Ding~” 2 sounds, a total of 2 seconds).
[0146] Similarly, the last door lock group Gq detects the last-hop multicast message, and the main door lock Gq_A judges whether the effective power is greater than or equal to the normal whistle threshold value. If yes, the “relay alarm message” is multicast, and whistle alarm is sounded at the planned whistle time point.
[0147] Then, start again from the door lock group G1, relay and cycle according to the above process.
[0148] 4. Mode 2: In-group alternate whistle mode (whistle alarm relay of in-group main door lock under medium power):
[0149] For the door lock group Gn, if the main door lock judges that the effective power is less than the normal whistle threshold value (such as 50%) and greater than or equal to the low power threshold value (such as 20%), the main door lock and the auxiliary door lock alternate to undertake the whistle alarm task, and the door lock group is in the in-group alternate whistle mode. This mode makes the consumption rate of the power of the two door locks in the group consistent, maximizing the endurance of the entire door lock group. The process is as follows:
[0150] The main door lock Gn_A of the door lock group Gn first judges its effective power after receiving the "relay alarm message" of the last-hop door lock group. If the effective power is less than the normal siren threshold and greater than or equal to the low power threshold (i.e., medium power), the door lock group multicasts the "relay alarm message" containing the door lock group virtual number (Gn), the siren door lock virtual number (Gn_A), the planned siren time point (the planned siren time point in the last relay alarm message + the waiting interval length Δt), the next-hop door lock group virtual number (G(n+1)), the alternate siren start flag in the group (value 1), the estimated continuous siren time length (Gn_A estimates according to its power, for example, 500 seconds, used for negotiation with Gn_B for the alternate siren period), the message timestamp, and sounds the alarm at the planned siren time point. The G(n+1) door lock group receives the multicast message and performs relay alarm (according to the effective power, respectively, according to mode 1, mode 2, or mode 3, mode 4).
[0151] At the same time, the secondary door lock Gn_B of the door lock group Gn detects the multicast message and finds that the sender is the opposite door lock and the alternate siren start flag in the message is 1. If the effective power is greater than or equal to the low power threshold, it agrees to alternate siren (if it is less than the low power threshold, it directly unicasts a rejection message to the main door lock Gn_A, i.e., the main door lock still undertakes the siren alarm task). It then calculates the estimated continuous siren time length (for example, 300 seconds) and compares it with the estimated continuous siren time length of the opposite door member (500 seconds) to obtain the alternate siren period ratio (k:m, such as 5:3) by integral calculation. It is determined that Gn_A undertakes the siren task for k (such as 5) periods (rounds) first, and then Gn_B undertakes the siren task for m (such as 3) periods (rounds) (this way is adopted to make the power consumption rates of the two tend to be consistent and maximize the total siren time of the entire door lock group). Then, Gn_B multicasts the "in-group alternate siren negotiation notification message" (this message is used to notify the current door lock group to be relayed) containing the negotiation door lock group virtual number (Gn), the negotiation notification door lock virtual number (Gn_B), the alternate period confirmation flag (0: indicates addition), the alternate period allocation information ([k,m], indicates k:m; in this example, [5,3] indicates that Gn_A undertakes 5 periods of siren (including this time) first, and then Gn_B undertakes 3 periods of siren, and then alternates), the current period state information ([1,0], indicates 1:0; in this example, it indicates that Gn_A has undertaken 1 period and Gn_B has undertaken 0 period).
[0152] The current relay alarm door lock group (not the negotiation door lock group, but the subsequent door lock group of the negotiation door lock group, that is, the door lock group that receives the last hop multicast message and is ready to send the multicast message and alarm) at this time adds the following field information: "alternating siren negotiation list" in the "relay alarm message" prepared for multicast sending after detecting the "in-group alternating siren negotiation notification message". The field contains 1-multiple alternating siren negotiation information of the negotiation door lock group, which is stored in a list. Each alternating siren negotiation information contains negotiation door lock group virtual number (such as Gn), alternating period allocation information (such as [k, m]), and current period state information (such as [1, 0]). The subsequent door lock group of the relay alarm door lock group copies and carries the alternating siren negotiation list information in the "relay alarm message" for multicast sending, and when it is the turn of the relay alarm, if it detects a new "in-group alternating siren negotiation notification message" sent by other door locks, it adds the negotiation information of the new negotiation door lock group (that is, the virtual number of the new negotiation door lock group, the alternating period allocation information, and the current period state information) in the "relay alarm message" prepared for sending in the alternating siren negotiation list field.
[0153] After the door lock group Gq completes the relay alarm, a new cycle starts from G1. Then, in this round, after the door lock group Gn receives the relay alarm message of the last hop door lock group again, the master door lock and the vice door lock find that the negotiation door lock group virtual number Gn is included in the "alternating siren negotiation list" field in the relay alarm message (which indicates that it is the negotiation information of the door lock group itself), and then see the corresponding alternating period allocation information (such as [5, 3]) and current period state information (such as [1, 0]) in the field, which indicates which door lock is to sound the siren (in the current example, it can be determined that the master door lock is allocated to the 5th cycle, and the current completed cycle is the 1st cycle, so it can be determined that the master door lock needs to sound the siren for the 2nd time), so the master door lock multicasts the "relay alarm message" (at this time, the "alternating siren negotiation list" field in the multicast message needs to be updated to [2, 0] corresponding to the master door lock, which indicates that the master door lock has sounded the siren for the 2nd time), and sounds the siren at the planned siren time. Similarly, the subsequent door lock group continues to carry the updated "alternating siren negotiation list" information when multicasting the message.
[0154] Then, after the door lock group Gq completes the relay alarm, a new cycle starts from G1. When the door lock group Gn is the relay alarm this time, the master door lock and the vice door lock analyze the "alternating siren negotiation list" field in the relay alarm message of the last hop door lock, see the alternating period allocation information ([5, 3]) and the current period state information ([2, 0]) corresponding to Gn, and determine that the master door lock needs to sound the siren again and update the current period state information (to [3, 0]). This is also true.
[0155] If in the new round, the door lock group Gn relay alarm, the main door lock and the vice door lock found that the last hop door lock message, Gn corresponding to the alternate cycle allocation information ([5, 3]) and the current cycle state information ([5, 0]), the main door lock has completed the allocated 5 rounds of whistle, this time by the vice door lock relay alarm and update the current cycle state information (changed to [5, 1]). Further, if in the subsequent round, the door lock group Gn relay alarm, the main door lock and the vice door lock found that the last hop door lock message, Gn corresponding to the alternate cycle allocation information ([5, 3]) and the current cycle state information ([5, 3]), the main door lock is clear this time by the alarm and update the current cycle state information (renewed to [1, 0]).
[0156] In the above manner, the main and vice door locks in the door lock group are alternately whistled according to the alternate cycle proportion after the effective power negotiation. The alternate whistle negotiation information is transmitted in sequence through the multicast message. The reason for this design is that the local storage medium of the negotiation door lock group is limited, and other key information such as emergency evacuation path information needs to be stored, so the negotiation information is not saved locally. In addition, if the negotiation information is only kept in the door lock cache, the cache data will be lost due to door lock restart and other reasons, and subsequent negotiation will be wasted. Therefore, the negotiation information of the alternate whistle is transmitted in sequence through the relay alarm message. After the negotiation door lock group receives the last hop multicast message, it can directly determine and implement the alternate whistle according to the message, without local storage and re-negotiation, thereby improving the efficiency.
[0157] After the negotiation door lock group Gn alternately executes several cycles, any party of the member door lock can unicast the "cycle re-negotiation message" to the opposite door lock if necessary (such as finding that the power consumption speed exceeds the expected value), containing the re-negotiation door lock virtual number, the group alternate whistle re-negotiation flag (value 1), the updated expected continuous whistle time length, etc. The opposite door lock recalculates its expected continuous whistle time length and recalculates the alternate cycle allocation information. If it is consistent with the original alternate cycle, the re-negotiation door lock is unicast rejected; if the alternate cycle allocation information changes (such as [k', m']), the "group alternate whistle negotiation update message" is multicast sent, containing the negotiation door lock group virtual number (Gn), the negotiation update door lock virtual number (Gn_A or Gn_B), the alternate cycle confirmation flag (1: indicating update), the alternate cycle allocation information ([k', m']).
[0158] At this time, the current relay alarm door lock group (also not the negotiation door lock group Gn, but the door lock group that is currently received after the last hop multicast message, prepares to relay and send the multicast message and alarm), after detecting the "in-group alternating siren negotiation update message" sent by the Gn multicast, updates the alternating period allocation corresponding to the negotiation door lock group Gn in the "alternating siren negotiation list" field in the "relay alarm message" ready for multicast sending, and transmits it in turn through the subsequent door lock group. Subsequently, the negotiation door lock group Gn receives the message from the last hop door lock group, parses the alternating siren negotiation list information, and performs alternating siren according to the newly negotiated period.
[0159] 5. Mode 3: Low power cross-group mutual assistance siren mode, mode 4: low power in-group alone siren mode:
[0160] According to the foregoing process, when the door lock group master door lock is in medium power (the effective power of the door lock group is less than the normal siren threshold and greater than or equal to the low power threshold), the door lock group siren mode has two ways: ① If the effective power of the secondary door lock is greater than or equal to the low power threshold, the master and secondary door locks alternate siren; ② If the effective power of the secondary door lock is less than the low power threshold, the secondary door lock refuses to alternate siren, and still siren alone by the master door lock.
[0161] In the above two cases, when the effective power of the master door lock is less than the low power threshold, for case ①, the effective power of the secondary door lock is also basically in the low power threshold range (because the alternating siren period negotiated before is to make the consumption speed of the two close); for case ②, the effective power of the secondary door lock is already less than the low power threshold. Since both member door locks are in a low power state, the master door lock decides to trigger the front and rear door lock group auxiliary alarm request to save its own power, and the auxiliary alarm specific mode is as follows:
[0162] 1) If the subsequent next hop door lock group agrees to auxiliary alarm, the requested door lock group changes from originally sounding 2 sounds ("Ding~Ding~") to sounding 1 sound ("Ding~"), and the subsequent door lock group changes from originally sounding 2 sounds ("Ding~Ding~") to sounding 3 sounds ("Ding~Ding~Ding~").
[0163] 2) If the subsequent next hop door lock group refuses to assist in the alarm, but the previous previous hop door lock group agrees to assist in the alarm, the previous door lock group changes from originally sounding 2 sounds to sounding 3 sounds, the requested door lock group still changes from originally sounding 2 sounds to sounding 1 sound, and the subsequent door lock group remains unchanged (still originally sounding 2 sounds).
[0164] 3) If the subsequent door lock group and the previous door lock group both refuse to assist in the alarm, the requested door lock group still maintains sounding 2 sounds, and when the effective power is less than half of the low power, the siren stops, and the power is reserved for unlocking.
[0165] The above-mentioned 1) and 2) modes are collectively referred to as a low-battery cross-group mutual siren mode, and the 3) mode is referred to as a low-battery in-group independent siren mode.
[0166] Scenario (1): Low-battery cross-group mutual siren mode and low-battery in-group independent siren mode triggering in a general case:
[0167] As described above, when the effective power consumption of the master door lock is less than the low-battery threshold, a preceding and subsequent door lock group auxiliary alarm request is triggered, and if the subsequent door lock group or the preceding door lock group agrees, the low-battery cross-group mutual siren mode is entered; if both refuse, the in-group independent siren mode is entered.
[0168] The specific process is as follows:
[0169] When it is the turn of the door lock group Gn to alarm, the master door lock Gn_A first judges its own effective power, and if it is less than the low-battery threshold, it multicasts a "relay alarm message" containing the door lock group virtual number (Gn), the siren door lock virtual number (Gn_A), the planned siren time point, the next-hop door lock group virtual number (G(n+1)), the message timestamp information, and further containing the preceding and subsequent door lock group auxiliary alarm request flag (1: request). At the planned siren time point, the master door lock Gn_A still normally siren alarms (two "beep beep" sounds) this time.
[0170] In response to the above-mentioned "relay alarm message", the preceding door lock group G(n-1) and the subsequent door lock group G(n+1) detect the multicast message and find that the preceding and subsequent door lock group auxiliary alarm request flag is 1.
[0171] The subsequent door lock group G(n+1) multicasts a "relay alarm message" when it is its turn to relay the message. The current alarm door lock (which may be the master door lock G(n+1)_A or the vice door lock G(n+1)_B) according to its own effective power, if greater than or equal to the low-battery threshold, can accept the auxiliary alarm, which records the agreement of the auxiliary alarm (containing the auxiliary alarm object Gn and the response status: accept) locally, and multicasts the "relay alarm message". The multicast message contains the door lock group virtual number (G(n+1)), the siren door lock virtual number (G(n+1)_A or G(n+1)_B), the planned siren time point, the next-hop door lock group virtual number (G(n+2)), the message timestamp information, and further contains the auxiliary alarm request door lock group virtual number (Gn) and the auxiliary alarm request response (11, the first 1 indicates the subsequent door lock group, and the second 1 indicates acceptance). At the planned siren time point, the door lock group G(n+1) still normally siren alarms (two "beep beep" sounds) this time. The current alarm door lock of the subsequent door lock group G(n+1) can also refuse according to its own effective power (if it is lower than the low-battery threshold), and the auxiliary alarm request response information in the multicast message is 10. The door lock group Gn detects the message and records the G(n+1) as an acceptance or refusal status information.
[0172] After the pre-sequence door lock group G(n-1) detects that G(n+1) has replied to the information, if it finds that G(n+1) has accepted, it does not need to be processed; if it finds that G(n+1) has rejected, the current alarm door lock of G(n-1) can accept the auxiliary alarm according to its valid power, if it is greater than or equal to the low power threshold, it can accept the auxiliary alarm, which records the agreement of the auxiliary alarm (including the auxiliary alarm object Gn, the response state: accept) locally, and multicasts the “pre-and-post door lock group auxiliary alarm request response message”, including the door lock group virtual number (G(n-1)), the siren door lock virtual number (G(n-1)_A or G(n-1)_B), the auxiliary alarm request door lock group (Gn), and the auxiliary alarm request response (01, the former 0 represents the pre-sequence door lock group, and the latter 1 represents acceptance); otherwise, it can reject, and the auxiliary alarm request response information in the multicast message is 00. After the door lock group Gn detects the message, it also records the acceptance or rejection state information of G(n-1).
[0173] In the next round of emergency pointing alarm, the pre-sequence door lock group, the request door lock group, and the subsequent door lock group perform corresponding siren alarms according to the request and response results, including no change (siren 2 sound), reduced siren (siren 1 sound), and increased siren (siren 3 sound), to realize the pre-and-post door lock group siren auxiliary in the low power condition of the request door lock group.
[0174] Scenario (2): Triggering the pre-and-post door lock group auxiliary alarm request in advance by counting the number of non-normal and alternating siren door lock groups:
[0175] In the above process 5 scenario (1), the door lock group main door lock triggers the pre-and-post door lock group auxiliary alarm request in the low power condition. At this time, the general situation may be that the pre-and-post door lock groups have been alarmed for a long time and the power is not high, so the probability of the low power door lock group seeking help being rejected is relatively large, making the help seeking lose its value. In addition to seeking help based on low power, the door lock group also increases a seeking help scenario: when the valid power of the door lock group is less than the medium-low power threshold (such as 30%, the medium-low power threshold is greater than the low power threshold, but much smaller than the normal siren threshold) but greater than or equal to the low power threshold, first count the number of normal and alternating siren door lock groups in all door lock groups, if the number accounts for more than the help seeking threshold (such as 50%, indicating that more than half of the door lock groups have sufficient power, the door lock group can seek help in advance, increasing the success probability of help seeking, and also not affecting the stability of the overall relay chain), trigger the pre-and-post door lock group auxiliary alarm request in advance, otherwise do not trigger in advance. The process is as follows:
[0176] Before multicasting the “relay alarm message” and siren, the current alarm door lock of the door lock group Gn (which may be the main door lock or the auxiliary door lock) finds that its valid power is less than the medium-low power threshold but greater than or equal to the low power threshold, and adds the field “door lock group siren mode query” (1: indicates request) in the multicasting message.
[0177] Each door lock group (G(n+1), G(n+2),..., Gq, G1,..., G(n-1)) on the relay path detects the door lock group horn mode query in the group message, and when it is the turn to send the "relay alarm message", the door lock group horn mode of itself is attached to the group message (only one round is sent), wherein the horn mode takes the value: 0 represents mode 1 (normal horn mode in the group), 1 represents mode 2 (alternating horn mode in the group), 2 represents mode 3 (low power cross-group mutual horn mode), and 3 represents mode 4 (low power horn mode in the group).
[0178] The door lock group Gn listens to the group message of each door lock group, and counts the horn mode of all other door lock groups. The number of door lock groups in normal and alternating horn (i.e. mode 1 and mode 2) is judged. If the number accounts for more than the help threshold (such as 50%, indicating that more than half of the door lock groups are not low power) in all door lock groups, the front and rear door lock group auxiliary alarm request flag in the group message is set to 1 when it is the turn to send the relay alarm message next time, and the auxiliary alarm request is triggered in advance. The subsequent process is described in scenario (1) of process 5, and will not be repeated.
[0179] Scenario (3): Triggering the auxiliary alarm request of the front and rear door lock groups in advance by comparing the global average power change rate:
[0180] In the above scenario (2) of process 5, when the effective power of the door lock group is between the medium-low power threshold and the low power threshold, the auxiliary alarm request of the front and rear door lock groups is triggered in advance. If the power consumption of the door lock group is fast (higher than the average level of all door lock groups), even in scenario (2), it may quickly consume the power and become a bottleneck in the relay chain. Therefore, this scenario is based on the above scenario (2), if the effective power of the door lock group is between the normal horn power threshold and the medium-low power threshold, the door lock group power change rate is compared with the global average power change rate, and if the former is greater than the latter by a certain margin, the auxiliary alarm request of the front and rear door lock groups is further triggered in advance. The process is as follows:
[0181] The current alarm door lock (which may be the main door lock or the auxiliary door lock) of each door lock group Gn, before sending the "relay alarm message" and the horn in the group, records the current power, and compares it with the power at the last horn to calculate the power change rate R_self of this horn, which is (last power - current power) / time interval.
[0182] The two member door locks in Gn continuously exchange their respective power change rate information through unicast messages. Therefore, the current alarm door lock of Gn can grasp the power change rate of its door lock group in real time: if it is a double-member door lock group, R_n = (R_self_A + R_self_B) / 2 (i.e. the average of the power change rates of the primary and secondary door locks); if it is a single-member door lock group, R_n = R_self.
[0183] When it is the turn of the door lock group Gn to send the "relay alarm message", it first obtains the global average power change rate GR_prev transmitted by the previous hop door lock group G(n-1) from the received multicast message; then Gn calculates the latest global average power change rate GR_new = (GR_prev * (n-1) + R_n) / n up to the current node; and then sends the "relay alarm message" containing the latest global average power change rate. Upon receiving the multicast message from the previous hop door lock, the subsequent door locks will all calculate the latest global average power change rate, and the relay alarm will be transmitted in turn through the multicast message. Finally, the multicast message of the door lock group Gq contains the global average power change rate of the entire path.
[0184] After that, at the beginning of a new round of emergency pointing cycle, from G1 to Gq, after updating the door lock group power change rate and the global average power change rate, the current alarm door lock of each door lock group first judges whether its effective power is in the normal honking power threshold and the medium-low power threshold interval; if so, it further compares the door lock group power change rate and the global average power change rate, and if the former is higher than the latter by a certain percentage (such as 20%), it triggers the auxiliary alarm request of the front and rear door lock groups in advance (the auxiliary alarm request flag of the front and rear door lock groups in the multicast message is set to 1). The subsequent process is described in scenario (1) of process 5, and will not be repeated here.
[0185] II. Beneficial effects
[0186] 1. Mode 2: The door lock group alternates honking through the primary and secondary door locks, making the power consumption rates of the two door locks consistent, and maximizing the honking duration of the entire door lock group. Based on real-time power dynamic negotiation, the honking cycle is alternated, and a re-negotiation mechanism is supported, making the power consumption more balanced. The negotiation information is transmitted in the relay alarm through multicast messages, without the need for local storage in the door lock, reducing the hardware storage demand, avoiding data loss due to restart, and reducing the overhead of re-negotiation.
[0187] 2. Scenario (1) of mode 3: When the power of a single door lock group is close to depletion, it ensures that the evacuation guidance function can be maintained through neighbor cooperation, improving the fault tolerance capability of the system in the critical state.
[0188] 3, Mode 3 scenario (2), the help decision from the pure self-power judgment, upgrade to the intelligent prediction combined with the system overall health, improve the success rate of early help in most door lock group state good, optimize the system resource allocation.
[0189] 4, Mode 3 scenario (3), realize the early warning from "static power point" to "dynamic consumption trend", identify the door lock group that may become a system bottleneck earlier, and intervene in advance to prolong the overall system alarm time.
[0190] Three, protection points:
[0191] 1, Mode 2, negotiate the master and slave door lock of the door lock group based on the predicted horn length information interaction to calculate the alternating horn cycle ratio, and also according to the power consumption speed change to re-negotiate and calculate the alternating ratio, then by the current to be relayed alarm door lock group to obtain or update the alternating cycle distribution, current cycle state and other information, and through the relay alarm multicast message to transfer in turn, support the two members of the negotiation door lock group to directly alternate horn distribution according to the multicast message, realize the distributed collaboration of non-central storage of negotiation information, avoid local cache loss.
[0192] 2, Mode 3 scenario (1), when the door lock group power is lower than the low power threshold, initiate auxiliary alarm request through multicast message, and respond to commitment by the previous and subsequent door lock groups according to the preset priority (subsequent group priority), finally dynamically adjust the horn length of the three parties according to the response result, form the collaborative rules of cross-group mutual horn.
[0193] 3, Mode 3 scenario (2), introduce a predictive help mechanism based on the system global state (normal and alternating horn door lock group proportion). The door lock group reduces the power to a lower threshold, first multicasts a query request, collects global information and statistics, and judges that if the power of most door lock groups is sufficient, it will initiate help in advance to optimize the help timing.
[0194] 4, Mode 3 scenario (3), introduce a trend prediction help mechanism based on dynamic data, through relay message transmission and real-time calculation of global average power consumption rate, let the door lock group with too fast power consumption identify the risk and trigger help earlier when the power is still available by comparing the difference between itself and the average power consumption rate.
[0195] It can be seen that according to the emergency starting instruction, the members in each door lock group exchange valid power information to dynamically elect a master door lock and a vice door lock, and obtain a role allocation result in the door lock group; according to a preset evacuation path sequence, each door lock group successively sounds a whistle at a fixed time interval to form a sound relay guide, and dynamically switches a whistle mode according to a door lock power state; according to a medium power state of the master door lock, the master and vice door locks in the group trigger a negotiation of an alternate whistle cycle proportion based on a predicted continuous whistle duration, and transfer negotiation information through a multicast message; according to a low power state or a dynamic trend prediction of the door lock group, a front and rear door lock group auxiliary alarm request is triggered, and a whistle duration of each door lock group is dynamically adjusted based on a response result, so that self-coordination and load balancing of the whistle task in an emergency state can be realized, and the robustness, continuity and overall energy efficiency of the alarm system are improved.
[0196] Another embodiment of the application provides a cooperative emergency processing system based on door lock power, which is shown in Figure 3 The system can include:
[0197] The election module 301 is used for dynamic election of door lock group roles: according to an emergency starting instruction, members in each door lock group exchange valid power information to dynamically elect a master door lock and a vice door lock, and obtain a role allocation result in the door lock group;
[0198] The execution module 302 is used for relay whistle rule execution: according to a preset evacuation path sequence, each door lock group successively sounds a whistle at a fixed time interval to form a sound relay guide, and dynamically switches a whistle mode according to a door lock power state;
[0199] The negotiation module 303 is used for group internal alternate whistle negotiation: according to a medium power state of the master door lock, the master and vice door locks in the group trigger a negotiation of an alternate whistle cycle proportion based on a predicted continuous whistle duration, and transfer negotiation information through a multicast message to realize distributed cooperation without local storage;
[0200] The trigger module 304 is used for cross-group mutual whistle triggering: according to a low power state or a dynamic trend prediction of the door lock group, a front and rear door lock group auxiliary alarm request is triggered, and a whistle duration of each door lock group is dynamically adjusted based on a response result to form a cross-group mutual assistance mechanism.
[0201] The embodiment of the application further provides a storage medium, and the storage medium stores a computer program, wherein the computer program is set to execute the steps in any one of the method embodiments.
[0202] The embodiment of the application further provides an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor is set to execute the computer program to execute the steps in any one of the method embodiments.
[0203] Specifically, the electronic device can further include a transmission device connected to the processor, and an input / output device connected to the processor.
[0204] The above detailed description of the embodiments shown in the drawings illustrates the structure, features and effects of the present application. The above description is only a preferred embodiment of the present application, but the present application is not limited to the embodiments shown in the drawings. Any changes or modifications made in accordance with the concept of the present application, or equivalent embodiments with equivalent changes, are still within the scope of the present application.
Claims
1. A collaborative emergency response method based on door lock power level, characterized in that, The method includes: Dynamic election of door lock group roles: Based on the emergency activation command, members of each door lock group exchange valid power information to dynamically elect the main door lock and the secondary door lock, thus obtaining the role allocation results within the door lock group; Relay horn ringing rule execution: According to the preset evacuation route sequence, each door lock group rings its horn in sequence at fixed time intervals to form a sound relay guidance, and dynamically switches the horn ringing mode according to the door lock battery status; Group-wide alternating horn negotiation: Based on the equal power status of the main door lock, the main and auxiliary door locks in the group are triggered to negotiate the alternating horn cycle ratio based on the expected continuous horn duration, and the negotiation information is transmitted through multicast messages to achieve distributed collaboration without local storage; Cross-group mutual assistance alarm trigger: Based on the low battery status or dynamic trend prediction of the door lock group, trigger the auxiliary alarm request of the front and rear door lock groups, and dynamically adjust the alarm duration of each door lock group based on the response results to form a cross-group mutual assistance mechanism.
2. The method according to claim 1, characterized in that, The dynamic election of roles for the door lock group includes: Effective power calculation: The effective power of each door lock is calculated based on the current displayed power percentage, battery health coefficient, and temperature coefficient. Role election triggered: Based on the received emergency start command, members of the door lock group exchange valid power information via unicast; Election decision execution: Based on the comparison of effective power, the door lock with the higher effective power is elected as the master door lock. If the power is the same, the decision is made according to the actual ID size, and the door lock group role allocation result is obtained. Election Result Announcement: Based on the election results, the main door lock sends a role announcement message via multicast to complete the role synchronization within the door lock group.
3. The method according to claim 2, characterized in that, The relay horn-sounding rule is implemented as follows: Horn relay start: Based on the notification received by the first door lock group G1 from all door lock group roles, a relay alarm message containing the planned horn sounding time is sent via multicast and the horn sounding is executed; Relay message transmission: According to the preset evacuation route sequence, each door lock group listens to the previous multicast message, sends its own relay alarm message and sounds the horn at the planned horn sounding time; Horn mode determination: Based on the comparison between the effective power of the main door lock and the preset threshold, dynamically select the normal horn mode within the group, the alternating horn mode within the group, the cross-group mutual horn mode when the power is low, or the horn mode when the power is low within the group. Multi-round cycle execution: Based on the event that the last lock group Gq has completed the horn sounding, a new horn sounding cycle starts again from lock group G1, forming a continuous sound guidance.
4. The method according to claim 3, characterized in that, The intra-group alternating horn-honking coordination includes: Alternating horn trigger: Based on the main door lock's effective power level being in the medium power range, set an alternating horn activation flag in the relay alarm message and include the expected duration of horn blasting; Cycle ratio negotiation: Based on the alternating horn start signal received by the secondary door lock, calculate its own expected continuous horn duration, compare it with the duration of the primary door lock, and round down to obtain the alternating horn cycle ratio; Negotiation Information Transmission: Based on the negotiation results, the secondary door lock sends an alternating horn negotiation notification message via multicast, which is then carried and transmitted by the subsequent door lock group in the relay alarm message as an alternating horn negotiation list; Alternating horn sounding: Based on the negotiation list information in the relay alarm message, the main and auxiliary door locks of the door lock group take turns performing the horn sounding task according to the cycle ratio, and dynamically update the current cycle status; Periodic renegotiation mechanism: Based on the deviation between the actual power consumption rate and the expected rate, any member in the door lock group can trigger the renegotiation process to update the alternating horn cycle ratio and synchronize it via multicast message.
5. The method according to claim 4, characterized in that, The cross-group mutual assistance horn triggering includes: Auxiliary alarm request trigger: Based on the effective power of the door lock group being lower than the low power threshold, or based on the judgment results of global status statistics and power consumption trend prediction, an auxiliary alarm request flag is set in the relay alarm message; Cross-group response commitment: Based on the received auxiliary alarm request, the subsequent door lock group and the preceding door lock group respond with multicast messages to accept or reject the auxiliary request according to the preset priority; Dynamic adjustment of horn duration: Based on the cross-group response results, the horn duration of the requesting door lock group, the preceding door lock group, and the subsequent door lock group is dynamically adjusted to form a horn mode of 1, 2, or 3 horns. Optimize the timing of requests for assistance: When the effective power of the door lock group is in the range of medium-low power threshold and low power threshold, query the global door lock group horn mode through multicast, count the proportion of normal and alternating horn door lock groups, and trigger the auxiliary alarm request in advance when the proportion exceeds the request for assistance threshold. Trend prediction assistance: When the effective power of the door lock group is within the normal alarm power threshold and the low to medium power threshold range, the system relays messages and calculates the global average power change rate in real time. When the power consumption rate of the door lock group is significantly higher than the average level, the system will trigger an auxiliary alarm request in advance.
6. The method according to claim 5, characterized in that, The method also includes a coordination mechanism: Global status statistics mechanism: By querying requests and responses through the door lock group horn modes, the distribution of each horn mode in the system is statistically analyzed in real time, providing data support for predictive emergency assistance; Power consumption trend prediction mechanism: Each door lock group calculates its own power change rate and transmits and updates the global average power change rate in relay alarm messages to achieve system-level power consumption trend monitoring. Distributed negotiation storage mechanism: By transmitting the negotiation information through alternating horn beeps in multicast messages, the local storage of the door lock is avoided, ensuring the persistence and consistency of the negotiation information; Multi-mode seamless switching mechanism: Based on changes in battery status, negotiation results, and cross-group responses, it enables smooth switching between different horn modes, ensuring the continuity of emergency guidance.
7. A collaborative emergency response system based on door lock power, characterized in that, The system includes: The election module is used for dynamic election of roles in the door lock group: according to the emergency start command, members in each door lock group exchange valid power information to dynamically elect the master door lock and the slave door lock, and obtain the role allocation results within the door lock group; The execution module is used to execute the relay horn rule: according to the preset evacuation route sequence, each door lock group sounds its horn in sequence at fixed time intervals to form a sound relay guidance, and dynamically switches the horn mode according to the door lock power status; The negotiation module is used for alternating horn ringing negotiation within the group: based on the equal power status of the main door lock, the main and auxiliary door locks within the group are triggered to negotiate the alternating horn ringing cycle ratio based on the expected continuous horn ringing duration, and the negotiation information is transmitted through multicast messages to achieve distributed collaboration without local storage; The triggering module is used for cross-group mutual assistance alarm triggering: based on the low power status or dynamic trend prediction of the door lock group, it triggers auxiliary alarm requests for the front and rear door lock groups, and dynamically adjusts the alarm duration of each door lock group based on the response results, forming a cross-group mutual assistance mechanism.
8. The system according to claim 7, characterized in that, The election module is specifically used for: Effective power calculation: The effective power of each door lock is calculated based on the current displayed power percentage, battery health coefficient, and temperature coefficient. Role election triggered: Based on the received emergency start command, members of the door lock group exchange valid power information via unicast; Election decision execution: Based on the comparison of effective power, the door lock with the higher effective power is elected as the master door lock. If the power is the same, the decision is made according to the actual ID size, and the door lock group role allocation result is obtained. Election Result Announcement: Based on the election results, the main door lock sends a role announcement message via multicast to complete the role synchronization within the door lock group.
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.
Citation Information
Patent Citations
Exit route indication via synchronized audible cues
CN116778647A
Sentry mode energy-saving control method, electric car, control device and storage medium
CN118612823A