Earthquake early warning method, device and equipment of intelligent lock and medium
By acquiring earthquake network monitoring data and smart lock status data, comprehensively determining whether to activate the earthquake warning function of smart lock, the problem of low start-up accuracy of the existing smart lock earthquake warning function is solved, and more accurate and timely early warning processing is achieved, improving user safety.
Patent Information
- Application Number
- CN202510035501.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-15
AI Technical Summary
The existing intelligent lock's earthquake warning function has low start accuracy and poor effect, which affects the personal safety of users and is difficult to meet the needs of intelligent locks.
By acquiring the earthquake network monitoring data and the status data of the smart lock, we comprehensively determine whether the earthquake warning function of the smart lock needs to be activated, and control the smart lock to perform the corresponding actions in a timely manner when necessary.
It improves the rationality and accuracy of the start of the earthquake warning function, and timely controls the unlocking of the smart lock to open the door, providing users with more timely and valuable escape time, and reducing personal safety damage to users.
Smart Images

Figure CN119828210A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart locks, and in particular to an earthquake early warning method, device, equipment and medium for a smart lock. Background Art
[0002] At a time when geological activities are frequent, earthquakes, as a natural disaster, often occur suddenly and have a huge impact on human life, especially daily life. For example, when users are sleeping at night, earthquakes can cause them to fall into endless fear and disaster. However, existing smart devices, such as smart locks, are very lacking in the forecasting function of such natural disasters. Even if they have relevant disaster warning functions, they are only used to perform warning processing after the function is activated based on the sensor data obtained by the smart lock or the earthquake warning information issued by the earthquake warning center. In actual applications, due to the related errors in sensor data acquisition and warning information transmission, the overall warning effect of this type of function is poor, and the timing of function activation is inaccurate, which in turn leads to delays in the unlocking of the smart lock, posing a certain threat to the personal safety of users. Summary of the invention
[0003] In view of this, the present invention provides an earthquake warning method, device, equipment and medium for a smart lock to solve the problem of low accuracy and poor effect in activating the existing earthquake warning function, which in turn affects the personal safety of users and is difficult to meet the use requirements of smart locks.
[0004] In a first aspect, the present invention provides an earthquake early warning method for a smart lock, the method comprising:
[0005] Acquire seismic network monitoring data and status data of the smart lock, wherein the status data includes acquisition data corresponding to at least one preset sensor;
[0006] Determine the early warning data of the smart lock based on the seismic network monitoring data and status data;
[0007] Based on the warning data, it is determined whether it is necessary to activate the earthquake warning function of the smart lock, and when the earthquake warning function of the smart lock needs to be activated, the smart lock is controlled to perform corresponding actions.
[0008] The earthquake warning method of the smart lock of the present invention makes a comprehensive judgment on whether it is necessary to activate the earthquake warning function of the smart lock according to the acquired seismic network monitoring data and the status data of the smart lock, that is, determines whether to activate the earthquake warning function of the smart lock according to the specific content of the warning data, and timely controls the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be activated, which can effectively improve the rationality and accuracy of the activation of the earthquake warning function, and further timely control the smart lock to unlock and open the door to provide users with more timely and valuable escape time, thereby reducing the damage to the personal safety of users, helping to ensure the earthquake warning effect of the smart lock, and at the same time meeting the safe use requirements of the smart lock.
[0009] In an optional implementation, determining the early warning data of the smart lock based on the seismic network monitoring data and the status data includes:
[0010] Determine whether the seismic network monitoring data is greater than a preset monitoring threshold and whether the status data is greater than a preset status threshold;
[0011] If the seismic network monitoring data is greater than the preset monitoring threshold and the status data is greater than the preset status threshold, it is determined that the early warning data of the smart lock is the seismic network monitoring data and the status data;
[0012] If the seismic network monitoring data is greater than the preset monitoring threshold and the status data is not greater than the preset status threshold, it is determined that the early warning data of the smart lock is the seismic network monitoring data;
[0013] If the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is greater than the preset status threshold, the warning data of the smart lock is determined to be the status data;
[0014] If the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is not greater than the preset status threshold, return to the step of obtaining the seismic network monitoring data and the status data of the smart lock.
[0015] The present invention determines the early warning data by respectively judging the size relationship between the seismic network monitoring data and status data and their corresponding set thresholds, which can ensure the accurate identification of the early warning data, thereby helping to improve the accuracy of subsequent smart lock earthquake early warnings, greatly ensuring the personal safety of users, and meeting the needs of efficient use of smart locks.
[0016] In an optional implementation, the state data includes at least ground vibration data, ground displacement data, ground motion data, and ground tilt data: determining whether the state data is greater than a preset state threshold includes:
[0017] respectively determining whether the ground vibration data is greater than a preset vibration threshold, whether the ground displacement data is greater than a preset displacement threshold, whether the ground motion data is greater than a preset motion threshold, and whether the ground tilt data is greater than a preset tilt threshold;
[0018] Count the number of ground vibration data greater than a preset vibration threshold, ground displacement data greater than a preset displacement threshold, ground motion data greater than a preset motion threshold, and ground tilt data greater than a preset tilt threshold;
[0019] If the statistical number is greater than the preset number threshold, it is determined that the state data is greater than the preset state threshold;
[0020] If the statistical number is not greater than the preset number threshold, it is determined that the state data is not greater than the preset state threshold.
[0021] The present invention designs four types of status data, namely ground vibration data, ground displacement data, ground motion data and ground tilt data. By successively determining the size relationship between each status data and its set threshold and counting the number of status data corresponding to the threshold, and determining the final size relationship between the status data and the preset status threshold based on the size relationship between the statistical number and the set threshold, it can ensure accurate determination of the size of the status data and the preset status threshold, thereby helping to improve the accuracy of earthquake warning for smart locks.
[0022] In an optional implementation, if the seismic network monitoring data is greater than a preset monitoring threshold and the status data is greater than a preset status threshold, after determining that the early warning data of the smart lock is the seismic network monitoring data and the status data, the earthquake early warning method of the smart lock further includes:
[0023] Respectively obtain a first recording time corresponding to when the seismic network monitoring data is greater than a preset monitoring threshold, and a second recording time corresponding to when the state data is greater than a preset state threshold;
[0024] Determining whether the first recording time is earlier than the second recording time;
[0025] If the first recording time is earlier than the second recording time, the warning data of the smart lock is updated to the status data;
[0026] If the first recording time is not earlier than the second recording time, the early warning data of the smart lock will be updated to the seismic network monitoring data.
[0027] The present invention updates the early warning data by obtaining the first recording time corresponding to when the seismic network monitoring data reaches a preset monitoring threshold and the second recording time corresponding to when the status data reaches a preset status threshold, and determines the order in which the two recording times occur, thereby ensuring the accuracy and rationality of the early warning data.
[0028] In an optional implementation, determining whether to activate the earthquake warning function of the smart lock based on the warning data includes:
[0029] If the warning data is seismic network monitoring data, it is determined that the earthquake warning function of the smart lock needs to be activated;
[0030] If the warning data is status data, it is determined that the earthquake warning function of the smart lock does not need to be activated.
[0031] The present invention can ensure the accuracy of earthquake warnings for smart locks by designing a startup process in which the earthquake warning function of the smart lock is started when the warning data is seismic network monitoring data, and the earthquake warning function of the smart lock does not need to be started when the warning data is status data. The smart lock can then be controlled to unlock and open the door in time to ensure the personal safety of the user, thereby effectively meeting the use requirements of the smart lock.
[0032] In an optional implementation, determining the early warning data of the smart lock based on the seismic network monitoring data and the status data includes:
[0033] Determine a first weight coefficient of the seismic network monitoring data and a second weight coefficient of the status data respectively, wherein the sum of the first weight coefficient and the second weight coefficient is 1;
[0034] Determine a first warning value corresponding to the seismic network monitoring data based on a preset monitoring threshold, and determine a second warning value corresponding to the status data based on a preset status threshold;
[0035] A sum value is determined based on the first weight coefficient, the first warning value, the second weight coefficient and the second warning value, and the sum value is used as the warning data of the smart lock.
[0036] The present invention also utilizes different weight coefficients of seismic network monitoring data and status data, and sets corresponding thresholds based on the two types of data to determine their respective warning values, and performs weighted summation of different weight coefficients and warning values to obtain warning data, which can fully guarantee the quality of obtaining warning data, thereby improving the accuracy of smart lock earthquake warnings, helping to ensure the personal safety of users, and greatly meeting the use requirements of smart locks.
[0037] In an optional implementation, determining whether to activate the earthquake warning function of the smart lock based on the warning data includes:
[0038] Determine whether the warning data exceeds the preset warning value;
[0039] If the warning data exceeds the preset warning value, it is determined that the earthquake warning function of the smart lock needs to be activated;
[0040] If the warning data does not exceed the preset warning value, it is determined that the earthquake warning function of the smart lock does not need to be activated. The present invention determines whether the earthquake warning function of the smart lock needs to be activated by designing the size relationship between the warning data and the set warning value, which can ensure the accuracy of the earthquake warning of the smart lock, and then timely control the smart lock to unlock and open the door to ensure the personal safety of the user, which greatly meets the use requirements of the smart lock.
[0041] In an optional implementation, the earthquake early warning method of the smart lock further includes:
[0042] When the earthquake warning function of the smart lock does not need to be activated, the smart lock is controlled to be locked and the preset voice broadcast is performed at the same time.
[0043] When the earthquake warning function of the smart lock does not need to be activated, the present invention has designed a warning method of closing the door lock and voice broadcasting, which can improve the startup process of the earthquake warning function and remind users through voice broadcasting to pay more attention to the current situation, which helps to ensure the personal safety of users.
[0044] In an optional implementation, obtaining seismic network monitoring data includes:
[0045] Establish a connection with the preset earthquake monitoring network through the built-in Sentinel system of the smart lock;
[0046] Monitor the published information of the preset earthquake monitoring network in real time, and determine the earthquake network monitoring data of the location of the smart lock based on the published information.
[0047] The present invention obtains the seismic network monitoring data of the location of the smart lock through the sentinel system built into the smart lock, which can ensure the acquisition quality of the seismic network monitoring data and improve the earthquake early warning effect of the subsequent smart lock.
[0048] In a second aspect, the present invention provides an earthquake early warning device for a smart lock, the device comprising:
[0049] An acquisition module, used to acquire seismic network monitoring data and status data of the smart lock, wherein the status data includes acquisition data corresponding to at least one preset sensor;
[0050] A determination module, used to determine the early warning data of the smart lock based on the seismic network monitoring data and status data;
[0051] The control module is used to determine whether the earthquake warning function of the smart lock needs to be activated based on the warning data, and to control the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be activated.
[0052] The earthquake warning device of the smart lock of the present invention effectively improves the rationality and accuracy of the activation of the earthquake warning function, can timely control the smart lock to unlock and open the door, thereby providing the user with more timely and valuable escape time, greatly reducing the damage to the user's personal safety, ensuring the earthquake warning effect of the smart lock, and also meeting the safe and efficient use requirements of the smart lock.
[0053] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the earthquake warning method for a smart lock according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute an earthquake warning method for a smart lock according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 is a flow chart of an earthquake early warning method for a smart lock according to an embodiment of the present invention;
[0057] Figure 2 is a flow chart of an earthquake early warning method for another smart lock according to an embodiment of the present invention;
[0058] Figure 3 It is the structural diagram of the earthquake early warning system of the smart lock;
[0059] Figure 4 It is a schematic diagram of the working process of the earthquake early warning system of the smart lock;
[0060] Figure 5 It is a schematic diagram of the working process of the earthquake early warning system of another smart lock;
[0061] Figure 6 is a structural block diagram of an earthquake early warning device of a smart lock according to an embodiment of the present invention;
[0062] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0064] An embodiment of the present invention provides an earthquake early warning method embodiment of a smart lock. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0065] In this embodiment, a smart lock earthquake early warning method is provided. Figure 1 is a flow chart of an earthquake early warning method for a smart lock according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0066] Step S101, obtaining seismic network monitoring data and status data of the smart lock, wherein the status data includes collection data corresponding to at least one preset sensor.
[0067] It should be noted that the seismic network monitoring data in this embodiment is mainly derived from the official earthquake data released by national departments or institutions; the status data is mainly used to monitor the small vibrations of the ground, doors and windows where the smart lock is located; the specific type of the preset sensor is not limited here, and can be adaptively adjusted according to the actual project, such as the preset sensor is an electronic seismograph. It should be explained that the working principle of the electronic seismograph is mainly based on the principle of inertia and electromagnetic induction. The signal of ground movement is received by the vibration pickup. A pendulum structure is usually used, and the pendulum is tied to a fixed bracket that can move with the ground through a spring; specifically, when the ground vibrates, the pendulum will swing, thereby generating electromagnetic induction signals, which are amplified by the amplifier and recorded to obtain information about the waveform, time and focal depth of the earthquake, and analyze this type of information to better understand the cause of the earthquake and the possibility of predicting the earthquake.
[0068] Step S102, determining the early warning data of the smart lock based on the seismic network monitoring data and status data.
[0069] In this embodiment, the early warning data is mainly used to determine whether to activate the earthquake early warning function of the smart lock.
[0070] Step S103, based on the warning data, determine whether it is necessary to activate the earthquake warning function of the smart lock, and when the earthquake warning function of the smart lock needs to be activated, control the smart lock to perform corresponding actions.
[0071] In this embodiment, when the warning data is official earthquake data, i.e., seismic network monitoring data, the earthquake warning function of the smart lock is activated; otherwise, the earthquake warning function of the smart lock is not activated, so as to eliminate the situation where errors exist in the collected data obtained by the sensor.
[0072] It should be noted that in this embodiment, after the earthquake warning function of the smart lock is activated, the specific content of the corresponding action performed by the smart lock can be adaptively adjusted according to actual needs, such as unlocking or warning broadcasting, that is, the smart lock opens the door or sounds an alarm, which is only used as an example.
[0073] The earthquake warning method for the smart lock in the embodiment of the present invention makes a comprehensive judgment on whether it is necessary to activate the earthquake warning function of the smart lock according to the acquired seismic network monitoring data and the status data of the smart lock, that is, determines whether to activate the earthquake warning function of the smart lock according to the specific content of the warning data, and promptly controls the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be activated. This can effectively improve the rationality and accuracy of the activation of the earthquake warning function, and then promptly control the smart lock to unlock and open the door to provide users with more timely and valuable escape time, greatly reducing the damage to the personal safety of users, helping to ensure the earthquake warning effect of the smart lock, and meeting the safe use requirements of the smart lock.
[0074] In this embodiment, a smart lock earthquake early warning method is provided. Figure 2 FIG. 1 is a flow chart of another earthquake early warning method of a smart lock according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0075] Step S201, obtaining seismic network monitoring data and status data of the smart lock, wherein the status data includes collection data corresponding to at least one preset sensor.
[0076] Specifically, the acquisition of seismic network monitoring data in the above step S201 includes:
[0077] Step A1, establish a connection with the preset earthquake monitoring network through the sentinel system built into the smart lock.
[0078] In this embodiment, the specific content of the preset earthquake monitoring network is adaptively adjusted according to actual needs, for example, the preset earthquake monitoring network includes a national or local earthquake monitoring network.
[0079] It should be noted that the sentinel system is an intelligent monitoring system based on computer vision, artificial intelligence and Internet of Things technology, which is mainly used for real-time monitoring and abnormal behavior identification. By analyzing the images collected by the camera, it can identify abnormal behaviors, intruders and fire and other potential safety hazards, and timely alarm to remind relevant personnel to deal with them. In addition, the sentinel system can also realize the intelligent scheduling and management of on-duty personnel and improve the efficiency of duty. In this embodiment, the sentinel system is connected to the national or local earthquake monitoring network to monitor the official earthquake data released by it, which can ensure the authority, authenticity and effectiveness of the monitoring data of the earthquake network.
[0080] Step A2, monitor the published information of the preset earthquake monitoring network in real time, and determine the earthquake network monitoring data of the location of the smart lock based on the published information.
[0081] In the embodiment of the present invention, the seismic network monitoring data of the location of the smart lock is obtained through the sentinel system built into the smart lock, which can ensure the acquisition quality of the seismic network monitoring data and improve the earthquake warning effect of the subsequent smart lock.
[0082] Step S202, determining the early warning data of the smart lock based on the seismic network monitoring data and status data.
[0083] Specifically, the above step S202 includes:
[0084] Step S2021, respectively determining whether the seismic network monitoring data is greater than a preset monitoring threshold and whether the status data is greater than a preset status threshold.
[0085] In this embodiment, the state data at least includes ground vibration data, ground displacement data, ground motion data and ground tilt data.
[0086] It should be noted that the specific method for obtaining the ground vibration data, ground displacement data, ground motion data and ground tilt data in this embodiment is not limited here, and is determined according to the adaptability of the data acquisition characteristics of the corresponding sensors in the field. For example, the ground motion data can be obtained by an electronic seismograph, which is only an exemplary description.
[0087] In this embodiment, determining whether the status data is greater than a preset status threshold in the above step S2021 includes:
[0088] Step B1, respectively judging whether the ground vibration data is greater than a preset vibration threshold, whether the ground displacement data is greater than a preset displacement threshold, whether the ground motion data is greater than a preset motion threshold, and whether the ground tilt data is greater than a preset tilt threshold.
[0089] In this embodiment, specific values of the preset vibration threshold, the preset displacement threshold, the preset motion threshold, and the preset tilt threshold are not limited herein, and can be adaptively adjusted based on actual needs.
[0090] Step B2, counting the number of ground vibration data greater than a preset vibration threshold, ground displacement data greater than a preset displacement threshold, ground motion data greater than a preset motion threshold, and ground tilt data greater than a preset tilt threshold.
[0091] Step B3: if the statistical number is greater than the preset number threshold, it is determined that the state data is greater than the preset state threshold.
[0092] In this embodiment, the specific value of the preset number threshold is adaptively adjusted based on actual needs.
[0093] Step B4: if the statistical number is not greater than the preset number threshold, determine that the state data is not greater than the preset state threshold.
[0094] In the embodiment of the present invention, four types of status data, namely ground vibration data, ground displacement data, ground motion data and ground tilt data, are designed. By determining the size relationship between each status data and its set threshold in turn and counting the number of status data corresponding to the threshold, and determining the final size relationship between the status data and the preset status threshold based on the size relationship between the statistical number and the set threshold, accurate determination of the size of the status data and the preset status threshold can be ensured, thereby helping to improve the accuracy of earthquake warning for smart locks.
[0095] Step S2022, if the seismic network monitoring data is greater than the preset monitoring threshold and the status data is greater than the preset status threshold, it is determined that the early warning data of the smart lock is the seismic network monitoring data and the status data.
[0096] In this embodiment, the seismic network monitoring data greater than the preset monitoring threshold and the state data greater than the preset state threshold are used to indicate that the current earthquake level is greater than the corresponding set value. It is necessary to further combine the seismic network monitoring data and the state data's own attributes and the time taken to reach the corresponding set value to determine the final early warning data, that is, when the early warning data is determined to be two types, it is also necessary to update the early warning data according to the minimum time taken to meet the early warning conditions to determine the final early warning data. Therefore, the above step S2022 also includes:
[0097] Step C1, respectively obtaining a first recording time corresponding to when the seismic network monitoring data is greater than a preset monitoring threshold, and a second recording time corresponding to when the status data is greater than a preset status threshold.
[0098] In this embodiment, the specific method for obtaining the recording time is not limited here, and can be determined by referring to conventional data collection means in the art.
[0099] Step C2, determining whether the first recording time is earlier than the second recording time.
[0100] Step C3: if the first recording time is earlier than the second recording time, the warning data of the smart lock is updated to status data.
[0101] Step C4, if the first recording time is not earlier than the second recording time, the early warning data of the smart lock is updated to the seismic network monitoring data.
[0102] In an embodiment of the present invention, by obtaining the first recording time corresponding to when the seismic network monitoring data reaches a preset monitoring threshold and the second recording time corresponding to when the status data reaches a preset status threshold, and determining the order in which the two recording times occur to update the early warning data, the accuracy and rationality of the early warning data can be ensured.
[0103] Step S2023, if the seismic network monitoring data is greater than the preset monitoring threshold and the status data is not greater than the preset status threshold, it is determined that the early warning data of the smart lock is the seismic network monitoring data.
[0104] Step S2024, if the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is greater than the preset status threshold, it is determined that the warning data of the smart lock is the status data.
[0105] Step S2025, if the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is not greater than the preset status threshold, return to the step of obtaining the seismic network monitoring data and the status data of the smart lock.
[0106] In the embodiment of the present invention, the early warning data is determined by respectively judging the size relationship between the seismic network monitoring data and the status data and their corresponding set thresholds, which can ensure the accurate identification of the early warning data, thereby helping to improve the accuracy of subsequent smart lock earthquake early warnings, greatly ensuring the personal safety of users, and at the same time meeting the needs of efficient use of smart locks.
[0107] Step S203, based on the warning data, determine whether it is necessary to activate the earthquake warning function of the smart lock, and when the earthquake warning function of the smart lock needs to be activated, control the smart lock to perform corresponding actions.
[0108] Specifically, the above step S203 includes:
[0109] Step S2031, if the warning data is earthquake network monitoring data, it is determined that the earthquake warning function of the smart lock needs to be activated.
[0110] In actual applications, since the earthquake network monitoring data is officially released data, it is more real and reliable than the status data collected by the smart lock related sensors. Therefore, in this embodiment, when the early warning data is the earthquake network monitoring data, it indicates that the earthquake situation at this time is true and the current earthquake level has reached the early warning setting value. It is necessary to activate the earthquake early warning function to enable the smart lock related users to escape as soon as possible.
[0111] Step S2032: if the warning data is status data, it is determined that the earthquake warning function of the smart lock does not need to be activated.
[0112] Step S2033, when the earthquake warning function of the smart lock needs to be activated, control the smart lock to perform corresponding actions.
[0113] Step S2034, when the earthquake warning function of the smart lock does not need to be activated, the smart lock is controlled to be locked and the preset voice broadcast processing is performed at the same time.
[0114] In this embodiment, the specific content of the preset voice broadcast processing is adaptively determined according to actual needs.
[0115] In the embodiments of the present invention, a startup process is designed to start the earthquake warning function of the smart lock when the warning data is the seismic network monitoring data, and the earthquake warning function of the smart lock does not need to be started when the warning data is the status data; the accuracy of the earthquake warning of the smart lock can be ensured, and when the earthquake warning function of the smart lock needs to be started, the smart lock is controlled to perform corresponding actions to provide the user with precious escape time, thereby ensuring the personal safety of the user, and can effectively meet the use requirements of the smart lock; at the same time, when the earthquake warning function of the smart lock does not need to be started, a corresponding warning method of door lock closing and voice broadcast is designed, which can improve the startup process of the earthquake warning function, remind users to pay more attention to the current situation, and help to further ensure the personal safety of users.
[0116] It should be noted that, in this embodiment, the process of combining the seismic network monitoring data and the status data of the smart lock to comprehensively determine the early warning data is also considered, that is, the above step S202 of this embodiment also includes:
[0117] Step D1, respectively determining a first weight coefficient of the seismic network monitoring data and a second weight coefficient of the status data, wherein the sum of the first weight coefficient and the second weight coefficient is 1.
[0118] In this embodiment, specific values of the first weight coefficient and the second weight coefficient can be determined according to actual demand adaptability. For example, the first weight coefficient is 0.6 and the second weight coefficient is 0.4, which is only used as an exemplary description.
[0119] Step D2, determining a first warning value corresponding to the seismic network monitoring data based on a preset monitoring threshold, and determining a second warning value corresponding to the status data based on a preset status threshold.
[0120] It should be noted that the specific assignment method of the first warning value and the second warning value in this embodiment is not limited here, and can be adaptively adjusted according to the actual project needs. For example, for the seismic network monitoring data, it is assumed that the corresponding first warning value is represented by c, and the corresponding preset monitoring threshold is set as x. If the seismic network monitoring data reaches x, then c is assigned a value of 1; if the seismic network monitoring data reaches x and exceeds 20% of x, then c is assigned a value of 1.2; if the seismic network monitoring data does not reach x, such as only reaching 80% of x, then c is assigned a value of 0.8; it should be noted that other proportions that exceed or do not reach are similarly assigned; it is only an exemplary description and is not limited to this; the corresponding assignment process for the status data of the smart lock in this embodiment is similar.
[0121] Step D3, determining a sum value based on the first weight coefficient, the first warning value, the second weight coefficient and the second warning value, and using the sum value as the warning data of the smart lock.
[0122] In this embodiment, the specific determination method of the sum value is not limited here, and is adaptively adjusted according to actual needs. For example, when the first weight coefficient is represented by a, the second weight coefficient is represented by b, the first warning value is represented by c, and the second warning value is represented by d, the corresponding calculation expression of the sum value y is: y=a×c+b×d, which is only used as an exemplary description.
[0123] In the embodiment of the present invention, different weight coefficients of seismic network monitoring data and status data are utilized, and corresponding thresholds are set based on the two types of data to determine respective warning values, and the weighted sum of different weight coefficients and warning values is performed to obtain the warning data. This can fully guarantee the quality of obtaining the warning data, thereby improving the accuracy of the earthquake warning of the smart lock, helping to ensure the personal safety of the user, and greatly meeting the use requirements of the smart lock.
[0124] It should be noted that, based on the above-mentioned process of determining the early warning data, in the present embodiment, the process of determining whether it is necessary to activate the earthquake early warning function of the smart lock based on the early warning data in the above-mentioned step S203 also includes:
[0125] Step E1, determining whether the warning data exceeds a preset warning value.
[0126] In this embodiment, the specific value of the preset warning value is adaptively set according to actual needs and is not limited in detail here.
[0127] Step E2: If the warning data exceeds the preset warning value, it is determined that the earthquake warning function of the smart lock needs to be activated.
[0128] Step E3: if the warning data does not exceed the preset warning value, it is determined that the earthquake warning function of the smart lock does not need to be activated.
[0129] In the embodiment of the present invention, by designing the relationship between the warning data and the set warning value, it is determined whether the earthquake warning function of the smart lock needs to be activated, which can ensure the accuracy of the earthquake warning of the smart lock, and then timely control the smart lock to unlock and open the door to ensure the personal safety of the user, thereby greatly meeting the use requirements of the smart lock.
[0130] In a specific embodiment, Figure 3 It is a structural block diagram of the earthquake early warning earthquake data system of the smart lock. It should be noted that the smart lock of this embodiment is equipped with a call function (i.e., an earthquake early warning function, which is used to control the unlocking of the smart lock to allow the user to escape); in addition, the smart lock has an internal integrated sentinel system to monitor the earthquake data released by the government, and is also equipped with an acceleration sensor, a displacement sensor, an electronic seismograph, and an inclinometer to collect corresponding status data, and communicate through the built-in wireless communication module of the smart lock. Specifically, the specific functions of each component of the system include:
[0131] 1. Earthquake monitoring, to obtain seismic network monitoring data and / or built-in sensor data.
[0132] (1) Earthquake monitoring network: Cooperate with local earthquake monitoring agencies to access national or local earthquake monitoring networks to obtain earthquake network monitoring data. These networks monitor earthquake activities in real time through seismic instruments. Once earthquake fluctuations are detected, they will quickly send alarms and transmit corresponding data.
[0133] (2) Built-in sensors: Smart locks have a variety of built-in sensors, such as accelerometers, that can detect tiny vibrations in the ground, doors, windows, etc. When the system receives earthquake warning information, it can use these sensors to determine the safety of the user's location.
[0134] Specifically, the relevant data collected by the sensor of this embodiment includes:
[0135] (I) Acceleration sensor: used to detect the acceleration change of the device when an earthquake occurs. The acceleration sensor can sense the vibration of the ground and send this data to the smart lock for subsequent data analysis.
[0136] (II) Displacement sensor: used to measure ground displacement and can provide displacement information during the propagation of seismic waves.
[0137] (III) Electronic seismograph: It uses electromagnetic induction principle and uses sensors (such as accelerometer or velocity meter) to measure ground movement. The data of this type of sensor usually has higher sensitivity and accuracy.
[0138] (IV) Inclinometer: It is used to measure the change of ground tilt, which can help to assess the impact of earthquake on the surface.
[0139] In summary, the above sensors can detect tiny vibrations of the ground, doors and windows, etc., and can even be released faster than the earthquake monitoring network. Through the earthquake monitoring of the equipment itself, people can know the frequency of seismic waves in the local area.
[0140] 2. Data analysis: When an earthquake signal is detected, the system will quickly analyze the epicenter, magnitude, and affected area of the earthquake. This process is usually completed within a few seconds, so as to determine whether an early warning is needed, that is, to generate an early warning signal.
[0141] 3. Activate the call function: Once an earthquake is confirmed and a warning signal is generated, the system will push the warning information through sound to activate the call function of the smart lock, thereby reminding the user to take risk avoidance measures in time; among them, the warning information usually includes the epicenter of the earthquake, magnitude, estimated arrival time, etc.
[0142] It should be noted that the system of this embodiment can also perform system upgrades and optimizations based on user feedback and data accumulation. That is, for areas where earthquakes occur, users can provide feedback on local vibration conditions to help improve the accuracy of system warnings and response speed.
[0143] In this embodiment, the above system's activation method for the call function includes a system control solution and a built-in sensor control solution. The corresponding workflow is shown in FIG. Figure 4 and Figure 5 Specifically, through the system control scheme and the built-in sensor control scheme, the smart lock can issue an early warning a few seconds before an earthquake occurs, helping users to take risk avoidance measures in advance, thereby reducing damage and losses; in addition, in areas or countries where earthquakes occur frequently, the above-mentioned function activation method of this embodiment is particularly important, which can monitor the safety status of the local area, thereby providing users with precious escape time, especially in the middle of the night, greatly ensuring the safety of people's lives.
[0144] In summary, the embodiments of the present invention can effectively improve the rationality and accuracy of the activation of the earthquake early warning function, and then timely control the unlocking of the smart lock to ensure the personal safety of the user, which greatly meets the demand for efficient use of the smart lock.
[0145] In this embodiment, an earthquake early warning device for a smart lock is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be repeated here. As used below, the term "module" refers to a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0146] The present invention provides an earthquake early warning device for a smart lock, such as Figure 6 As shown, the device comprises:
[0147] The acquisition module 601 is used to obtain seismic network monitoring data and status data of the smart lock, wherein the status data includes collection data corresponding to at least one preset sensor.
[0148] The determination module 602 is used to determine the early warning data of the smart lock based on the seismic network monitoring data and status data.
[0149] The control module 603 is used to determine whether the earthquake warning function of the smart lock needs to be activated based on the warning data, and control the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be activated.
[0150] In some optional embodiments, the acquisition module 601 includes: a first acquisition sub-module and a second acquisition sub-module; wherein, the first acquisition sub-module is used to establish a connection with a preset earthquake monitoring network through the sentinel system built into the smart lock; the second acquisition sub-module is used to monitor the release information of the preset earthquake monitoring network in real time, and determine the earthquake network monitoring data of the location of the smart lock based on the release information.
[0151] In some optional embodiments, the determination module 602 includes: a first determination submodule, a second determination submodule, a third determination submodule, a fourth determination submodule and a fifth determination submodule; wherein the first determination submodule is used to respectively determine whether the seismic network monitoring data is greater than a preset monitoring threshold and whether the status data is greater than a preset status threshold; the second determination submodule is used to determine that the early warning data of the smart lock is the seismic network monitoring data and the status data if the seismic network monitoring data is greater than the preset monitoring threshold and the status data is greater than the preset status threshold; the third determination submodule is used to determine that the early warning data of the smart lock is the seismic network monitoring data if the seismic network monitoring data is greater than the preset monitoring threshold and the status data is not greater than the preset status threshold; the fourth determination submodule is used to determine that the early warning data of the smart lock is the status data if the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is greater than the preset status threshold; the fifth determination submodule is used to return to the step of obtaining the seismic network monitoring data and the status data of the smart lock if the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is not greater than the preset status threshold.
[0152] In some optional embodiments, the first determination submodule includes: a first judgment unit, a second judgment unit, a third judgment unit and a fourth judgment unit; wherein the first judgment unit is used to respectively judge whether the ground vibration data is greater than a preset vibration threshold, whether the ground displacement data is greater than a preset displacement threshold, whether the ground motion data is greater than a preset motion threshold and whether the ground tilt data is greater than a preset tilt threshold; the second judgment unit is used to count the statistical numbers corresponding to the ground vibration data being greater than the preset vibration threshold, the ground displacement data being greater than the preset displacement threshold, the ground motion data being greater than the preset motion threshold and the ground tilt data being greater than the preset tilt threshold; the third judgment unit is used to determine that the status data is greater than the preset status threshold if the statistical number is greater than the preset number threshold; the fourth judgment unit is used to determine that the status data is not greater than the preset status threshold if the statistical number is not greater than the preset number threshold.
[0153] In some optional embodiments, the second determination submodule includes: a first update unit, a second update unit, a third update unit and a fourth update unit; wherein the first update unit is used to obtain the first recording time corresponding to when the seismic network monitoring data is greater than a preset monitoring threshold, and the second recording time corresponding to when the status data is greater than a preset status threshold; the second update unit is used to determine whether the first recording time is earlier than the second recording time; the third update unit is used to update the early warning data of the smart lock to the status data if the first recording time is earlier than the second recording time; the fourth update unit is used to update the early warning data of the smart lock to the seismic network monitoring data if the first recording time is not earlier than the second recording time.
[0154] In some optional embodiments, the control module 603 includes: a first control submodule, a second control submodule, a third control submodule and a fourth control submodule; wherein the first control submodule is used to determine that the earthquake warning function of the smart lock needs to be started if the warning data is seismic network monitoring data; the second control submodule is used to determine that the earthquake warning function of the smart lock does not need to be started if the warning data is status data; the third control submodule is used to control the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be started; the fourth control submodule is used to control the smart lock to be locked when the earthquake warning function of the smart lock does not need to be started, and perform preset voice broadcast processing at the same time.
[0155] In some optional embodiments, the determination module 602 also includes: a first confirmation submodule, a second confirmation submodule and a third confirmation submodule; wherein the first confirmation submodule is used to respectively determine the first weight coefficient of the seismic network monitoring data and the second weight coefficient of the status data, wherein the sum of the first weight coefficient and the second weight coefficient is 1; the second confirmation submodule is used to determine the first warning value corresponding to the seismic network monitoring data based on a preset monitoring threshold, and to determine the second warning value corresponding to the status data based on a preset status threshold; the third confirmation submodule is used to determine the sum value based on the first weight coefficient, the first warning value, the second weight coefficient and the second warning value, and use the sum value as the warning data of the smart lock.
[0156] In some optional embodiments, the control module 603 also includes: a first starter module, a second starter module and a third starter module; wherein the first starter module is used to determine whether the warning data exceeds a preset warning value; the second starter module is used to determine that the earthquake warning function of the smart lock needs to be activated if the warning data exceeds the preset warning value; the third starter module is used to determine that the earthquake warning function of the smart lock does not need to be activated if the warning data does not exceed the preset warning value.
[0157] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0158] The earthquake warning device of the smart lock in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0159] The earthquake warning device of the smart lock in the embodiment of the present invention effectively improves the rationality and accuracy of the activation of the earthquake warning function, can timely control the smart lock to unlock and open the door, thereby providing the user with more timely and valuable escape time, greatly reducing the damage to the user's personal safety, ensuring the earthquake warning effect of the smart lock, and also meeting the safe and efficient use requirements of the smart lock.
[0160] The present invention also provides a computer device, see Figure 7 , Figure 7 is a schematic diagram of the structure of the above-mentioned computer device provided in an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0161] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0162] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0163] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0164] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0165] The computer device also includes a communication interface 30, which is used for the main control chip to communicate with other devices or a communication network.
[0166] A computer-readable storage medium is also provided in an embodiment of the present invention. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor main control chip or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0167] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An earthquake early warning method for a smart lock, characterized in that: The method comprises: Acquire seismic network monitoring data and status data of the smart lock, wherein the status data includes acquisition data corresponding to at least one preset sensor; Determine the early warning data of the smart lock based on the seismic network monitoring data and the status data; Based on the warning data, it is determined whether the earthquake warning function of the smart lock needs to be activated, and when the earthquake warning function of the smart lock needs to be activated, the smart lock is controlled to perform corresponding actions.
2. The earthquake early warning method of the smart lock according to claim 1, characterized in that: The determining of the early warning data of the smart lock based on the seismic network monitoring data and the status data includes: Respectively determine whether the seismic network monitoring data is greater than a preset monitoring threshold and whether the status data is greater than a preset status threshold; If the seismic network monitoring data is greater than a preset monitoring threshold and the status data is greater than a preset status threshold, it is determined that the early warning data of the smart lock is the seismic network monitoring data and the status data; If the seismic network monitoring data is greater than a preset monitoring threshold and the status data is not greater than a preset status threshold, determining that the early warning data of the smart lock is the seismic network monitoring data; If the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is greater than the preset status threshold, determining that the warning data of the smart lock is the status data; If the seismic network monitoring data is not greater than the preset monitoring threshold and the status data is not greater than the preset status threshold, return to the step of obtaining the seismic network monitoring data and the status data of the smart lock.
3. The earthquake early warning method of the smart lock according to claim 2, characterized in that: The state data at least includes ground vibration data, ground displacement data, ground motion data and ground tilt data. Determining whether the state data is greater than a preset state threshold includes: respectively determining whether the ground vibration data is greater than a preset vibration threshold, whether the ground displacement data is greater than a preset displacement threshold, whether the ground motion data is greater than a preset motion threshold, and whether the ground tilt data is greater than a preset tilt threshold; Count the number of ground vibration data greater than a preset vibration threshold, ground displacement data greater than a preset displacement threshold, ground motion data greater than a preset motion threshold, and ground tilt data greater than a preset tilt threshold; If the statistical number is greater than a preset number threshold, determining that the status data is greater than a preset status threshold; If the statistical number is not greater than the preset number threshold, it is determined that the status data is not greater than the preset status threshold.
4. The earthquake early warning method of the smart lock according to claim 2, characterized in that: After determining that the early warning data of the smart lock is the seismic network monitoring data and the status data if the seismic network monitoring data is greater than a preset monitoring threshold and the status data is greater than a preset status threshold, the method further includes: Respectively obtaining a first recording time corresponding to when the seismic network monitoring data is greater than a preset monitoring threshold, and a second recording time corresponding to when the status data is greater than a preset status threshold; determining whether the first recording time is earlier than the second recording time; If the first recording time is earlier than the second recording time, updating the warning data of the smart lock to the status data; If the first recording time is not earlier than the second recording time, the early warning data of the smart lock is updated to the seismic network monitoring data.
5. The earthquake early warning method of the smart lock according to claim 4, characterized in that: The determining whether it is necessary to activate the earthquake warning function of the smart lock based on the warning data includes: If the early warning data is seismic network monitoring data, it is determined that the earthquake early warning function of the smart lock needs to be activated; If the warning data is status data, it is determined that the earthquake warning function of the smart lock does not need to be activated.
6. The earthquake early warning method of the smart lock according to claim 1, characterized in that: The determining of the early warning data of the smart lock based on the seismic network monitoring data and the status data includes: respectively determining a first weight coefficient of the seismic network monitoring data and a second weight coefficient of the status data, wherein the sum of the first weight coefficient and the second weight coefficient is 1; Determine a first warning value corresponding to the seismic network monitoring data based on a preset monitoring threshold, and determine a second warning value corresponding to the status data based on a preset status threshold; A sum value is determined based on the first weight coefficient, the first warning value, the second weight coefficient and the second warning value, and the sum value is used as the warning data of the smart lock.
7. The earthquake early warning method of the smart lock according to claim 6, characterized in that: The determining whether it is necessary to activate the earthquake warning function of the smart lock based on the warning data includes: Determining whether the warning data exceeds a preset warning value; If the warning data exceeds the preset warning value, it is determined that the earthquake warning function of the smart lock needs to be activated; If the warning data does not exceed the preset warning value, it is determined that the earthquake warning function of the smart lock does not need to be activated.
8. The earthquake early warning method of the smart lock according to claim 5 or 7, characterized in that: The method further comprises: When the earthquake early warning function of the smart lock does not need to be activated, the smart lock is controlled to be locked and a preset voice broadcast process is performed at the same time.
9. The earthquake early warning method of the smart lock according to claim 1, characterized in that: The obtaining of seismic network monitoring data includes: Establish a connection with the preset earthquake monitoring network through the built-in Sentinel system of the smart lock; The published information of the preset earthquake monitoring network is monitored in real time, and the earthquake network monitoring data of the location of the smart lock is determined according to the published information.
10. An earthquake early warning device for a smart lock, characterized in that: The device comprises: An acquisition module, used to acquire seismic network monitoring data and status data of the smart lock, wherein the status data includes acquisition data corresponding to at least one preset sensor; A determination module, configured to determine the early warning data of the smart lock based on the seismic network monitoring data and the status data; The control module is used to determine whether it is necessary to activate the earthquake warning function of the smart lock based on the warning data, and control the smart lock to perform corresponding actions when the earthquake warning function of the smart lock needs to be activated.
11. A computer device, characterized in that: The device includes: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the earthquake early warning method for the smart lock described in any one of claims 1 to 9 by executing the computer instructions.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the earthquake early warning method for the smart lock according to any one of claims 1 to 9.