Power supply method and device, nonvolatile storage medium and electronic equipment
By detecting and intelligently adjusting the power of the two battery modules in the smart door lock system, the problem of frequent power supply in the existing technology is solved, extending the battery life and ensuring stable operation of the system.
Patent Information
- Application Number
- CN202411832220.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, the power supply of smart door locks uses a separate battery, which causes the power supply of door locks and cat eyes to be frequently charged, thereby shortening the battery life.
By detecting the power of the first battery module and the second battery module, the two are controlled to be connected to the driving module and the monitoring module respectively, and the supply path is intelligently adjusted according to the power threshold to ensure the power supply of the door lock and cat eye.
It extends the battery life, reduces the need for frequent charging, and ensures the stable operation of the smart door lock system.
Smart Images

Figure CN119696133A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power distribution technology, and more specifically, to a power supply method and device, a non-volatile storage medium, and an electronic device. Background Art
[0002] In the related art, a separate battery is used to power the smart door lock. One battery is used to power both the door lock's drive module and the peephole. The peephole consumes a lot of power, which causes the door lock to be frequently low on power and needs to be charged. If the user fails to charge in time, the door cannot be opened, and frequent charging is required. At the same time, frequent charging will shorten the battery life, and the user needs to reserve an extra lithium battery.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The present application provides a power supply method and device, a non-volatile storage medium, and an electronic device to at least solve the technical problem that the related technology uses a single battery to power a door lock and a peephole, resulting in the need for frequent charging and thus shortening the battery life.
[0005] According to one aspect of the present application, a power supply method is provided, including: detecting a first power level of a first battery module and a second power level of a second battery module, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cateye; according to the first power level and the second power level, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module.
[0006] Optionally, based on the first power level and the second power level, the first battery module is controlled to supply power to the monitoring module and / or the driving module, and the second battery module is controlled to supply power to the monitoring module and / or the driving module, including: when the first power level of the first battery module is less than a first preset threshold, detecting the second power level of the second battery module; when the second power level is greater than a second preset threshold, controlling the second battery module to supply power to the driving module and the monitoring module.
[0007] Optionally, after controlling the second battery module to supply power to the driving module and the monitoring module, the method further includes: detecting a second power level of the second battery module; and controlling the second battery module to supply power to the driving module when the second power level is less than a third preset threshold.
[0008] Optionally, based on the first power level and the second power level, the first battery module is controlled to supply power to the monitoring module and / or the driving module, and the second battery module is controlled to supply power to the monitoring module and / or the driving module, including: when the second power level of the second battery module is less than a fourth preset threshold, detecting the first power level of the first battery module; when the first power level is greater than a fifth preset threshold, detecting whether the driving module has performed a startup action within a first historical time range; if the driving module has not performed a startup action within the first historical time range, controlling the first battery module to supply power to the driving module and the monitoring module.
[0009] Optionally, after controlling the first battery module to power the driving module and the monitoring module, the method further includes: detecting a first power level of the first battery module, and controlling the first battery module to power the driving module when the first power level is less than a sixth preset threshold.
[0010] Optionally, the first battery module includes: a first battery and a first control board, and the second battery module includes: a second battery and a second control board; the method further includes: within a first preset time period, controlling the first control board to detect the battery power and battery life of the first battery and the second battery, and within a second preset time period, controlling the second control board to detect the battery power and battery life of the first battery and the second battery, wherein there is no intersection between the first preset time period and the second preset time period; when it is detected that the battery power of the first battery and / or the second battery is less than a preset safety power, generating a first alarm instruction; when it is detected that the battery life of the first battery and / or the second battery is less than a preset safety life, generating a second alarm instruction.
[0011] Optionally, after controlling the first control board to detect the battery power and battery life of the first battery and the second battery within a first preset time period and controlling the second control board to detect the battery power and battery life of the first battery and the second battery within a second preset time period, the method further includes: comparing a first detection result of the battery power and battery life of the first battery and the second battery by the first control board within a preset time period with a second detection result of the battery power and battery life of the first battery and the second battery by the second control board within a preset time period; and generating a third alarm instruction when the difference between the first detection result and the second detection result is greater than the preset difference.
[0012] According to another aspect of the present application, a power supply device is also provided, including: a detection module, used to detect a first power level of a first battery module and a second power level of a second battery module, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cateye; a control module, used to control the first battery module to supply power to the monitoring module and / or the driving module, and to control the second battery module to supply power to the monitoring module and / or the driving module according to the first power level and the second power level.
[0013] According to another aspect of the present application, a non-volatile storage medium is provided, the storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above power supply method.
[0014] According to another aspect of the present application, an electronic device is provided, including: a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the above power supply method is executed when the program is run.
[0015] According to yet another aspect of the present application, a computer program is provided, wherein the above power supply method is implemented when the computer program is executed by a processor.
[0016] According to another aspect of the present application, a computer program product is provided, which includes a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above power supply method is implemented.
[0017] In the present application, a first power level of a first battery module and a second power level of a second battery module are detected, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cat eye; according to the first power level and the second power level, the first battery module is controlled to power the monitoring module and / or the driving module, and the second battery module is controlled to power the monitoring module and / or the driving module, thereby achieving the purpose of powering the door lock and the cat eye with dual batteries, thereby achieving the technical effect of increasing the battery life, and further solving the technical problem that the related technology uses a single battery to power the door lock and the cat eye, which causes the need for frequent charging and thus shortens the battery life. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flow chart of a power supply method according to an embodiment of the present application;
[0020] Figure 2 is a structural diagram of a power supply system according to an embodiment of the present application;
[0021] Figure 3 is a structural diagram of a power supply device according to an embodiment of the present application;
[0022] Figure 4 It is a hardware structure block diagram of a computer terminal according to a power supply method of an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to an embodiment of the present application, a method embodiment of a power supply method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] Figure 1 is a flow chart of a power supply method according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0027] Step S102, detecting a first power level of the first battery module and a second power level of the second battery module, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power the electronic door lock, and the monitoring module is used to power the electronic cat eye.
[0028] In the above step S102, when the first battery module is supplying power to the driving module, the current power of the first battery is detected. At the same time, when the second battery module is supplying power to the monitoring module, the current power of the second battery is detected. After receiving the data of the first power and the second power, the data is processed and compared with the preset power threshold to determine the remaining power percentage of each battery.
[0029] Step S104, according to the first power level and the second power level, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module.
[0030] In the above step S104, the first power level and the second power level are evaluated periodically or according to a specific event trigger, and the most appropriate power supply mode is selected based on the evaluation result. For example, in some low-power situations, the power levels of both batteries are lower than a preset third threshold (such as 15%), and the first battery module and the second battery module are connected in series to jointly power the drive module to ensure the door lock operation in an emergency.
[0031] According to the above steps, the first power of the first battery module and the second power of the second battery module are detected, wherein the first battery module is connected to the driving module, and the second battery module is connected to the monitoring module, the driving module is used to power the electronic door lock, and the monitoring module is used to power the electronic cat's eye; according to the first power and the second power, the first battery module is controlled to supply power to the monitoring module and / or the driving module, and the second battery module is controlled to supply power to the monitoring module and / or the driving module, thereby achieving the purpose of powering the door lock and the cat's eye by dual batteries, thereby realizing the technical effect of increasing the battery life.
[0032] The following Figure 1 The steps shown are exemplary and explanatory.
[0033] According to some optional embodiments of the present application, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module, according to the first power level and the second power level, can be achieved by the following method: when the first power level of the first battery module is less than a first preset threshold value, detecting the second power level of the second battery module; when the second power level is greater than a second preset threshold value, controlling the second battery module to supply power to the driving module and the monitoring module.
[0034] In the above embodiment, when the power (first power) of the first battery module is monitored to be lower than the preset first threshold, the power detection process of the second battery module is automatically triggered. If the second power detection result is higher than the second preset threshold, the corresponding circuit switching is performed to ensure that the power of the second battery module can be distributed to the drive module and the monitoring module. For example, when the power of the first battery module that supplies power to the drive module is completely exhausted or tends to be exhausted, if the power of the second battery module is greater than 30%, the second battery module is used to power the drive module and the monitoring module at the same time to ensure that the drive module can keep working, thereby ensuring that the door lock can be opened.
[0035] Through the above-mentioned specific implementation steps, it is possible to intelligently manage the dual battery power supply, prioritize the operation of key modules (such as the drive module), and use the second battery module to power the monitoring module under specific circumstances. When the first battery is low on power, the second battery module can continue to maintain the normal operation of the entire smart door lock system.
[0036] According to some other optional embodiments of the present application, after controlling the second battery module to power the driving module and the monitoring module, the following steps are also included: detecting a second power level of the second battery module; when the second power level is less than a third preset threshold, controlling the second battery module to power the driving module.
[0037] In the above embodiment, after the second battery module starts to supply power to the drive module and the monitoring module, the current power of the second battery module is monitored in real time, and the power data of the second battery module is continuously collected. After receiving the second power data, it is evaluated whether the second power is lower than the set third preset threshold. It should be noted that the third preset threshold is a relatively low power threshold, which is intended to ensure that key functions (such as door lock drive) can still operate in an emergency. If the evaluation result shows that the second power is lower than the third preset threshold, the power supply mode is adjusted, and only the second battery module is retained to power the drive module. For example, after the second battery module supplies power to the drive module and the monitoring module, as time goes by, when the power of the second battery module drops to 20%, the second battery module stops supplying power to the monitoring module, and the second battery module only supplies power to the drive module, ensuring that the drive module is always powered, thereby ensuring that the door lock can be opened. This step ensures that the door lock can be opened and closed normally even in the case of low power, giving priority to ensuring that the user can use the basic functions of the door lock.
[0038] Through the above-mentioned specific implementation steps, the battery resources can be managed intelligently, and the operation of the drive module can be prioritized in emergency situations, thereby extending the battery life while ensuring the basic functions of the smart door lock.
[0039] In some optional embodiments of the present application, according to the first power level and the second power level, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module can be achieved by the following method: when the second power level of the second battery module is less than a fourth preset threshold, detecting the first power level of the first battery module; when the first power level is greater than a fifth preset threshold, detecting whether the driving module has performed a startup action within a first historical time range; if the driving module has not performed a startup action within the first historical time range, controlling the first battery module to supply power to the driving module and the monitoring module.
[0040] In the above embodiment, when it is detected that the power of the second battery module is lower than the fourth threshold value preset by the system, the current power (first power) of the first battery module is detected. Specifically, if the first power is higher than the fifth preset threshold value, it is checked whether the driver module has performed a start-up action within the most recent "first historical time range". This time range can be preset to a few days, such as 3 days, to determine whether the user has not used the door lock for a long time. If the driver module has not performed a start-up action within the first historical time range, this indicates that the door lock has not been used frequently, so the power supply strategy is adjusted to allocate the power of the first battery module to the monitoring module and the driver module to ensure the complete operation of the system. For example, when the power of the second battery module that supplies power to the monitoring module is completely exhausted or tends to be exhausted, if the power of the first battery module is above 40%, and the driver module has not been started in 3 days, it is judged that the user goes out and will not open the door lock in a short time. The first battery module simultaneously supplies power to the monitoring module and the driver module, which is convenient for maintaining monitoring of the situation outside the door.
[0041] It can be understood that the above embodiment is intended for the scenario where the residents go out, the door lock battery has sufficient power, the cat eye battery is exhausted, but video surveillance through the cat eye is required.
[0042] Through the above-mentioned specific implementation steps, the power supply mode can be intelligently adjusted under different power conditions, giving priority to ensuring the operation of the driving module, and using the first battery module to power the monitoring module when conditions permit, thereby ensuring the basic functions of the smart door lock while improving the overall operating efficiency and user experience.
[0043] As some optional embodiments of the present application, after controlling the first battery module to power the driving module and the monitoring module, the following steps are also included: detecting a first power level of the first battery module, and when the first power level is less than a sixth preset threshold, controlling the first battery module to power the driving module.
[0044] In the above embodiment, after the first battery module supplies power to the driving module and the monitoring module, the current power level (first power level) of the first battery module is detected periodically or under specific conditions (such as after each door lock operation), and it is determined whether the first power level is lower than the sixth preset threshold value set by the system. It should be noted that the sixth preset threshold value is a relatively low power level threshold value set specifically to ensure that the driving module can maintain basic operation in an emergency. If the first power level is lower than the sixth preset threshold value, the power supply mode is adjusted to control the first battery module to only supply power to the driving module, and the monitoring module will no longer obtain power from the first battery module.
[0045] After adjusting the power supply mode, the change of the first power level is continuously monitored. Once the first power level recovers to be higher than the sixth preset threshold or reaches a safer power level, the power supply strategy will be re-evaluated and the power supply to the monitoring module can be restored.
[0046] Through the above-mentioned specific implementation steps, the battery resources can be managed intelligently, and the power supply of the driving module is prioritized when the first power is low, thereby extending the overall operating time while ensuring the basic functions of the smart door lock.
[0047] In some optional embodiments of the present application, the first battery module includes: a first battery and a first control board, and the second battery module includes: a second battery and a second control board; and also includes the following steps: within a first preset time period, controlling the first control board to detect the battery power and battery life of the first battery and the second battery, and within a second preset time period, controlling the second control board to detect the battery power and battery life of the first battery and the second battery, wherein there is no intersection between the first preset time period and the second preset time period; generating a first alarm instruction when it is detected that the battery power of the first battery and / or the second battery is less than a preset safety power; generating a second alarm instruction when it is detected that the battery life of the first battery and / or the second battery is less than a preset safety life.
[0048] In the above embodiment, the first control panel is activated at a fixed time period every day, such as 2:00 a.m. to 2:30 a.m. (the first preset time period). The selection of this time period takes into account the low peak period of users using the door lock to minimize the impact of the detection on normal operation. During the first preset time period, the first control panel detects the current power and life of the first battery and the second battery respectively, pre-processes the collected data, and compares the preset safety power and safety life values.
[0049] After the first preset period ends, the second preset period begins, for example, from 2:31 a.m. to 3 a.m., during which the second control panel is activated for detection. It should be noted that such a period setting ensures that the first preset period and the second preset period do not overlap, thereby avoiding the extra power consumption caused by activating two control panels at the same time. During the second preset period, the second control panel detects the power and life of the first battery and the second battery, and compares the results with the preset safety power and safety life.
[0050] If during the detection process of the first control board or the second control board, it is detected that the power of the first battery or the second battery is less than the preset safety power (for example, 20%), a first alarm instruction is generated to indicate entering the power warning state. Similarly, if it is detected that the life of the first battery or the second battery is less than the preset safety life (for example, the remaining life is less than 20%), a second alarm instruction is generated to remind attention to the health status of the battery.
[0051] For example, through a communication module, such as WIFI or Bluetooth, the first alarm instruction or the second alarm instruction can be sent to the user's mobile device or a designated receiving terminal, such as an application on a mobile phone, tablet or smart watch. The alarm information includes detailed battery status and recommends that the user take measures, such as charging or replacing the battery, to avoid damage to the door lock function. And when any battery power is less than 20%, a reminder message is sent to the user's mobile phone to remind the user to charge.
[0052] Through the above-mentioned specific implementation steps, the first control panel and the second control panel can be used to perform a health check on the battery in different preset time periods, and an alarm instruction can be intelligently generated to promptly notify the user of the battery status, thereby ensuring dynamic monitoring of the smart door lock.
[0053] As other optional embodiments of the present application, after controlling the first control board to detect the battery power and battery life of the first battery and the second battery within a first preset time period and controlling the second control board to detect the battery power and battery life of the first battery and the second battery within a second preset time period, the following steps are also included: comparing a first detection result of the battery power and battery life of the first battery and the second battery by the first control board within a preset time period with a second detection result of the battery power and battery life of the first battery and the second battery by the second control board within a preset time period; and generating a third alarm instruction when the difference between the first detection result and the second detection result is greater than the preset difference.
[0054] In the above embodiment, after the first preset period of time, the first control board completes the first detection of the power and life of the first battery and the second battery, and stores the first detection result. Similarly, after the second preset period of time, the second control board records and stores the second detection result. After receiving the detection results of the two control boards, these data are compared and analyzed. The comparison includes the difference in the power and life of the batteries to evaluate the consistency and accuracy of the two detection systems.
[0055] Specifically, check whether the power difference and life difference between the first test result and the second test result are greater than the difference threshold preset by the system. The preset difference can be set based on the battery type, usage environment and reliability requirements of the system design. For example, the threshold of the power difference can be set to 5%, and the threshold of the life difference can be set to 10%. If the difference in the test results of any battery (power difference or life difference) exceeds the preset threshold, it will be determined that there is a detection abnormality or battery status abnormality, thereby generating a third alarm instruction.
[0056] Through the above-mentioned specific implementation steps, the detection results of the two control boards for the same battery can be effectively detected and compared, potential hardware failures or sensor inconsistency problems can be discovered in time, and the user can be notified through the third alarm instruction to take corresponding measures to ensure the long-term stable operation of the smart door lock system.
[0057] Figure 2 is a structural diagram of a power supply system according to an embodiment of the present application, such as Figure 2 As shown, the system specifically includes the following modules:
[0058] A control module, and a first battery module (control board), a second battery module (control board), a monitoring module and a driving module electrically connected to the control module.
[0059] The control module is the core and establishes electrical connections with the first battery module, the second battery module, the monitoring module and the drive module. The control module intelligently determines the power supply path based on the power status of the first battery module and the second battery module. It can control the first battery module to power the monitoring module or the drive module, and similarly, it can also control the second battery module to power the monitoring module or the drive module. This mechanism ensures the independence and reliability of monitoring and door lock operations.
[0060] The drive module is directly connected to the door lock and is used to control the opening and closing of the door lock.
[0061] The monitoring module includes a cat's eye module, which can be composed of a camera, and the scene outside the door can be monitored through the cat's eye. Specifically, the cat's eye module is connected to the front main board, the control module is set on the rear main board, and the rear main board is connected to the front main board through a connecting line; the first battery and the second battery can be connected to the rear main board; through the control module, the first battery module and the second battery module can be used to supply power to the monitoring module and the driving module separately, or the monitoring module and the driving module can be supplied power at the same time according to the battery power status.
[0062] The first battery module and the second battery module each have independent batteries, power sensors and battery life sensors. The first battery module includes: a first battery, a first power sensor and a first battery life sensor; the first power sensor is used to detect the power of the first battery; the first battery life sensor is used to detect the life (service life) of the first battery. The second battery module includes: a second battery, a second power sensor and a second battery life sensor; the second power sensor is used to detect the power of the second battery; the second battery life sensor is used to detect the life of the second battery; these components are respectively installed on the first battery control board and the second battery control board, and establish an electrical connection with the rear main board, so that the system can independently detect and manage the status of each battery.
[0063] The control module realizes flexible control of the power supply mode by electrically connecting the switching module. Whether it is to supply power to the drive module or the monitoring module separately, or to supply power to both at the same time, or even to connect two batteries in series to supply power to the drive module only in an emergency, the switching module can ensure the smooth switching of the power supply mode. Specifically, the switching module can realize the situations that the first battery supplies power to the drive module separately, the first battery supplies power to the monitoring module separately, the first battery supplies power to the drive module and the monitoring module simultaneously, the second battery supplies power to the drive module separately, the second battery supplies power to the monitoring module separately, the second battery supplies power to the drive module and the monitoring module simultaneously, the first battery and the second battery supply power to the drive module simultaneously, etc.
[0064] The control module is also used to identify the lifespan of the first battery and the second battery, and select the battery with a better lifespan to preferentially supply power to the drive module, so as to ensure the normal operation of the door lock and extend the service life of the battery. Specifically, after the first battery and the second battery are fully charged, the first battery and the second battery are installed. The lifespan of the first battery and the second battery will change due to charging. After the first battery and the second battery are both installed, by detecting the lifespan of both, the control module controls the battery with a better lifespan to supply power to the drive module, thereby ensuring better power supply to the door lock.
[0065] The control module is also used to compare the power and life of the first battery and the second battery detected by the first battery control board with the power and life of the first battery and the second battery detected by the second battery control board to determine whether the first battery control board and the second battery control board are abnormal; when there is a large difference between the results of two adjacent detections of the power and life of the first battery and the second battery, it is preliminarily determined that there is an abnormality in the first battery control board or the second battery control board, that is, there is an abnormality in the first power sensor and the first battery life sensor on the first battery control board, or in one or part of the second power sensor and the second battery life sensor on the second battery control board. At this time, the control module can call up the historical data stored in the storage module connected to it for judgment (it can also call up the historical data for judgment through the communication module) to judge which of the two adjacent detection results is more normal, and according to the historical data, it can Obtain the change curves of power consumption and life of the first battery and the second battery during use (one curve corresponds to power consumption, and another curve corresponds to life change). The detection result that is closer to the change curve of the two current detection results is judged to be normal, and the other detection result is judged to be abnormal, then the corresponding first battery control board or the second battery control board is abnormal, and further judge whether the power change is abnormal or the life change is abnormal based on the two change curves of historical data, and then determine whether it is the power sensor or the battery life sensor that is abnormal. After judging the abnormality, the user's mobile phone can be remotely notified to remind the user to perform further inspection and replacement; after judging that one of the battery control boards is abnormal, the abnormal battery control board stops working, and only the other normal battery control board is used to continuously detect the power and life of the first battery and the second battery, so as to ensure that the power and life of the first battery and the second battery can be accurately detected.
[0066] The control module is also used to control the first battery control board and the second battery control board to alternately and simultaneously detect the power and life of the first battery and the second battery. For example, the power and life of the first battery and the second battery are first detected by the first power sensor and the first battery life sensor on the first battery control board, and the second battery control board is not working at this time. After a certain interval, the second power sensor and the second battery life sensor on the second battery control board are used to detect the power and life of the first battery and the second battery, and the first battery control board is not working at this time. The alternating cycle is that each time the power and life of the first battery and the second battery are detected, only one of the first battery control board and the second battery control board is working, and the other is resting, thereby avoiding the simultaneous operation of the first battery control board and the second battery control board, reducing power consumption, and thereby increasing the battery life of the drive module and the monitoring module.
[0067] The control module is also used to enable the first battery and the second battery to supply power to the drive module at the same time through the switching module according to the power levels of the first battery and the second battery. That is, when the power levels of the first battery and the second battery are both lower than a third preset value, the control module controls the first battery and the second battery to be connected in series to supply power to the drive module; for example, when the power levels of the first battery and the second battery are both lower than 15%, in order to ensure that the door lock can be opened or to meet the emergency door lock opening requirements, the first battery and the second battery are connected in series to only supply power to the drive module.
[0068] For example, when the second battery module that supplies power to the monitoring module is out of power, the power of the first battery module is above 40%, and the drive module has not been started in 3 days, it is judged that the user is going out and will not open the door lock in a short time. The first battery module supplies power to the monitoring module and the drive module at the same time, so as to maintain the monitoring of the situation outside the door. If the power of the first battery module drops to 20% over time, the monitoring module is stopped from being powered to ensure that the drive module is always powered and the door lock can be opened, so as to avoid the user not having enough power to open the door lock after leaving for a long time; when the power of the first battery module is below 40%, the monitoring module is stopped from being powered, and the first battery module still only supplies power to the drive module. When the power of both batteries is lower than a specific threshold (such as 15%), the control module connects them in series to supply power to the drive module to ensure that the emergency unlocking needs can be met even at low power.
[0069] In an embodiment of the present application, the first battery and the second battery can both be lithium batteries, and there are differences in the power supply requirements of the driving module and the monitoring module. The independent power supply of the dual lithium batteries can provide independent power supply for each functional module according to the actual needs of each functional module, thereby realizing the independent operation and efficient management of the functional modules. With independent power supply, power resources can be allocated and managed more flexibly. For example, when a functional module does not require a large amount of power, its corresponding battery can be placed in a low-power standby state, thereby saving energy and extending the overall battery life. Two 5000mA batteries are used to independently power the cat's eye and the door lock, which increases the use time of the smart door lock after a single charge, shortens the charging frequency, and increases the battery life. After the cat's eye runs out of power and the cat's eye function cannot be used, the door lock can still be powered normally to ensure that the user can open and close the door normally.
[0070] Figure 3 is a structural diagram of a power supply device according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0071] The detection module 30 is used to detect the first power of the first battery module and the second power of the second battery module, wherein the first battery module is connected to the driving module, and the second battery module is connected to the monitoring module, the driving module is used to power the electronic door lock, and the monitoring module is used to power the electronic cat eye.
[0072] The control module 32 is used to control the first battery module to supply power to the monitoring module and / or the driving module, and to control the second battery module to supply power to the monitoring module and / or the driving module according to the first power level and the second power level.
[0073] Optionally, the control module 32 is also used to perform the following steps: when the first power level of the first battery module is less than a first preset threshold, detect the second power level of the second battery module; when the second power level is greater than a second preset threshold, control the second battery module to power the driving module and the monitoring module.
[0074] Optionally, after controlling the second battery module to power the driving module and the monitoring module, the detection module 30 is also used to perform the following steps: detecting a second power level of the second battery module; and controlling the second battery module to power the driving module when the second power level is less than a third preset threshold.
[0075] Optionally, the control module 32 is also used to perform the following steps: when the second power level of the second battery module is less than a fourth preset threshold, detecting the first power level of the first battery module; when the first power level is greater than a fifth preset threshold, detecting whether the drive module has performed a startup action within a first historical time range; if the drive module has not performed a startup action within the first historical time range, controlling the first battery module to power the drive module and the monitoring module.
[0076] Optionally, after controlling the first battery module to power the driving module and the monitoring module, the detection module 30 is also used to perform the following steps: detecting a first power level of the first battery module, and controlling the first battery module to power the driving module when the first power level is less than a sixth preset threshold.
[0077] Optionally, the first battery module includes: a first battery and a first control board, and the second battery module includes: a second battery and a second control board; the detection module 30 is also used to perform the following steps: within a first preset time period, control the first control board to detect the battery power and battery life of the first battery and the second battery, and within a second preset time period, control the second control board to detect the battery power and battery life of the first battery and the second battery, wherein there is no intersection between the first preset time period and the second preset time period; when it is detected that the battery power of the first battery and / or the second battery is less than a preset safety power, generate a first alarm instruction; when it is detected that the battery life of the first battery and / or the second battery is less than a preset safety life, generate a second alarm instruction.
[0078] Optionally, after controlling the first control board to detect the battery power and battery life of the first battery and the second battery within a first preset time period and controlling the second control board to detect the battery power and battery life of the first battery and the second battery within a second preset time period, the detection module 30 is also used to perform the following steps: comparing a first detection result of the battery power and battery life of the first battery and the second battery by the first control board within a preset time period with a second detection result of the battery power and battery life of the first battery and the second battery by the second control board within a preset time period; and generating a third alarm instruction when the difference between the first detection result and the second detection result is greater than the preset difference.
[0079] It should be noted that the above Figure 3 The modules in the embodiment may be program modules (e.g., a set of program instructions for implementing a specific function) or hardware modules. For the latter, they may be expressed in the following forms, but are not limited thereto: the expression form of the above modules is a processor, or the functions of the above modules are implemented by a processor.
[0080] It should be noted that Figure 3 The preferred implementation of the illustrated embodiment can be found in Figure 1 The relevant description of the illustrated embodiment will not be repeated here.
[0081] Figure 4 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a power supply method. Figure 4 As shown, the computer terminal 40 may include one or more (402a, 402b, ..., 402n are used to illustrate) processors 402 (the processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 404 for storing data, and a transmission module 406 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown.
[0082] It should be noted that the one or more processors 402 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 40. As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0083] The memory 404 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the power supply method in the embodiment of the present application. The processor 402 executes various functional applications and data processing by running the software programs and modules stored in the memory 404, that is, the above-mentioned power supply method is realized. The memory 404 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 404 may further include a memory remotely arranged relative to the processor 402, and these remote memories may be connected to the computer terminal 40 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0084] The transmission module 406 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 40. In one example, the transmission module 406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 406 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0085] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 40 .
[0086] It should be noted that, in some optional embodiments, the above Figure 4 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 4 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.
[0087] It should be noted that Figure 4 The computer terminal shown is used to execute Figure 1 The power supply method shown, therefore the relevant explanations in the execution method of the above command are also applicable to the electronic device and will not be repeated here.
[0088] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above power supply method.
[0089] The non-volatile storage medium performs a program for the following functions: detecting a first power level of a first battery module and a second power level of a second battery module, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cat's eye; according to the first power level and the second power level, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module.
[0090] An embodiment of the present application further provides an electronic device, including: a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the above power supply method is executed when the program is running.
[0091] The processor is used to run a program that performs the following functions: detecting a first power level of a first battery module and a second power level of a second battery module, wherein the first battery module is connected to a driving module, and the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cat eye; according to the first power level and the second power level, controlling the first battery module to power the monitoring module and / or the driving module, and controlling the second battery module to power the monitoring module and / or the driving module.
[0092] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0093] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0094] In the above-mentioned embodiments of the present application, the collected information is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary protection measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0099] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A power supply method, characterized in that: include: Detecting a first power level of a first battery module and a second power level of a second battery module, wherein the first battery module is connected to a driving module, the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cat eye; According to the first power and the second power, the first battery module is controlled to supply power to the monitoring module and / or the driving module, and the second battery module is controlled to supply power to the monitoring module and / or the driving module.
2. The method according to claim 1, characterized in that According to the first power and the second power, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module, comprises: When a first power level of the first battery module is less than a first preset threshold, detecting a second power level of the second battery module; When the second power level is greater than a second preset threshold, the second battery module is controlled to supply power to the driving module and the monitoring module.
3. The method according to claim 2, characterized in that After controlling the second battery module to supply power to the driving module and the monitoring module, the method further includes: detecting a second power level of the second battery module; When the second power level is less than a third preset threshold, the second battery module is controlled to supply power to the driving module.
4. The method according to claim 1, characterized in that: According to the first power and the second power, controlling the first battery module to supply power to the monitoring module and / or the driving module, and controlling the second battery module to supply power to the monitoring module and / or the driving module, comprises: When the second power of the second battery module is less than a fourth preset threshold, detecting the first power of the first battery module; When the first power level is greater than a fifth preset threshold, detecting whether the driving module has performed a startup action within a first historical time range; If the driving module has not performed the startup action within the first historical time range, the first battery module is controlled to supply power to the driving module and the monitoring module.
5. The method according to claim 4, characterized in that After controlling the first battery module to supply power to the driving module and the monitoring module, the method further includes: A first power level of the first battery module is detected, and when the first power level is less than a sixth preset threshold, the first battery module is controlled to supply power to the driving module.
6. The method according to claim 4, characterized in that The first battery module includes: a first battery and a first control board, and the second battery module includes: a second battery and a second control board; The method further includes: controlling the first control board to detect the battery power and battery life of the first battery and the second battery within a first preset time period, and controlling the second control board to detect the battery power and battery life of the first battery and the second battery within a second preset time period, wherein there is no intersection between the first preset time period and the second preset time period; When it is detected that the battery power of the first battery and / or the second battery is less than a preset safety power, generating a first alarm instruction; When it is detected that the battery life of the first battery and / or the second battery is less than a preset safety life, a second alarm instruction is generated.
7. The method according to claim 6, characterized in that After controlling the first control board to detect the battery power and battery life of the first battery and the second battery within a first preset period of time, and controlling the second control board to detect the battery power and battery life of the first battery and the second battery within a second preset period of time, the method further includes: Comparing a first detection result of the first control board on the battery power and battery life of the first battery and the second battery within a preset time period with a second detection result of the second control board on the battery power and battery life of the first battery and the second battery within the preset time period; When the difference between the first detection result and the second detection result is greater than a preset difference, a third alarm instruction is generated.
8. A power supply device, characterized in that: include: A detection module, used to detect a first power of a first battery module and a second power of a second battery module, wherein the first battery module is connected to a driving module, the second battery module is connected to a monitoring module, the driving module is used to power an electronic door lock, and the monitoring module is used to power an electronic cat eye; A control module is used to control the first battery module to supply power to the monitoring module and / or the driving module, and to control the second battery module to supply power to the monitoring module and / or the driving module according to the first power level and the second power level.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the power supply method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the power supply method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Unmanned aerial vehicle intelligent return flight system based on Beidou positioning
CN121091866A