Double-battery power supply switching method and apparatus for intelligent door lock, and storage medium and door lock
Through the dual-battery power supply switching method of the smart door lock, the battery status and power are detected, and the power supply is automatically switched, which solves the problems of poor battery life and safety hazards caused by single-battery power supply, and improves the user experience and the normal operation time of the device.
Patent Information
- Application Number
- PCT/CN2024/087817
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2024-04-15
- Publication Date
- 2024-10-24
AI Technical Summary
Most smart door locks are powered by a single battery, resulting in poor power endurance, potential safety hazards, and poor user experience, especially when the battery is exhausted and cannot be replaced in time or when the device is lost or malfunctions, the device cannot work properly.
The dual-battery power supply switching method is adopted to detect the battery status and power information, determine the target battery and backup battery, automatically switch power supply to ensure continuous operation of the device, and dynamically adjust the power supply mode according to the power information to improve battery life.
This improves the power supply endurance of smart door locks, ensures the safety and user experience of the device, avoids system power outages during battery switching, and extends the normal operating time of the device.
Smart Images

Figure CN2024087817_24102024_PF_FP_ABST
Abstract
Description
Intelligent door lock dual battery power supply switching method, device, storage medium and door lock
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 2023104169357 filed in China on April 18, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the technical field of smart door locks, and in particular to a method, device, storage medium, processor, smart door lock, computer program product, and computer program for switching dual battery power supplies for a smart door lock. Background Art
[0004] Most existing smart door locks are powered by a single battery. When the battery is exhausted, it needs to be replaced. The old battery needs to be quickly recharged. If the battery is exhausted and there is no other battery to replace it in time, or the other battery is lost or faulty, the door lock device will not work properly, resulting in poor power supply endurance of the smart door lock and certain safety hazards, which in turn leads to a poor user experience.
[0005] Summary of the Invention
[0006] In view of this, the embodiments of the present disclosure provide a method, device, storage medium, processor, smart door lock, computer program product and computer program for switching dual battery power supply for a smart door lock. The main purpose is to solve the technical problems that the smart door lock has poor power supply endurance and certain safety hazards, resulting in a poor user experience.
[0007] According to an embodiment of the first aspect of the present disclosure, a method for switching between dual-battery power supplies for a smart door lock is provided, comprising:
[0008] detecting battery status information and battery power information of the first battery and the second battery;
[0009] determining a target battery and a backup battery for power supply from the first battery and the second battery according to the battery status information, wherein the backup battery is configured to continue to power the door lock when the power value of the target battery is less than or equal to a preset power threshold;
[0010] Determining a target power supply mode that matches the battery power information;
[0011] Control the target battery or the backup battery to power the door lock according to the target power supply mode.
[0012] According to an embodiment of the second aspect of the present disclosure, a smart door lock dual-battery power supply switching device is provided, the device comprising:
[0013] a detection module, configured to detect battery status information and battery power information of the first battery and the second battery;
[0014] a first determining module, configured to determine, from the first battery and the second battery, a target battery and a backup battery for power supply according to the battery status information, wherein the backup battery is configured to continue to power the door lock when the power level of the target battery is less than or equal to a preset power threshold;
[0015] A second determining module is used to determine a target power supply mode that matches the battery power information;
[0016] A control module is used to control the target battery or the backup battery to power the door lock according to the target power supply mode.
[0017] According to an embodiment of the third aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the smart door lock dual-battery power supply switching method of any embodiment of the first aspect mentioned above.
[0018] According to an embodiment of the fourth aspect of the present disclosure, a processor is provided, which is used to run a program, wherein when the program is run, the smart door lock dual-battery power supply switching method as in any embodiment of the first aspect is implemented.
[0019] According to an embodiment of the fifth aspect of the present disclosure, a smart door lock is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart door lock dual-battery power switching method as described in any embodiment of the first aspect above.
[0020] According to an embodiment of the sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the smart door lock dual-battery power supply switching method as described in any embodiment of the first aspect above.
[0021] According to an embodiment of the seventh aspect of the present disclosure, a computer program is provided, comprising a computer program code. When the computer program code is run on a computer, the computer executes the smart door lock dual-battery power supply switching method as described in any embodiment of the first aspect above.
[0022] The disclosed embodiments provide a method, device, storage medium, processor, smart door lock, computer program product, and computer program for switching dual-battery power for a smart door lock. The method first detects the battery status information and battery charge information of a first battery and a second battery; then, based on the battery status information, determines a target battery and a backup battery for power supply from the first battery and the second battery. The backup battery is used to continue powering the door lock when the charge value of the target battery is less than or equal to a preset charge threshold; then determines a target power supply mode that matches the battery charge information; and finally, controls the target battery or the backup battery to power the door lock according to the target power supply mode. The technical solution in the disclosed embodiments simultaneously uses two batteries as system power sources. When the device is operating, one battery provides power, and the other serves as a backup power source. After one battery is depleted, the device automatically switches to the other battery for power supply. This ensures that switching power sources or removing either battery will not cause a system power outage, allowing the door lock device to operate normally. Furthermore, the power supply modes are classified according to the charge information of the two batteries, and the door lock is powered according to the corresponding target power supply mode. This improves the product's battery life, ensures device security, and creates a good user experience.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0025] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] FIG1 is a flow chart of a method for switching power supply of dual batteries for a smart door lock provided by an embodiment of the present disclosure;
[0027] FIG2 is a flow chart of another method for switching power supply between dual batteries of a smart door lock provided by an embodiment of the present disclosure;
[0028] FIG3 is a schematic structural diagram of a dual-battery power supply switching device for a smart door lock provided by an embodiment of the present disclosure;
[0029] FIG4 is a schematic structural diagram of a dual-battery power supply switching device for a smart door lock provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0031] The following describes the smart door lock and dual battery power switching method, device, storage medium, processor, smart door lock, computer program product and computer program of the embodiments of the present disclosure with reference to the accompanying drawings.
[0032] In related technologies, smart door locks are mostly powered by a single battery. When the battery is exhausted, it needs to be replaced. The old battery needs to be quickly recharged. If the battery is exhausted and there is no other battery to replace it in time or the other battery is lost or faulty, the door lock device will not work properly, making the power supply endurance of the smart door lock poor, and there are certain safety hazards, which will lead to a poor user experience.
[0033] In order to solve the above technical problems, the embodiments of the present disclosure provide a smart door lock dual-battery power supply switching method, device, storage medium, processor, smart door lock, computer program product and computer program, which can solve the technical problems that existing smart door locks have poor power supply endurance and certain safety hazards, resulting in poor user experience.
[0034] As shown in FIG1 , an embodiment of the first aspect of the present disclosure provides a method for switching dual-battery power supply for a smart door lock, comprising steps 101 to 104 .
[0035] Step 101: Detect battery status information and battery power information of a first battery and a second battery.
[0036] Among them, the first battery and the second battery can be dry batteries, lithium batteries, etc. In the following embodiment steps in the present disclosure, the technical solutions in the embodiments of the present disclosure are described by taking the first battery and the second battery as lithium batteries as an example, but it does not constitute a specific limitation on the technical solutions in the embodiments of the present disclosure. The first battery and the second battery can be the same or different in specifications and capacity. When the battery capacities are different, they can be divided into large and small batteries. Generally, the battery with a large capacity is called a large battery, and the battery with a small capacity is called a small battery. The specifications of the two lithium batteries can be: large battery (5000 mAh) and small battery (2250 mAh); the battery status information may include the battery working status and the battery non-working status; the battery power information may include the battery power value and other related information.
[0037] For the embodiment of the present disclosure, the door lock main control chip can control the dual battery power supply switching of the smart door lock or other power supply device, so that the dual lithium batteries are used in turn. In the following embodiment steps of the present disclosure, the power supply device is a smart door lock as an example to illustrate the technical solution in the embodiment of the present disclosure, but it does not constitute a specific limitation. After the door lock device is powered on, it can detect the insertion and removal of the first battery and the second battery (i.e., battery insertion event and battery removal event), and read the power meter's information related to the first battery and the second battery, and report the battery insertion event, battery removal event and power related information to the door lock main control chip. The door lock main control chip can then obtain the battery status information and battery power information of the first battery and the second battery.
[0038] Step 102: Determine a target battery and a backup battery for power supply from the first battery and the second battery according to the battery status information, wherein the backup battery is used to continue to power the door lock when the power value of the target battery is less than or equal to a preset power threshold.
[0039] The target battery is the first battery or the second battery currently powering the door lock. When the target battery is the first battery, the second battery in the working state can be used as a backup battery. The preset power threshold value varies when the backup battery is the first battery or the second battery. Specifically, it can be a power value greater than or equal to 0, at which there is no way to continue to provide the working voltage for the door lock. When the target battery is the second battery, the first battery in the working state can be used as a backup battery. The backup battery is used to continue to power the door lock through battery switching when the power value of the target battery is 0 (such as when the power is exhausted or not plugged in). When controlling the switching of dual-battery power supply for the smart door lock, the door lock main control chip follows the principle of first exhausting the target battery and then switching to the backup battery.
[0040] In the embodiment of the present disclosure, when determining the target battery and the backup battery according to the battery status information:
[0041] In some embodiments, the target battery and the backup battery can be determined according to a preset battery selection priority. The battery selection priority can be pre-set according to the actual application scenario. For example, the selection priority of the first battery can be set to be higher than that of the second battery. Then, when the first battery and the second battery are both in the working state, the first battery can be preferentially determined as the target battery and the second battery can be determined as the backup battery. When the first battery is in the non-working state, the second battery in the working state can be determined as the target battery. For the embodiment of the present disclosure, users can be supported to set the battery selection priority according to their personal usage habits. When the smart door lock is powered on, the door lock main control chip can quickly locate the target battery and the backup battery in the order of battery selection priority from high to low, that is, the battery with a high battery selection priority is directly located as the target battery, and the battery with a low battery selection priority is directly located as the backup battery. This method can adapt to the user's usage habits and can shorten the selection time of the target battery and the backup battery, thereby efficiently providing the working voltage for the smart door lock, improving the response speed, and creating a good user experience.
[0042] In some embodiments, the target battery and the backup battery can also be determined according to the battery power-on sequence (i.e., the battery plug-in sequence). Specifically, the battery whose battery status information is the battery working status and the power-on sequence is in the front can be determined as the target battery, and the battery whose battery status information is the battery working status and the power-on sequence is in the back can be determined as the backup battery; or, the battery whose battery status information is the battery working status and the power-on sequence is in the back can be determined as the target battery, and the battery whose battery status information is the battery working status and the power-on sequence is in the front can be determined as the backup battery. Accordingly, in some embodiments, when the door lock main control chip detects that the user has plugged in the battery, it can output corresponding prompt information to the user to prompt the user to plug in the battery according to the preset plug-in sequence corresponding to the target battery and the backup battery. In this way, the user's selection tendency for the target battery and the backup battery can be obtained in advance, which facilitates the user's personalized settings for the target battery and the backup battery. When the smart door lock is powered on, the door lock's main control chip can quickly locate the target battery and backup battery based on battery status information and battery insertion sequence, shortening the time it takes to select the target battery and backup battery. This effectively provides the smart door lock with operating voltage, improving response speed and creating a good user experience. The output prompt information includes, but is not limited to, one or more of audio prompt information, video prompt information, and text prompt information, which are not specifically limited here.
[0043] Step 103: Determine a target power supply mode that matches the battery power information.
[0044] In a specific application scenario, multiple power supply modes can be pre-set, and each power supply mode corresponds to a different battery power value. When the door lock device is underpowered, the peripherals with relatively high power consumption are turned off, and the user is actively reminded of the low battery information, and only the basic functions related to the door lock are retained to obtain longer battery life. The target power supply mode is the power supply mode that matches the battery power value of the target battery and / or the backup battery at the current moment. When the battery power value of the target battery and / or the backup battery is high, the target battery or backup battery corresponding to the target power supply mode can power multiple functional modules in the door lock; when the battery power value of the target battery and / or the backup battery is low, the target battery or backup battery corresponding to the target power supply mode can power fewer functional modules in the door lock. It should be noted that, in view of the fact that the battery will consume power during operation, the target power supply mode of the target battery determined in the embodiment of the present disclosure should be dynamically updated with the changing battery power information to achieve long-lasting battery life.
[0045] Step 104: Control the target battery or the backup battery to power the door lock according to the target power supply mode.
[0046] In the disclosed embodiment, after determining the target power supply mode that matches the current battery level information of the target battery and the backup battery, the target battery can be prioritized to power the door lock. If the target battery's power level is low and insufficient to support the door lock's power supply needs, the backup battery can be switched to continue powering the door lock according to the target power supply mode. By switching between the two batteries, the power supply endurance of the smart door lock can be improved, ensuring the normal operation of the door lock device.
[0047] In summary, according to the dual-battery power supply switching method for a smart door lock provided by the embodiment of the present disclosure, the battery status information and battery power information of the first battery and the second battery can be detected first; then, based on the battery status information, a target battery and a backup battery for power supply are determined from the first battery and the second battery, and the backup battery is used to continue to power the door lock when the power value of the target battery is less than or equal to a preset power threshold; then a target power supply mode that matches the battery power information is determined; and finally, the target battery or the backup battery is controlled to power the door lock according to the target power supply mode. The technical solution in the embodiment of the present disclosure uses two batteries as system power sources at the same time. When the device is working, one battery is used for power supply, and the other battery is used as a backup power source. After one of the batteries is depleted first, it automatically switches to using the other battery for power supply. This ensures that the system power will not be cut off when switching power sources or removing either battery, and the door lock device can operate normally. In addition, the power supply mode is graded according to the power information of the two batteries, and the door lock is powered according to the corresponding target power supply mode, which can improve the product's battery life, ensure the safety of the device, and create a good user experience.
[0048] As a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides a specific method as shown in Figure 2, which includes steps 201 to 204.
[0049] Step 201: Detect battery status information and battery power information of a first battery and a second battery.
[0050] For the embodiment of the present disclosure, a fuel meter can be used to detect the battery charge information of the first battery and the second battery. When detecting the battery status information of the first battery and the second battery, the voltage values of the corresponding access positions of the first battery and the second battery can be detected respectively, and the detected voltage values can be compared with the preset voltage threshold. If the voltage value is higher than the preset voltage threshold, it can be determined that the battery is successfully connected to the door lock device to form a power path, so the corresponding battery status information is determined to be the battery working state; conversely, if the voltage value is lower than the preset voltage threshold, the battery status information corresponding to the battery is determined to be the battery non-working state, wherein the battery non-working state can be a state where no physical connection is established, that is, the battery is not plugged into the smart door lock circuit, or it can also be a state where a physical connection has been established and the battery does not provide an operating voltage based on logic control, etc. The preset voltage threshold can be set according to the actual application scenario and is not specifically limited here. Accordingly, the steps of the embodiment may include: collecting the voltage value of the first battery and the voltage value of the second battery; if the voltage value of the first battery is higher than a preset voltage threshold, determining the battery status information of the first battery as the battery working state, otherwise determining the battery status information of the first battery as the battery non-working state; if the voltage value of the second battery is higher than the preset voltage threshold, determining the battery status information of the second battery as the battery working state, otherwise determining the battery status information of the second battery as the battery non-working state.
[0051] Step 202: Determine the battery whose corresponding battery status information is the battery working state and whose plugging order is earlier among the first battery and the second battery as the target battery for power supply, and determine the battery whose corresponding battery status information is the battery working state and whose plugging order is later among the first battery and the second battery as the backup battery.
[0052] For the specific implementation process of the embodiment of the present disclosure, please refer to the relevant description in step 102 of the embodiment, which will not be repeated here.
[0053] Step 203: Determine a target power supply mode that matches the battery power information.
[0054] The target power supply mode includes a first-level power supply mode, a second-level power supply mode, and a third-level power supply mode. The first-level power supply mode, the second-level power supply mode, and the third-level power supply mode are modes in which the number of functional modules in the door lock that are in a power supply state is a first preset number, a second preset number, and a third preset number, respectively, where the first preset number is greater than the second preset number, and the second preset number is greater than the third preset number. In some embodiments, the first-level power supply mode can be a mode that can power all functional modules in the door lock; the second-level power supply mode can be a mode that can power key functional modules in the door lock and, compared to the first-level power supply mode, can shut down functional modules with relatively high power consumption (such as cameras, peepholes, screens, etc.); and the third-level power supply mode can be a system shutdown mode.
[0055] In a specific application scenario, in order to facilitate the matching of the target power supply mode, corresponding preset power thresholds can be set in advance for the first battery and the second battery, such as setting a first preset power threshold and a second preset power threshold for the first battery, and setting a third preset power threshold and a fourth preset power threshold for the second battery. By comparing the battery power information of the first battery and the second battery with the corresponding preset power thresholds, the matching target power supply mode can be determined. Among them, the second preset power threshold can be greater than or equal to 0%, that is, the smaller power value corresponding to the first battery (large-capacity battery) cannot continuously provide a stable operating voltage for the door lock, such as a value of 0-2%; the fourth preset power threshold can be greater than or equal to 0%, that is, the smaller power value corresponding to the second battery (small-capacity battery) cannot continuously provide a stable operating voltage for the door lock, such as a value of 0-4%. It should be noted that when the power value of the first battery or the second battery is 0%, it does not mean that the operating voltage of the door lock is 0V. At this time, there will still be a smaller operating voltage, such as 3 to 6.8V. At this time, the door lock main control chip can output corresponding prompt information to the user to prompt the user to replace the battery in time. During this period, the first battery or the second battery can temporarily maintain the basic functions of the door lock, thereby ensuring the stability of the door lock power supply, enabling the door lock to work continuously and creating a good user experience. In the following embodiment steps, as shown in Table 1, the first battery is a large-capacity battery, and its corresponding first preset power threshold is 10%, the second preset power threshold is 2%, and the second battery is a small-capacity battery, and its corresponding third preset power threshold is 20%, and the fourth preset power threshold is 4%. As an example, the technical solution in the embodiment of the present disclosure is described, but it does not constitute a specific limitation of the technical solution in the embodiment of the present disclosure.
[0056] Table 1:
[0057] For the embodiments of the present disclosure, if it is determined that the target battery is the first battery and the backup battery is the second battery, in some embodiments, the embodiment steps may include: when the power value of the first battery is greater than the first preset power threshold, determining that the target power supply mode is the first-level power supply mode; or, when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, and the power value of the second battery is greater than the fourth preset power threshold, determining that the target power supply mode is the first-level power supply mode, wherein the second preset power threshold is less than the first preset power threshold; or, when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, and the power value of the second battery is less than or equal to the fourth preset power threshold, determining that the target power supply mode is the second-level power supply mode; or, when the power value of the first battery is less than or equal to the second preset power threshold, and the power value of the second battery is greater than the fourth preset power threshold, determining that the target power supply mode is the second-level power supply mode; or, when the power value of the first battery is less than or equal to the second preset power threshold, and the power value of the second battery is less than or equal to the fourth preset power threshold, determining that the target power supply mode is the third-level power supply mode.
[0058] For the embodiments of the present disclosure, if it is determined that the target battery is the second battery and the backup battery is the first battery, in some embodiments, the embodiment steps may include: when the power value of the second battery is greater than the third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determining that the target power supply mode is the first-level power supply mode; or, when the power value of the second battery is greater than the third preset power threshold, and the power value of the first battery is less than or equal to the second preset power threshold, determining that the target power supply mode is the second-level power supply mode; or, when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determining that the target power supply mode is the first-level power supply mode, wherein the fourth preset power threshold is less than the third preset power threshold; or, when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determining that the target power supply mode is the first-level power supply mode, wherein the fourth preset power threshold is less than the third preset power threshold; When the power value of the first battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is less than or equal to the second preset power threshold, the target power supply mode is determined to be the secondary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is greater than the first preset power threshold, the target power supply mode is determined to be the primary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, the target power supply mode is determined to be the secondary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is less than or equal to the second preset power threshold, the target power supply mode is determined to be the tertiary power supply mode.
[0059] For the embodiments of the present disclosure, as shown in Table 1, when it is determined that the power supply of the first battery and the second battery is insufficient, a low battery prompt message can be actively sent to the user to serve as a prompt, so as to facilitate the user to promptly perform emergency power supply or replace the battery. In some embodiments, the embodiment steps may include: when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, outputting a low battery prompt message of the first battery; or, when the power value of the first battery is less than or equal to the second preset power threshold, outputting a first battery exhausted prompt message; when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, outputting a low battery prompt message of the second battery; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, outputting a second battery exhausted prompt message. Among them, the prompt information may include but is not limited to vibration prompt information, audio prompt information, video entity prompt information, picture prompt information, and text prompt information.
[0060] Step 204: Control the target battery or the backup battery to power the door lock according to the target power supply mode.
[0061] In the disclosed embodiment, the target battery can be prioritized for powering the door lock. If the target battery's charge level is low and insufficient to support the door lock's power needs, the backup battery can be switched to continue powering the door lock according to the target power mode. Throughout the power supply process, the target power mode can be dynamically updated based on the real-time charge levels of the first and second batteries, and the door lock can be powered based on the dynamically updated target power mode.
[0062] In some embodiments, when it is determined that the target battery is the first battery and the backup battery is the second battery, the first battery may be prioritized for powering the door lock. When the first battery is depleted, the second battery may be switched to power the door lock. Accordingly, the embodiment steps may include: when the power level of the first battery is greater than a second preset power threshold, controlling the first battery to power the door lock according to the target power supply mode; when the power level of the first battery is less than or equal to the second preset power threshold and the power level of the second battery is greater than a fourth preset power threshold, controlling the second battery to power the door lock according to the target power supply mode.
[0063] In some embodiments, when it is determined that the target battery is the second battery and the backup battery is the first battery, the second battery can be preferentially controlled to power the door lock. When the second battery is exhausted, the first battery is switched to power the door lock. Accordingly, the embodiment steps may include: when the power value of the second battery is greater than a fourth preset power threshold, controlling the second battery to power the door lock according to the target power supply mode; when the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is greater than the second preset power threshold, controlling the first battery to power the door lock according to the target power supply mode.
[0064] In summary, according to the smart door lock dual-battery power supply switching method provided by the embodiment of the present disclosure, the battery status information and battery power information of the first battery and the second battery can be detected first; then, the target battery and the backup battery for power supply are determined from the first battery and the second battery according to the battery status information, and the backup battery is used to continue to power the door lock when the power value of the target battery is 0; then the target power supply mode that matches the battery power information is determined; finally, the target battery or the backup battery is controlled to power the door lock according to the target power supply mode. The technical solution in the embodiment of the present disclosure uses two batteries as system power supply at the same time. When the device is working, one of the batteries is used for power supply, and the other battery is used as a backup power supply. After one of the batteries is exhausted first, it automatically switches to using the other battery for power supply, so that the system will not be powered off when switching power supply or removing any of the batteries, and the door lock device can operate normally. In addition, the power supply mode is graded according to the power information of the two batteries, and the door lock is powered according to the corresponding target power supply mode, which can improve the product's battery life, ensure the safety of the device, and create a good user experience.
[0065] Based on the specific implementation of the method shown in Figures 1 and 2 above, the second embodiment of the present disclosure provides a smart door lock dual-battery power supply switching device, as shown in Figure 3, the device includes: a detection module 31, a first determination module 32, a second determination module 33 and a control module 34;
[0066] A detection module 31, which can be used to detect battery status information and battery power information of the first battery and the second battery;
[0067] A first determining module 32 is configured to determine a target battery and a backup battery for power supply from the first battery and the second battery according to the battery status information, wherein the backup battery is configured to continue to power the door lock when the power level of the target battery is less than or equal to a preset power threshold;
[0068] A second determining module 33 may be used to determine a target power supply mode that matches the battery power information;
[0069] The control module 34 can be used to control the target battery or the backup battery to power the door lock according to the target power supply mode.
[0070] In some embodiments, the battery status information includes a battery working state and a battery non-working state. The detection module 31 can be used to collect the voltage value of the first battery and the voltage value of the second battery; if the voltage value of the first battery is higher than a preset voltage threshold, the battery status information of the first battery is determined as the battery working state, otherwise the battery status information of the first battery is determined as the battery non-working state; if the voltage value of the second battery is higher than the preset voltage threshold, the battery status information of the second battery is determined as the battery working state, otherwise the battery status information of the second battery is determined as the battery non-working state.
[0071] In some embodiments, the second determination module 33 can be used to determine the battery whose corresponding battery status information is the battery working status and whose plug-in order is earlier in the first battery and the second battery as the target battery for power supply; and determine the battery whose corresponding battery status information is the battery working status and whose plug-in order is later in the first battery and the second battery as the backup battery.
[0072] In some embodiments, the target power supply mode includes a first-level power supply mode, a second-level power supply mode, and a third-level power supply mode. The first-level power supply mode, the second-level power supply mode, and the third-level power supply mode are respectively modes in which the number of functional modules in the door lock that are in a power supply state is a first preset number, a second preset number, and a third preset number. The first preset number is greater than the second preset number, and the second preset number is greater than the third preset number. The battery power information includes a power value. If it is determined that the target battery is the first battery and the backup battery is the second battery, the second determination module 33 can be used to determine that the target power supply mode is the first-level power supply mode when the power value of the first battery is greater than the first preset power threshold; or, when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, and the second battery When the power value of the first battery is greater than the fourth preset power threshold, the target power supply mode is determined to be the first-level power supply mode, wherein the second preset power threshold is less than the first preset power threshold; or, when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, and the power value of the second battery is less than or equal to the fourth preset power threshold, the target power supply mode is determined to be the second-level power supply mode; or, when the power value of the first battery is less than or equal to the second preset power threshold, and the power value of the second battery is greater than the fourth preset power threshold, the target power supply mode is determined to be the second-level power supply mode; or, when the power value of the first battery is less than or equal to the second preset power threshold, and the power value of the second battery is less than or equal to the fourth preset power threshold, the target power supply mode is determined to be the third-level power supply mode.
[0073] Correspondingly, the control module 34 can be used to control the first battery to power the door lock according to the target power supply mode when the power value of the first battery is greater than the second preset power threshold; when the power value of the first battery is less than or equal to the second preset power threshold and the power value of the second battery is greater than the fourth preset power threshold, control the second battery to power the door lock according to the target power supply mode.
[0074] In some embodiments, if it is determined that the target battery is the second battery and the backup battery is the first battery, the second determination module 33 can be used to determine that the target power supply mode is the first-level power supply mode when the power value of the second battery is greater than the third preset power threshold and the power value of the first battery is greater than the second preset power threshold; or, when the power value of the second battery is greater than the third preset power threshold and the power value of the first battery is less than or equal to the second preset power threshold, determine that the target power supply mode is the second-level power supply mode; or, when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determine that the target power supply mode is the first-level power supply mode, wherein the fourth preset power threshold is less than the third preset power threshold; or, when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determine that the target power supply mode is the first-level power supply mode, wherein the fourth preset power threshold is less than the third preset power threshold; When the power value of the second battery is less than or equal to the fourth preset power threshold and less than or equal to the third preset power threshold, and the power value of the first battery is less than or equal to the second preset power threshold, the target power supply mode is determined to be the secondary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold and the power value of the first battery is greater than the first preset power threshold, the target power supply mode is determined to be the primary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, the target power supply mode is determined to be the secondary power supply mode; or, when the power value of the second battery is less than or equal to the fourth preset power threshold and the power value of the first battery is less than or equal to the second preset power threshold, the target power supply mode is determined to be the tertiary power supply mode.
[0075] Correspondingly, the control module 34 can be used to control the second battery to power the door lock according to the target power supply mode when the power value of the second battery is greater than the fourth preset power threshold; when the power value of the second battery is less than or equal to the fourth preset power threshold and the power value of the first battery is greater than the second preset power threshold, control the first battery to power the door lock according to the target power supply mode.
[0076] In some embodiments, as shown in FIG4 , the device further includes: an output module 35:
[0077] The output module 35 can be used to output a prompt message that the first battery is low when the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold; or, when the power value of the first battery is less than or equal to the second preset power threshold, output a prompt message that the first battery is exhausted; when the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, output a prompt message that the second battery is low; or, when the power value of the second battery is less than or equal to the fourth preset power threshold, output a prompt message that the second battery is exhausted.
[0078] It should be noted that for other corresponding descriptions of the functional units involved in the smart door lock dual-battery power supply switching device provided in this embodiment, please refer to the corresponding descriptions in Figures 1 and 2, and will not be repeated here.
[0079] Based on the above methods shown in Figures 1 and 2, accordingly, an embodiment of the third aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the smart door lock dual-battery power supply switching method provided by any embodiment of the above first aspect.
[0080] Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present disclosure.
[0081] In some embodiments, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), etc.
[0082] Those skilled in the art will understand that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0083] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device, supporting the execution of information processing programs and other software and / or programs. The network communication module is used to enable communication between components within the storage medium, as well as with other hardware and software within the physical information processing device.
[0084] An embodiment of a fourth aspect of the present disclosure provides a processor for running a program, wherein when the program is running, the smart door lock dual-battery power supply switching method provided by any embodiment of the first aspect is implemented.
[0085] Based on the above-mentioned computer device, the fifth embodiment of the present disclosure provides a smart door lock, which may specifically include: the above-mentioned computer device.
[0086] In some embodiments, the smart door lock includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart door lock dual battery power switching method provided in any embodiment of the first aspect described above.
[0087] The sixth aspect of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the smart door lock dual-battery power supply switching method provided in any embodiment of the first aspect.
[0088] The seventh aspect embodiment of the present disclosure provides a computer program, including computer program code. When the computer program code runs on a computer, the computer executes the smart door lock dual battery power supply switching method provided in any embodiment of the first aspect.
[0089] It should be noted that the explanation of the dual-battery power supply switching method and device for smart door locks in the above-mentioned embodiments is also applicable to the computer-readable storage medium, processor, smart door lock, computer program product and computer program of the embodiments of the present disclosure, and will not be repeated here.
[0090] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the embodiments of the present disclosure can be implemented with the help of software plus the necessary general hardware platform, or can be implemented through hardware. The technical solution in the embodiment of the present disclosure uses two batteries as the system power supply at the same time. When the device is working, one of the batteries is used for power supply, and the other battery is used as a backup power supply. After one of the batteries is exhausted, it automatically switches to using the other battery for power supply, so that the system will not be powered off when switching power supply or removing any of the batteries, and the device can operate normally. In addition, the power supply mode is graded according to the power information of the two batteries, and the door lock is powered according to the corresponding target power supply mode, which can improve the product's battery life, ensure the safety of the device, and create a good user experience.
[0092] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or device. In the absence of further limitations, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0093] The foregoing are merely specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not to be limited to these embodiments, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for switching dual battery power supply for a smart door lock, comprising: Detecting battery status information and battery power information of the first battery and the second battery; Determine a target battery and a backup battery for power supply from the first battery and the second battery according to the battery status information, wherein the backup battery is used to continue to power the door lock when the power value of the target battery is less than or equal to a preset power threshold; Determine a target power supply mode that matches the battery power information; The target battery or the backup battery is controlled to supply power to the door lock according to the target power supply mode.
2. The method according to claim 1, wherein the battery status information includes a battery working state and a battery non-working state, and the detecting the battery status information of the first battery and the second battery comprises: collecting a voltage value of the first battery and a voltage value of the second battery; If the voltage value of the first battery is higher than a preset voltage threshold, the battery status information of the first battery is determined as the working state of the battery; otherwise, the battery status information of the first battery is determined as the non-working state of the battery; If the voltage value of the second battery is higher than a preset voltage threshold, the battery status information of the second battery is determined as the battery working state; otherwise, the battery status information of the second battery is determined as the battery non-working state.
3. The method according to claim 2, wherein determining a target battery and a backup battery for power supply in the first battery and the second battery according to the battery status information comprises: Determine the battery of the first battery and the second battery that corresponds to the battery working state of the battery status information and is plugged in first as the target battery for power supply; The battery of the first battery and the second battery, which corresponds to the battery working status information and is in the later insertion order, is determined as the backup battery.
4. The method according to any one of claims 1 to 3, wherein the target power supply mode comprises a primary power supply mode, a secondary power supply mode, and a tertiary power supply mode, wherein the primary power supply mode, the secondary power supply mode, and the tertiary power supply mode are respectively modes in which the number of functional modules in the door lock in a power supply state is a first preset number, a second preset number, and a third preset number, wherein the first preset number is greater than the second preset number, and the second preset number is greater than the third preset number, and wherein the battery power information comprises a power value; If it is determined that the target battery is the first battery, and the backup battery is the second battery, determining a target power supply mode that matches the battery power information includes: When the power value of the first battery is greater than a first preset power threshold, determining that the target power supply mode is a first-level power supply mode; or, When the power level of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, and when the power value of the second battery is greater than a fourth preset power threshold, determining that the target power supply mode is the first-level power supply mode, wherein the second preset power threshold is less than the first preset power threshold; or, When the power value of the first battery is greater than a second preset power threshold and less than or equal to the first preset power threshold, and the power value of the second battery is less than or equal to a fourth preset power threshold, determining that the target power supply mode is the secondary power supply mode; or, When the power level of the first battery is less than or equal to a second preset power level threshold, and the power level of the second battery is greater than a fourth preset power level threshold, determining that the target power supply mode is a secondary power supply mode; or, When the power level of the first battery is less than or equal to a second preset power threshold, and the power level of the second battery is less than or equal to a fourth preset power threshold, the target power supply mode is determined to be a third-level power supply mode.
5. The method according to claim 4, wherein controlling the target battery or the backup battery to power the door lock according to the target power supply mode comprises: When the power value of the first battery is greater than the second preset power threshold, controlling the first battery to power the door lock according to the target power supply mode; When the power value of the first battery is less than or equal to the second preset power threshold, and the power value of the second battery is greater than the fourth preset power threshold, the second battery is controlled to power the door lock according to the target power supply mode.
6. The method according to claim 4, wherein if it is determined that the target battery is the second battery and the backup battery is the first battery, determining a target power supply mode matching the battery power information comprises: When the power value of the second battery is greater than a third preset power threshold, and the power value of the first battery is greater than a second preset power threshold, determining that the target power supply mode is the first-level power supply mode; or, When the power value of the second battery is greater than a third preset power threshold, and the power value of the first battery is less than or equal to a second preset power threshold, determining that the target power supply mode is the secondary power supply mode; or, When the power value of the second battery is greater than a fourth preset power threshold and less than or equal to a third preset power threshold, and the power value of the first battery is greater than the second preset power threshold, determining that the target power supply mode is the first-level power supply mode, wherein the fourth preset power threshold is less than the third preset power threshold; or, When the power value of the second battery is greater than a fourth preset power threshold and less than or equal to a third preset power threshold, and the power value of the first battery is less than or equal to a second preset power threshold, determining that the target power supply mode is a secondary power supply mode; or, When the power level of the second battery is less than or equal to a fourth preset power level threshold, and the power level of the first battery is greater than a first preset power level threshold, determining that the target power supply mode is the first-level power supply mode; or, When the power level of the second battery is less than or equal to a fourth preset power level threshold, and the power level of the first battery is greater than the second preset power level threshold and less than or equal to the first preset power level threshold, determining that the target power supply mode is the secondary power supply mode; or, When the power level of the second battery is less than or equal to a fourth preset power level threshold, and the power level of the first battery is less than or equal to a second preset power level threshold, it is determined that the target power supply mode is a third-level power supply mode.
7. The method according to claim 6, wherein controlling the target battery or the backup battery to power the door lock according to the target power supply mode comprises: When the power value of the second battery is greater than the fourth preset power threshold, controlling the second battery to power the door lock according to the target power supply mode; When the power value of the second battery is less than or equal to the fourth preset power threshold, and the power value of the first battery is greater than the second preset power threshold, the first battery is controlled to power the door lock according to the target power supply mode.
8. The method according to claim 6, wherein the method further comprises: When the power value of the first battery is greater than the second preset power threshold and less than or equal to the first preset power threshold, outputting a prompt message indicating that the power of the first battery is low; or, When the power value of the first battery is less than or equal to the second preset power threshold, outputting a prompt message indicating that the power of the first battery is exhausted; When the power value of the second battery is greater than the fourth preset power threshold and less than or equal to the third preset power threshold, outputting a prompt message indicating that the power of the second battery is low; or, When the power value of the second battery is less than or equal to the fourth preset power threshold, a prompt message indicating that the power of the second battery is exhausted is output.
9. A dual-battery power supply switching device for an intelligent door lock, comprising: A detection module, used to detect battery status information and battery power information of the first battery and the second battery; A first determination module, configured to determine a target battery and a backup battery for power supply from the first battery and the second battery according to the battery status information, wherein the backup battery is configured to continue to power the door lock when the power value of the target battery is less than or equal to a preset power threshold; A second determination module is used to determine a target power supply mode that matches the battery power information; A control module is used to control the target battery or the backup battery to power the door lock according to the target power supply mode.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the smart door lock dual battery power supply switching method according to any one of claims 1 to 8.
11. A processor for running a program, wherein: When the program is running, the smart door lock dual battery power supply switching method as described in any one of claims 1 to 8 is implemented.
12. A smart door lock, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor. The at least one processor is executed so that the at least one processor can execute the smart door lock dual battery power switching method described in any one of claims 1 to 8.
13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the smart door lock dual battery power supply switching method according to any one of claims 1 to 8.
14. A computer program, comprising a computer program code, which, when executed on a computer, enables the computer to execute the smart door lock dual-battery power supply switching method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Charging control method for intelligent door lock, device, medium and control terminal
CN110350645A
Door lock, door lock setting method and intelligent cloud control method
CN110528965A
Double-battery door lock power supply switching method and device
CN111525674A
Door lock operation power consumption adjusting method and device, electronic equipment and storage medium
CN113947827A
Intelligent door lock double-battery power supply switching method and device, storage medium and door lock
CN116599198A
