Power management method and device for electronic equipment with holder module, equipment and medium

By detecting the target object in the electronic device with gimbal module and managing the power supply according to the battery status, the problem of high power consumption is solved, efficient power management and low power consumption are achieved, and the equipment usage performance and user experience are improved.

CN120376784APending Publication Date: 2025-07-25DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510471252.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The existing electronic equipment with gimbal module lacks effective power management solutions, resulting in large power consumption, high power consumption and poor battery performance, making it difficult to meet the equipment's efficient use needs.

Method used

By detecting events within the field of view of the electronic device, the target object is determined, and the current power supply battery is determined based on the number of batteries and the battery capacity, the camera module and the gimbal module power are turned on, and the corresponding actions are controlled to monitor the target object and reduce the gimbal rotation and power consumption.

Benefits of technology

While maintaining the performance of the gimbal, the power consumption of the equipment is reduced, the power consumption cost is reduced, the power management efficiency is improved, the battery life time is extended, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120376784A_ABST
    Figure CN120376784A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power management, and discloses a power management method and device for electronic equipment with a holder module, equipment and a medium, and the method comprises the steps: detecting an event in a visual field range of the electronic equipment, and determining a target object based on the event; determining the number of batteries and the electric quantity of the batteries of a battery module in the electronic equipment; determining a current power supply battery based on the battery number and the battery electric quantity; determining a power supply mode of the electronic equipment based on the current electric quantity of the power supply battery; a camera module power supply and a holder module power supply of the electronic equipment are correspondingly switched on based on the power supply mode, and the camera module and the holder module are controlled to execute corresponding actions after the camera module and the holder module are started so as to monitor a target object, so that effective power management can be performed on the electronic equipment with the holder; rotation of the holder is reduced as much as possible while certain performance of the holder is kept, so that power consumption of equipment is greatly reduced, and electric energy of the equipment is further saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power management, and particularly to a power management method, device, equipment and medium for an electronic device with a pan-tilt module. Background Art

[0002] In existing electronic devices such as smart door locks, due to their increasing number of functional components, such as induction modules, camera modules, radar modules, etc., the power consumption of the door locks is also increasing. However, the battery power of the door locks is limited, and a large number of power-consuming functions require charging the lithium battery of the door lock or replacing dry batteries, which seriously affects the user experience of using the door lock. In addition, for a smart door lock containing at least one pan-tilt module, such as an indoor pan-tilt or an outdoor pan-tilt, it rotates by following the rotation of a target object to achieve real-time tracking of the movement trajectory of the target object. The above operations of the pan-tilt module are very power-consuming, and the existing technology often lacks a corresponding power management solution.

[0003] In summary, since the power management of an electronic device with a pan-tilt module is an important link in the control of each function of the device, there is an urgent need for an efficient power management solution to achieve a large amount of power savings while maintaining a certain performance of the electronic device with a pan-tilt module, thereby reducing the number of lithium battery charges or dry battery replacements, greatly extending the service life of the lithium battery, further reducing the user's power consumption cost, and increasing the user experience. Summary of the Invention

[0004] In view of this, the present invention provides a power management method, device, equipment and medium for an electronic device with a pan-tilt module to solve the problem that the existing electronic device with a pan-tilt module lacks effective management of the power supply, resulting in large power consumption, high power consumption cost, poor battery performance and power management efficiency, and being difficult to meet the high-efficiency use requirements of the device.

[0005] In a first aspect, the present invention provides a power management method for an electronic device with a pan-tilt module, the method comprising:

[0006] Detect an event within the field of view of the electronic device and determine a target object based on the event;

[0007] Determine the number and power of the batteries in the battery module of the electronic device;

[0008] Determine the current power supply battery based on the number and power of the batteries;

[0009] Determine the power supply mode of the electronic device based on the power of the current power supply battery;

[0010] Correspondingly turn on the power supplies of the camera module and the pan-tilt module of the electronic device based on the power supply mode, and control the camera module and the pan-tilt module to perform corresponding actions after the camera module and the pan-tilt module are started to monitor the target object.

[0011] The present invention aims to perform efficient power management on an electronic device with a pan-tilt module, that is, to detect events in real time within the visual range of the electronic device to determine the target object to be monitored, and after the target object is determined, determine the number of batteries and the battery power of the battery module in the electronic device, determine the current power supply battery and power supply mode of the device based on the number of batteries and the battery power, and connect the power supply of the camera module and the pan-tilt module of the electronic device according to different power supply modes, and control the camera module and the pan-tilt module to perform corresponding actions after the camera module and the pan-tilt module are started to monitor the target object, which can reduce the rotation of the pan-tilt as much as possible while maintaining certain performance of the pan-tilt, thereby reducing the power consumption of the device, further reducing the power consumption cost of the device, helping to improve the management efficiency of the power supply, and meeting the high-efficiency use requirements of the device.

[0012] In an alternative embodiment, determining the current power supply battery based on the number of batteries and the battery power includes:

[0013] When the number of batteries is 1, determine the corresponding single battery in the battery module as the current power supply battery;

[0014] When the number of batteries is greater than 1, determine the current corresponding to each battery in the battery module respectively, and determine the current power supply battery based on the current corresponding to each battery.

[0015] The present invention determines the current power supply battery through the actual state of each battery in the battery module of the electronic device and uses it to supply power to each functional component of the device, which can effectively improve the battery usage performance of the device, thereby ensuring the stable operation of each module of the device and further enhancing the user's device usage experience.

[0016] In an alternative embodiment, determining the current corresponding to each battery in the battery module respectively and determining the current power supply battery based on the current corresponding to each battery includes:

[0017] Calculate the total current of the battery module;

[0018] Determine whether the total current is less than a preset current;

[0019] If the total current is not less than the preset current, determine the entire battery module as the current power supply battery, and control each battery in the battery module to perform balanced discharge to supply power to the camera module and the pan-tilt module;

[0020] If the total current is less than the preset current, select the battery with the largest battery power in the battery module and whose power is greater than the second threshold as the current power supply battery until the current power of the current power supply battery is less than the second threshold. Then, re-obtain the current power of other batteries in the battery module and select the battery with the largest battery power and whose power is greater than the second threshold as the current power supply battery. When the current power of all batteries in the battery module is less than the second threshold, a charging reminder is given and the electronic device is turned off.

[0021] When the number of batteries in the battery module is greater than 1, the present invention correspondingly designs a determination process for the magnitude of the total current of the battery module and the preset current, and selects a corresponding battery power supply scheme according to the determination result, which can provide a comprehensive and efficient device power supply mode, thereby improving the usage performance of each battery of the device and greatly ensuring the stable operation of each module of the device.

[0022] In an alternative embodiment, when the number of batteries is greater than 1, the power management method of the electronic device with a pan-tilt module further includes:

[0023] Select the battery with the largest battery capacity in the battery module as the current power supply battery, and at the same time use the current power supply battery to charge other batteries in the battery module;

[0024] When the current power of the current power supply battery is less than the second threshold, re-select a battery whose power of any other battery in the battery module is greater than the second threshold as the current power supply battery, and give a charging reminder. When the current power of all batteries in the battery module is less than the second threshold, a charging reminder is given and the electronic device is turned off.

[0025] When the number of batteries in the battery module is greater than 1, the present invention also correspondingly designs a power management process in which while the large-capacity battery inside the battery module supplies power to each module of the device, the large-capacity battery is also used to charge other batteries in the battery module. It can rationally utilize the battery power according to the actual performance of the device battery module, further saving the power consumption of the device and helping to improve the power management efficiency of the device.

[0026] In an alternative embodiment, the power supply mode includes a high-power mode and a low-power mode; determining the power supply mode of the electronic device based on the power of the current power supply battery includes:

[0027] If the power of the current power supply battery is not less than the first threshold, it is determined that the electronic device executes the high-power mode;

[0028] If the power of the current power supply battery is between the first threshold and the second threshold, it is determined that the electronic device executes the low-power mode and a charging reminder is given;

[0029] If the power of the current power supply battery is less than the second threshold, a charging reminder is given and the electronic device is turned off.

[0030] According to the determination of the actual power of the current power supply battery and different set thresholds, the present invention can hierarchically determine the current power supply mode of the electronic device, and control the device to perform corresponding operations to match the corresponding power supply mode, which can reduce the rotation of the pan-tilt as much as possible while maintaining certain performance of the pan-tilt, thereby greatly reducing the power consumption of the device, and further saving the electric energy of the device.

[0031] In an optional embodiment, when the power supply mode is the high-power mode, the power supplies of the camera module and the pan-tilt module of the electronic device are correspondingly turned on based on the power supply mode, and after the camera module and the pan-tilt module are started, the camera module and the pan-tilt module are controlled to perform corresponding actions, including:

[0032] Turn on the power supplies of the camera module and the pan-tilt module of the electronic device, and after the camera module and the pan-tilt module are started, control the pan-tilt module to rotate to aim at the target object;

[0033] When the position where the target object is located is not within the limit range of the pan-tilt, control the pan-tilt module to perform a homing operation and then turn off the power supply of the pan-tilt module of the electronic device to turn off the pan-tilt module.

[0034] When the current battery power of the electronic device is not less than the first threshold, the present invention executes the high-power mode, that is, turns on the power supplies of the camera module and the pan-tilt module of the electronic device at the same time, controls the pan-tilt module to rotate to aim at the target object after the camera module and the pan-tilt module are started, and turns off the pan-tilt module when the position where the target object is located is not within the limit range of the pan-tilt, which can reduce the rotation of the pan-tilt as much as possible on the premise of maintaining certain performance of the pan-tilt, thereby reducing the power consumption of the pan-tilt, and further effectively saving the electric energy of the device, realizing the efficient management of the device power supply.

[0035] In an optional embodiment, when the power supply mode is the low-power mode, the power supplies of the camera module and the pan-tilt module of the electronic device are correspondingly turned on based on the power supply mode, and after the camera module and the pan-tilt module are started, the camera module and the pan-tilt module are controlled to perform corresponding actions, including:

[0036] Turn on the power supply of the camera module of the electronic device, and identify the target object after the camera module is started;

[0037] When the camera module identifies the target object, turn on the power supply of the pan-tilt module of the electronic device, and after the pan-tilt module is started, detect the corresponding target position information of the target object at the current position;

[0038] Determine the monitoring range angle corresponding to the current position of the pan-tilt module based on the target position information;

[0039] Determine the monitoring center angle based on the monitoring range angle and a preset ratio. Respectively determine the monitoring center area and the monitoring edge area according to the monitoring center angle and the monitoring range angle, and use the monitoring center area and the monitoring edge area as the target monitoring range of the pan-tilt module;

[0040] Judge the relationship between the target position information and the target monitoring range to control the pan-tilt module to perform corresponding actions; among them, if the target position information is within the monitoring center area, control the pan-tilt module to remain stationary; if the target position information is within the monitoring edge area, control the pan-tilt module to rotate to aim at the target object according to the target position information, and after the pan-tilt module rotates to the position where the target object is located, re-divide the target monitoring range, and repeat the step of detecting the corresponding target position information of the target object at the current position until the target position information of the target object is not within the target monitoring range of the pan-tilt module, control the pan-tilt module to perform a homing operation and then disconnect the power supply of the pan-tilt module of the electronic device to turn off the pan-tilt module.

[0041] When the current battery power of the electronic device is between the first threshold and the second threshold, the present invention executes the low power mode, that is, first turn on the power supply of the camera module of the electronic device, and turn on the power supply of the pan-tilt module of the electronic device when the camera module recognizes the target object; when the pan-tilt module is started, for energy saving considerations, use the position where the target object is currently located to determine the corresponding target monitoring range including the monitoring center area and the monitoring edge area, and control the pan-tilt module to perform corresponding actions in different areas respectively. Specifically, when the target position information is within the monitoring center area, control the pan-tilt to remain stationary, and when the target position information is within the monitoring edge area, control the pan-tilt to rotate to track the target object in real time. This energy-saving method can reasonably coordinate the work of each functional module of the device in combination with the actual power of the electronic device. It can not only reduce the rotation of the pan-tilt as much as possible on the premise of maintaining certain performance of the pan-tilt, thereby reducing the power consumption of the pan-tilt, further effectively saving the power consumption of the device, but also meet the high-efficiency use requirements of the device.

[0042] In a second aspect, the present invention provides a power management device for an electronic device with a pan-tilt module, and the device includes:

[0043] A detection module, configured to detect events within the field of view of the electronic device and determine a target object based on the events;

[0044] A first determination module, configured to determine the number of batteries and the battery power of the battery module in the electronic device;

[0045] A second determination module, configured to determine the current power supply battery based on the number of batteries and the battery power;

[0046] A third determination module, configured to determine the power supply mode of the electronic device based on the power of the current power supply battery;

[0047] A monitoring module, configured to turn on the power supplies of the camera module and the pan-tilt module of an electronic device according to the power supply mode, and control the camera module and the pan-tilt module to perform corresponding actions after the camera module and the pan-tilt module are started, so as to monitor a target object.

[0048] The power management device of the electronic device with a pan-tilt module according to the present invention detects events in real time within the visual field of the electronic device to determine the target object to be monitored, and determines the number of batteries and the battery power of the battery module in the electronic device after the target object is determined. The current power supply battery and the power supply mode of the device are determined based on the number of batteries and the battery power, and the power supplies of the camera module and the pan-tilt module of the electronic device are turned on according to different power supply modes. After the camera module and the pan-tilt module are started, the camera module and the pan-tilt module are controlled to perform corresponding actions to monitor the target object. It can reduce the rotation of the pan-tilt as much as possible while maintaining certain performance of the pan-tilt, thereby reducing the power consumption of the device, further reducing the power consumption cost of the device, helping to improve the management efficiency of the power supply, and meeting the high-efficiency usage requirements of the device.

[0049] In a third aspect, the present invention provides an electronic device, which includes: a camera module, a pan-tilt module, a memory, and a processor; wherein, the memory and the processor are communicatively connected to each other, and the memory stores computer instructions. The processor executes the computer instructions to execute a power management method for an electronic device with a pan-tilt module according to the first aspect or any corresponding embodiment thereof.

[0050] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute a power management method for an electronic device with a pan-tilt module according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0052] Figure 1 is a schematic flowchart of a power management method for an electronic device with a pan-tilt module according to an embodiment of the present invention;

[0053] Figure 2 is a schematic flowchart of another power management method for an electronic device with a pan-tilt module according to an embodiment of the present invention;

[0054] Figure 3It is a circuit block diagram of the power management system of the pan-tilt intelligent door lock;

[0055] Figure 4 It is a schematic flow diagram of the pan-tilt power management;

[0056] Figure 5 It is a schematic diagram of the monitoring area of the pan-tilt camera;

[0057] Figure 6 It is a schematic diagram of the re-formed monitoring area of the pan-tilt camera;

[0058] Figure 7 It is a schematic flow diagram of the multi-battery working mode;

[0059] Figure 8 It is a schematic flow diagram of the multi-battery charging;

[0060] Figure 9 It is a block diagram of the power management device of the electronic device with a pan-tilt module according to an embodiment of the present invention;

[0061] Figure 10 It is a schematic structural diagram of the electronic device according to an embodiment of the present invention. Specific embodiments

[0062] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0063] An embodiment of the present invention provides an embodiment of a power management method for an electronic device with a pan-tilt module. 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 the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from here.

[0064] In this embodiment, a power management method for an electronic device with a pan-tilt module is provided, Figure 1 which is a schematic flow diagram of the power management method for an electronic device with a pan-tilt module according to an embodiment of the present invention. As Figure 1 shown, the process includes the following steps:

[0065] Step S101, detect an event within the field of view of the electronic device and determine a target object based on the event.

[0066] It should be noted that in this embodiment, the specific type of the electronic device and the event detection method within the visual range of the electronic device are not specifically limited, and can be adaptively adjusted according to actual needs. In addition, the target object in this embodiment refers to any object that can be sensed and recognized within a certain visual range of the electronic device, and its specific sensing and recognition method is not limited here and is adaptively set according to the functional composition (also called functional module) of the actual device. For example, assuming the electronic device is an intelligent door lock, a radar or infrared device installed on the intelligent door lock is used to sense and recognize the target object, and then the corresponding target object to be monitored is determined; or a camera module installed on the intelligent door lock is used to capture images within a certain visual range in front of the door in real time, and the target object to be monitored is determined according to the image analysis result, which is only for illustrative purposes.

[0067] Step S102: Determine the number of batteries and the battery power in the battery module of the electronic device.

[0068] In this embodiment, the method for determining the number of each battery and the performance data in the battery module of the device can refer to the conventional data acquisition methods in the art and is not specifically limited here.

[0069] Step S103: Determine the current power supply battery based on the number of batteries and the battery power.

[0070] In this embodiment, the current power supply battery is used to supply power to the actual functional components of the electronic device, such as supplying power to the camera module set in the electronic device.

[0071] Step S104: Determine the power supply mode of the electronic device based on the power of the current power supply battery.

[0072] In this embodiment, the power supply mode is the corresponding operation mode determined based on the actual power of the current power supply battery corresponding to the electronic device, and its specific content can be adaptively adjusted according to the actual project requirements. For example, the power supply mode includes an energy-saving mode and a normal mode; among them, the energy-saving mode is to divide the monitored central area and edge area according to the position of the target object, and when the target object moves to the edge area, control the pan-tilt to rotate and re-divide the monitoring area according to the latest position of the target, and cycle in turn until the pan-tilt performs a homing operation when the monitoring of the target object reaches the limit range of the pan-tilt; the normal mode refers to the mode in which the pan-tilt module always follows the target object to rotate so that the target object is always in the center position of the field of view.

[0073] It should be noted that the above two power supply modes of the electronic device can also be manually set according to the actual needs of the user. For example, the user can make the device execute the energy-saving mode or the normal mode by performing the corresponding manual selection operation on the device.

[0074] Step S105: Based on the power supply mode, turn on the power supplies of the camera module and the pan-tilt module of the electronic device respectively. After the camera module and the pan-tilt module are started, control the camera module and the pan-tilt module to perform corresponding actions to monitor the target object.

[0075] The power management method of the electronic device with a pan-tilt module according to the embodiment of the present invention aims to perform efficient power management on the electronic device with a pan-tilt module, and can minimize the pan-tilt rotation as much as possible while maintaining certain performance of the pan-tilt to monitor the target object, thereby reducing the power consumption of the device, further reducing the power consumption cost of the device, helping to improve the power management efficiency, and meeting the high-efficiency usage requirements of the device.

[0076] In this embodiment, a power management method for an electronic device with a pan-tilt module is provided. Figure 2 It is a schematic flowchart of another power management method for an electronic device with a pan-tilt module according to the embodiment of the present invention. As Figure 2 shown, this process includes the following steps:

[0077] Step S201: Detect events within the field of view of the electronic device, and determine the target object based on the events. For details, please refer to Figure 1 Step S101 of the embodiment shown, which will not be elaborated here.

[0078] Step S202: Determine the number of batteries and the battery power of the battery module in the electronic device. For details, please refer to Figure 1 Step S102 of the embodiment shown, which will not be elaborated here.

[0079] Step S203: Determine the current power supply battery based on the number of batteries and the battery power.

[0080] Specifically, the above Step S203 includes:

[0081] Step S2031: When the number of batteries is 1, determine the corresponding single battery in the battery module as the current power supply battery.

[0082] It should be noted that the detection method of the actual number of batteries in the battery module in this embodiment is not limited here and can be adaptively determined according to relevant methods in the art. For example, for a battery module equipped with a battery management system, the current available battery situation in the battery module can be known by querying this system; or by measuring the total voltage of the battery module and then combining the nominal voltage of a single battery to estimate the number of batteries, which is only for illustrative purposes.

[0083] Step S2032: When the number of batteries is greater than 1, determine the current corresponding to each battery in the battery module respectively, and determine the current power supply battery based on the current corresponding to each battery.

[0084] In the embodiment of the present invention, the current power supply battery is determined according to the actual states of the batteries in the battery module of the electronic device, and it is used to supply power to each functional component of the device, which can effectively improve the battery usage performance of the device, thereby ensuring the stable operation of each module of the device and further enhancing the user experience of using the device.

[0085] In this embodiment, in the above step S2032, determining the current corresponding to each battery in the battery module respectively and determining the current power supply battery based on the current corresponding to each battery includes:

[0086] Step A1, calculating the total current of the battery module.

[0087] Step A2, judging whether the total current is less than the preset current.

[0088] In this embodiment, the specific value of the preset current is adaptively adjusted according to the actual project requirements. For example, the preset current is greater than the minimum current for supplying power to the pan-tilt module and the camera module in the electronic device, which is only for illustrative purposes.

[0089] Step A3, if the total current is not less than the preset current, determining the entire battery module as the current power supply battery and controlling each battery in the battery module to perform balanced discharge to supply power to the camera module and the pan-tilt module.

[0090] It should be noted that the balanced discharge of the battery refers to the process of making the discharge states of the individual batteries in the battery pack as consistent as possible through certain technical means during the charging and discharging process of the battery pack. This process can also be called: the equal current mode. It should be explained that for a battery module including battery 1 to battery N, by controlling all batteries to supply power simultaneously and adjusting the current of battery 1 to battery N to be in equal current, that is, in a state of evenly sharing the load current, the battery usage performance can be optimized to a certain extent, thereby extending the service life of the device.

[0091] Step A4, if the total current is less than the preset current, screening out the battery with the largest battery power and whose power is greater than the second threshold from the battery module as the current power supply battery. Until the current power of the current power supply battery is less than the second threshold, re-obtaining the current power of other batteries in the battery module and screening out the battery with the largest battery power and whose power is greater than the second threshold from them as the current power supply battery; until the current power of all batteries in the battery module is less than the second threshold, giving a charging reminder and turning off the electronic device.

[0092] It should be noted that the specific value of the second threshold in this embodiment can be adjusted adaptively according to the actual project requirements and will not be specifically limited here. It should be noted that after the electronic device executes the charging reminder and shuts down the electronic device, the device can be charged using an external power supply; among them, the specific content of the external power supply can be adjusted adaptively according to actual needs. For example, for a lithium battery, it can be charged using a mobile power supply or other power generation devices and the corresponding power adapter, which is only for illustrative purposes.

[0093] In this embodiment, the power supply method of the battery module in step A4 can be called the "1+N" redundancy mode, that is, one battery in the battery module works normally, and the other batteries are used as redundant backup power supplies; when the powered battery fails or has a low voltage, the redundant battery will automatically take over to ensure uninterrupted power supply during the operation of the device.

[0094] In the embodiment of the present invention, when the number of batteries in the battery module is greater than 1, a determination process for the magnitude of the total current of the battery module and a preset current is designed accordingly, and a corresponding battery power supply scheme is selected according to the determination result, which can provide a comprehensive and efficient device power supply mode, thereby improving the usage performance of each battery of the device and greatly ensuring the stable operation of each module of the device.

[0095] It should be noted that in this embodiment, while using the currently powered battery determined from the battery module to supply power to the device, the charging design for each of the other batteries in the battery module is also considered, aiming to minimize the cumbersome operation of replacing the battery as much as possible, thereby improving the overall working efficiency of the battery. Therefore, when the number of batteries is greater than 1, the power management method of the electronic device with a pan-tilt module in this embodiment further includes:

[0096] Step B1, select the battery with the largest battery capacity in the battery module as the currently powered battery, and at the same time use the currently powered battery to charge the other batteries in the battery module.

[0097] In this embodiment, the specific content of using the currently powered battery to charge the other batteries in the battery module is not specifically limited and can be adjusted adaptively according to actual needs. For example, using the currently powered battery to charge all the other batteries in the battery module, or charging the corresponding batteries in the battery module whose corresponding battery levels are less than the second threshold, or charging the corresponding batteries in the battery module whose corresponding capacities are less than the corresponding set capacity threshold, which is only for illustrative purposes.

[0098] Step B2, when the current battery level of the currently powered battery is less than the second threshold, re-select a battery in the battery module whose battery level of any other battery is greater than the second threshold as the currently powered battery and give a charging reminder; until the current battery levels of all the batteries in the battery module are less than the second threshold, give a charging reminder and shut down the electronic device.

[0099] It should be noted that the charging reminder when the current battery level of the current power supply battery is less than the second threshold and the corresponding content of the charging reminder when the current battery levels of all batteries in the battery module are less than the second threshold in this embodiment can be adaptively set according to actual needs, such as setting the same reminder content or performing corresponding hierarchical reminders according to the different battery levels of the current device.

[0100] When the number of batteries in the battery module in the embodiment of the present invention is greater than 1, a power management process is also correspondingly designed to supply power to each module of the device through the large-capacity battery inside the battery module, and at the same time, use the large-capacity battery to charge other batteries in the battery module, which can reasonably utilize the battery power according to the actual performance of the device battery module, further saving the power consumption of the device and helping to improve the power management efficiency of the device.

[0101] Step S204, determine the power supply mode of the electronic device based on the battery level of the current power supply battery.

[0102] In this embodiment, the power supply modes include a high battery level mode and a low battery level mode. It should be explained that the high battery level mode is the conventional mode mentioned above. Considering the need for target precise tracking, it mobilizes the camera module and the pan-tilt module to work together to perform real-time tracking on the target object, which not only greatly guarantees the tracking accuracy of the target and meets the tracking task requirements, but also maximizes the coordination of the device's power resources, thereby improving the user experience; the low battery level mode is the energy-saving mode mentioned above. Considering the energy saving of the device power supply, a target monitoring range including a monitoring center area and a monitoring edge area is correspondingly designed, and the pan-tilt module is respectively controlled to perform corresponding actions in different areas, which can minimize the pan-tilt rotation as much as possible while maintaining a certain performance of the pan-tilt, thereby effectively reducing the power consumption of the pan-tilt and further effectively saving the power of the device.

[0103] In this embodiment, the above step S204 includes:

[0104] Step S2041, if the battery level of the current power supply battery is not less than the first threshold, determine that the electronic device executes the high battery level mode.

[0105] In this embodiment, the specific value of the first threshold is adaptively adjusted according to actual needs.

[0106] Step S2042, if the battery level of the current power supply battery is between the first threshold and the second threshold, determine that the electronic device executes the low battery level mode and give a charging reminder.

[0107] Step S2043, if the battery level of the current power supply battery is less than the second threshold, give a charging reminder and turn off the electronic device.

[0108] In this embodiment, for the content related to the charging reminder of the device, please refer to the previous text and will not be repeated here.

[0109] In the embodiment of the present invention, by determining the actual power of the current power supply battery and the magnitudes of different set thresholds, the power supply mode of the electronic device can be determined hierarchically, and the device can be controlled to perform corresponding operations to match the corresponding power supply mode, which can reduce its rotation as much as possible while maintaining certain performance of the gimbal, thereby greatly reducing the power consumption of the device and then saving the electrical energy of the device.

[0110] Step S205: Based on the power supply mode, turn on the power supplies of the camera module and the gimbal module of the electronic device, and after the camera module and the gimbal module are started, control the camera module and the gimbal module to perform corresponding actions to monitor the target object.

[0111] It should be noted that since the power supply modes of this embodiment include two types: high power mode and low power mode, when the power supply mode is the high power mode, in the above step S205, turning on the power supplies of the camera module and the gimbal module of the electronic device based on the power supply mode, and after the camera module and the gimbal module are started, controlling the camera module and the gimbal module to perform corresponding actions includes:

[0112] Step C1: Turn on the power supplies of the camera module and the gimbal module of the electronic device, and after the camera module and the gimbal module are started, control the gimbal module to rotate to aim at the target object.

[0113] Step C2: When the position where the target object is located is not within the gimbal limit range, control the gimbal module to perform a homing operation and then turn off the power supply of the gimbal module of the electronic device to turn off the gimbal module.

[0114] In this embodiment, the gimbal limit range represents the limit values of the rotation angles corresponding to the rotation of the gimbal in the horizontal and vertical directions, and its specific values are adjusted based on the actual gimbal model and design adaptability.

[0115] It should be noted that in this embodiment, the specific content of the homing operation of the gimbal module is not limited in detail. For example, control the gimbal module to return to the initial position and then turn off the power supply of the gimbal module; or, turn off the power supply of the gimbal module immediately at the current position of the gimbal module; or, control the gimbal module to perform corresponding operations according to the current battery level of the device. Assume that the current battery level of the electronic device can support the gimbal to return to the initial position, then control the gimbal module to return to the initial position and then turn off the power supply of the gimbal module; assume that the current battery level of the electronic device is not enough to support the gimbal to return to the initial position, then immediately turn off the power supply of the gimbal module, or determine the position where the gimbal returns according to the current battery level of the electronic device, and turn off the power supply of the gimbal module immediately after controlling the gimbal to rotate to this position, which is only for illustrative purposes.

[0116] In an embodiment of the present invention, when the current battery power of the electronic device is not less than a first threshold, a high battery power mode is executed, that is, the power supplies of the camera module and the gimbal module of the electronic device are turned on simultaneously. After the camera module and the gimbal module are started, the gimbal module is controlled to rotate to aim at the target object, and when the position where the target object is located is not within the limit range of the gimbal, the gimbal module is turned off, which can reduce the rotation of the gimbal as much as possible while maintaining certain performance of the gimbal, thereby reducing the power consumption of the gimbal, and further effectively saving the electric energy of the device, realizing efficient management of the device power supply.

[0117] In this embodiment, when the power supply mode is the low battery power mode, in step S205, the power supplies of the camera module and the gimbal module of the electronic device are correspondingly turned on based on the power supply mode, and after the camera module and the gimbal module are started, the camera module and the gimbal module are controlled to perform corresponding actions, including:

[0118] Step D1, turn on the power supply of the camera module of the electronic device, and identify the target object after the camera module is started.

[0119] Step D2, when the camera module identifies the target object, turn on the power supply of the gimbal module of the electronic device, and after the gimbal module is started, detect the corresponding target position information of the target object at the current position.

[0120] In this embodiment, the specific detection method of the target position information is not limited herein and is obtained based on the conventional positioning methods in the art.

[0121] Step D3, determine the monitoring range angle corresponding to the current position of the gimbal module based on the target position information.

[0122] Step D4, determine the monitoring center angle based on the monitoring range angle and a preset ratio, determine the monitoring center area and the monitoring edge area according to the monitoring center angle and the monitoring range angle respectively, and use the monitoring center area and the monitoring edge area as the target monitoring range of the gimbal module.

[0123] In this embodiment, the specific value of the preset ratio is adaptively adjusted based on actual requirements. For example, the preset ratio is 20%, which is only for illustrative purposes.

[0124] It should be noted that the target monitoring range of the gimbal module in this embodiment refers to the corresponding area that the gimbal can monitor, which is related to the properties of the gimbal itself and can be adaptively determined according to the actual model of the gimbal.

[0125] Step D5: Determine the relationship between the target position information and the target monitoring range to control the pan-tilt module to perform corresponding actions. Specifically, if the target position information is within the monitoring center area, control the pan-tilt module to remain stationary. If the target position information is within the monitoring edge area, control the pan-tilt module to rotate to aim at the target object according to the target position information. After the pan-tilt module rotates to the position where the target object is located, re-divide the target monitoring range, and repeat the step of detecting the corresponding target position information of the target object at the current position until the target position information of the target object is not within the target monitoring range of the pan-tilt module. Then, control the pan-tilt module to perform a homing operation and disconnect the power supply of the pan-tilt module of the electronic device to turn off the pan-tilt module.

[0126] In the embodiment of the present invention, when the current battery power of the electronic device is between the first threshold and the second threshold, the low power mode is executed. That is, first turn on the power supply of the camera module of the electronic device, and turn on the power supply of the pan-tilt module of the electronic device when the camera module recognizes the target object. After the pan-tilt module is started, for energy saving considerations, use the position where the target object is currently located to determine the corresponding target monitoring range including the monitoring center area and the monitoring edge area, and control the pan-tilt module to perform corresponding actions in different areas. Specifically, when the target position information is within the monitoring center area, control the pan-tilt to remain stationary, and when the target position information is within the monitoring edge area, control the pan-tilt to rotate to track the target object in real time. This energy-saving method can reasonably coordinate the work of each functional module of the device in combination with the actual power of the electronic device. It can not only reduce the rotation of the pan-tilt as much as possible while maintaining certain performance of the pan-tilt, thereby reducing the power consumption of the pan-tilt, further effectively saving the power consumption of the device, but also meet the high-efficiency use requirements of the device.

[0127] In a specific embodiment, the electronic device with a pan-tilt module is an intelligent door lock with a pan-tilt module. Accordingly, a power management system for the pan-tilt intelligent door lock is proposed to perform corresponding processing according to different task requirements at the lock end, aiming to save power consumption to the greatest extent. Specifically, apply this system to the intelligent door lock with a pan-tilt module. Among them, the circuit block diagram of the power management system for the pan-tilt intelligent door lock is as Figure 3 shown. By Figure 3It can be seen that the overall circuit includes multiple batteries (i.e., Battery 1 to Battery N, where N≥2), a power management module, a sensing module, a pan-tilt module, a main control module, a camera module, an identification module, and other modules; among them, the sensing module includes but is not limited to radar sensing, infrared sensing, etc., and is used to sense and identify target objects; the pan-tilt module includes but is not limited to a single pan-tilt module, a dual pan-tilt module; the identification module includes but is not limited to face recognition, fingerprint recognition, palm vein recognition, finger vein recognition, facial vein recognition, and is used for identity authentication of the door lock; other modules include but are not limited to a motor module, a voice module, a button module, a Bluetooth module, a WIFI module. This module belongs to the common function modules of the door lock, and its specific functions can be known by referring to relevant content in the art.

[0128] It should be noted that the power management module is used to control the power-on and power-off conditions of each module respectively (for example, Figure 3 the power management module in it can be connected to the switch communication signals of each functional module of the door lock, such as the sensing module, the pan-tilt module, etc., and by controlling this signal, the power-on and power-off control of the corresponding module can be realized). The door lock power management solution of this application is different from the situation in the existing solution where all modules are powered on as soon as the battery is plugged in. Instead, it makes targeted settings for the power-on, power-off, and rotation of the pan-tilt, so that the door lock can perform different processes according to actual functional requirements (such as tracking, energy saving, etc.), thereby achieving effective energy management; specifically, through the power management module of this embodiment, the power-on timing of each functional module of the door lock can be optimized to the greatest extent, and the power management module can effectively manage the power of each module, thus greatly saving the electric energy of the door lock.

[0129] In a specific embodiment, the power management system of the aforementioned pan-tilt intelligent door lock is used for power management, and the detailed process can refer to Figure 4 the schematic diagram of the pan-tilt power management process. The power management module optimizes the management of the pan-tilt power according to the battery power, so that the power of the door lock can not only meet the different task requirements of users, but also save electric energy very little, thereby reducing losses and increasing the battery life. Specifically, by Figure 4It can be known that when the power management module recognizes an object through the sensing module (such as radar, infrared, etc.), it determines whether the battery power is greater than the first threshold. If it is greater, the power management module turns on the power of the camera module to start the camera module; at the same time, it turns on the power of the pan-tilt module to start the pan-tilt module. Then, it immediately makes the pan-tilt module enter the tracking working state and tracks the object monitored by the radar or camera in real time. During this process, it is necessary to control the target object to always be in the center position (i.e., the center position of the display screen, and the pan-tilt rotates with the movement of the target object). When the target object leaves the limit monitoring area (i.e., the pan-tilt rotates to the limit position, also known as the monitoring blind area of the pan-tilt), the pan-tilt returns to its original position and the pan-tilt module is turned off. If it is determined that the battery power is less than the first threshold, the power management module first turns on the power of the camera module to start the camera module. After the camera module recognizes the target object, the power management module then turns on the power of the pan-tilt module to start the pan-tilt module to perform corresponding tracking on the target. Specifically, ① when the target object is within the first area (i.e., the monitoring center area), the pan-tilt remains stationary; ② when the target object leaves the first area and enters the second area (i.e., the monitoring edge area), the pan-tilt rotates to align with the position of the target object. At this time, the pan-tilt remains stationary again. The first area and the second area are re-formed, and the angles of the first area and the second area remain unchanged. And so on, until the pan-tilt rotates to the limit position and the target object leaves the limit monitoring range, and the pan-tilt returns to its original position and the pan-tilt is turned off. It should be noted that the tracking working state of the pan-tilt refers to the state where the pan-tilt module immediately starts working and tracks the target object monitored by the radar or camera in real time.

[0130] In a specific embodiment, Figure 5 is a schematic diagram of the monitoring area of the pan-tilt camera. As can be seen from Figure 5 it, the center of the pan-tilt monitoring range, i.e., the first area, is an area formed by an angle a; the second area refers to the other areas within the pan-tilt monitoring range except the first area. During the rotation of the pan-tilt, when the door lock meets the energy-saving requirements, if the target object has been moving within the first area, the pan-tilt is controlled to remain stationary. Once the target object exceeds the first area, the pan-tilt rotates until it reaches the position of the target object (i.e., the center line this time = the boundary position of the previous area), so that the target object is again within the first area, and this cycle continues until the target object leaves the limit monitoring range.

[0131] In this embodiment, referring to Figure 5For detailed description by way of example, assume that when the camera pan-tilt does not rotate, all the areas it can monitor are the corresponding areas of the monitoring range angle b; the first area in the figure is the area formed by the angle a centered on the monitoring range, where a is the central angle of b×60%; the second area is the area other than the first area within the monitoring range, that is, the angle of b - a. It should be noted that the pan-tilt in this embodiment has a tracking function. For example, within the monitoring area, the target object is always kept at the center of the screen. In this way, when a person takes a step, the pan-tilt follows; when a person walks back and forth, the pan-tilt keeps rotating, which is very power-consuming. Therefore, after the energy-saving function is turned on, the number of rotations of the pan-tilt is reduced; that is, as long as a person stays within the first area all the time, the pan-tilt remains stationary until the person leaves the first area and enters the second area, and then the pan-tilt rotates again. And after rotating the position of the target object, it is necessary to re-form the first and second areas monitored by the pan-tilt according to the current position. For the specific process of re-forming the monitoring area, reference can be made to Figure 6 Schematic diagram of the pan-tilt camera re-forming the monitoring area.

[0132] In this embodiment, the door lock can be designed with multiple batteries. Figure 7 It is a schematic flow chart of the multi-battery working mode. As can be seen from Figure 7 it, the battery management module first detects the current number of batteries (i.e., detecting the number of power supply batteries in the figure); if the number of power supply batteries is less than 2, it is single-battery power supply, and it is necessary to control the door lock to remind the user that it is currently single-battery power supply, and if there are other batteries, remind the user to install them; and when the battery power is less than the second threshold, an alarm signal is sent to remind the user to charge; when the battery power is less than the third threshold, an emergency alarm message is sent and the low-power mode is entered (the third threshold is less than the second threshold); if the number of power supply batteries is greater than 2, that is, in the case of multi-battery power supply, the voltage and current conditions of each battery (1 to N) and the total working current of the subsequent load are detected; when the total working current of the subsequent load ≥ the first threshold, batteries 1 to N supply power simultaneously, and the currents of batteries 1 to N are adjusted to be in an equal-current state (i.e., the equal-current mode); and when the power of any battery is lower than a certain threshold, the user is reminded to charge, and when a power supply battery is pulled out and only one remains, the equal-current power supply state is exited and the user is reminded that it is currently single-battery power supply; when the total working current of the subsequent load < the first threshold, battery 1 supplies power and other batteries are in a standby state (i.e., the "1+N" redundancy mode); when battery 1 fails or battery 1 is pulled out or the power of battery 1 is lower than a certain threshold, the power management module automatically switches other batteries to power on, reminds the user that battery 1 is working abnormally, and when the power of other batteries is lower than a certain threshold, reminds the user to charge.

[0133] In this embodiment, the door lock can be designed with multiple batteries. Figure 8 It is a schematic flow chart of multi-battery charging. As can be seen from Figure 8It can be seen that this figure describes the charging process between different batteries of the pan-tilt. The power management module first detects the capacity of batteries 1 to N. When it determines that battery A has the largest capacity and battery B has the smallest capacity, while using battery A as the charging battery to supply power, it can also charge other batteries. It detects and judges the current power level of battery A. When the power of battery A is greater than the first threshold, battery A charges battery B which has a smaller capacity than it until battery B is fully charged. When the power of battery A is less than the second threshold, battery A disconnects and reminds the user that the power of battery A is too low and needs to be charged. It should be noted that during the mutual charging between multiple batteries in this embodiment, large batteries always charge small batteries, keeping small batteries full or with more power, and always using the power of large batteries first. That is, the user only needs to replace the large battery each time, reducing the trouble of replacing other batteries. Moreover, the replaced large battery itself can also charge more power, reducing the user's charging times.

[0134] In summary, the power management solution for the pan-tilt intelligent door lock in this embodiment has the following advantages:

[0135] 1. For different user or task requirements, this embodiment can perform different processing, saving power consumption to the greatest extent.

[0136] 2. It can not only ensure certain application functions but also reduce the number of pan-tilt rotations, thereby reducing the power consumption of the door lock.

[0137] 3. It provides multiple battery working modes, which can not only improve the battery usage performance but also ensure the stable operation of the door lock, greatly enhancing the user's experience of using the door lock.

[0138] In this embodiment, a power management device for an electronic device with a pan-tilt module is also provided. This device is used to implement the above-mentioned embodiment and preferred implementation manners, and those that have been described will not be repeated. As the term "module" used below, it can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0139] The present invention provides a power management device for an electronic device with a pan-tilt module, as Figure 9 shown. The device includes:

[0140] A detection module 901, configured to detect events within the field of view of the electronic device and determine a target object based on the events.

[0141] A first determination module 902, configured to determine the number of batteries and the battery power of the battery module in the electronic device.

[0142] A second determination module 903, configured to determine the current power supply battery based on the number of batteries and the battery power.

[0143] A third determination module 904, configured to determine a power supply mode of the electronic device based on the power of the current power supply battery.

[0144] A monitoring module 905, configured to turn on the power supplies of the camera module and the pan-tilt module of the electronic device corresponding to the power supply mode, and control the camera module and the pan-tilt module to perform corresponding actions after the camera module and the pan-tilt module are started, so as to monitor a target object.

[0145] In some optional embodiments, the second determination module 903 includes: a first determination sub-module and a second determination sub-module; wherein, the first determination sub-module is configured to determine the corresponding single battery in the battery module as the current power supply battery when the number of batteries is 1; the second determination sub-module is configured to determine the current corresponding to each battery in the battery module respectively when the number of batteries is greater than 1, and determine the current power supply battery based on the current corresponding to each battery.

[0146] In some optional embodiments, the second determination sub-module includes: a current calculation unit, a current judgment unit, an equalized discharge unit, and a redundant discharge unit; wherein, the current calculation unit is configured to calculate the total current of the battery module; the current judgment unit is configured to judge whether the total current is less than a preset current; the equalized discharge unit is configured to, if the total current is not less than the preset current, determine the entire battery module as the current power supply battery, and control each battery in the battery module to perform equalized discharge to supply power to the camera module and the pan-tilt module; the redundant discharge unit is configured to, if the total current is less than the preset current, screen out the battery with the largest battery power and whose power is greater than a second threshold in the battery module as the current power supply battery, until the current power of the current power supply battery is less than the second threshold, re-obtain the current power of other batteries in the battery module, and screen out the battery with the largest battery power and whose power is greater than the second threshold as the current power supply battery; until the current power of all batteries in the battery module is less than the second threshold, give a charging reminder and turn off the electronic device.

[0147] In some optional embodiments, the second determination sub-module includes: a charge and discharge unit, configured to screen out the battery with the largest battery capacity in the battery module as the current power supply battery, and at the same time use the current power supply battery to charge other batteries in the battery module; when the current power of the current power supply battery is less than the second threshold, re-select a battery whose power of any other battery in the battery module is greater than the second threshold as the current power supply battery, and give a charging reminder; until the current power of all batteries in the battery module is less than a second preset threshold, give a charging reminder and turn off the electronic device.

[0148] In some alternative embodiments, the third determination module 904 includes: a first determination sub-module, a second determination sub-module, and a third determination sub-module; wherein, the first determination sub-module is configured to determine that the electronic device executes a high battery mode if the battery level of the current power supply battery is not less than a first threshold; the second determination sub-module is configured to determine that the electronic device executes a low battery mode and give a charging reminder if the battery level of the current power supply battery is between the first threshold and a second threshold; the third determination sub-module is configured to give a charging reminder and turn off the electronic device if the battery level of the current power supply battery is less than the second threshold.

[0149] In some alternative embodiments, the monitoring module 905 includes: a first routine processing sub-module and a second routine processing sub-module; wherein, the first routine processing sub-module is configured to turn on the power supplies of the camera module and the gimbal module of the electronic device, and control the gimbal module to rotate to aim at a target object after the camera module and the gimbal module are started; the second routine processing sub-module is configured to control the gimbal module to perform a homing operation and then turn off the power supply of the gimbal module of the electronic device to turn off the gimbal module when the position where the target object is located is not within the limit range of the gimbal.

[0150] In some alternative embodiments, the monitoring module 905 further includes: a first energy-saving processing sub-module, a second energy-saving processing sub-module, a third processing sub-module, a fourth energy-saving processing sub-module, and a fifth energy-saving processing sub-module; wherein, the first energy-saving processing sub-module is configured to turn on the power supply of the camera module of the electronic device and identify the target object after the camera module is started; the second energy-saving processing sub-module is configured to turn on the power supply of the gimbal module of the electronic device when the camera module identifies the target object, and detect the corresponding target position information of the target object at the current position after the gimbal module is started; the third energy-saving processing sub-module is configured to determine the monitoring range angle corresponding to the current position of the gimbal module based on the target position information; the fourth energy-saving processing sub-module is configured to determine the monitoring center angle based on the monitoring range angle and a preset ratio, determine the monitoring center area and the monitoring edge area respectively according to the monitoring center angle and the monitoring range angle, and use the monitoring center area and the monitoring edge area as the target monitoring range of the gimbal module; the fifth energy-saving processing sub-module is configured to judge the relationship between the target position information and the target monitoring range to control the gimbal module to perform corresponding actions; wherein, if the target position information is within the monitoring center area, control the gimbal module to remain stationary; if the target position information is within the monitoring edge area, control the gimbal module to rotate to aim at the target object according to the target position information, and after the gimbal module rotates to the position where the target object is located, re-divide the target monitoring range, and repeat the step of detecting the corresponding target position information of the target object at the current position until the target position information of the target object is not within the target monitoring range of the gimbal module, control the gimbal module to perform a homing operation and then turn off the power supply of the gimbal module of the electronic device to turn off the gimbal module.

[0151] The further function descriptions of the above-mentioned various modules are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0152] The power management device of the electronic device with a pan-tilt module in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0153] The power management device of the electronic device with a pan-tilt module according to the embodiment of the present invention provides an efficient power management solution for the electronic device with a pan-tilt module, which can minimize the rotation of the pan-tilt as much as possible while maintaining certain performance of the pan-tilt, thereby reducing the number of lithium battery charging times or dry battery replacement times, greatly extending the usage time of the device battery, further reducing the user's power consumption cost, and increasing the user experience.

[0154] The embodiment of the present invention also provides an electronic device. Please refer to Figure 10 , Figure 10 is a schematic structural diagram of the above-mentioned electronic device provided in an optional embodiment of the present invention. As shown in Figure 10 , the electronic device includes: a camera module, a pan-tilt module, one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common main board or installed in other ways according to needs. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each electronic device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). It should be noted that the specific type of the electronic device in this embodiment is not limited here. For example, the electronic device is an intelligent door lock, which can be adjusted adaptively according to actual needs.

[0155] Figure 10Taking a processor 10 as an example. The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.

[0156] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0157] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the electronic device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and a combination thereof.

[0158] The memory 20 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memories.

[0159] The electronic device further includes a communication interface 30 for the main control chip to communicate with other devices or a communication network.

[0160] In an embodiment of the present invention, there is also provided a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor main control chip, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiment is implemented.

[0161] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A power management method for an electronic device with a pan-tilt module, characterized in that The method includes: Detecting an event within the field of view of the electronic device and determining a target object based on the event; Determining the number of batteries and the battery power of the battery module in the electronic device; Determining the current power supply battery based on the number of batteries and the battery power; Determining the power supply mode of the electronic device based on the power of the current power supply battery; Correspondingly turning on the power supplies of the camera module and the gimbal module of the electronic device based on the power supply mode, and controlling the camera module and the gimbal module to perform corresponding actions after the camera module and the gimbal module are started to monitor the target object.

2. The power management method of the electronic device with a pan-tilt module according to claim 1, wherein The determining the current power supply battery based on the number of batteries and the battery power includes: When the number of batteries is 1, determining the corresponding single battery in the battery module as the current power supply battery; When the number of batteries is greater than 1, respectively determining the current corresponding to each battery in the battery module, and determining the current power supply battery based on the current corresponding to each battery.

3. The power management method of the electronic device with a pan-tilt module according to claim 2, characterized in that, The respectively determining the current corresponding to each battery in the battery module and determining the current power supply battery based on the current corresponding to each battery includes: Calculating the total current of the battery module; Judging whether the total current is less than a preset current; If the total current is not less than the preset current, determining the entire battery module as the current power supply battery, and controlling each battery in the battery module to perform balanced discharge to supply power to the camera module and the gimbal module; If the total current is less than the preset current, screening out the battery with the largest battery power and whose power is greater than the second threshold from the battery module as the current power supply battery. Until the current power of the current power supply battery is less than the second threshold, re-obtaining the current power of other batteries in the battery module, and screening out the battery with the largest battery power and whose power is greater than the second threshold from them as the current power supply battery; until the current power of all batteries in the battery module is less than the second threshold, giving a charging reminder and turning off the electronic device.

4. The power management method of the electronic device with a pan-tilt module according to claim 2, characterized in that, When the number of batteries is greater than 1, the method further includes: Screening out the battery with the largest battery capacity from the battery module as the current power supply battery, and simultaneously using the current power supply battery to charge other batteries in the battery module; When the current power of the current power supply battery is less than the second threshold, re-selecting any other battery in the battery module whose power is greater than the second threshold as the current power supply battery, and giving a charging reminder; until the current power of all batteries in the battery module is less than the second threshold, giving a charging reminder and turning off the electronic device.

5. The power management method of the electronic device with a pan-tilt module according to claim 1, wherein The power supply mode includes a high power mode and a low power mode; the determining the power supply mode of the electronic device based on the power of the current power supply battery includes: If the power of the current power supply battery is not less than the first threshold, determining that the electronic device executes the high power mode; If the power of the current power supply battery is between the first threshold and the second threshold, determining that the electronic device executes the low power mode and giving a charging reminder; If the power of the current power supply battery is less than the second threshold, giving a charging reminder and turning off the electronic device.

6. The power management method of the electronic device with a pan-tilt module according to claim 5, characterized in that, When the power supply mode is the high - power mode, the power supplies of the camera module and the gimbal module of the electronic device are correspondingly turned on based on the power supply mode, and after the camera module and the gimbal module are started, the camera module and the gimbal module are controlled to perform corresponding actions, including: Turn on the power supplies of the camera module and the gimbal module of the electronic device, and after the camera module and the gimbal module are started, control the gimbal module to rotate to aim at the target object; When the position where the target object is located is not within the limit range of the gimbal, control the gimbal module to perform a homing operation and then turn off the power supply of the gimbal module of the electronic device to turn off the gimbal module.

7. The power management method of the electronic device with a pan-tilt module according to claim 5, characterized in that When the power supply mode is the low - power mode, the power supplies of the camera module and the gimbal module of the electronic device are correspondingly turned on based on the power supply mode, and after the camera module and the gimbal module are started, the camera module and the gimbal module are controlled to perform corresponding actions, including: Turn on the power supply of the camera module of the electronic device, and identify the target object after the camera module is started; When the camera module identifies the target object, turn on the power supply of the gimbal module of the electronic device, and after the gimbal module is started, detect the corresponding target position information of the target object at the current position; Determine the monitoring range angle corresponding to the current position of the gimbal module based on the target position information; Determine the monitoring center angle based on the monitoring range angle and a preset ratio, determine the monitoring center area and the monitoring edge area according to the monitoring center angle and the monitoring range angle respectively, and use the monitoring center area and the monitoring edge area as the target monitoring range of the gimbal module; Judge the relationship between the target position information and the target monitoring range to control the gimbal module to perform corresponding actions; among them, if the target position information is within the monitoring center area, control the gimbal module to remain stationary; if the target position information is within the monitoring edge area, control the gimbal module to rotate to aim at the target object according to the target position information, and after the gimbal module rotates to the position where the target object is located, re - divide the target monitoring range, and repeat the step of detecting the corresponding target position information of the target object at the current position until the target position information of the target object is not within the target monitoring range of the gimbal module, control the gimbal module to perform a homing operation and then turn off the power supply of the gimbal module of the electronic device to turn off the gimbal module.

8. A power management device for an electronic device with a pan-tilt module, characterized in that, The device includes: A detection module, configured to detect events within the field of view of the electronic device and determine a target object based on the events; A first determination module, configured to determine the number of batteries and the battery power of the battery module in the electronic device; A second determination module, configured to determine the current power - supplying battery based on the number of batteries and the battery power; A third determination module, configured to determine the power supply mode of the electronic device based on the power of the current power - supplying battery; A monitoring module, configured to turn on the power supplies of the camera module and the pan-tilt module of the electronic device according to the corresponding power supply mode, and control the camera module and the pan-tilt module to perform corresponding actions after the camera module and the pan-tilt module are started, so as to monitor the target object.

9. An electronic device, characterized in that, The electronic device includes: a camera module, a pan-tilt module, a memory, and a processor; wherein, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the power management method of the electronic device with a pan-tilt module according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the power management method of the electronic device with a pan-tilt module according to any one of claims 1 to 7.