Battery voltage drop threshold determination method, electronic door lock control method and equipment thereof

By obtaining and analyzing the unlocking data of the electronic door lock, the battery voltage drop threshold is determined, which solves the problem of the door lock being unable to close due to inaccurate battery power determination in the existing technology, and achieves accurate judgment of the battery status and normal operation of the door lock. protection.

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

Patent Information

Application Number
CN202311842281.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

It is difficult for existing electronic door locks to accurately determine whether the battery power meets the voltage required to open the door by detecting the no-load voltage of the battery, resulting in the problem that the lock cannot be closed normally when the battery power is low.

Method used

By obtaining multiple sets of unlocking data of electronic door locks under different conditions, the battery voltage drop distribution parameters corresponding to the battery's no-load voltage range are determined, and the battery voltage drop threshold is determined based on these parameters, and the real-time battery voltage drop and the threshold are compared to determine the battery status to avoid excessive battery voltage drop caused by excessive battery internal resistance.

Benefits of technology

It improves the accurate judgment of the battery status, avoids the problem of the electronic door lock being unable to close due to excessive battery voltage drop, and ensures the normal use of the door lock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795370A_ABST
    Figure CN118795370A_ABST
Patent Text Reader

Abstract

The invention provides a battery voltage drop threshold determination method, an electronic door lock control method and equipment, relates to the technical field of electronic door locks, and aims to solve the problem that a door lock cannot be closed due to low battery power. The method comprises the following steps: acquiring multiple groups of unlocking data of the electronic door lock under different conditions; determining a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on a plurality of groups of battery power supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition; and determining a battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same condition based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition. The invention further provides a control method of the electronic door lock. The control method is used for controlling the electronic door lock through the determination method of the battery voltage drop threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic door locks, and in particular to a method for determining a battery voltage drop threshold, a method for controlling an electronic door lock, and a device thereof. Background Art

[0002] In order to prevent the electronic door lock from being unable to open the door due to low battery power, some manufacturers currently detect the battery's no-load voltage to determine the remaining capacity to determine whether the battery power does not meet the voltage required to open the door, and then determine whether the battery power is in a low power state. However, due to the internal resistance of the battery, the voltage of the electronic door lock drops too much after unlocking, making the door lock unable to close normally. In this case, it is impossible to accurately determine whether the battery power does not meet the voltage required to open the door based on the no-load voltage alone. Summary of the invention

[0003] According to one aspect of the present disclosure, a method for determining a battery voltage drop threshold is provided, wherein the battery is used for an electronic door lock, and the battery voltage drop threshold is used to indicate the voltage drop of the battery, and the method comprises:

[0004] Acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data includes the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after locking;

[0005] Determine a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on multiple groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition;

[0006] Based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition, a battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same condition is determined.

[0007] According to another aspect of the present disclosure, a method for controlling an electronic door lock is provided, the method comprising:

[0008] When an unlocking signal of a target electronic door lock is detected, unlocking data of the target electronic door lock is acquired, wherein the unlocking data includes a no-load voltage of a target battery and a battery supply voltage of the target electronic door lock before and after locking;

[0009] Acquiring a battery voltage drop threshold of the battery from a preset mapping relationship based on the no-load voltage of the battery, wherein the preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and a battery voltage drop distribution parameter under the same condition, wherein the battery voltage drop distribution parameter is determined by a method for determining a battery voltage drop threshold provided by an exemplary embodiment of the present disclosure;

[0010] Determining a battery voltage drop of the battery before and after locking based on a battery supply voltage of the target electronic door lock before and after locking;

[0011] If it is determined that the battery state of the target battery is in an abnormal state based on the battery voltage drop of the battery before and after locking and the battery voltage drop threshold of the battery, the target electronic door lock is controlled to perform an abnormal handling operation.

[0012] According to another aspect of the present disclosure, a device for determining a battery voltage drop threshold is provided, the device comprising:

[0013] An acquisition module, used to acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data including the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after locking;

[0014] A determination module, configured to determine a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on a plurality of groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition;

[0015] The determination module is further used to determine the battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same condition based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition.

[0016] According to another aspect of the present disclosure, a control device for an electronic door lock is provided, the device comprising:

[0017] An acquisition module, used for acquiring unlocking data of the target electronic door lock when an unlocking signal of the target electronic door lock is detected, wherein the unlocking data includes a no-load voltage of the target battery and a battery supply voltage of the target electronic door lock before and after locking;

[0018] The acquisition module is further used to acquire a battery voltage drop threshold value of the battery from a preset mapping relationship based on the no-load voltage of the battery, wherein the preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and a battery voltage drop distribution parameter under the same condition, and the battery voltage drop distribution parameter is determined by the above-mentioned method for determining the battery voltage drop threshold value;

[0019] A determination module, configured to determine a battery voltage drop of the battery before and after locking based on a battery supply voltage of the target electronic door lock before and after locking;

[0020] If based on the battery voltage drop of the battery before and after locking and the battery voltage drop threshold of the battery, the determination module is also used to determine that the battery state of the target battery is in an abnormal state, and control the target electronic door lock to perform an abnormal handling operation.

[0021] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0022] processor; and,

[0023] A memory for storing programs;

[0024] The program includes instructions, and when the instructions are executed by the processor, the processor executes the method provided according to the exemplary embodiment of the present disclosure.

[0025] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method provided according to the exemplary embodiments of the present disclosure.

[0026] In one or more technical solutions provided in the embodiments of the present application, by acquiring multiple sets of unlocking data of the electronic door lock under different conditions, wherein each set of unlocking data includes the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after the lock is closed, the battery voltage drop of the electronic door lock before and after the lock corresponding to each no-load voltage can be obtained. In the method for determining the battery voltage drop threshold provided by the exemplary embodiment of the present disclosure, by acquiring the battery supply voltage before and after the lock is closed, it is possible to avoid the situation where the battery voltage drop data before and after the unlocking fluctuates greatly due to different unlocking methods, thereby affecting the accuracy of the determination of the battery voltage drop threshold. Then, based on the multiple sets of battery supply voltages of the electronic door lock before and after the lock corresponding to each no-load voltage interval of the electronic door lock under the same condition, the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same condition are determined. By classifying the multiple sets of unlocking data acquired according to the no-load voltage interval, the battery voltage drop distribution parameters corresponding to multiple sets of different no-load voltage intervals can be obtained. Finally, based on the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same condition, the battery voltage drop threshold of each no-load voltage of the electronic door lock under the same condition is determined. At this time, after obtaining the unlocking data of the target electronic door lock, the battery voltage drop distribution parameters of the no-load voltage in the low-power state can be determined according to the no-load voltage corresponding to the battery of the target electronic door lock in the low-power state, and the battery voltage drop threshold of the battery can be determined based on the battery voltage drop distribution parameters. When the electronic door lock is in use, the battery voltage drop in the electronic door lock is continuously obtained and compared with the determined battery voltage drop threshold to determine whether the battery is in a low-power state, thereby avoiding the problem of the electronic door lock being unable to lock due to excessive battery voltage drop caused by excessive internal resistance of the battery. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0028] Figure 1 A flowchart of a method for determining a battery voltage drop threshold value provided according to an exemplary embodiment of the present disclosure is shown;

[0029] Figure 2 A system module diagram of an electronic door lock provided according to an exemplary embodiment of the present disclosure is shown;

[0030] Figure 3 A flowchart of a method for determining a battery voltage drop distribution parameter according to an exemplary embodiment of the present disclosure is shown;

[0031] Figure 4 A flowchart of a method for determining a second battery voltage drop threshold value provided according to an exemplary embodiment of the present disclosure is shown;

[0032] Figure 5 A flowchart of a method for controlling an electronic door lock according to an exemplary embodiment of the present disclosure is shown;

[0033] Figure 6 A schematic block diagram of functional modules of a device for determining a battery voltage drop threshold according to an exemplary embodiment of the present disclosure is shown;

[0034] Figure 7 A schematic block diagram of functional modules of a control device for an electronic door lock according to an exemplary embodiment of the present disclosure is shown;

[0035] Figure 8 A schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown;

[0036] Fig. 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0038] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0039] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0042] Before introducing the embodiments of the present disclosure, the following definitions are given for the terms involved in the embodiments of the present disclosure:

[0043] Analog to Digital Converter (ADC), also known as D / A converter, is a device that converts digital quantity into analog. D / A converter basically consists of four parts, namely weighted resistor network, operational amplifier, reference power supply and analog switch.

[0044] Microcontroller Unit (MCU) is a highly integrated chip that usually includes a processor, memory, digital and analog peripherals, and a power management unit.

[0045] Universal Asynchronous Receiver / Transmitter (UART) is a universal serial data bus used for asynchronous communication. The bus is bidirectional and can achieve full-duplex transmission and reception.

[0046] Voltage drop, or voltage drop for short, refers to the change in potential (electrical potential) relative to the same reference point after current flows through the load. That is, the potential difference (electrical potential difference) across the load can be considered as voltage drop. Voltage drop is the driving force for current flow. If there is no voltage drop, there will be no current flow.

[0047] The enable terminal is the control signal input terminal, also called the enable input terminal (enable), also called the chip select terminal. It is an input pin of the chip, or an input port of the circuit. Only when this pin is activated can the chip work. Usually, it is valid at a high level. If there is a horizontal line above the symbol, it means that the low level is valid.

[0048] The existing method for electronic door locks to detect the remaining capacity of dry batteries is generally to detect the no-load voltage of the battery, and to judge whether the power of the door lock is in a state that can work normally by the voltage. Usually, when the door lock is not doing business that requires a large current to support the work, the static working current of the door lock is very small. Depending on the configuration, the static working current is generally around 100μA. The voltage of the battery in a small current discharge state can be approximately regarded as the no-load voltage of the battery. Therefore, by setting ADC sampling points at the positive and negative poles of the battery pack, the no-load voltage of the battery can be obtained by sampling, and the voltage obtained by sampling can be used to judge the state of the battery to determine whether the battery is suitable for electronic door locks.

[0049] However, in the existing detection methods, only detecting the no-load voltage of the battery cannot reflect the true state of the battery. To analyze the state of the dry cell in use, it is necessary not only to measure the no-load voltage of the battery, but also to detect the internal resistance of the battery. After the battery has been used for a period of time and aged, its internal resistance will gradually increase, and for batteries of different materials, the degree of change in internal resistance is also different. For example, the common alkaline batteries and carbon batteries, these two batteries have different electrolytes, and the internal resistance of the battery changes greatly with the discharge reaction of the battery. Compared with alkaline batteries, the internal resistance of carbon batteries will increase more. Not only aging will affect the internal resistance of the battery, but the internal resistance of the battery is also different at different ambient temperatures. At low temperatures, due to the slow chemical reaction inside the battery, the external reflection is the increase in the internal resistance of the battery. In addition, the continuous discharge of the dry cell, especially the large current discharge, will also cause the internal impedance to increase due to the untimely internal chemical reaction speed. Because the battery is discharged, it is affected by its own internal polarization internal resistance and ohmic internal resistance, and the battery voltage will drop to a certain extent. At the same time, because different manufacturers have different manufacturing processes for different types of batteries, the internal resistance of different types of batteries is also different, and even for the same type of batteries of the same brand, there will be individual differences in their internal resistance. In other scenarios where dry batteries are used, these issues may not need to be paid much attention to, but in door lock application scenarios, if the no-load voltage of the battery is judged to be a normal working voltage, but due to the large internal resistance of the battery, when the door lock is working at a high current, such as when the switch lock motor is rotating, the communication module is turned on for data communication, etc., especially when the switch lock motor is rotating, if the battery voltage drops to a level lower than the MCU's operating voltage, it may cause the device motor to rotate to unlock, but it may not rotate normally, resulting in the door being always open. Therefore, a detection method that can correctly detect the status of dry batteries is required in electronic door locks.

[0050] In order to overcome the above problems, an exemplary embodiment of the present disclosure provides a method for determining a battery voltage drop threshold, the battery being used for an electronic door lock, and the battery voltage drop threshold being used to indicate the voltage drop of the battery. According to the formula:

[0051] U 浮 =I(R 外 +R 内 )=IR 外 +IR 内 (1);

[0052] Where U 浮 is the no-load voltage of the battery, R 外 is the sum of the resistances of all modules in the circuit, R 内 For the motor rotation action of unlocking, the time is very short, and it can be assumed that the battery internal resistance will hardly change, so when the motor starts to rotate: U 浮 =I1 (R 外1 +R 内 )(2);

[0053] When the motor stops rotating: U 浮 =I 2 (R 外2 +R 内 )(3);

[0054] From equation (2) and equation (3), we can get: R 内 =(I 1 R 外1 -I 2 R 外2 ) / (I 2 -I 1 )=U 降 / (I 2 -I 1 )(4);

[0055] According to formula (4), it is known that only the current data in the circuit of the electronic door lock when unlocking needs to be measured, and then U 降 Calculate R 内 However, if you want to obtain the current data in the circuit of the electronic door lock when it is unlocked, you need to install a coulomb meter on the electronic door lock, which requires hardware modification, and the coulomb meter is relatively expensive and not very applicable. Therefore, the exemplary embodiment of the present disclosure proposes a method that can indirectly reflect the internal resistance of the battery to determine whether the battery is in a low-power state. That is, by determining the voltage drop threshold of the battery and comparing it with the battery voltage drop obtained in real time on the electronic door lock, it is determined whether the battery state of the electronic door lock is in a low-power state, thereby avoiding the problem of excessive battery voltage drop caused by only judging the no-load voltage, and the motor cannot rotate normally after the electronic door lock is unlocked, causing the door to be often open.

[0056] Figure 1 FIG. 1 is a flow chart of a method for determining a battery voltage drop threshold according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method for determining the battery voltage drop threshold provided by the exemplary embodiment of the present disclosure may include:

[0057] Step 110: Acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data includes the no-load voltage of the battery, and the battery supply voltage of the electronic door lock before and after the electronic door lock is locked. It should be understood that the different conditions here may include conditions such as different altitudes, different environments, and different seasons. Since temperature has a great influence on the performance of the battery, by acquiring multiple sets of unlocking data under different conditions, the battery voltage drop threshold of the battery in the electronic door lock under different regions and different temperature conditions can be determined more accurately, so that the battery voltage drop threshold finally determined is more referenceable.

[0058] In practical applications, the battery in the electronic door lock can be a variety of different types of batteries, for example, the battery can be an alkaline battery, or a carbon battery, etc., but is not limited thereto. By selecting a variety of different types of batteries, a variety of sample data can be obtained, thereby ensuring that the battery voltage drop threshold obtained based on the sample data has a higher reference value.

[0059] When the battery in the electronic door lock includes multiple different types of batteries, the multiple different types of batteries can be evenly distributed in the electronic door lock to ensure that the number of electronic door locks using each type of battery is as uniform as possible, thereby ensuring the uniformity of the sample data and improving the accuracy of the battery voltage drop threshold finally obtained. At this time, it can be carried out in different cells. The acquisition of sample data, for example, can obtain the unlocking data of users in different cells during normal use in winter and summer at least in the south and the north. The unlocking data includes the no-load voltage and the battery power supply voltage before and after locking. The acquisition method is as follows:

[0060] Figure 2 FIG. 1 shows a system module diagram of an electronic door lock provided according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the battery module supplies power to the microcontroller unit (MCU), the communication module and the motor module, and then the microcontroller unit (MCU) controls the communication module and the motor module respectively through the universal asynchronous receiver / transmitter (UART) and the enable pin (EN). In addition, for the high-voltage sampling module that cannot be directly connected to the battery module, the battery module can be connected to a battery voltage divider module, and the high voltage is divided into a small voltage through the battery voltage divider module and enters the analog-to-digital converter (ADC) sampling pin of the microcontroller unit (MCU) for the analog-to-digital converter (ADC) to sample and calculate the value of the small voltage, thereby calculating the voltage of the entire battery module.

[0061] like Figure 2 As shown, when the user does not unlock the door and the electronic door lock is in a static state, the microcontroller unit (MCU) controls the communication module through the universal asynchronous receiver and transmitter (UART), and controls the enable end of the motor module through the enable pin (EN), and determines that the motor module and the communication module are both in a non-working state. At this time, the static operating current of the electronic door lock is relatively low, and the microcontroller unit (MCU) can read the voltage of the battery module at this time through the ADC sampling pin, which can be approximately regarded as the no-load voltage. It should be noted that the no-load voltage can be obtained once according to the preset time, and the no-load voltage value can be updated using the currently obtained no-load voltage.

[0062] like Figure 2As shown in the figure, when the peripheral module (for example, fingerprint unlocking module, screen keyboard unlocking module, card unlocking module) transmits the user unlocking signal, the MCU receives the unlocking signal, first sends a signal to control the rotation of the motor to the motor, controls the enable end of the motor, and makes the motor perform the door opening action, and then immediately obtains an ADC sampling value and records the voltage U 1 Since the motor rotation time of different electronic door locks is different, but the motor rotation time should be a very short time, about a few hundred milliseconds. Although the internal resistance of the battery will increase with the discharge time, but in this very short time, we can assume that the internal resistance of the battery has not changed. When the motor stops rotating, the MCU immediately obtains the ADC sampling value again and records the voltage U 2 , through U 2 -U 1 We can get the battery voltage drop U of the battery 降 . Since the door opening action of the door lock generally involves two motor rotations, namely the rotation when unlocking and the rotation when closing, we can obtain two sets of unlock record sampling data. Then the unlock record is reported to the platform or applet through the communication module. The unlock record here can include parameters such as no-load voltage, unlock time, unlock method, and voltage before and after unlocking.

[0063] However, since unlocking methods include unlocking by entering a password on the keyboard, unlocking by using a card, unlocking by using a fingerprint, etc., if a device has multiple unlocking methods, the power consumption will be different due to the different peripheral components used in different unlocking methods. In particular, for password input on the keyboard, since it takes some time to enter the password before unlocking, the power has been consumed at this time, so the U measured by unlocking by entering a password on the keyboard is 1 It will be better than the other two unlocking methods. 1 low, which will result in the pressure drop value U 降 The voltage U when unlocking is too low. 1 There will be a big difference because the user uses different unlocking methods. 2 However, there will not be a big change, and there will be a period of time between unlocking and locking of a complete door opening action, so that the user has time to turn the handle to open the door, and no other modules are working during this period of time, so the battery can recover to a certain voltage. At this time, the battery power supply voltage data before and after locking is measured, which is little affected by different unlocking methods. Therefore, the exemplary embodiment of the present disclosure can more accurately determine the battery voltage drop threshold by obtaining the unlocking data of the electronic door lock when the lock is closed and rotated.

[0064] Step 120: Based on the battery supply voltages of multiple groups of electronic door locks corresponding to each no-load voltage interval under the same condition before and after the electronic door lock is locked, determine the battery voltage drop distribution parameters corresponding to each no-load voltage interval under the same condition. It should be understood that the same condition here may include the unlocking data of the electronic door lock in the same community and the same season to ensure that the acquired data can reflect the influence of the internal resistance of the battery on the battery voltage under the current temperature conditions. The no-load voltage interval can be set according to the actual situation. For example, the no-load voltage interval can be 0.1V, 0.2V, etc., but is not limited to this.

[0065] When the above-mentioned no-load voltage range is 0.1V, it can be considered that the battery supply voltage of the electronic door lock before and after locking corresponding to the no-load voltage of 5.9V and the no-load voltage of 6.0V can be processed as a set of data to obtain the battery voltage drop distribution parameters corresponding to the no-load voltage range of 5.9V-6.0V.

[0066] Step 130: Based on the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same conditions, determine the battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same conditions. After determining the battery voltage drop distribution parameters corresponding to each no-load voltage interval under the same conditions, the no-load voltage of the battery in a low-power state can be determined based on the battery data of the electronic door lock acquired in real time, and then the battery voltage drop threshold value of the battery can be determined based on the battery voltage drop distribution parameters corresponding to the no-load voltage of the battery in a low-power state.

[0067] In summary, the present application obtains multiple sets of unlocking data of the electronic door lock under different conditions, wherein each set of unlocking data includes the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after the lock is closed, so as to obtain the battery voltage drop of the electronic door lock before and after each no-load voltage. In the method for determining the battery voltage drop threshold provided by the exemplary embodiment of the present disclosure, by obtaining the battery supply voltage before and after the lock is closed, it is possible to avoid the situation where the battery voltage drop data before and after the unlocking fluctuates greatly due to different unlocking methods, thereby affecting the accuracy of the determination of the battery voltage drop threshold. Then, based on the multiple sets of battery supply voltages of the electronic door lock before and after the lock corresponding to each no-load voltage interval of the electronic door lock under the same condition, the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same condition are determined. By classifying the multiple sets of unlocking data obtained according to the no-load voltage interval, the battery voltage drop distribution parameters corresponding to multiple sets of different no-load voltage intervals can be obtained. Finally, based on the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same condition, the battery voltage drop threshold of each no-load voltage of the electronic door lock under the same condition is determined. At this time, after obtaining the unlocking data of the target electronic door lock, the battery voltage drop distribution parameters of the no-load voltage in the low-power state can be determined according to the no-load voltage corresponding to the battery of the target electronic door lock in the low-power state, and the battery voltage drop threshold of the battery can be determined based on the battery voltage drop distribution parameters. When the electronic door lock is in use, the battery voltage drop in the electronic door lock is continuously obtained and compared with the determined battery voltage drop threshold to determine whether the battery is in a low-power state, thereby avoiding the problem of the electronic door lock being unable to lock due to excessive battery voltage drop caused by excessive internal resistance of the battery.

[0068] As a possible implementation, the above-mentioned multiple groups of battery supply voltages of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition of the electronic door lock may include: classifying the no-load voltages included in multiple groups of unlocking data under the same condition according to the preset no-load voltage interval, and obtaining multiple groups of battery supply voltages of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition. It should be understood that the classification here refers to using multiple groups of battery supply voltages of electronic door locks before and after locking corresponding to multiple no-load voltages in the same no-load voltage interval under the same condition as sample data in the no-load voltage interval, and determining the battery voltage drop distribution parameter corresponding to the no-load voltage interval.

[0069] As a possible implementation, Figure 3 FIG. 1 is a flow chart showing a method for determining a battery voltage drop distribution parameter according to an exemplary embodiment of the present disclosure. Figure 3As shown, based on multiple groups of battery supply voltages of electronic door locks before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same conditions, the battery voltage drop distribution parameters corresponding to each no-load voltage interval of the electronic door lock under the same conditions are determined, including:

[0070] Step 310: Based on the battery supply voltages of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition, obtain the battery voltage drops of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition. It should be noted that unlocking sample data under multiple different conditions can be obtained at the same time, and then the unlocking sample data under each condition are processed as above to determine the battery voltage drop distribution parameters corresponding to each no-load voltage interval under each condition.

[0071] Step 320: Perform probability analysis on the battery voltage drops of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition, and obtain the distribution parameters of the battery voltage drop values ​​corresponding to each no-load voltage interval under the same condition. It should be understood that the probability analysis here may include: uniform distribution probability analysis, polynomial distribution probability analysis, beta distribution probability analysis, gamma distribution probability analysis, Gaussian distribution probability analysis, and normal distribution probability analysis, etc., but is not limited thereto. By using the probability analysis method, the probability of each battery voltage drop corresponding to each no-load voltage interval can be obtained, so as to determine the battery voltage drop threshold value according to the distribution parameters of the battery voltage drop value.

[0072] As a possible implementation, when the above-mentioned probability analysis method includes Gaussian distribution probability analysis, the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition includes the mean value of the battery voltage drop corresponding to each no-load voltage included in each no-load voltage interval of the electronic door lock under the same condition and the standard deviation of the battery voltage drop. At this time, the battery voltage drop threshold of each no-load voltage of the electronic door lock under the same condition may include a first battery voltage drop threshold, the first battery voltage drop threshold is greater than or equal to the mean value of the battery voltage drop in the distribution parameter of the battery voltage drop value corresponding to the first target no-load voltage, and the first target no-load voltage is the no-load voltage of the battery of the target electronic door lock in a low-power state. It should be understood that the battery voltage drop threshold can be reset according to different altitudes and different seasons. By determining the battery voltage drop threshold in the battery voltage drop distribution parameter corresponding to the no-load voltage of the battery in a low-power state, and the battery voltage drop threshold is greater than or equal to the mean value of the battery voltage drop in the battery voltage drop distribution parameter, the battery voltage drop threshold can reflect at least half of the data of this type of battery, and the user can be reminded of the battery status earlier to avoid the situation where the lock cannot be locked.

[0073] As a possible implementation, Figure 4FIG. 2 shows a flow chart of a method for determining a second battery voltage drop threshold according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the battery voltage drop threshold may include a second battery voltage drop threshold, and based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition, determining the battery voltage drop threshold of each no-load voltage of the electronic door lock under the same condition includes:

[0074] Step 410: Obtain the battery voltage drop distribution parameter corresponding to the second target no-load voltage under the same conditions, where the second target no-load voltage is the no-load voltage when the battery of the target electronic door lock is in a fully charged state. Since the battery voltage drop value in a fully charged state is the smallest, by obtaining the no-load voltage in a fully charged state, it is possible to avoid the situation where the motor cannot continue to support the motor rotation after forward rotation due to too low voltage, resulting in the door being always open. In this case, it is possible to determine whether the motor is rotating by determining the relationship between the second voltage drop threshold and the actual battery voltage drop.

[0075] Exemplarily, when all four batteries in the electronic door lock are fully charged, the voltage is 6.4V. At this time, the battery voltage drop distribution parameter corresponding to 6.4V can be selected to determine the second voltage drop threshold.

[0076] Step 420: Determine a second battery voltage drop threshold of the battery of the target electronic door lock under the same condition based on the battery voltage drop distribution parameter corresponding to the second target no-load voltage under the same condition.

[0077] Exemplarily, the second battery voltage drop threshold determined using the battery voltage drop distribution parameters corresponding to the second target no-load voltage is 0.5V. It can be considered that the battery voltage drop is 0.5V after normal motor rotation, but the actual battery voltage drop is 0.1V, which is much smaller than 0.5V. At this time, it can be considered that the motor is not rotating.

[0078] In some optional embodiments, when the above-mentioned probability analysis method includes Gaussian distribution probability analysis, the second battery voltage drop threshold value may be less than or equal to the battery voltage drop mean value in the distribution parameter of the battery voltage drop value corresponding to the second target no-load voltage.

[0079] The exemplary embodiment of the present disclosure also provides a control method for an electronic door lock, which is used to promptly warn a user when a battery is in a low power state. Figure 5 FIG. 1 is a flow chart showing a method for controlling an electronic door lock according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the method includes:

[0080] Step 510: When the unlocking signal of the target electronic door lock is detected, the unlocking data of the target electronic door lock is obtained, and the unlocking data includes the no-load voltage of the target battery and the battery supply voltage of the target electronic door lock before and after locking.

[0081] Step 520: Based on the no-load voltage of the battery, the battery voltage drop threshold of the battery is obtained from a preset mapping relationship, the preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and the battery voltage drop distribution parameter under the same condition, and the battery voltage drop distribution parameter is determined by the above-mentioned method for determining the battery voltage drop threshold. It should be understood that the preset mapping relationship here may include the battery voltage drop distribution parameter of the no-load voltage interval corresponding to the actual no-load voltage of the battery and the no-load voltage under the same condition stored in the platform or applet.

[0082] Step 530: Determine the battery voltage drop of the battery before and after the target electronic door lock is locked based on the battery supply voltage of the target electronic door lock before and after the target electronic door lock is locked.

[0083] Step 540: If the battery state of the target battery is determined to be abnormal based on the battery voltage drop before and after locking and the battery voltage drop threshold of the battery, the target electronic door lock is controlled to perform abnormal handling operations, so as to timely detect battery abnormalities and warn the user to avoid unsafe accidents.

[0084] As a possible implementation, when the battery voltage drop threshold is the above-mentioned first battery voltage drop threshold, the method further includes: if the battery voltage drop of the battery before and after locking is greater than or equal to the first battery voltage drop threshold, determining that the battery state of the target battery is an abnormal state.

[0085] For example, if a certain model of device has a no-load voltage of 4.8V when in a low-power state, the value of the battery voltage drop parameter corresponding to the no-load voltage of 4.8V for this model of device in the platform or applet database, which covers most devices on the market, is used as the first battery voltage drop threshold. At this time, as long as the average battery voltage drop of the device when unlocked several times is higher than the first battery voltage drop threshold, it is considered that the internal resistance of the battery in the device is large, the battery state of the target battery is abnormal, and the battery needs to be replaced, and the user is warned in time.

[0086] For batteries with large internal resistance, such as carbon batteries, the voltage drop will increase rapidly as the internal resistance increases. Continuing with the previous example, when the no-load voltage of the carbon battery is greater than 4.8V, the battery voltage drop when unlocking may exceed the first battery voltage drop threshold. Therefore, the method provided by the exemplary embodiment of the present disclosure can also provide early warning of batteries such as carbon batteries that are not suitable for electronic door locks, and remind users not to continue purchasing this type of battery.

[0087] As a possible implementation method, when the battery voltage drop threshold is the above-mentioned second battery voltage drop threshold, the above-mentioned method also includes: if the battery voltage drop of the battery before and after locking is less than the first battery voltage drop threshold, the battery voltage drop of the battery before and after locking is less than or equal to the second battery voltage drop threshold, it is determined that the battery state of the target battery is an abnormal state.

[0088] Exemplarily, when the battery voltage drop before and after the battery is locked is less than the first battery voltage drop threshold, it can be ruled out that the battery voltage drop is too large due to the large internal resistance of the battery, thereby determining that the battery is in an abnormal state. However, in actual applications, there may also be a situation where the motor cannot rotate normally due to the battery voltage drop being too small. Therefore, it is possible to further determine whether the battery is in an abnormal state by determining the relationship between the battery voltage drop before and after the battery is locked and the second battery voltage drop threshold. For example, when the battery voltage drop before and after the battery is locked is less than or equal to the second battery voltage drop threshold, it can be considered that the voltage output by the battery at this time is insufficient to satisfy the motor rotation, resulting in the phenomenon that the door lock is often open. Of course, it may also be due to the abnormality of the equipment in the door lock that causes the motor to not rotate, and the battery state of the target battery is determined to be an abnormal state.

[0089] As a possible implementation, the above-mentioned control of the target electronic door lock to perform an abnormal handling operation may include: controlling the target electronic door lock to perform an alarm operation. For example, the target electronic door lock may be controlled to give a voice reminder or display words such as "battery low" on the screen to remind the user to check in time and replace the battery as needed.

[0090] The above-mentioned abnormal handling operation may also include, if the locking fault is maintained for a time greater than or equal to a preset time, controlling the target electronic door lock to execute the locking operation. It should be understood that the preset time here can be set according to actual conditions and is not limited here.

[0091] Exemplarily, the target electronic door lock may be provided with a ten-minute soft timer. When the microcontroller determines that the lock failure fault retention time is greater than or equal to ten minutes, the control battery supplies power to the motor so that the motor rotates to complete the door closing operation.

[0092] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that, in order to implement the above functions, the server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0093] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0094] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a device for determining a battery voltage drop threshold, and the device for determining a battery voltage drop threshold may be a server or a chip applied to a server. Figure 6 A schematic block diagram of functional modules of a device for determining a battery voltage drop threshold according to an exemplary embodiment of the present disclosure is shown.

[0095] like Figure 6 As shown, the battery voltage drop threshold determination device 600 includes:

[0096] The acquisition module 601 is used to acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data includes the no-load voltage of the battery and the battery supply voltage before and after the electronic door lock is locked.

[0097] The determination module 602 is used to determine the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same conditions based on multiple groups of battery supply voltages of the electronic door locks before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same conditions.

[0098] The determination module 602 is further configured to determine a battery voltage drop threshold value for each no-load voltage of the electronic door lock under the same condition based on a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition.

[0099] As a possible implementation method, the above-mentioned battery voltage drop threshold determination device 600 also includes an acquisition module 603, which is used to classify the no-load voltage included in multiple groups of unlocking data under the same condition according to a preset no-load voltage range, and obtain the battery supply voltage of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage range under the same condition.

[0100] As a possible implementation, the acquisition module 603 is further used to obtain the battery voltage drops of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition based on the battery supply voltages of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition;

[0101] The acquisition module 603 is also used to perform probability analysis on the battery voltage drops of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition, and obtain the distribution parameters of the battery voltage drop values ​​corresponding to each no-load voltage interval under the same condition.

[0102] In some optional manners, when the probability analysis method includes Gaussian distribution probability analysis, the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition includes the mean value of the battery voltage drop corresponding to each no-load voltage included in each no-load voltage interval of the electronic door lock under the same condition and the standard deviation of the battery voltage drop;

[0103] The battery voltage drop threshold of each no-load voltage of the electronic door lock under the same conditions includes a first battery voltage drop threshold, the first battery voltage drop threshold is greater than or equal to the battery voltage drop mean in the distribution parameter of the battery voltage drop value corresponding to the first target no-load voltage, and the first target no-load voltage is the no-load voltage when the battery of the target electronic door lock is in a low-power state.

[0104] In some optional embodiments, the acquisition module 603 is also used to obtain the battery voltage drop distribution parameters corresponding to the second target no-load voltage under the same conditions, and the second target no-load voltage is the no-load voltage when the battery of the target electronic door lock is in a fully charged state.

[0105] The determination module 602 is further configured to determine a second battery voltage drop threshold of the battery of the target electronic door lock under the same condition based on a battery voltage drop distribution parameter corresponding to a second target no-load voltage under the same condition.

[0106] In some optional manners, when the probability analysis method includes Gaussian distribution probability analysis, the second battery voltage drop threshold is less than or equal to the battery voltage drop mean value in the distribution parameter of the battery voltage drop value corresponding to the second target no-load voltage.

[0107] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a control device for an electronic door lock, which may be a server or a chip applied to a server. Figure 7 FIG. 1 shows a schematic block diagram of functional modules of a control device for an electronic door lock according to an exemplary embodiment of the present disclosure. Figure 7 As shown, the control device 700 of the electronic door lock includes:

[0108] The acquisition module 701 is used to acquire the unlocking data of the target electronic door lock when the unlocking signal of the target electronic door lock is detected. The unlocking data includes the no-load voltage of the target battery and the battery supply voltage of the target electronic door lock before and after locking.

[0109] The acquisition module 701 is also used to obtain the battery voltage drop threshold of the battery from a preset mapping relationship based on the no-load voltage of the battery. The preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and the battery voltage drop distribution parameters under the same conditions. The battery voltage drop distribution parameters are determined by the battery voltage drop threshold determination method provided by the exemplary embodiment of the present disclosure.

[0110] The determination module 702 is used to determine the battery voltage drop of the battery before and after the target electronic door lock is locked based on the battery supply voltage of the target electronic door lock before and after the target electronic door lock is locked.

[0111] If based on the battery voltage drop of the battery before and after locking and the battery voltage drop threshold of the battery, the determination module 702 is also used to determine that the battery state of the target battery is in an abnormal state, and control the target electronic door lock to perform an abnormal handling operation.

[0112] As a possible implementation, if the battery voltage drop of the battery before and after locking is greater than or equal to a first battery voltage drop threshold, the determination module 702 is further configured to determine that the battery state of the target battery is in an abnormal state.

[0113] In some optional methods, if the battery voltage drop of the battery before and after locking is less than a first battery voltage drop threshold, and the battery voltage drop of the battery before and after locking is less than or equal to a second battery voltage drop threshold, the determination module 702 is also used to determine that the battery status of the target battery is abnormal.

[0114] As a possible implementation, the determination module 702 is further used to control the target electronic door lock to perform an alarm operation; and / or,

[0115] The determination module 702 is further configured to control the target electronic door lock to execute a locking operation if the locking fault retention time is greater than or equal to a preset time.

[0116] Figure 8 Schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown. Figure 8 As shown, the chip 800 includes one or more (including two) processors 801 and a communication interface 802. The communication interface 802 can support the server to perform the data sending and receiving steps in the above image processing method, and the processor 801 can support the server to perform the data processing steps in the above image processing method.

[0117] Optional, such as Figure 8 As shown, the chip 800 also includes a memory 803, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).

[0118] In some embodiments, Figure 8 As shown, the processor 801 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 801 controls the processing operations of any one of the terminal devices, and the processor may also be called a central processing unit (CPU). The memory 803 may include a read-only memory and a random access memory, and provides instructions and data to the processor 801. A portion of the memory 803 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Figure 8 Various buses are labeled as bus system 804 .

[0119] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.

[0120] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0121] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.

[0122] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.

[0123] refer to Fig. 9 , a block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0124] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0125] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0126] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the method of the exemplary embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the method of the exemplary embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0127] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0128] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0129] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0130] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0131] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0132] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0134] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A method for determining a battery voltage drop threshold, characterized in that: The battery is used for an electronic door lock, the battery voltage drop threshold is used to indicate the voltage drop of the battery, and the method includes: Acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data includes the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after locking; Determine a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on multiple groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition; Based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition, a battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same condition is determined.

2. The method according to claim 1, characterized in that The multiple groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same conditions include: The no-load voltages included in the multiple sets of unlocking data under the same condition are classified according to the preset no-load voltage interval, and the battery supply voltages of the multiple sets of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition are obtained.

3. The method according to claim 1, characterized in that The determining of the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on multiple groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition includes: Based on multiple groups of battery supply voltages of the electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition, obtaining multiple groups of battery voltage drops of the electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition; A probability analysis is performed on the battery voltage drops of multiple groups of electronic door locks before and after locking corresponding to each no-load voltage interval under the same condition to obtain the distribution parameters of the battery voltage drop values ​​corresponding to each no-load voltage interval under the same condition.

4. The method according to claim 3, characterized in that When the probability analysis method includes Gaussian distribution probability analysis, the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition includes the mean value of the battery voltage drop corresponding to each no-load voltage included in each no-load voltage interval of the electronic door lock under the same condition and the standard deviation of the battery voltage drop; The battery voltage drop threshold of each no-load voltage of the electronic door lock under the same conditions includes a first battery voltage drop threshold, which is greater than or equal to the battery voltage drop mean in the distribution parameter of the battery voltage drop value corresponding to the first target no-load voltage, and the first target no-load voltage is the no-load voltage when the battery of the target electronic door lock is in a low-power state.

5. The method according to claim 3, characterized in that: The battery voltage drop threshold includes a second battery voltage drop threshold, and the determining the battery voltage drop threshold for each no-load voltage of the electronic door lock under the same condition based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition includes: Obtaining a battery voltage drop distribution parameter corresponding to a second target no-load voltage under the same condition, where the second target no-load voltage is a no-load voltage when the battery of the target electronic door lock is in a fully charged state; A second battery voltage drop threshold of the battery of the target electronic door lock under the same condition is determined based on a battery voltage drop distribution parameter corresponding to a second target no-load voltage under the same condition.

6. The method according to claim 5, characterized in that When the probability analysis method includes Gaussian distribution probability analysis, the second battery voltage drop threshold is less than or equal to the battery voltage drop mean value in the distribution parameter of the battery voltage drop value corresponding to the second target no-load voltage.

7. A method for controlling an electronic door lock, characterized in that: The method comprises: When an unlocking signal of a target electronic door lock is detected, unlocking data of the target electronic door lock is acquired, wherein the unlocking data includes a no-load voltage of a target battery and a battery supply voltage of the target electronic door lock before and after locking; acquiring a battery voltage drop threshold of the battery from a preset mapping relationship based on the no-load voltage of the battery, wherein the preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and a battery voltage drop distribution parameter under the same condition, and the battery voltage drop distribution parameter is determined by the method for determining the battery voltage drop threshold according to any one of claims 1 to 6; Determining a battery voltage drop of the battery before and after locking based on a battery supply voltage of the target electronic door lock before and after locking; If it is determined that the battery state of the target battery is in an abnormal state based on the battery voltage drop of the battery before and after locking and the battery voltage drop threshold of the battery, the target electronic door lock is controlled to perform an abnormal handling operation.

8. The method according to claim 7, characterized in that When the battery voltage drop threshold is the first battery voltage drop threshold as described in claim 4, the method further includes: If the battery voltage drop of the battery before and after locking is greater than or equal to a first battery voltage drop threshold, it is determined that the battery state of the target battery is in an abnormal state.

9. The method according to claim 8, characterized in that When the battery voltage drop threshold is the second battery voltage drop threshold according to claim 6, the method further includes: If the battery voltage drop of the battery before and after locking is less than the first battery voltage drop threshold, and the battery voltage drop of the battery before and after locking is less than or equal to the second battery voltage drop threshold, it is determined that the battery state of the target battery is abnormal.

10. The method according to any one of claims 7 to 9, characterized in that: The controlling the target electronic door lock to perform an abnormal handling operation includes: Controlling the target electronic door lock to perform an alarm operation; and / or, If the lock failure duration is greater than or equal to the preset duration, the target electronic door lock is controlled to execute a lock operation.

11. A device for determining a battery voltage drop threshold, characterized in that: The device comprises: An acquisition module, used to acquire multiple sets of unlocking data of the electronic door lock under different conditions, each set of unlocking data including the no-load voltage of the battery and the battery supply voltage of the electronic door lock before and after locking; A determination module, configured to determine a battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition based on a plurality of groups of battery supply voltages of the electronic door lock before and after locking corresponding to each no-load voltage interval of the electronic door lock under the same condition; The determination module is further used to determine the battery voltage drop threshold value of each no-load voltage of the electronic door lock under the same condition based on the battery voltage drop distribution parameter corresponding to each no-load voltage interval of the electronic door lock under the same condition.

12. A control device for an electronic door lock, characterized in that: The device comprises: An acquisition module, used for acquiring unlocking data of the target electronic door lock when an unlocking signal of the target electronic door lock is detected, wherein the unlocking data includes a no-load voltage of the target battery and a battery supply voltage of the target electronic door lock before and after locking; The acquisition module is further used to acquire a battery voltage drop threshold of the battery from a preset mapping relationship based on the no-load voltage of the battery, wherein the preset mapping relationship includes a mapping relationship between the no-load voltage of the battery and a battery voltage drop distribution parameter under the same condition, and the battery voltage drop distribution parameter is determined by the method for determining the battery voltage drop threshold according to any one of claims 1 to 6; A determination module, configured to determine a battery voltage drop of the battery before and after locking based on a battery supply voltage of the target electronic door lock before and after locking; If based on the battery voltage drop of the battery before and after locking and the battery voltage drop threshold of the battery, the determination module is also used to determine that the battery state of the target battery is in an abnormal state, and control the target electronic door lock to perform an abnormal handling operation.

13. An electronic device, characterized in that: include: processor; as well as, A memory for storing programs; The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 10.

14. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions for causing the computer to execute the method according to any one of claims 1-10.