Door lock battery capacity detection method and device, electronic equipment and readable storage medium

By obtaining the continuous voltage value and user operation data of the smart door lock battery, determining the comprehensive power consumption and discharge slope, and finding similar discharge curves to estimate the remaining power, the problems of low detection accuracy and high cost in the existing technology are solved, and the Accurate detection of door lock battery power.

CN118795356APending Publication Date: 2024-10-18CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311437557.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing smart door lock battery remaining power detection method has low accuracy and high cost. The coulomb meter method cannot accurately obtain the starting power, and the voltage detection method has large errors under changes in temperature and current.

Method used

By obtaining the voltage value and user operation characteristic data of the door lock battery for N consecutive days in real time, the comprehensive power consumption and discharge slope are determined, and the discharge curve most similar to the actual voltage value and slope is found. Combined with the user's usage habits and door lock characteristics, a proposed Fit the target curve to estimate remaining power.

Benefits of technology

It improves the precision and accuracy of the remaining power detection of the door lock battery, reduces the detection cost, and ensures accurate estimation of the actual discharge changes of the door lock battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795356A_ABST
    Figure CN118795356A_ABST
Patent Text Reader

Abstract

The invention discloses a door lock battery electric quantity detection method and device, electronic equipment and a readable storage medium, and the electric quantity detection method comprises the steps: obtaining a first voltage value, first feature data and second feature data of a door lock battery in continuous N days, and determining the daily comprehensive power consumption and a first discharge slope of the door lock battery in a discharge process, searching at least one discharge curve which is consistent with the N-day first voltage value range and is most similar to the first discharge slope from a plurality of discharge curves, and estimating the residual electric quantity of the door lock battery according to the at least one discharge curve and the current voltage value, a plurality of discharge curves pre-stored in a door lock hardware circuit memory are utilized to cover an actual discharge curve of a door lock battery, and weighting processing is performed on the similarity between the plurality of discharge curves and the actual discharge curve in a multi-dimensional manner by combining the use habits of a user and the characteristics of a door lock, so that the judgment precision of the remaining capacity of the door lock battery is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart terminal technology, and in particular to a door lock battery power detection method, device, electronic device and readable storage medium. Background Art

[0002] With the development of technology, smart door locks have become more and more popular. In order to ensure the stable use of smart door locks, it is necessary to predict the remaining battery power of the door lock to remind users to replace the battery in time or charge the battery to avoid the situation where the user cannot open the door lock normally due to the smart door lock being out of power.

[0003] In the related art, in order to monitor the remaining power of the smart door lock, there are mainly two ways to detect the remaining power of the smart door lock battery: (1) using a coulomb meter, by real-time detection of current, using time integration, to obtain the battery power consumed. (2) by detecting the battery voltage, combined with the battery discharge curve, the remaining battery power is inferred. However, the coulomb meter method has the following disadvantages: it is impossible to obtain the accurate total initial power of the battery, so the remaining battery power obtained is not accurate. In addition, this method requires special coulomb meter hardware, which is expensive. The voltage detection method has the following disadvantages: since the battery discharge curve is generally measured at a specific temperature, a specific current or a load, and the temperature, the current consumption, and the internal resistance of the battery are all changing during the use of the door lock, the remaining battery power obtained by the voltage detection method has a large error. Therefore, it is urgent to propose a door lock battery power detection method, device, electronic device and readable storage medium, which aims to solve the above technical problems to a certain extent. Summary of the invention

[0004] The embodiments of the present application provide a door lock battery power detection method, device, electronic device and readable storage medium, which solve the problems of low accuracy and high detection cost of door lock battery remaining power detection in related technologies.

[0005] In a first aspect, an embodiment of the present application provides a door lock battery power detection method, which includes: obtaining in real time a first voltage value of a door lock battery for N consecutive days, where N is an integer; when the first voltage value is lower than a low-power alarm starting value, obtaining first characteristic data of a user operating a door lock for N consecutive days and second characteristic data of a door lock battery working state; determining a comprehensive power consumption per day based on the first voltage value, the first characteristic data, and the second characteristic data for N consecutive days; determining a first discharge slope of the door lock battery during a discharge process based on the first voltage value and the comprehensive power consumption per day; searching from a plurality of discharge curves for at least one discharge curve that is consistent with the range of the first voltage value for N days and is most similar to the first discharge slope; when at least one discharge curve is a first discharge curve, a first power value corresponding to a current voltage on the first discharge curve is the remaining power of the door lock battery; when at least one discharge curve is at least two second discharge curves, fitting is performed based on the at least two second discharge curves to determine a target curve, and a second power value corresponding to the current voltage on the target curve is the remaining power of the door lock battery.

[0006] According to the first aspect of the present application, the daily comprehensive power consumption is determined based on the first voltage value, the first characteristic data and the second characteristic data for N consecutive days, including: determining the daily voltage loss of the door lock battery based on the first voltage value of each day; determining the daily unlocking power consumption based on the daily unlocking action type, the rated power consumption and the number of unlocking actions; determining the daily data transmission power consumption based on the reference signal receiving power corresponding to each data transmission, the rated transmission current, and the actual transmission time corresponding to each predetermined level; determining the daily standby power consumption based on the current value when the door lock battery is in a dormant state; determining the daily comprehensive power consumption based on the daily unlocking power consumption, data transmission power consumption and standby power consumption.

[0007] According to the first aspect of the present application, at least one discharge curve that is consistent with the first voltage value range of N days and is most similar to the first discharge slope is searched from multiple discharge curves, including: the first characteristic data also includes a typical transmission time, and based on the rated power consumption, the rated transmission current and the typical transmission time, the unlocking power consumption weighting factor and the transmission power consumption weighting factor are determined; according to the unlocking power consumption weighting factor, the number of unlocking actions, the transmission power consumption weighting factor, the rated power consumption, the actual transmission time and the typical transmission time, the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days are determined; based on the weighted number of actions per day and the total weighted number of actions for N days, the discharge slope similarity weighting coefficient of the door lock battery per day is determined, and the daily discharge slope similarity weighting coefficient is used to reflect the weight of the weighted number of actions per day in the total weighted number of actions for N days; according to the first discharge slope, the discharge slope similarity weighting coefficient and multiple discharge curves, at least one discharge curve that is most similar to the first discharge slope is determined.

[0008] According to the first aspect of the present application, the door lock battery power detection method also includes determining the remaining available days based on the remaining power of the door lock battery. The method for determining the remaining available days includes: obtaining the total power consumption data of the door lock battery within R days, where R is an integer; based on the total power consumption data, determining the typical power consumption average value of the door lock battery within R days; determining the remaining available days based on the remaining power of the door lock battery and the typical power consumption average value.

[0009] In a second aspect, an embodiment of the present application provides a door lock battery remaining power detection device, a monitoring unit, for obtaining in real time a first voltage value of a door lock battery for N consecutive days;

[0010] The monitoring unit is further used to obtain first characteristic data of the user operating the door lock for N days and second characteristic data of the working state of the battery of the door lock when the first voltage value is lower than the low-battery alarm starting value;

[0011] A calculation unit, used to determine the comprehensive power consumption per day according to the first voltage value, the first characteristic data and the second characteristic data for N consecutive days;

[0012] The calculation unit is further used to determine a first discharge slope of the door lock battery during the discharge process based on the first voltage value and the comprehensive power consumption every day;

[0013] The prediction unit is used to search at least one discharge curve from the multiple discharge curves that is consistent with the first voltage value range of N days and is most similar to the first discharge slope.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory, the memory storing programs or instructions that can be executed on the processor.

[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, a door lock battery power detection method as in the first aspect is implemented.

[0016] The door lock battery power detection method, device, electronic device and readable storage medium provided in the embodiments of the present application use multiple discharge curves pre-stored in the door lock hardware circuit memory to cover the actual discharge curve of the door lock battery, and weight the similarities between the multiple discharge curves and the actual discharge curve in multiple dimensions by combining the user's usage habits and the characteristics of the door lock, thereby ensuring that the screened target curve has a very high similarity with the actual discharge curve, and the target curve is close to the actual discharge change data of the door lock battery, so that the remaining available power of the door lock battery can be accurately estimated. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0018] Figure 1 It is a flowchart of the power detection method provided in the embodiment of the present application;

[0019] Figure 2 is a schematic diagram of a process for determining daily comprehensive power consumption provided by an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of a flow chart of searching at least one discharge curve most similar to a first discharge slope from a plurality of discharge curves provided by an embodiment of the present application;

[0021] Figure 4 It is a flowchart of determining the weighted number of actions of a door lock battery per day and the total weighted number of actions for N days provided in an embodiment of the present application;

[0022] Figure 5 It is a structural schematic diagram of a door lock battery remaining power detection device provided in an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0026] In order to solve the problems of the prior art, the embodiments of the present application provide a door lock battery power detection method, device, electronic device and computer storage medium.

[0027] The following first introduces a door lock battery power detection method provided in an embodiment of the present application.

[0028] A flow chart of a power detection method provided in an embodiment of the present application is as follows: Figure 1 As shown, the door lock battery power detection method may include the following steps S110-S160.

[0029] S110. Acquire in real time the first voltage value of the door lock battery for N consecutive days, where N is an integer.

[0030] In the embodiment of the present application, it can be understood that during the discharge process of the door lock battery, the remaining power gradually decays, and during the decay of the remaining power of the door lock battery, the voltage value of the door lock battery also gradually decreases, and there is a positive correlation between the voltage value of the door lock battery and the remaining power. Therefore, by recording the voltage change of the door lock battery during the discharge process, and recording the voltage data of the door lock battery within N consecutive days as the first voltage value, the discharge of the door lock battery within a continuous period of time (N days) can be recorded.

[0031] S120. When the first voltage value is lower than the low-battery alarm starting value, obtain first characteristic data of the user operating the door lock for N days and second characteristic data of the working status of the door lock battery.

[0032] It is understandable that the power consumption of the door lock battery includes: standby power consumption, unlocking action power consumption, and data uploading power consumption. The unlocking action types of the door lock battery include: fingerprint unlocking, password unlocking, card unlocking and Bluetooth unlocking; each unlocking method corresponds to a rated power consumption, and the rated power consumption corresponding to each of the above unlocking methods can be measured through experiments.

[0033] In the embodiment of the present application, the first characteristic data includes the unlocking action type, the number of unlocking actions corresponding to each unlocking action type, the reference signal receiving power and the actual transmission time, and the second characteristic data includes the rated power consumption corresponding to the unlocking action type, the rated transmission current corresponding to the predetermined level of the reference signal receiving power, and the current value of the door lock battery in the dormant state. Therefore, by obtaining the first characteristic data and the second characteristic data, various parameters reflecting the discharge process of the door lock battery within N days can be obtained, so as to facilitate the subsequent analysis of the discharge characteristics of the door lock battery.

[0034] S130: Determine the comprehensive power consumption of each day according to the first voltage value, the first characteristic data, and the second characteristic data for N consecutive days.

[0035] In the embodiment of the present application, since the reference signal receiving power (RSRP) corresponding to each data upload of the door lock battery can be directly measured and recorded, by judging the predetermined level of the reference signal receiving power corresponding to each data upload, the rated transmission current corresponding to each data upload can be obtained, and the actual transmission duration of each data upload can be directly measured. Thus, the power consumption corresponding to each data upload can be obtained, and the daily comprehensive power consumption can be determined based on the superposition of the daily data transmission power consumption, unlocking power consumption and standby power consumption.

[0036] S140: Determine a first discharge slope of the door lock battery during the discharge process based on the first voltage value and the comprehensive power consumption every day.

[0037] In the embodiment of the present application, based on the first voltage value of each day, by comparing the first voltage values ​​of adjacent days, the voltage loss value of each day can be determined. It can be understood that the ratio of the voltage loss value of each day to the comprehensive power consumption of each day is defined as the first discharge slope, and the first discharge slope can reflect the actual power consumption of the door lock battery. Based on this, by determining the first discharge slope of the door lock battery during the discharge process based on the first voltage value of each day and the comprehensive power consumption, the actual power consumption of the door lock battery over a period of time can be obtained.

[0038] S150 . Searching, from a plurality of discharge curves, at least one discharge curve that is consistent with the first voltage value range of N days and is most similar to the first discharge slope.

[0039] In the embodiment of the present application, before each type of door lock battery leaves the factory, multiple discharge characteristic curves of the door lock battery of that type are measured, and the first discharge slope measured above is compared with multiple discharge curves built into the door lock battery, and the discharge curve closest to the measured first discharge slope data is found, and the actual power consumption of the door lock battery is analyzed with high accuracy based on the found discharge curve. Therefore, the power consumption characteristics of the door lock battery can be accurately estimated based on at least one discharge curve that is most similar to the first discharge slope.

[0040] S160: Determine the remaining power of the door lock battery according to the at least one found discharge curve.

[0041] In the embodiment of the present application, when at least one discharge curve is the first discharge curve, the first discharge curve is unique and is the target curve, and the first power value corresponding to the current voltage on the first discharge curve is the remaining power of the door lock battery. Based on this, when a curve closest to the actual discharge condition of the door lock battery is found, the remaining power of the door lock battery can be predicted based on the unique first discharge curve and the current voltage value.

[0042] In other embodiments, when at least one discharge curve is at least two second discharge curves, a target curve is determined based on fitting of the at least two second discharge curves, and the second power value corresponding to the current voltage on the target curve is the remaining power of the door lock battery. Based on this, when multiple curves close to the actual discharge conditions of the door lock battery are found, the multiple discharge curves are fitted and averaged, and the remaining power of the door lock battery is predicted based on the target curve obtained by the fitting and average processing.

[0043] In summary, the multiple discharge curves pre-stored in the door lock battery are discharge characteristic curves obtained through multiple test records conducted by the manufacturer. By finding a target curve that is closest to the actual discharge characteristic of the door lock battery and estimating the current remaining power of the door lock battery based on this target curve, a higher accuracy can be achieved.

[0044] The above is a specific implementation method of the door lock battery power detection method provided in an embodiment of the present application, which is to find the target curve closest to the actual discharge curve of the door lock battery from the multiple discharge curves pre-stored in the door lock hardware circuit memory, and estimate the remaining available power of the door lock battery based on the target curve.

[0045] In some embodiments, the present application provides a method for determining the comprehensive power consumption per day, such as Figure 2 As shown, the method may include the following steps: 1.

[0046] S210: Determine the daily voltage loss of the door lock battery based on the first voltage value of each day.

[0047] In the embodiment of the present application, by comparing the first voltage values ​​of any two days within a period of time, the voltage loss between the two days can be directly obtained, and by comparing the first voltage values ​​of adjacent days, the voltage loss of the door lock battery per day can be obtained. Based on this, by monitoring the first voltage value of N consecutive days through the built-in element of the door lock battery, the voltage loss of the door lock battery per day can be obtained. Since the voltage attenuation and power attenuation of the door lock battery during the discharge process are interrelated, the remaining power of the door lock battery can be judged based on the voltage loss of the door lock battery per day.

[0048] S220: Determine the daily unlocking power consumption according to the daily unlocking action type, rated power consumption and number of unlocking actions.

[0049] In the embodiment of the present application, each unlocking action of the door lock battery corresponds to one unlocking action type. Within a period of time, each unlocking action type will occur several times, and the rated power consumption corresponding to the various unlocking action types is different. If you want to calculate the daily unlocking power consumption, you need to count the number of times each unlocking action type occurs. Therefore, by combining the number of unlocking actions corresponding to each unlocking action type in a day with the corresponding rated power consumption, you can determine the power consumption corresponding to each type of unlocking action every day, and thus determine the daily unlocking power consumption.

[0050] S230, determining the daily data transmission power consumption according to the reference signal receiving power corresponding to each data transmission, the rated transmission current, and the actual transmission time corresponding to each predetermined level.

[0051] In the embodiment of the present application, the door lock battery will transmit the unlocking type corresponding to each unlocking to the door lock firmware for recording, and the power consumption during data transmission will be affected by the signal quality and vary. Therefore, according to the reference signal receiving power corresponding to each data upload and the corresponding actual transmission time, the power consumption of data transmission per day can be determined.

[0052] In one example, the wireless signal quality of the door lock battery is divided as shown in the following table:

[0053] Table 1: Door lock battery wireless signal quality predetermined level table

[0054] Signal quality category Corresponding RSRP value Excellent RSRP>-85dBm Better RSRP>-85~-95dBm midpoint RSRP>-95~-105dBm Handicap RSRP>-105~-115dBm Very close RSRP<-115dBm

[0055] In Table 1, RSRP stands for Reference Signal Receiving Power, and dBm stands for decibel milliwatt. According to the RSRP value, the signal quality of the door lock battery during data transmission is divided into 5 levels, and each level corresponds to a measurable rated transmission current. By judging the duration of each data transmission and the corresponding level, the power consumption of each data transmission can be determined.

[0056] S240: Determine the daily standby power consumption according to the current value of the door lock battery in the dormant state.

[0057] In the embodiment of the present application, the power consumption data of the door lock battery includes unlocking power consumption, data transmission power consumption, and standby power consumption. The door lock battery always has standby power consumption in the dormant state. Therefore, the current value of the door lock battery in the dormant state is combined with the daily duration to determine the daily standby power consumption.

[0058] S250: Determine the daily comprehensive power consumption based on the daily unlocking power consumption, data transmission power consumption and standby power consumption.

[0059] In the embodiment of the present application, the comprehensive power consumption of the door lock battery every day includes unlocking power consumption, data transmission power consumption and standby power consumption. Therefore, by comprehensively considering various ways of door lock battery power consumption, the comprehensive power consumption of every day can be determined by summing up the data transmission power consumption, unlocking power consumption and standby power consumption.

[0060] In some embodiments, the present application provides a method for finding at least one discharge curve that is most similar to a first discharge slope from a plurality of discharge curves, such as Figure 3 As shown, the method may include the following steps:

[0061] S310. The first characteristic data also includes a typical transmission duration. Based on the rated power consumption, the rated transmission current, and the typical transmission duration, an unlocking power consumption weighting factor and a transmission power consumption weighting factor are determined.

[0062] Among them, the unlocking power consumption weighting factor and the transmission power consumption weighting factor are the power consumption weighting factors corresponding to different unlocking types and different signal quality categories during the door lock battery unlocking process. Based on this, since the power consumption characteristics of the door lock battery in the unlocking stage and the data transmission stage are affected by the user's usage habits and the signal environment described by the door lock battery, in order to study the power consumption characteristics of the door lock battery, the unlocking power consumption and transmission power consumption are standardized, and the unlocking power consumption weighting factor and the transmission power consumption weighting factor are introduced to make the subsequent statistics of the door lock battery power consumption more accurate.

[0063] S320. Determine the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days according to the unlocking power consumption weighting factor, the number of unlocking actions, the transmission power consumption weighting factor, the rated power consumption, the actual transmission time, and the typical transmission time.

[0064] By determining the unlocking power consumption weighting factor and transmission power consumption weighting factor corresponding to each unlocking, the weighted number of actions of the door lock battery per day can be obtained. After obtaining the weighted number of actions of the door lock battery on any day, the total weighted number of actions of the door lock battery within a period of time (N days) can be determined by data superposition. Therefore, by studying the weighted number of actions of the door lock battery on a certain day and the total weighted number of actions within N days, the weight of the weighted action of the door lock battery on that day within N days can be determined.

[0065] S330. Based on the weighted number of actions per day and the total weighted number of actions in N days, determine the discharge slope similarity weighting coefficient of the door lock battery per day, where the discharge slope similarity weighting coefficient per day is used to reflect the weight of the weighted number of actions per day in the total weighted number of actions in N days.

[0066] Among them, the daily discharge slope similarity weighted coefficient of the door lock battery is an indicator obtained by standardizing the power consumption corresponding to different unlocking action types and different signal qualities during data transmission. Based on this, the discharge slope similarity weighted coefficient can be used to weight the voltage attenuation amplitude and power attenuation amplitude of the door lock battery to obtain standardized voltage and power characteristic data, which is convenient for comparison with the discharge curve pre-stored in the door lock firmware.

[0067] S340: Determine at least one discharge curve that is most similar to the first discharge slope according to the first discharge slope, the discharge slope similarity weighting coefficient, and a plurality of discharge curves.

[0068] Among them, the first discharge slope is the ratio of the voltage decay value of the door lock battery to the power decay value every day. The first discharge slope is used to compare with the discharge curve pre-stored in the door lock firmware, and the discharge slope similarity weighting system performs weighted processing on the results of the above comparison. Therefore, the weighted index can directly reflect the similarity between the actual discharge characteristics of the door lock battery and the multiple pre-stored discharge curves, and then by studying the weighted index, at least one discharge curve with the most similar first discharge slope can be determined.

[0069] In some embodiments, in S310, determining the unlocking power consumption weighting factor and the transmission power consumption weighting factor may include:

[0070] The minimum value of the rated power consumption corresponding to each unlocking action type is selected as the reference value. It is understandable that the power consumption of each unlocking type is different. Before the door lock battery leaves the factory, the power consumption of the door lock battery of this model corresponding to different unlocking types can be measured. Among them, from the power consumption data of fingerprint unlocking, password unlocking, card unlocking, and Bluetooth unlocking, the power consumption value with the smallest value is selected as the power consumption normalized reference value of the typical door lock action. Therefore, the power consumption corresponding to various unlocking types is compared with the power consumption normalized reference value, and the power consumption weighting factor of each unlocking action can be calculated and stored in the door lock firmware.

[0071] Based on the reference value and the rated power consumption corresponding to each unlocking action type, the unlocking power consumption weighting factor is determined. The rated power consumption corresponding to each unlocking action type is divided by the reference value to obtain the unlocking power consumption weighting factor corresponding to each unlocking action type. Based on this, the standardized unlocking power consumption weighting factor is obtained. The unlocking power consumption weighting factor can be used to weight the number of times different unlocking types occur on the door lock battery.

[0072] Based on the reference value, and the corresponding rated transmission current and typical transmission duration in each predetermined level, the transmission power consumption weighting factor corresponding to each predetermined level is determined. The rated transmission current corresponding to each predetermined level is multiplied by the typical transmission duration to obtain the transmission typical power consumption at each predetermined level. The transmission power consumption weighting factor is determined based on the transmission typical power consumption and the reference value. Based on this, a standardized transmission power consumption weighting factor is obtained. The transmission power consumption weighting factor can be used to perform weighted processing on the number of unlocking times of the door lock battery at different signal levels.

[0073] In some embodiments, S320: determining the specific process of the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days, such as Figure 4 As shown, the process includes the following steps:

[0074] S410: Determine the weighted number of actions in the unlocking phase based on the unlocking power consumption weighting factors corresponding to various unlocking action types and the number of unlocking actions.

[0075] Among them, the unlocking power consumption weighting factors corresponding to various unlocking action types are multiplied by the number of unlocking actions in turn to obtain the weighted number of actions under various unlocking action types. Based on this, the weighted number of actions under various unlocking action types is summed up to determine the weighted number of actions of the door lock battery in the unlocking stage every day.

[0076] S420: Filter the number of unlocking actions per day according to the predetermined levels to determine the number of unlocking actions at each predetermined level.

[0077] Among them, according to the wireless signal quality classification standard of the door lock battery, the signal quality corresponding to the unlocking action of the door lock battery every day is classified, and the number of unlocking actions of the door lock battery at each predetermined level every day can be determined. Based on this, the weighted number of actions at each level can be calculated according to the predetermined levels of the wireless signal quality classification.

[0078] S430, determining the weighted number of actions in the transmission phase based on the transmission power consumption weighting factors corresponding to each predetermined level, the number of unlocking actions at each predetermined level, the typical transmission duration, and the actual transmission duration of each unlocking.

[0079] Among them, the number of unlocking actions at each predetermined level is multiplied by the transmission power consumption weighting factor and the ratio of the actual transmission time to the typical transmission time in turn, so as to obtain the weighted number of actions of the door lock battery in the transmission stage every day at each predetermined level. Based on this, the weighted number of actions corresponding to each predetermined level of the door lock battery in the transmission stage every day is summed up, so as to determine the weighted number of actions of the door lock battery in the transmission stage every day.

[0080] S440. Determine the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days according to the weighted number of actions in the unlocking phase and the weighted number of actions in the transmission phase.

[0081] Among them, the weighted number of actions of the door lock battery in the unlocking stage every day and the weighted number of actions of the door lock battery in the transmission stage every day are superimposed to determine the weighted number of actions of the door lock battery every day. Therefore, by summing the weighted number of actions of the door lock battery every day in N days, the total weighted number of actions of the door lock battery in N days can be determined.

[0082] In some embodiments, in S330 , the weighted number of actions per day is divided by the total number of weighted actions to determine the weighted coefficient of the discharge slope similarity per day.

[0083] Among them, the daily discharge slope similarity weighting coefficient of the door lock battery is the result of dividing the total weighted action by days according to the daily characteristic data of the actual discharge process of the door lock battery. Therefore, the daily discharge slope similarity weighting coefficient can be used to weight the daily voltage and power attenuation degree of the door lock battery to obtain a standardized voltage and power attenuation curve for similarity comparison with multiple discharge curves pre-stored in the door lock firmware.

[0084] In some embodiments, S340: determining at least one discharge curve most similar to the first discharge slope may include:

[0085] Based on the second voltage value of each discharge curve every day and the power value corresponding to the second voltage value, the second discharge slope of each discharge curve every day is determined.

[0086] Among them, the second voltage value is the voltage index of each curve in the multiple discharge curves pre-stored in the door lock firmware every day. There is a power index corresponding to the second voltage value in the curve every day. As the discharge stage of the door lock battery progresses, the voltage and power gradually decay. This application defines the ratio of the daily voltage decay to the power decay as the discharge slope, and the discharge slope can directly reflect the discharge characteristics of the door lock firmware. Therefore, by calculating the second discharge slope, the specific characteristic indexes of the multiple pre-stored discharge curves can be obtained, so as to facilitate the comparison of the actual discharge process of the door lock battery with the multiple pre-stored discharge curves.

[0087] According to the first discharge slope, the second discharge slope and the discharge slope similarity weighting coefficient of each day, the weighted discharge slope similarity of each discharge curve every day and the comprehensive weighted discharge slope similarity of N days are determined.

[0088] Among them, the first discharge slope of each day in the actual discharge stage of the door lock battery is compared with the second discharge slope of each pre-stored discharge curve on that day to obtain the discharge slope similarity of each pre-stored discharge curve on that day with the actual discharge stage of the door lock battery. Based on the product of the discharge slope similarity and the weighted coefficient of the discharge slope similarity corresponding to that day, the weighted discharge slope similarity of each discharge curve on that day is determined. Thus, by summing the weighted discharge slope similarities within N days, the comprehensive weighted discharge slope similarity of N days can be determined.

[0089] The comprehensive weighted discharge slope similarity of N days corresponding to each discharge curve is screened to determine at least one discharge curve.

[0090] Among them, the comprehensive weighted discharge slope similarity of N days is a set of discrete values ​​adjacent to the value "1", and the value "1" represents that the discharge stage characteristics of the door lock battery are absolutely similar to the corresponding pre-storage discharge curve. Based on this, by comparing the closeness of the comprehensive weighted discharge slope similarity of N days to the value "1", the target curve can be determined, and then the target curve can be used to predict the actual remaining available power of the door lock battery.

[0091] In one example, N comprehensive weighted discharge similarities are divided into two groups, wherein the comprehensive weighted discharge similarity of the first group is greater than or equal to 1, and the comprehensive weighted discharge similarity of the second group is less than 1, the minimum value in the comprehensive weighted discharge similarities of the first group is screened, and the curve corresponding to the minimum value is used as the first discharge curve closest to the discharge slope of the door lock battery, the maximum value in the comprehensive weighted discharge similarities of the second group is screened, and the curve corresponding to the maximum value is used as the second discharge curve closest to the discharge slope of the door lock battery, the two selected curves are fitted and averaged to obtain the target curve, and the target curve and the current voltage value are used to estimate the current remaining available power of the door lock battery.

[0092] In another example, a value closest to 1 is selected from N comprehensive weighted discharge similarities, and a curve corresponding to the comprehensive weighted discharge similarity closest to 1 is used as a target curve to estimate the remaining available power of the door lock battery.

[0093] In another example, two or more values ​​close to 1 are selected from N comprehensive weighted discharge similarities, and two or more curves corresponding to the two or more comprehensive weighted discharge similarities are fitted and averaged to obtain a target curve.

[0094] In some embodiments, in order to determine the remaining usable days according to the remaining power of the door lock battery, after determining the remaining power of the door lock battery according to the at least one discharge curve found, the following steps may also be included:

[0095] Get the total power consumption data of the door lock battery within R days, where R is an integer.

[0096] Based on the total power consumption data, determine the typical average power consumption of the door lock battery within R days.

[0097] Determine the remaining usable days based on the remaining charge of the door lock battery and the typical power consumption average.

[0098] Among them, the total power consumption data within R days is the power attenuation value of the door lock battery at any period of time during the discharge stage. The comprehensive power consumption of a certain day during the discharge stage of the door lock battery is determined as described in S210-S250 above, which will not be repeated here. Therefore, the remaining power of the door lock battery obtained as described above is divided by the typical power consumption average value of the door lock battery in the actual discharge stage to determine the remaining usable days of the door lock battery, so that the door lock battery can send prediction information to the user at low voltage to actively remind the user of the remaining usable days of the door lock battery.

[0099] The present application also provides a door lock battery remaining power detection device, such as Figure 5 As shown, the device may include the following units:

[0100] The monitoring unit 510 is used to obtain in real time the first voltage value of the door lock battery for N consecutive days, and is also used to obtain the first characteristic data of the user operating the door lock for N days and the second characteristic data of the working status of the door lock battery when the first voltage value is lower than the low-battery alarm starting value. The monitoring unit 510 can be used to execute S110 and S120 described above, which will not be repeated here.

[0101] The calculation unit 520 is used to determine the comprehensive power consumption of each day based on the first voltage value, the first characteristic data and the second characteristic data for N consecutive days, and is also used to determine the first discharge slope of the door lock battery during the discharge process based on the first voltage value and the comprehensive power consumption of each day. The calculation unit 520 can be used to execute S130 and S140 described above, which will not be repeated here.

[0102] The prediction unit 530 is used to search at least one discharge curve from multiple discharge curves that is consistent with the first voltage value range of N days and most similar to the first discharge slope. The prediction unit 530 can be used to execute S150 and S160 described above, which will not be repeated here.

[0103] According to an embodiment of the present application, any multiple units among the monitoring unit 510, the calculation unit 520, and the prediction unit 530 may be combined into one unit for implementation, or any one of the units may be split into multiple units. Alternatively, at least part of the functions of one or more of these units may be combined with at least part of the functions of other units and implemented in one unit.

[0104] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.

[0105] The electronic device may include a processor 610 and a memory 620 storing computer program instructions.

[0106] Specifically, the processor 610 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0107] The memory 620 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 620 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 620 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 620 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 620 is a non-volatile solid-state memory.

[0108] The memory 620 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory 620 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in any of the door lock battery power detection methods in the above embodiments.

[0109] The processor 610 implements any one of the door lock battery power detection methods in the above embodiments by reading and executing computer program instructions stored in the memory 620.

[0110] In one example, the electronic device may further include a communication interface 630 and a bus 600. Figure 6 As shown, the processor 610, the memory 620, and the communication interface 630 are connected via a bus 600 and communicate with each other.

[0111] The communication interface 630 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0112] Bus 600 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 600 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0113] In addition, in combination with the door lock battery detection method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the door lock battery detection methods in the above embodiment is implemented.

[0114] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0115] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0116] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0117] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0118] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for detecting the battery power of a door lock. It is characterized in that The power detection method comprises the following steps: Obtain the first voltage value of the door lock battery for N consecutive days in real time, where N is an integer; When the first voltage value is lower than the low-battery alarm starting value, first characteristic data of the user operating the door lock for N days and second characteristic data of the working state of the door lock battery are obtained; Determine the comprehensive power consumption per day according to the first voltage value, the first characteristic data and the second characteristic data for N consecutive days; Determining a first discharge slope of the door lock battery during a discharge process based on the first voltage value and the comprehensive power consumption every day; Searching, from a plurality of discharge curves, at least one discharge curve that is consistent with the first voltage value range of day N and is most similar to the first discharge slope; In the case where the at least one discharge curve is a first discharge curve, a first power value corresponding to the current voltage on the first discharge curve is the remaining power of the door lock battery; In the case where the at least one discharge curve is at least two second discharge curves, a target curve is determined based on fitting of the at least two second discharge curves, and a second power value corresponding to the current voltage on the target curve is the remaining power of the door lock battery.

2. The door lock battery power detection method according to claim 1, It is characterized in that The first characteristic data includes unlocking action type, unlocking action times corresponding to each unlocking action type, reference signal receiving power and actual transmission duration; The second characteristic data includes a rated power consumption corresponding to the unlocking action type, a rated transmission current corresponding to a predetermined level of the reference signal receiving power, and a current value of the door lock battery in a dormant state.

3. The door lock battery power detection method according to claim 2, It is characterized in that The determining of the daily comprehensive power consumption according to the first voltage value, the first characteristic data, and the second characteristic data for N consecutive days includes: Determining a daily voltage loss of the door lock battery based on the first voltage value of each day; Determine the daily unlocking power consumption according to the unlocking action type, the rated power consumption and the number of unlocking actions per day; Determine the daily data transmission power consumption according to the reference signal received power corresponding to each data transmission, the rated transmission current, and the actual transmission duration corresponding to each predetermined level; Determine the daily standby power consumption according to the current value of the door lock battery in a dormant state; The daily comprehensive power consumption is determined based on the daily unlocking power consumption, the data transmission power consumption, and the standby power consumption.

4. The door lock battery power detection method according to claim 3, It is characterized in that The step of searching, from a plurality of discharge curves, at least one discharge curve that is consistent with the first voltage value range of the Nth day and most similar to the first discharge slope includes: The first characteristic data also includes a typical transmission duration, and based on the rated power consumption, the rated transmission current and the typical transmission duration, a weighting factor for unlocking power consumption and a weighting factor for transmission power consumption are determined; Determine the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days according to the unlocking power consumption weighting factor, the number of unlocking actions, the transmission power consumption weighting factor, the rated power consumption, the actual transmission duration, and the typical transmission duration; Based on the weighted number of actions per day and the total weighted number of actions in N days, determine the discharge slope similarity weighting coefficient of the door lock battery per day, where the discharge slope similarity weighting coefficient per day is used to reflect the weight of the weighted number of actions per day in the total weighted number of actions in N days; At least one discharge curve most similar to the first discharge slope is determined according to the first discharge slope, the discharge slope similarity weighting coefficient, and the plurality of discharge curves.

5. The door lock battery power detection method according to claim 4, It is characterized in that The determining, based on the rated power consumption, the rated transmission current and the typical transmission duration, an unlocking power consumption weighting factor and a transmission power consumption weighting factor comprises: Filter out the minimum value of the rated power consumption corresponding to each unlocking action type as a reference value; Determining the unlocking power consumption weighting factor based on the reference value and the rated power consumption corresponding to each unlocking action type; The transmission power consumption weighting factor corresponding to each of the predetermined levels is determined based on the reference value, and the rated transmission current and the typical transmission duration corresponding to each of the predetermined levels.

6. The door lock battery power detection method according to claim 4, It is characterized in that Determining the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days includes: Determining the weighted number of actions in the unlocking phase based on the unlocking power consumption weighting factors corresponding to the various unlocking action types and the number of unlocking actions; Filtering the number of unlocking actions per day according to the predetermined levels to determine the number of unlocking actions at each predetermined level; Determine the weighted number of actions in the transmission phase based on the transmission power consumption weighting factor corresponding to each of the predetermined levels, the number of unlocking actions at each of the predetermined levels, the typical transmission duration, and the actual transmission duration of each unlocking; According to the weighted number of actions in the unlocking phase and the weighted number of actions in the transmission phase, the weighted number of actions of the door lock battery per day and the total weighted number of actions for N days are determined.

7. The door lock battery power detection method according to claim 4, It is characterized in that The determining, according to the first discharge slope, the discharge slope similarity weighting coefficient and the plurality of discharge curves, at least one discharge curve that is most similar to the first discharge slope comprises: Determine a second discharge slope of each of the discharge curves based on the second voltage value of each of the discharge curves every day and the power value corresponding to the second voltage value; Determine the weighted discharge slope similarity of each discharge curve every day and the comprehensive weighted discharge slope similarity of N days according to the first discharge slope, the second discharge slope and the discharge slope similarity weighting coefficient of each day; The comprehensive weighted discharge slope similarities of the N days corresponding to each of the discharge curves are screened to determine the at least one discharge curve.

8. The door lock battery power detection method according to any one of claims 1 to 7, It is characterized in that The method also includes determining the remaining usable days according to the remaining power of the door lock battery, and the method for determining the remaining usable days includes: Obtain the total power consumption data of the door lock battery within R days, where R is an integer; Based on the total power consumption data, determine a typical average power consumption of the door lock battery within R days; The remaining usable days are determined based on the remaining power of the door lock battery and the typical power consumption average value.

9. A door lock battery remaining power detection device, It is characterized in that include: A monitoring unit, used to obtain in real time the first voltage value of the door lock battery for N consecutive days; The monitoring unit is further used to obtain first characteristic data of the user operating the door lock for N days and second characteristic data of the working state of the door lock battery when the first voltage value is lower than the low-power alarm starting value; a calculation unit, configured to determine the comprehensive power consumption per day according to the first voltage value, the first characteristic data and the second characteristic data for N consecutive days; The calculation unit is further used to determine a first discharge slope of the door lock battery during a discharge process based on the first voltage value and the comprehensive power consumption every day; The prediction unit is used to search at least one discharge curve from multiple discharge curves that is consistent with the first voltage value range of N days and is most similar to the first discharge slope.

10. An electronic device, It is characterized in that The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.