Door lock battery status detection method, device, electronic device and storage medium

By detecting the voltage value of the smart door lock battery, judging the mixed power supply status of new and old batteries and prompting to replace the battery, the problem of excessive power consumption and battery leakage caused by the mixing of new and old batteries is solved, and the user experience is improved.

CN114487873BActive Publication Date: 2025-05-09GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210083472.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2025-05-09
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The mixing of new and old batteries in smart door locks causes too fast power consumption and easy leakage of batteries, affecting the user experience.

Method used

By detecting the voltage values ​​at both ends of each battery of the door lock, the voltage detection circuit is used to determine whether the door lock is mixed with power for new and old batteries, and prompt the user to replace the battery when it is detected that the new and old batteries are mixed with power.

Benefits of technology

Actively detect the power supply status of the door lock, remind users to replace the battery, reduce the probability of excessive power consumption caused by mixed power supply of new and old batteries, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114487873B_ABST
    Figure CN114487873B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for detecting the battery status of a door lock. The method includes: detecting the battery status of the door lock, judging whether the door lock is powered by a mixture of new and old batteries according to the battery status; and prompting the user to replace the battery when it is judged that the door lock is powered by a mixture of new and old batteries. The solution provided by the present invention can actively detect whether the door lock is powered by a mixture of new and old batteries. When it is detected that the door lock is powered by a mixture of new and old batteries, a reminder is issued to the user to remind the user to replace the battery, which can reduce the probability of excessive power consumption caused by the door lock being powered by a mixture of new and old batteries, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart door locks, and in particular to a door lock battery status detection method, device, electronic device and storage medium. Background Art

[0002] In recent years, with the gradual popularization of smart door locks, people's daily lives have become more convenient. Smart door locks protect the personal and property safety of users and allow users to enter and exit their homes conveniently. As an electronic product, smart door locks also need to be used correctly to play their greatest role. At present, the industry generally adopts the method of installing multiple dry batteries on the inner door lock to power smart door locks. However, when using door locks, new and old batteries are mixed. Mixing new and old batteries will cause the battery power to be consumed too quickly, and the battery is prone to leakage, which seriously affects the user experience of smart door locks. Summary of the invention

[0003] In order to solve the technical problems of excessive power consumption and battery leakage caused by mixing new and old batteries in smart door locks, the embodiments of the present invention provide a door lock battery status detection method, device, electronic device and storage medium.

[0004] The technical solution of the embodiment of the present invention is achieved as follows:

[0005] An embodiment of the present invention provides a method for detecting a door lock battery status, the method comprising:

[0006] Detecting the battery status of the door lock, and determining whether the door lock is powered by a mixture of new and old batteries according to the battery status;

[0007] When it is determined that the door lock is powered by a mixture of new and old batteries, the user is prompted to replace the batteries.

[0008] In the above scheme, the detecting the battery status of the door lock and judging whether the door lock is powered by a mixture of new and old batteries according to the battery status include:

[0009] Detect the voltage value at both ends of each battery of the door lock; and determine whether the door lock is powered by a mixture of new and old batteries based on the voltage value at both ends of each battery.

[0010] In the above scheme, the voltage value at both ends of each battery of the door lock is detected:

[0011] A voltage detection circuit is used to detect the voltage value at both ends of each battery of the door lock; wherein, the voltage detection circuit includes a first resistor and a second resistor, one end of the first resistor is connected to one end of each corresponding battery, the other end of the first resistor is connected to the voltage sampling chip, and the other end of the first resistor is also grounded through the second resistor.

[0012] In the above scheme, when the number of the batteries is four, judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery includes:

[0013] Obtaining a first difference between the voltage values ​​at both ends of the four connected batteries and twice the voltage values ​​at both ends of the third and fourth batteries;

[0014] Determining whether the first difference is less than or equal to a preset first threshold;

[0015] When the first difference is less than or equal to a preset first threshold, obtaining a second difference between the voltage values ​​across the third and fourth battery cells and twice the voltage value across the fourth battery cell;

[0016] Determining whether the second difference is less than or equal to a preset second threshold;

[0017] When the second difference is less than or equal to a preset second threshold, obtaining a third difference between the voltage value at both ends of the first battery and the voltage value at both ends of the second battery;

[0018] Determining whether the third difference is less than or equal to a preset third threshold;

[0019] When the third difference is less than or equal to a preset third threshold, it is determined that the door lock is not powered by a mixture of new and old batteries.

[0020] In the above solution, after determining whether the first difference is less than or equal to a preset first threshold, the method further includes:

[0021] When the first difference is greater than a preset first threshold, it is determined that the door lock is powered by a mixture of new and old batteries.

[0022] In the above solution, after determining whether the second difference is less than or equal to a preset second threshold, the method further includes:

[0023] When the second difference is greater than a preset second threshold, it is determined that the third battery and the fourth battery are in different states of age.

[0024] In the above solution, after determining whether the third difference is less than or equal to a preset third threshold, the method further includes:

[0025] When the third difference is greater than a preset third threshold, it is determined that the first battery and the second battery are in different states of age.

[0026] The embodiment of the present invention further provides a door lock battery status detection device, the door lock battery status detection device comprising:

[0027] A judgment module, used to detect the battery status of the door lock, and judge whether the door lock is powered by a mixture of new and old batteries according to the battery status;

[0028] The prompt module is used to prompt the user to replace the battery when it is determined that the door lock is powered by a mixture of new and old batteries.

[0029] An embodiment of the present invention further provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor; wherein:

[0030] When the processor is used to run the computer program, the steps of any of the above methods are executed.

[0031] An embodiment of the present invention further provides a storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0032] The door lock battery status detection method, device, electronic device and storage medium provided in the embodiment of the present invention detect the battery status of the door lock, and determine whether the door lock is powered by a mixture of new and old batteries according to the battery status; when it is determined that the door lock is powered by a mixture of new and old batteries, the user is prompted to replace the battery. The solution provided by the present invention can actively detect whether the door lock is powered by a mixture of new and old batteries. When it is detected that the door lock is powered by a mixture of new and old batteries, a reminder is issued to the user to remind the user to replace the battery, which can reduce the probability of excessive power consumption caused by the door lock being powered by a mixture of new and old batteries, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Schematic diagram of the flow of a door lock battery status detection method according to an embodiment of the present invention;

[0034] Figure 2 This is a connection diagram of a voltage detection circuit according to an embodiment of the present invention;

[0035] Figure 3 This is a schematic diagram of the judgment process of an embodiment of the present invention;

[0036] Figure 4 This is a schematic diagram of the structure of a door lock battery status detection device according to an embodiment of the present invention;

[0037] Figure 5 1 is a diagram showing the internal structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0039] The embodiment of the present invention provides a method for detecting the battery status of a door lock. Figure 1 As shown, the method includes:

[0040] Step 101: Detect the battery status of the door lock, and determine whether the door lock is powered by a mixture of new and old batteries according to the battery status;

[0041] Step 102: When it is determined that the door lock is powered by a mixture of new and old batteries, the user is prompted to replace the batteries.

[0042] The method of this embodiment can be applied to a smart door lock. When the door lock applies the method of this embodiment, the door lock can actively discover whether it is powered by a mixture of new and old batteries. When it is powered by a mixture of new and old batteries, it can send a reminder to the user to help the user distinguish between the mixed use of new and old batteries, thereby reducing the probability of the door lock being powered by a mixture of new and old batteries, resulting in excessive power consumption, and improving the user experience.

[0043] In actual application, when the smart door lock detects that new and old batteries are mixed, the user can be prompted to replace the batteries through the application on the terminal.

[0044] In one embodiment, detecting the battery status of the door lock and determining whether the door lock is powered by a mixture of new and old batteries according to the battery status includes:

[0045] Detect the voltage value at both ends of each battery of the door lock; and determine whether the door lock is powered by a mixture of new and old batteries based on the voltage value at both ends of each battery.

[0046] In actual applications, smart door locks are usually powered by multiple batteries connected in series. When new and old batteries are connected in series and mixed for power supply, the voltage of the old battery is lower than that of the new battery. Therefore, by embedding the corresponding voltage detection circuit to detect each battery, it can be determined whether the smart door lock is in a state of mixed power supply of new and old batteries.

[0047] In one embodiment, the voltage value across each battery of the door lock is detected, including:

[0048] A voltage detection circuit is used to detect the voltage value at both ends of each battery of the door lock; wherein, the voltage detection circuit includes a first resistor and a second resistor, one end of the first resistor is connected to one end of each corresponding battery, the other end of the first resistor is connected to the voltage sampling chip, and the other end of the first resistor is also grounded through the second resistor.

[0049] In actual application, the circuit can be led out from the shrapnel at the two ends of each battery in the battery box of the smart door lock, and a megaohm sampling resistor can be connected between the circuits. After the voltage of each node is divided, it is connected to the analog IO port of the chip, and the voltage of each node is collected using the AD conversion function. That is, the voltage is sampled between the batteries through a megaohm resistor, and the corresponding node is connected to the analog IO port of the processor. The operating voltage of each node can be calculated, and whether new and old batteries are mixed can be detected.

[0050] In one embodiment, when the number of the batteries is four, judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery includes:

[0051] Obtaining a first difference between the voltage values ​​at both ends of the four connected batteries and twice the voltage values ​​at both ends of the third and fourth batteries;

[0052] Determining whether the first difference is less than or equal to a preset first threshold;

[0053] When the first difference is less than or equal to a preset first threshold, obtaining a second difference between the voltage values ​​across the third and fourth battery cells and twice the voltage value across the fourth battery cell;

[0054] Determining whether the second difference is less than or equal to a preset second threshold;

[0055] When the second difference is less than or equal to a preset second threshold, obtaining a third difference between the voltage value at both ends of the first battery and the voltage value at both ends of the second battery;

[0056] Determining whether the third difference is less than or equal to a preset third threshold;

[0057] When the third difference is less than or equal to a preset third threshold, it is determined that the door lock is not powered by a mixture of new and old batteries.

[0058] Correspondingly, when the first difference is greater than a preset first threshold, it is determined that the door lock is powered by a mixture of new and old batteries. When the second difference is greater than a preset second threshold, it is determined that the third battery and the fourth battery are in different states of age. When the third difference is greater than a preset third threshold, it is determined that the first battery and the second battery are in different states of age.

[0059] Below, based on Figure 2 The circuit connection relationship in the figure is described in detail to determine whether new and old batteries can be mixed.

[0060] See also Figure 2 , Figure 2It includes 4 batteries V1, V2, V3 and V4 connected in series. Voltage detection circuits are connected to one end of battery V1, the connection between batteries V1 and V2, the connection between batteries V2 and V3, and the connection between batteries V3 and V4 respectively. Each voltage detection circuit includes a first resistor (R1, R3, R5 and R7 in the figure, all with a resistance value of 1MΩ) and a second resistor (R2, R4, R6 and R8 in the figure, all with a resistance value of 1MΩ), one end of the first resistor is connected to one end of each corresponding battery (one end of battery V1, the connection between batteries V1 and V2, the connection between batteries V2 and V3, and the connection between batteries V3 and V4), the other end of the first resistor is connected to the voltage sampling chip, and the other end of the first resistor is also grounded through the second resistor.

[0061] Based on the above connection relationship, when judging, first, compare the voltage relationship between the AC nodes. If the result is within the specified range, then detect the voltage relationship between the CD nodes. If the result is within the specified range, compare the voltage difference between the AB nodes and the BC nodes. If the result is within the range, it is determined to be a normal state, that is, there is no mixing of new and old batteries. If any of the above three comparisons exceeds the specified range, it can be determined that new and old batteries are mixed. Through the above steps, it can be determined whether the smart door lock is powered by a mixture of new and old batteries.

[0062] When it is detected that the smart door lock is in a state of mixed power supply of new and old batteries, the application can prompt the user to inform the user that the smart door lock is in a state of mixed power supply of new and old batteries, explain the hazards of mixing new and old batteries, and recommend that the user replace the battery as soon as possible.

[0063] Specifically, see Figure 3 , the previous process can be:

[0064] The battery box leads out wires to the circuit board at the connection between every two batteries, and leads out two 1MΩ resistors to ground between the batteries for voltage sampling.

[0065] Step 301: The detection circuit extracts the voltage value of each battery after voltage division;

[0066] Step 302: determine whether |VA-2VC|>VN1;

[0067] If yes, go to step 305, if no, go to step 303;

[0068] Step 303: determine whether |VC-2VD|>VN2;

[0069] If yes, go to step 305, if no, go to step 304;

[0070] Step 304: determine whether |VAB-VBC|>VN3;

[0071] If yes, go to step 305, if no, go to step 306;

[0072] Step 305: Sending a reminder to the user to mix old and new batteries through the application;

[0073] Step 306: End.

[0074] Specifically, in this embodiment, the voltage relationship between the AC nodes is first compared. In an ideal state, when the new and old batteries are not mixed, the voltage at A is twice the voltage at C. When the new and old batteries are mixed, if one battery is different from the other three, it is detected that the voltage at A is not twice the voltage at C; if two batteries are different from the other two, when V1 and V2 are the same, and V3 and V4 are the same, it is detected that the voltage at A is not twice the voltage at C. The actual situation includes differences in the batteries themselves and sampling errors, so the preset abnormal value VN1 is used for comparison with |VA-2VC|.

[0075] When the voltage relationship of the AC node meets the requirements, the voltage relationship between the CD nodes is compared. Ideally, when the old and new batteries are not mixed, the voltage at C is twice the voltage at D. When the old and new batteries of V3 and V4 are mixed, it is detected that the voltage at C is not twice the voltage at D. The actual situation includes the differences between the batteries themselves and the sampling error, so the preset abnormal value VN2 is used for comparison with |VC-2VD|.

[0076] When the voltage relationship of the CD node meets the requirements, the voltage relationship of batteries V1 and V2 is compared. Ideally, when the old and new batteries are not mixed, the voltage of V1 (the voltage difference of the AB nodes) is equal to the voltage of V2 (the voltage difference of the BC node). When the old and new batteries of V1 and V2 are mixed, it is detected that the voltage of V1 (the voltage difference of the AB nodes) is not equal to the voltage of V2 (the voltage difference of the BC node). The actual situation includes the differences between the batteries themselves and the sampling error, so the preset abnormal value VN3 is used to compare with the voltage difference of the two batteries |VAB-VBC|.

[0077] Further, see Table 1 below, which shows several situations in which new and old batteries are mixed.

[0078] Table 1

[0079]

[0080]

[0081] The method of this embodiment can enable the smart door lock to actively detect its own power supply status, which is better than the traditional method of simply using text to remind users not to mix old and new batteries in the user instructions. The method of this embodiment innovatively analyzes the actual power supply status of the smart door lock, more intelligently avoids the situation of mixing old and new batteries for users, reduces the probability of excessive power consumption of the smart door lock due to mixed power supply of old and new batteries, and improves the user experience.

[0082] The door lock battery status detection method provided in the embodiment of the present invention detects the battery status of the door lock, and determines whether the door lock is powered by a mixture of new and old batteries according to the battery status; when it is determined that the door lock is powered by a mixture of new and old batteries, the user is prompted to replace the battery. The solution provided by the present invention can actively detect whether the door lock is powered by a mixture of new and old batteries. When it is detected that the door lock is powered by a mixture of new and old batteries, a reminder is issued to the user to remind the user to replace the battery, which can reduce the probability of excessive power consumption caused by the door lock being powered by a mixture of new and old batteries, and improve the user experience.

[0083] In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a door lock battery status detection device, such as Figure 4 As shown, the door lock battery status detection device 400 includes: a judgment module 401 and a prompt module 402; wherein,

[0084] The judging module 401 is used to detect the battery status of the door lock and judge whether the door lock is powered by a mixture of new and old batteries according to the battery status;

[0085] The prompt module 402 is used to prompt the user to replace the battery when it is determined that the door lock is powered by a mixture of new and old batteries.

[0086] In actual application, the judgment module 401 and the prompt module 402 can be implemented by a processor in the door lock battery status detection device.

[0087] It should be noted that: when the above-mentioned device provided in the above-mentioned embodiment is executed, only the division of the above-mentioned program modules is used as an example. In actual application, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the above-mentioned processing. In addition, the above-mentioned device provided in the above-mentioned embodiment and the above-mentioned method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0088] In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a computer program object, the computer program object includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the above method.

[0089] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides an electronic device (computer device). Specifically, in one embodiment, the computer device can be a terminal, and its internal structure diagram can be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, the method of any one of the above embodiments is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0090] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0091] The device provided by the embodiment of the present invention includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method of any one of the above embodiments is implemented.

[0092] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program objects. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program object implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program objects according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0097] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0098] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0099] It can be understood that the memory of the embodiment of the present invention can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memories.

[0100] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0101] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A door lock battery status detection method, characterized in that: The method comprises: Detecting the battery status of the door lock, and determining whether the door lock is powered by a mixture of new and old batteries according to the battery status; When it is determined that the door lock is powered by a mixture of new and old batteries, the user is prompted to replace the batteries; The detecting the battery status of the door lock and judging whether the door lock is powered by a mixture of new and old batteries according to the battery status comprises: Detecting the voltage value at both ends of each battery of the door lock; judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery; When the number of the batteries is four, judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery includes: Obtain a first difference between the voltage value at both ends of the four connected batteries and twice the voltage value at both ends of the third and fourth batteries; Determining whether the first difference is less than or equal to a preset first threshold; When the first difference is less than or equal to a preset first threshold, obtaining a second difference between the voltage values ​​across the third and fourth battery cells and twice the voltage value across the fourth battery cell; Determining whether the second difference is less than or equal to a preset second threshold; When the second difference is less than or equal to a preset second threshold, obtaining a third difference between the voltage value at both ends of the first battery and the voltage value at both ends of the second battery; Determining whether the third difference is less than or equal to a preset third threshold; When the third difference is less than or equal to a preset third threshold, it is determined that the door lock is not powered by a mixture of new and old batteries.

2. The method according to claim 1, characterized in that The voltage values ​​at both ends of each battery of the door lock detection include: A voltage detection circuit is used to detect the voltage value at both ends of each battery of the door lock; wherein, the voltage detection circuit includes a first resistor and a second resistor, one end of the first resistor is connected to one end of each corresponding battery, the other end of the first resistor is connected to the voltage sampling chip, and the other end of the first resistor is also grounded through the second resistor.

3. The method according to claim 1, characterized in that After determining whether the first difference is less than or equal to a preset first threshold, the method further includes: When the first difference is greater than a preset first threshold, it is determined that the door lock is powered by a mixture of new and old batteries.

4. The method according to claim 1, characterized in that: After determining whether the second difference is less than or equal to a preset second threshold, the method further includes: When the second difference is greater than a preset second threshold, it is determined that the third battery and the fourth battery are in different states of age.

5. The method according to claim 1, characterized in that After determining whether the third difference is less than or equal to a preset third threshold, the method further includes: When the third difference is greater than a preset third threshold, it is determined that the first battery and the second battery are in different states of age.

6. A door lock battery status detection device, characterized in that: The door lock battery status detection device comprises: A judgment module, used to detect the battery status of the door lock, and judge whether the door lock is powered by a mixture of new and old batteries according to the battery status; A prompting module, used for prompting the user to replace the battery when it is determined that the door lock is powered by a mixture of new and old batteries; The detecting the battery status of the door lock and judging whether the door lock is powered by a mixture of new and old batteries according to the battery status comprises: Detecting the voltage value at both ends of each battery of the door lock; judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery; When the number of the batteries is four, judging whether the door lock is powered by a mixture of new and old batteries according to the voltage value at both ends of each battery includes: Obtaining a first difference between the voltage values ​​at both ends of the four connected batteries and twice the voltage values ​​at both ends of the third and fourth batteries; Determining whether the first difference is less than or equal to a preset first threshold; When the first difference is less than or equal to a preset first threshold, obtaining a second difference between the voltage values ​​across the third and fourth battery cells and twice the voltage value across the fourth battery cell; Determining whether the second difference is less than or equal to a preset second threshold; When the second difference is less than or equal to a preset second threshold, obtaining a third difference between the voltage value at both ends of the first battery and the voltage value at both ends of the second battery; Determining whether the third difference is less than or equal to a preset third threshold; When the third difference is less than or equal to a preset third threshold, it is determined that the door lock is not powered by a mixture of new and old batteries.

7. An electronic device, characterized in that: include: A processor and a memory for storing a computer program capable of running on the processor; wherein, When the processor is used to run the computer program, the steps of the method according to any one of claims 1 to 5 are performed.

8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Battery electric quantity alarm method

    CN101192692A

  • Remote controller and device and method for detecting electricity capacity of battery of remote controller

    CN103576092A