Double-battery power supply switching method, terminal equipment and storage medium
By detecting the main battery power in the camera flashlight and automatically switching to the backup battery power supply, the problem that the backup battery switching method in the prior art cannot guarantee the continuous operation, and seamless switching and continuous operation of the equipment are achieved when the main battery power is insufficient.
Patent Information
- Application Number
- CN202510055222.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-04-22
AI Technical Summary
When the main battery is insufficient, the backup battery switching method cannot guarantee the continuous operation of the existing camera flashlight.
By detecting the power of the first main battery, it automatically switches to the backup battery power when it is below the preset threshold, and when it is detected, it switches to the new battery power when the second main battery is replaced, the backup battery power is stopped.
It realizes seamless switching to the backup power supply when the main battery is insufficient, avoiding equipment downtime and improving the working continuity of camera flashlights.
Smart Images

Figure CN119864925A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of energy management, and in particular relates to a dual-battery power supply switching method, terminal equipment and storage medium. Background Art
[0002] Most camera flashlights on the market are powered by a single battery. Even if the battery can be replaced, the single battery design requires timely charging or replacement of the battery when the power is exhausted, which affects the continuity of use.
[0003] At present, when the backup battery is not used, the backup battery is in a standby state and does not participate in the power supply of the flashlight. It will only be activated when the main battery fails to supply power. This switching method cannot guarantee the continuity of the operation of the camera flashlight. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a dual-battery power supply switching method, terminal device and storage medium, which can solve the problem in the related art that the backup battery switching method cannot ensure the continuity of the camera power supply operation.
[0005] A first aspect of the present invention provides a dual-battery power supply switching method, comprising:
[0006] detecting a first power level of a first main battery;
[0007] If the first power level is lower than a preset power threshold, supplying power through a backup battery;
[0008] If it is detected that the first main battery is replaced by the second main battery, power is supplied by the second main battery and the backup battery is stopped from being used for power supply.
[0009] Optionally, in a first implementation of the first aspect of the present invention, if it is detected that the first main battery is replaced by the second main battery, the step of supplying power through the second main battery and stopping supplying power through the backup battery includes:
[0010] If it is detected that the first main battery is replaced by the second main battery, detecting a second power level of the second main battery;
[0011] If the second power level is higher than the power threshold, the second main battery is used for power supply, and the backup battery is stopped for power supply.
[0012] Optionally, in a second implementation of the first aspect of the present invention, if the first power level is lower than a preset power threshold, the step of supplying power through a backup battery includes:
[0013] If the first power level is lower than a preset power threshold, the camera module is powered by the backup battery, and the lighting module is powered by the first main battery.
[0014] Optionally, in a third implementation of the first aspect of the present invention, if the first power level is lower than a preset power threshold, after the step of powering the camera module through a backup battery and powering the lighting module through a first main battery, the method further includes:
[0015] When a battery replacement command is detected, the lighting module is powered by the backup battery and the first main battery is stopped. The battery replacement command indicates that the first main battery is replaced by the second main battery.
[0016] Optionally, in a fourth implementation of the first aspect of the present invention, after the step of stopping the power supply operation of the backup battery, the method further includes:
[0017] The second main battery is controlled to perform a charging operation for the backup battery.
[0018] Optionally, in a fifth implementation of the first aspect of the present invention, the step of controlling the second main battery to perform a charging operation for the backup battery includes:
[0019] Detect the remaining power of the backup battery;
[0020] If the remaining power is lower than the preset remaining power, the second main battery is controlled to perform a charging operation for the backup battery.
[0021] Optionally, in a sixth implementation of the first aspect of the present invention, if it is detected that the first main battery is replaced by the second main battery, after the step of supplying power through the second main battery and stopping supplying power through the backup battery, the method further includes:
[0022] detecting a discharge rate of the second main battery;
[0023] If the discharge rate exceeds a preset safety threshold, the backup battery is stopped and power is supplied by the backup battery.
[0024] Optionally, in a sixth implementation of the first aspect of the present invention, if the first power level is lower than a preset power threshold, the step of supplying power through a backup battery includes:
[0025] If the first power level is lower than a preset power threshold, the first main battery is controlled to supply power through a preset first power supply, and the backup battery is controlled to supply power through a preset second power supply.
[0026] In a second aspect, an embodiment of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the dual-battery power supply switching method when executing the computer program.
[0027] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the dual-battery power supply switching method are implemented.
[0028] In a fourth aspect, an embodiment of the present invention provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the dual-battery power supply switching method.
[0029] Compared with the prior art, the beneficial effects of the embodiments of the present invention are as follows: detecting the first power level of the first main battery; if the first power level is lower than a preset power threshold, supplying power through the backup battery; if it is detected that the first main battery is replaced by the second main battery, supplying power through the second main battery, and stopping supplying power through the backup battery. Through the dual-battery power switching method, when the power level of the first main battery is lower than a preset power threshold, it will automatically switch to the backup battery for power supply. This mechanism enables the camera flashlight to seamlessly switch to the backup power source when the main battery is low on power, effectively avoiding equipment shutdown due to battery exhaustion and improving the working continuity of the camera flashlight. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 A schematic diagram of an embodiment of a dual-battery power supply switching method in an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of a specific embodiment of step S103 of the dual-battery power supply switching method in an embodiment of the present invention;
[0033] Figure 3 A schematic diagram of a specific embodiment of step S201 of the dual-battery power supply switching method in an embodiment of the present invention;
[0034] Figure 4 It is a schematic diagram of a specific embodiment after step S103 of the dual-battery power supply switching method in an embodiment of the present invention;
[0035] Figure 5 The figure is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are protected by the present invention.
[0037] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specifications and drawings of the present invention, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.
[0038] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] Most camera flashlights on the market are powered by a single battery. Even if the battery can be replaced, the single battery design requires timely charging or replacement of the battery when the power is exhausted, which affects the continuity of use.
[0040] At present, when the backup battery is not used, the backup battery is in a standby state and does not participate in the power supply of the flashlight. It will only be activated when the main battery fails to supply power. This switching method cannot guarantee the continuity of the operation of the camera flashlight.
[0041] In view of this, the embodiments of the present invention provide a dual-battery power supply switching method, a terminal device, and a storage medium. Through the dual-battery power supply switching method, when the power of the first main battery is lower than a preset power threshold, it will automatically switch to the backup battery for power supply. This mechanism enables the camera flashlight to seamlessly switch to the backup power supply when the main battery is low on power, effectively avoiding device shutdown due to battery exhaustion and improving the working continuity of the camera flashlight.
[0042] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0043] Figure 1 The present invention provides a schematic diagram of a dual-battery power supply switching method, which can be applied to a terminal device, such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.
[0044] Specifically, the dual-battery power supply switching method may include the following steps S101 to S103.
[0045] Step S101, detecting a first power level of a first main battery.
[0046] In an embodiment of the present invention, for video recording, a terminal device in the video flashlight detects a first power level of a first main battery (main battery A).
[0047] Optionally, the battery power is determined by measuring the voltage across the first main battery. The battery voltage will gradually decrease as the power decreases.
[0048] Optionally, a voltage threshold is set, and when the measured voltage is lower than the threshold, it is determined that the battery power is low.
[0049] Optionally, the battery voltage can be measured periodically to determine the battery state. Voltage measurement itself consumes less power, so power saving can be achieved. For example, a low-power voltage monitoring chip can be used and a measurement interval can be set to reduce battery power consumption.
[0050] Optionally, the discharge current of the battery is monitored and integrated, and the power is predicted by combining historical data and battery characteristics. For example, a low-power current sensor and a microcontroller are used for calculation and prediction. The prediction algorithm can reduce the frequency of real-time measurements, thereby reducing power consumption.
[0051] Optionally, the open circuit voltage of the battery is measured when the battery is not discharged to obtain more accurate power information. At the same time, the battery enters a sleep mode during non-measurement periods to reduce power consumption.
[0052] Optionally, an algorithm in a battery management system (BMS) is used to estimate the state of charge based on parameters such as battery voltage, temperature, and historical discharge data.
[0053] Optionally, during the battery power detection process, a low-power wake-up circuit and a measurement circuit are used to reduce the consumption of battery power.
[0054] Step S102: if the first power level is lower than a preset power threshold, power is supplied by a backup battery.
[0055] In an embodiment of the present invention, if the first power level is lower than a preset power threshold, the backup battery is switched to supply power while the main battery A is kept powered (may be in a low power standby state).
[0056] Whether the main battery A is replaced by the second main battery (main battery B) is detected in real time monitoring.
[0057] If no replacement is detected, the backup battery continues to supply power and detects whether a battery replacement occurs.
[0058] Optionally, physical contacts are provided in the battery compartment. When a new battery is inserted, the contacts come into contact with corresponding parts on the battery, thereby triggering a detection signal to detect whether a battery replacement occurs.
[0059] Optionally, a unique ID (such as a QR code, RFID tag, etc.) is assigned to each battery, and a corresponding reader is set in the device. When a new battery is inserted, the battery ID is read and compared with the previously recorded ID. If they are different, it is determined that the battery has been replaced. This method allows only specific, authorized batteries to be used.
[0060] Optionally, when a battery is replaced, the voltage or current provided by the new battery may fluctuate or change briefly. The terminal device may monitor the change and determine that the battery has been replaced when a specific voltage / current pattern is detected.
[0061] Optionally, the terminal device may record the time interval between when the battery is removed and reinserted. If this time interval exceeds a preset threshold (e.g., a few seconds or a few minutes), it is determined that the battery needs to be replaced.
[0062] Optionally, the terminal device provides a user interface (such as a button, a touch screen, etc.) to allow the user to manually input a signal to replace the battery. When the user confirms that the battery has been replaced, an instruction is sent through the user interface, and after receiving the instruction, it is determined that the battery has been replaced.
[0063] Optionally, the battery power, temperature and other conditions may be continuously monitored. When a sudden increase in the battery power or a significant change in the temperature and other conditions is detected, it is determined that the battery needs to be replaced.
[0064] Optionally, a mechanical switch is provided in the battery compartment, and when the battery is inserted or removed, the switch is triggered to close or open. The terminal device can monitor the state change of the switch to determine whether the battery has been replaced.
[0065] Step S103: if it is detected that the first main battery is replaced by the second main battery, power is supplied by the second main battery and the backup battery is stopped.
[0066] In the embodiment of the present invention, if replacement is detected, the new main battery is switched to the new main battery, and power is supplied by the newly replaced second main battery (main battery B), and the backup battery is stopped for power supply.
[0067] Optionally, in a specific usage scenario, the user carries a camera flashlight for outdoor inspections, which is initially powered by main battery A. When the power of main battery A is lower than a preset threshold (such as 20% remaining), it automatically switches to the backup battery for power supply. If the user replaces the main battery B with a fully charged one during the trip, it will automatically switch to main battery B for power supply after detection, and stop using the backup battery. If the backup battery power is lower than the preset remaining power after switching, the main battery B can be automatically used to charge the backup battery.
[0068] Optionally, in a specific usage scenario, the monitoring device uses a camera flashlight for night monitoring, which is initially powered by the main battery A. When the power of the main battery A is lower than the preset threshold, it automatically switches to the backup battery for power supply to ensure uninterrupted monitoring video recording. The monitoring personnel remotely monitor that the main battery A is low and replace it with the main battery B in advance. After detection, it automatically switches to the main battery B for power supply. If the main battery B discharges too quickly (such as due to excessively high ambient temperature causing battery performance to deteriorate), it can be switched back to the backup battery for power supply to ensure monitoring stability.
[0069] Optionally, in a specific usage scenario, rescuers use a camera flashlight to record the scene in an emergency, and it is initially powered by main battery A. When the power of main battery A is lower than a preset threshold, it automatically switches to the backup battery for power supply to ensure that the rescue recording is not interrupted. Rescuers replace a new battery (main battery B) during the rescue process, and it automatically switches to main battery B for power supply after detection. If the backup battery still has residual power after switching and is lower than the preset value, the main battery B can be used to charge the backup battery.
[0070] Compared with the prior art, the beneficial effects of the embodiments of the present invention are as follows: detecting the first power level of the first main battery; if the first power level is lower than a preset power threshold, supplying power through the backup battery; if it is detected that the first main battery is replaced by the second main battery, supplying power through the second main battery, and stopping supplying power through the backup battery. Through the dual-battery power switching method, when the power level of the first main battery is lower than a preset power threshold, it will automatically switch to the backup battery for power supply. This mechanism enables the camera flashlight to seamlessly switch to the backup power source when the main battery is low on power, effectively avoiding equipment shutdown due to battery exhaustion and improving the working continuity of the camera flashlight.
[0071] How to effectively manage the power of two batteries and ensure that the power supply can be switched in time when the battery power is low is a key problem that needs to be solved in the dual-battery power supply system. The traditional battery management system cannot accurately judge the battery power, resulting in untimely or erroneous switching, which affects the stable operation of the camera flashlight. Based on this, the present invention proposes an optional embodiment.
[0072] Reference Figure 2 , Figure 2 1 is a schematic diagram of a specific embodiment of step S103 of the dual-battery power supply switching method in an embodiment of the present invention. Step S103 also includes the following specific implementation methods.
[0073] Step S1031: if it is detected that the first main battery is replaced by the second main battery, then a second power level of the second main battery is detected.
[0074] In an embodiment of the present invention, a battery replacement event is detected, and then a second charge of a newly inserted second main battery is detected.
[0075] This step ensures that the device can continue to operate stably and avoids unnecessary power consumption.
[0076] Step S1032: if the second power level is higher than the power threshold, the second main battery is used for power supply, and the backup battery is stopped for power supply.
[0077] In an embodiment of the present invention, the second power level of the second main battery is compared with a preset power level threshold. If the second power level is higher than the power level threshold, it means that the new battery has enough power to support the operation of the device.
[0078] If the second power is sufficient, switch to the new second main battery for power supply and stop using the previous backup battery.
[0079] In the embodiment of the present invention, by detecting the power of the newly inserted second main battery and switching the power supply when the power is sufficient, it can be ensured that the camera flashlight can still operate stably after the battery is replaced, avoiding the camera flashlight failure or shutdown due to insufficient battery power. In addition, as a built-in battery, the backup battery occupies a small space and has a low power. Taking this into account, by reasonably switching the power supply, the battery loss caused by the backup battery being in a discharged state for a long time can be avoided, thereby extending the overall service life of the camera flashlight and the backup battery.
[0080] Traditional dual-battery power supply systems often adopt a simple switching strategy, that is, directly switching to the backup battery for power supply when the main battery is low on power. This strategy does not take into account the differences in power requirements of different functional modules within the device, which may lead to uneven power distribution. In some cases, due to improper power management, key functions (such as camera modules) cannot be stably powered. An unreasonable power supply strategy can easily lead to over-discharge of a single battery and accelerate battery loss. Based on this, the present invention proposes an optional embodiment.
[0081] Step S102 also includes the following specific implementation methods.
[0082] Step S1021, if the first power level is lower than a preset power threshold, the camera module is powered by the backup battery, and the lighting module is powered by the first main battery and / or the backup battery.
[0083] In an embodiment of the present invention, when the first power level is lower than the threshold, the backup battery is used to power the camera module. At the same time, the lighting module is powered by the first main battery (if there is enough power) or the backup battery (if the power of the first main battery is extremely low and insufficient to support both modules at the same time). Alternatively, the lighting module is powered by both the first main battery and the backup battery.
[0084] Optionally, in a specific scenario, when the first power level is lower than a threshold, the camera module is powered by the backup battery. At the same time, it is checked whether the remaining power of the first main battery is sufficient to support the lighting module. If it is sufficient, the first main battery continues to power the lighting module. If it is insufficient, the backup battery also powers the lighting module (or determines whether to power the lighting module according to a preset mode, and if the strategy is to protect the backup battery, the lighting module is turned off).
[0085] Optionally, in a specific scenario, a backup battery is used to power the camera module. For the lighting module, the power status of the first main battery and the backup battery are evaluated. If the first main battery has a moderate power level and the backup battery has sufficient power, both can power the lighting module at the same time to improve the lighting brightness and stability. If the first main battery has a very low power level, but the backup battery has sufficient power, the backup battery powers the camera module and the lighting module at the same time. If both have low power levels, take energy-saving measures, such as reducing the lighting brightness or turning off non-critical functions.
[0086] Optionally, in a specific scenario, for the lighting module, the power supply strategy is intelligently determined based on the power ratio of the first main battery and the backup battery, the current usage status of the device (such as whether it is in low power mode), and the user's preset preference settings. For example, if the backup battery is low in power and the user wants to extend the overall usage time of the device, the first main battery (even if it is low in power) is used to power the lighting module. If both have sufficient power and the user wants to obtain the best performance, both are used to power the lighting module.
[0087] Optionally, in a specific scenario, when the first power level is lower than a threshold, the power supply strategy is dynamically adjusted according to the current usage status and power level. For example, if the device is in a shooting state and the backup battery has sufficient power, the power supply stability of the camera module is prioritized, and the power supply source of the lighting module is flexibly adjusted according to the usage of the lighting module. If the device is in standby or low power mode, the backup battery is tended to be protected and its usage frequency is reduced to extend the service life of the backup battery.
[0088] In the embodiment of the present invention, by refining the power supply distribution, limited battery resources can be effectively managed. While ensuring the power supply of key functions (such as the camera module), the working time of other functions (such as the lighting module) is also extended as much as possible. The camera module and the lighting module can be powered in a timely and stable manner when needed. In addition, by reasonably allocating power supply tasks, the loss caused by excessive discharge of a single battery is avoided. This helps to extend the overall service life of the battery and reduce the frequency and cost of battery replacement.
[0089] In the traditional battery replacement process, the main battery needs to be temporarily removed for replacement, which will cause other functional modules on the device (such as the lighting module) to suddenly lose power, thereby affecting the normal use of the device and user experience. Based on this, the present invention proposes an optional embodiment.
[0090] The following specific implementation is also included after step S1021.
[0091] Step S1022, when a battery replacement instruction is detected, the lighting module is powered by the backup battery, and the first main battery is stopped from being used for power supply. The battery replacement instruction indicates that the first main battery is replaced by the second main battery.
[0092] In an embodiment of the present invention, while the backup battery is supplying power to the camera module, it is continuously monitored whether a battery replacement instruction is received. The battery replacement instruction is triggered by a user operation, indicating that the first main battery needs to be replaced with the second main battery.
[0093] The battery replacement instruction is detected, indicating that the user is about to perform a battery replacement operation and replace the first main battery with the second main battery.
[0094] After the battery replacement is completed, the second main battery is switched to power the camera module and the lighting module, wherein the precondition is that the backup battery is also powering the lighting module. At the same time, the first main battery to be replaced is stopped from powering.
[0095] In the embodiment of the present invention, by introducing a backup battery, the lighting module is continuously powered during the power replacement process, thereby avoiding lighting interruption caused by the power replacement operation. During the power replacement process, if the lighting module suddenly loses power, the operating environment may become dark, increasing the difficulty of operation and safety hazards. The use of a backup battery ensures lighting continuity.
[0096] In conventional camera flashlights, backup batteries are usually used as emergency power sources, but in actual use, there is often a lack of effective management and maintenance of the backup batteries. Based on this, the present invention proposes an optional embodiment.
[0097] The following specific implementation is also included after step S103.
[0098] Step S201, controlling the second main battery to perform a charging operation for the backup battery.
[0099] In an embodiment of the present invention, the remaining power of the backup battery is detected to determine whether it needs to be charged.
[0100] If the remaining power of the backup battery is lower than a preset remaining power threshold, the second main battery is controlled to perform a charging operation for the backup battery so that the backup battery can have sufficient power to supply power when needed.
[0101] In the embodiment of the present invention, the backup battery is used as an emergency power supply to provide power support at critical moments. Through regular charging and maintenance, the backup battery can work normally when needed, thereby enhancing the reliability of the equipment.
[0102] Reference Figure 3 , Figure 3 1 is a schematic diagram of a specific embodiment of step S201 of the dual-battery power supply switching method in an embodiment of the present invention. Step S201 also includes the following specific implementation methods.
[0103] Step S2011, controlling the second main battery to perform a charging operation for the backup battery.
[0104] Step S2012: if the remaining power is lower than the preset remaining power, control the second main battery to perform a charging operation for the backup battery.
[0105] In an embodiment of the present invention, the remaining power of the backup battery is compared with a preset remaining power threshold value. If the remaining power is lower than the threshold value, it is determined that charging is required.
[0106] If the backup battery needs to be charged, the second main battery is controlled to perform a charging operation for the backup battery through the charging management module.
[0107] In the embodiment of the present invention, by charging the backup battery in time, it can be ensured that the power level of the backup battery is always maintained at a certain level, thereby extending the service life of the backup battery and reducing the frequency and cost of replacing the battery.
[0108] In traditional camera flashlights, usually only the battery power level is concerned, while the important parameter of the battery discharge rate is ignored. Abnormal discharge rate may be caused by battery aging, damage, excessive load, or incompatibility between the battery and the device. If the abnormal discharge rate is not discovered and handled in time, it may cause problems such as sudden shutdown of the device, battery damage, or degradation of device performance. Based on this, the present invention proposes an optional embodiment.
[0109] Reference Figure 4 , Figure 4 This is a schematic diagram of a specific embodiment after step S103 of the dual-battery power supply switching method in an embodiment of the present invention. Step S103 also includes the following specific implementation methods.
[0110] Step S202, controlling the second main battery to charge the backup battery.
[0111] In an embodiment of the present invention, after switching to the second main battery for power supply, the discharge rate of the second main battery is monitored. The battery current, voltage and other parameters may be monitored, and the discharge rate may be calculated by an algorithm.
[0112] Step S203: if the discharge rate exceeds a preset safety threshold, stop using the backup battery for power supply and supply power through the backup battery.
[0113] If it is detected that the discharge rate of the second main battery is abnormal, the backup battery is switched back to power the camera flashlight.
[0114] In the embodiment of the present invention, by monitoring the discharge rate of the second main battery and switching back to the backup battery for power supply when necessary, it can be ensured that the camera flashlight can work normally at the critical moment and avoid equipment failure caused by battery problems.
[0115] In traditional camera flashlights, usually only the battery power level is concerned, while less consideration is given to the battery power management. Traditional power supply strategies often use a simple power threshold judgment. When the main battery power is lower than a certain level, it directly switches to the backup battery for power supply. This method cannot fully utilize the battery capacity, resulting in premature battery failure. Based on this, the present invention proposes an optional embodiment.
[0116] Step S102 also includes the following specific implementation methods.
[0117] Step S1021: if the first power level is lower than a preset power threshold, the first main battery is controlled to supply power through a preset first power supply, and the backup battery is controlled to supply power through a preset second power supply.
[0118] In the embodiment of the present invention, the power supply power of the first main battery and the backup battery are respectively set according to the preset first power supply power and second power supply power. The power value is preset according to factors such as the power consumption requirement of the camera flashlight, the performance of the battery and the expected battery life.
[0119] The first main battery supplies power to the main functional modules (such as the camera module) of the device according to a preset first power supply, and the backup battery supplies power to other functional modules (such as the lighting module or as an auxiliary power supply) according to a preset second power supply.
[0120] Optionally, the power supply is dynamically adjusted or the power supply strategy is switched according to the change of the battery status or the change of the power consumption requirement of the device. For example, if the power of the first main battery drops rapidly, the power supply of the backup battery is increased or switched to the backup battery power supply mode in advance.
[0121] In the embodiment of the present invention, by presetting different power supply powers, the power supply power can be flexibly adjusted according to the actual power consumption requirement of the camera flashlight, thereby optimizing the use of the battery.
[0122] like Figure 5 , which is a schematic diagram of a terminal device provided in an embodiment of the present invention. The terminal device 5 may include: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as a dual-battery power supply switching program. When the processor 501 executes the computer program 503, the steps in the above-mentioned dual-battery power supply switching embodiments are implemented.
[0123] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502 and executed by the processor 501 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0124] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0125] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0126] The memory 502 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 502 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 502 may also include both an internal storage unit of the terminal device and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0127] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.
[0128] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the dual-battery power supply switching method can be implemented.
[0129] An embodiment of the present invention provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the dual-battery power supply switching method when executing the computer program product.
[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0131] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0132] In the embodiments provided by the present invention, it should be understood that the disclosed terminal devices and methods can be implemented in other ways. For example, the terminal device embodiments described above are only exemplary. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0133] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in each embodiment of the present invention 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.
[0135] If the integrated module / 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0136] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A dual-battery power supply switching method, characterized in that: Applied to camera flashlights, including: detecting a first power level of a first main battery; If the first power level is lower than a preset power threshold, supplying power through a backup battery; If it is detected that the first main battery is replaced by a second main battery, power is supplied by the second main battery, and the backup battery is stopped from being used for power supply.
2. The dual battery power supply switching method according to claim 1, characterized in that: If it is detected that the first main battery is replaced by a second main battery, the step of supplying power through the second main battery and stopping supplying power through the backup battery includes: If it is detected that the first main battery is replaced by a second main battery, detecting a second power level of the second main battery; If the second power level is higher than the power threshold, the second main battery is used for power supply, and the backup battery is stopped for power supply.
3. The dual battery power supply switching method according to claim 1, characterized in that: If the first power level is lower than a preset power threshold, the step of supplying power through a backup battery includes: If the first power level is lower than a preset power threshold, the camera module is powered by the backup battery, and the lighting module is powered by the first main battery and / or the backup battery.
4. The dual battery power supply switching method as claimed in claim 3, characterized in that: After the step of supplying power to the camera module through the backup battery and supplying power to the lighting module through the first main battery if the first power level is lower than a preset power threshold, the method further includes: When a battery replacement instruction is detected, the lighting module is powered by the backup battery, and the first main battery is stopped from being used for power supply. The battery replacement instruction indicates that the first main battery is replaced by the second main battery.
5. The dual battery power supply switching method as claimed in claim 1, characterized in that: After the step of stopping the power supply operation of the backup battery, the method further includes: The second main battery is controlled to perform a charging operation for the backup battery.
6. The dual battery power supply switching method as claimed in claim 5, characterized in that: The step of controlling the second main battery to perform a charging operation for the backup battery comprises: Detecting the remaining power of the backup battery; If the remaining power is lower than a preset remaining power, the second main battery is controlled to perform the charging operation for the backup battery.
7. The dual battery power supply switching method as claimed in claim 1, characterized in that: After the step of supplying power through the second main battery and stopping supplying power through the backup battery if it is detected that the first main battery is replaced by the second main battery, the method further includes: detecting a discharge rate of the second main battery; If the discharge rate exceeds a preset safety threshold, the backup battery is stopped from being used for power supply, and power is supplied by the backup battery instead.
8. The dual battery power supply switching method according to any one of claims 1 to 7, characterized in that: If the first power level is lower than a preset power threshold, the step of supplying power through a backup battery includes: If the first power level is lower than a preset power threshold, the first main battery is controlled to supply power through a preset first power supply, and the backup battery is controlled to supply power through a preset second power supply.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the dual-battery power supply switching method as claimed in any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the dual-battery power supply switching method as claimed in any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Equipment control method and device, terminal equipment, camera equipment and storage medium
CN121418652A