Power management circuit, method, device, electronic device and readable storage medium
Through pin multiplexing and control of the power management module, one power chip connects to multiple power-consuming devices at the same time, solving the problems of low power usage and high hardware cost in the existing technology, and achieving efficient power management and cost reduction.
Patent Information
- Application Number
- CN202310632771.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-05-30
AI Technical Summary
Each device in existing electronic equipment uses a separate power chip, resulting in low power usage and high hardware costs.
Through pin multiplexing technology, a power chip is connected to multiple power-consuming devices at the same time, and the power management module controls the power chip to provide power for devices with different power consumption according to power usage instructions, achieving effective power multiplexing.
It improves the power usage rate of the power chip, reduces the number of required power chips, reduces hardware costs, and is suitable for the miniaturization design of electronic equipment.
Smart Images

Figure CN117724595B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to power management circuits, methods, devices, electronic devices and readable storage media. Background Art
[0002] Electronic devices are equipped with devices for realizing various functions, such as cameras, microphones, and displays, etc. Each device needs to be powered by a power chip to realize the opening, closing, and use of the application. For example, after the power chip is powered on, the camera realizes image acquisition functions such as taking photos and recording videos, the microphone realizes the audio acquisition function, and the display realizes the image display function. Such devices will only start working under specific circumstances, that is, they are not in working mode continuously. Such devices can be called non-on devices. Specifically, the application layer responds to the user's point operation or based on some preset programs, controls the power chip to perform power on and off or voltage regulation operations to control the opening or closing of the application of such devices. The power chip of the device is in high power mode (High Power Mode, HPM), and the power management module of the power chip is the main control management module. As the power management module of multiple devices in the electronic device, the main control management module switches to the working state when any high-power application is turned on, and switches to the sleep state if all high-power applications are turned off.
[0003] With the introduction of technologies such as smart unlocking, gesture control, and voice assistants, in addition to non-open devices used for high-power non-open applications, electronic devices have also added always-on devices used for low-power always-on (AO) applications to achieve real-time information collection or output functions. An always-on device can be an electrical device that is in a continuous real-time working mode and is continuously working at low power consumption. In specific implementation, the always-on device can use a separate physical device to work in the always-on mode; it can also reuse the existing non-open devices in the electronic device to switch between the high-power non-open working mode and the low-power always-on working mode. For example, in addition to being a high-power non-open application of an ordinary camera, the camera can also be used as a low-power always-on camera, namely, an AO Camera. Among them, AO Camera means that the camera is in a continuous working state in the electronic device so that it can capture feature information within the visible range in real time for functions such as gesture control or face detection unlocking. AOCamera is in a real-time working state, its power supply is in a low-power mode (Low Power Mode, LPM), and the power management module of the power chip is an always-on management module. In specific implementation, devices with different power consumption requirements use a separate power chip, that is, devices for high-power applications and devices for low-power applications use different power chips, and the power supply of each type of power chip is managed by the corresponding power management module.
[0004] It can be seen that in the existing device power supply solution, each device uses a power chip separately, the power utilization rate of the power chip is low, and the hardware cost is high. Summary of the invention
[0005] The embodiments of the present application provide a power management circuit, method, device, electronic device and readable storage medium, which can realize multiplexing of power chips for multiple devices in an electronic device and improve the power utilization rate of the power chips.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In the first aspect, a power management circuit is provided, which mainly includes a power chip, a power management module and at least two electrical devices. A power chip supplies power to at least two electrical devices, and the power management module performs power management and control on the power chip. At least one of the at least two electrical devices is used as a normally open device, and the power consumption of different types of electrical devices is different. When the circuit is connected, the power supply pins of the power chip are classified according to the electrical parameters of different signals, the pins that can be reused by multiple devices are classified as first-class power supply pins, and the power ports connected to the first-class power supply pins on the electrical devices are classified as first-class power ports. The first-class power ports of each of the electrical devices are connected to the first-class power supply pins of this power chip to realize pin multiplexing. Each of the electrical devices is connected to the power management module to realize the power management module of these electrical devices. The power management module controls the power chip to supply power to the at least two electrical devices respectively according to the power usage instructions of each of the electrical devices.
[0008] In the case of at least two electrical devices with different power consumption, a power chip is connected to the at least two electrical devices at the same time by pin multiplexing, and then the power management module controls the power chip to effectively supply power to the electrical devices with different power consumption. Compared with the existing power supply scheme of one power supply for one device, the scheme of one power supply for multiple devices can not only improve the power utilization rate of the power chip, but also reduce the number of power chips required for at least two electrical devices, thereby reducing the hardware cost of the power management circuit or the electronic device to which it is applied.
[0009] In an implementation manner provided in the first aspect, the first type of power supply pins capable of pin multiplexing on the power chip may be upper and lower electrical signal output pins, and correspondingly, the first type of power supply port on the electrical device that multiplexes the first type of power supply pins may include upper and lower electrical signal ports. Considering that electrical devices generally require upper and lower electrical signals, and the current of upper and lower electrical signals is usually small, multiple electrical devices are connected to the same upper and lower electrical signal output pin, which can achieve effective multiplexing of the upper and lower electrical signals of the power chip.
[0010] In an implementation manner provided in the first aspect, the first type of power supply pin on the power chip that can be pin-reused can also be an analog signal output pin, and correspondingly, the first type of power port on the electrical device that reuses the first type of power supply pin is an analog signal port. The voltage of the analog signal is relatively small, and multiple electrical devices are connected to one analog signal output pin, which can realize the effective reuse of the analog signal of the power chip. When connecting, the upper and lower electrical signal output pins and the analog signal output pins can be reused at the same time, that is, the upper and lower electrical signal ports of each electrical device are respectively connected to the upper and lower electrical signal output pins of the same power chip, and the analog signal ports of each electrical device are connected to the analog signal output pins of the same power chip. In some cases, it is also possible to reuse only the analog signal output pin without multiplexing the upper and lower electrical signal output pins, that is, the analog signal ports of each electrical device are connected to the analog signal output pins of the same power chip, and the analog signal ports of each electrical device are respectively connected to different upper and lower electrical signal output pins of the same power chip.
[0011] In one embodiment provided in the first aspect, the first type of power supply pin that can be pin-multiplexed on the power chip can also be an auto-focus voltage signal output pin, and correspondingly, the first type of power port on the electrical device that multiplexes the first type of power supply pin is an auto-focus voltage signal port. The voltage of the auto-focus voltage signal is relatively small, and electrical devices such as cameras usually require an auto-focus voltage signal. When connecting, the auto-focus voltage signal ports of multiple electrical devices are connected to an auto-focus voltage signal output pin of the same power chip, so that the auto-focus voltage signal of the power chip can be effectively multiplexed.
[0012] During the specific connection, the upper and lower electrical signal output pins, the analog signal output pins and the autofocus voltage signal output pins can be reused at the same time, that is, the upper and lower electrical signal ports of each electrical device are respectively connected to the same upper and lower electrical signal output pins of the power chip, the analog signal ports of each electrical device are connected to the same analog signal output pin of the power chip, and the autofocus voltage signal ports of each electrical device are connected to the same autofocus voltage signal output pin of the power chip. Alternatively, only the autofocus voltage signal output pin can be reused, that is, only the autofocus voltage signal port of each electrical device is connected to the same autofocus voltage signal output pin of the power chip, and other pins are not reused. Under the premise that various electrical parameters are met, each electrical device can reuse as many pins of the power chip as possible, which can not only fully improve the power utilization rate of the power chip and reduce the hardware cost, but also minimize the size of the device.
[0013] In one embodiment provided in the first aspect, considering the limitation of electrical parameters or the different power ports of different electrical devices, there are some power supply pins on the power chip that cannot be reused by multiple electrical devices. The power supply pins on the power chip that cannot be reused by multiple electrical devices are classified as second-class power supply pins, and the power ports on the electrical devices connected to the second-class power supply pins are classified as second-class power ports. The term "cannot be reused by multiple electrical devices" here can be interpreted as "cannot be reused by all electrical devices at the same time", or "cannot be reused by some electrical devices at the same time". When corresponding electrical devices are connected, the second-class power supply pins connected to the second-class power ports of different electrical devices can be completely different or partially the same.
[0014] Taking into account the fact that some signal voltages in electrical devices vary greatly, the pins corresponding to such signals are used separately and not reused to ensure that the power chip can supply power to all electrical devices at the same time. This situation requires the type and number of power supply pins on the power chip to meet the requirements of using a second-class power supply pin separately for all or some of the electrical devices. When making connections, you can choose a power chip that meets the connection requirements, that is, a power chip with a large number of pins; you can also choose to add pins to the existing power chip, that is, to meet the connection requirements of all electrical devices by modifying the existing power chip.
[0015] In one embodiment provided in the first aspect, the normally-on device includes a normally-on camera. As a power-consuming device with a high utilization rate in an electronic device, the normally-on camera has a longer working time and a higher frequency of use, and is more suitable for reusing a power chip to improve power utilization.
[0016] In one embodiment provided in the first aspect, the normally-on device includes a normally-on display or a normally-on microphone. In some cases, the display or microphone in the electronic device is also used as a normally-on device to perform real-time information display or sound collection operations. This type of low-power device that works continuously is also suitable for power chips to improve power utilization. In a specific implementation, the electrical devices for power chip reuse can be the same type of power chips, for example, all electrical devices are cameras; of course, it is also possible to provide a power reuse solution for different types of electrical devices, such as cameras, microphones and displays in electronic devices.
[0017] In the second aspect, an electronic device is provided, which mainly includes a battery and a power management circuit as described in any one of the first aspects, wherein the battery is used to power the power management circuit, and the power management circuit powers at least two electrical devices through a power chip, and the power management module performs power management and control on the power chip. The electronic device can be a mobile phone, a tablet or other device, in which a power chip is connected to the at least two electrical devices at the same time by pin multiplexing, and then the power management module controls the power chip to effectively power electrical devices with different power consumption. Compared with the existing power supply scheme of one power supply for one device, the scheme of one power supply for multiple devices can not only improve the power utilization rate of the power chip, but also reduce the number of power chips required for at least two electrical devices, thereby reducing the hardware cost of the electronic device.
[0018] In an implementation provided in the second aspect, taking into account the high utilization rate of the normally-on cameras in the electronic device, especially the case where all cameras or at least two cameras are reused as normally-on cameras, their longer working time and higher frequency of use make it more suitable to reuse power chips to improve power utilization.
[0019] In a third aspect, a power management method is provided, which is applied to the electronic device described in any one of the second aspects. With the power management module in the electronic device as the execution subject, power management is implemented in which a power chip supplies power to at least two electrical devices at the same time. The power management module here can be a separate processor for power management, or it can be a processor that reuses an existing processor in the electronic device for power management. The process of the power management method mainly includes: the power management module first receives power usage instructions from at least two electrical devices, and then controls the power chip to supply power to the at least two electrical devices respectively according to the power usage instructions of the at least two electrical devices.
[0020] When performing power management, the power management module will first receive the power usage instructions of each electrical device, and then perform power management control according to all the power usage instructions, so as to meet the power requirements of electrical devices with different power consumption at the same time. This can not only improve the power utilization rate of the power chip, but also reduce the number of power chips required for at least two electrical devices, thereby reducing the hardware cost of the power management circuit or the electronic device used. Normally-on devices may include normally-on cameras. Normally-on cameras are electrical devices with a high usage rate in electronic devices, especially when all cameras or at least two cameras are reused as normally-on cameras. Their longer working time and higher frequency of use make them more suitable for reusing power chips to improve power utilization.
[0021] In an embodiment provided in the third aspect, the specific process of the power management module controlling the power chip to supply power to at least two electrical devices is to first determine a multiplexed power supply scheme suitable for supplying power to the at least two electrical devices based on all received power consumption instructions, and then control the power chip to execute the multiplexed power supply scheme.
[0022] In an implementation manner provided in the third aspect, the power demand of the electrical device mainly includes two categories, namely, power-on demand and power-off demand, and the corresponding power instructions include power-on instructions and power-off instructions. The power management module generates a multiplexed power supply scheme based on the basic power supply principle that power-on does not affect power-off and power-off affects power-on. Specifically, first determine whether there is at least one power-on instruction among all the power instructions. If there is at least one power-on instruction among all the power instructions, control the power chip to execute the power-on scheme. If all the power instructions are power-off instructions, control the power chip to execute the power-off scheme. The multiplexed power supply scheme obtained in this way can meet the power demand of multiple electrical devices at the same time.
[0023] In one implementation provided in the third aspect, considering that the power-on signal required by the electrical device has certain voltage requirements, if the voltage value is less than the voltage requirement, normal power-on may not be achieved, and the voltage control of the power-on signal is added to the power management scheme. According to the power-on signal required by each electrical device, the electrical device includes a voltage parameter in the power-on instruction it sends, which is used to indicate the voltage value of the power-on signal required. When the power management module performs power supply control, for the situation where power-on is required, the maximum supply voltage is determined according to the voltage parameters included in all power-on instructions, and the power chip is controlled to execute the power-on scheme of the electrical signal corresponding to the output maximum supply voltage. In this way, the power management method finally executed can not only provide upper and lower electrical signals for each electrical device, but also ensure that the voltage of the upper and lower electrical signals meets the requirements of all electrical devices.
[0024] In one implementation provided in the third aspect, the electrical devices include non-on devices and normally-on devices, and the actual power management module is divided into a main control management module and a normally-on management module. The main control management module is mainly used to manage the power consumption of non-on devices, and the normally-on management module is mainly used to manage the power consumption of normally-on devices, that is, the main control management module receives the power consumption instructions of the non-on devices, and the normally-on management module receives the power consumption instructions of the normally-on devices. The normally-on devices are connected to the normally-on management module, the non-on devices are connected to the main control management module, and the main control management module is connected to the power chip, that is, the main control management module performs actual power supply control on the power chip. The specific power supply control process may include that the normally-on management module first sends a normally-on power consumption plan to the main control management module according to all the power consumption instructions received, and finally the main control management module controls the power chip to supply power to the at least two electrical devices according to all the power consumption instructions received and the normally-on power consumption plan.
[0025] In an implementation scheme provided in the third aspect, the always-on management module only has the right to vote and count in the power management process but does not have the right to arbitrate. The always-on management module acts as an instruction transfer mechanism, and directly sends all received power usage instructions as the always-on power usage plan to the main control management module. The main control management module executes an arbitration to achieve power supply control of all power-consuming devices, thereby reducing the overall computational complexity.
[0026] In another case, the normally-on management module may also have voting counting rights and primary arbitration rights, that is, the normally-on management module first generates a preliminarily normally-on power usage plan applicable to all normally-on devices based on the power usage instructions sent by the normally-on devices, and then sends the generated normally-on power usage plan to the main control management module. The main control management module performs the final power supply control based on the power usage instructions directly received and the normally-on power usage instructions obtained after arbitration by the normally-on management module. In this way, the normally-on management module can share part of the arbitration calculation work of the main control management module and reduce the calculation amount of the main control management module.
[0027] In an implementation mode provided in the third aspect, considering that the main control management module has a working state and a dormant state, the main control management module can perform power supply management control in the working state, but cannot perform power supply management control in the dormant state, a new power management scheme is added in which the normally-on management module can directly control the power chip to perform power supply control. Specifically, if there is at least one non-normally-on device in the working state and the main control management module is fault-free, the main control management module will be in the working state. In this case, the main control management module can perform the final power supply control operation as in the aforementioned implementation modes.
[0028] If all non-normally-on devices are not in working order, or the main management module itself fails, the main management module will be in a dormant state. If the main management module is in a dormant state, it cannot process the power requirements of the normally-on devices, and the power supply control operation is switched to the normally-on management module. The normally-on management module receives the power usage instructions of the normally-on devices, and controls the power chip to supply power to the normally-on devices according to the power usage instructions of the normally-on devices. This can avoid the abnormal situation where the main management module cannot process the power usage instructions when it is in a dormant state, and ensures that the power chip can supply power to the normally-on devices normally.
[0029] In one implementation provided in the third aspect, for a case where an electrical device is multiplexed as a normally-on device and a non-normally-on device, the manner of receiving power usage instructions is limited as follows: if the electrical device is multiplexed as a non-normally-on device, the main control management module receives the power usage instructions of the electrical device; if the electrical device is multiplexed as a normally-on device, the normally-on management module receives the power usage instructions of the electrical device. For example, in a case where two cameras in an electronic device are multiplexed as a non-normally-on camera and a normally-on camera, longer working time and higher frequency of use are more suitable for multiplexing power chips to improve power usage. The instruction processing and power supply control schemes after these two types of power management modules receive power usage instructions in different situations can refer to the instruction processing and power supply control schemes provided in the previous implementations.
[0030] In a fourth aspect, a power management device is provided, the power management device comprising a processor, and the processor is used to execute the power management method described in any one of the third aspects.
[0031] In a fifth aspect, an electronic device is provided, comprising a memory, a processor, a power chip and at least two electrical devices; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the electronic device executes a power management method as described in any one of the third aspects.
[0032] In a sixth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is enabled to execute the power management method as described in any one of the third aspects.
[0033] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the power management method as described in any one of the third aspects.
[0034] Among them, the technical effects brought about by any implementation method in the second aspect and the fourth aspect to the seventh aspect can refer to the technical effects brought about by different design methods in the first aspect or the third aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of a power management circuit provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a power management circuit provided by the prior art;
[0037] Figure 3 One of the pin connection diagrams of the power management circuit provided in the embodiment of the present application;
[0038] Figure 4 The second pin connection diagram of the power management circuit provided in the embodiment of the present application;
[0039] Figure 5 The third pin connection diagram of the power management circuit provided in the embodiment of the present application;
[0040] Figure 6 A schematic diagram of a power management method provided in an embodiment of the present application;
[0041] Figure 7 One of the exemplary flow charts of the power management method provided in the embodiment of the present application;
[0042] Figure 8 The second exemplary flow chart of the power management method provided in the embodiment of the present application;
[0043] Fig. 9 The third exemplary flow chart of the power management method provided in the embodiment of the present application;
[0044] Fig.10 A fourth exemplary flow chart of the power management method provided in an embodiment of the present application;
[0045] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0046] Fig.12 A hardware structure diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more than two (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0048] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0049] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0050] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given.
[0051] The always-on camera AO Camera means that the camera continuously performs image acquisition operations in real time, and uses the real-time acquired images to realize functions such as gesture page turning, screen-off face detection, and hand-flip QR code. Among them, gesture page turning means that the electronic device collects user gestures through AOCamera. If the user's page turning gesture is collected, the page turning action can be automatically performed for the current display content of the browser or application. Screen-off face detection means that when the electronic device is off, the AO Camera can continue to collect images, perform legitimacy detection of the user's identity on the collected face image, and perform operations such as unlocking and lighting the screen after the detection confirms that the user's identity is legitimate. Hand-flip QR code means that after the electronic device is turned over by the user, the AO Camera can directly collect images and perform QR code recognition on the collected QR code image, and can realize operations such as scanning code payment or scanning code identity authentication without the user operating the electronic device to enter the scanning interface. The power consumption of AO Camera is low in the working state, and its power supply is also in low-power LPM mode.
[0052] There are two hardware implementations of AO Camera. One implementation is to set up a separate camera in the electronic device as the AO Camera, and the other implementation is to reuse the existing cameras in the electronic device, such as reusing the front camera or rear camera of a mobile phone as the AO Camera. For the hardware implementation of camera reuse, the same camera will have two working modes: used as a normal camera and used as an AO Camera. For the convenience of distinguishing the description, the camera is called a non-normal camera when used as a normal camera, and is called a normally open camera when used as an AO Camera. It should be noted that the description of "normally open camera" and "non-normally open camera" here, as well as the subsequent description of "normally open" and "non-normally open" of other electrical devices, are only used to distinguish the description, that is, "normally open" refers to the feature of Always On that works continuously in real time for a long time, and is not limited to the absolute real-time working feature that must be turned on 24 hours a day, while "non-normally open" refers to the working feature that is actively triggered by the user or triggered regularly or irregularly by a preset program.
[0053] When the camera is used as an emergency camera, the power supply enters a high-performance and high-load mode, and the power supply of the camera is managed by the main control management module, such as the application processor (AP). When the camera is used as an always-on camera, the power supply enters a low-performance and low-load mode, and the power supply of the camera is managed by the always-on management module, such as the sensor hub (Sensorhub). In addition to managing the power supply of emergency cameras, the main control management module can also manage the power supply of other emergency devices, such as microphones and fingerprint recognition modules. In other cases, the main control management module can also manage the power supply of major components such as processors and memories of electronic devices.
[0054] There may be other electrical devices in the electronic device that are used as normally-on devices and non-normally-on devices in different scenarios, such as displays and microphones, and their corresponding power consumption modes will also have high power consumption modes and low power consumption modes. Due to factors such as the relatively single power supply mode of existing power chips and power management modules, electrical devices with different power consumption requirements can only use one power chip each, and the power supply is managed by the corresponding power management module. This will cause the technical problem of low power utilization of the power chip.
[0055] In view of this, the embodiments of the present application provide a power management circuit, method, device, electronic device and readable storage medium. For the case where the electronic device includes at least one normally-on device and different types of electrical devices have different power consumption in the working state, multiple electrical devices can be connected to the same power chip, and the power management module controls the reused same power chip to power multiple electrical devices. In this way, the power demand of all electrical devices can be met and the power utilization rate of the power chip can be improved.
[0056] See also Figure 1 , is a schematic diagram of a power management circuit provided in an embodiment of the present application. The power management circuit includes a power chip 10, a power management module 20 and an electrical device 30. The power management module 20 manages and controls the power chip 10 to supply power to the electrical device 30. The number of the power chip 10 is one, and the number of the electrical device 30 is at least two (e.g. Figure 1 As shown in the electrical device a and the electrical device b), the at least two electrical devices 30 reuse the same power chip 10, and the power management module 20 manages the power supply of the power chip 10 to meet the power requirements of all the electrical devices 30.
[0057] The power management circuit provided can be used as a separate working circuit to realize power supply management and control of multiple electrical devices 30. Of course, it can also be applied to electronic devices to realize power supply management and control of multiple electrical devices 30 in electronic devices. The electronic devices to which the power management circuit is applied can be mobile phones, tablet computers, handheld computers, personal computers (PC), cellular phones, personal digital assistants (PDA), wearable devices (such as smart watches, smart bracelets), smart home devices (such as TVs), car machines (such as car computers), smart screens, game consoles, and augmented reality (AR) / virtual reality (VR) devices, etc. The embodiments of the present application do not impose any special restrictions on the specific device form of the electronic device.
[0058] The power management circuit manages multiple electrical devices 30. Under normal circumstances, the multiple electrical devices 30 include normally-on devices and non-normally-on devices. The power consumption of normally-on devices is usually low, that is, the corresponding power supply is in a low power consumption mode, and the power consumption of non-normally-on devices is usually high, that is, the corresponding power supply is in a high power consumption mode. Normally-on devices and non-normally-on devices can be different physical devices, or the same physical device can be reused as normally-on devices and non-normally-on devices, such as a normally-on camera, a normally-on display, and a normally-on microphone, etc., without limitation. This embodiment defines that the multiple electrical devices 30 include non-normally-on devices and normally-on devices. For electrical devices 30 with different power consumption, a power management method is provided that can respectively realize working modes with different power consumptions, thereby realizing effective reuse of power supply.
[0059] The electrical device 30 can be a device in the electronic device for realizing the corresponding function, such as a camera, a display, and a microphone. In a specific example, the electrical device 30 is a camera in the electronic device, then among the at least two cameras, there is at least one normally-on camera AO Camera. The hardware of the AO Camera can be a separate physical camera, or it can reuse an existing camera to realize the normally-on function, for example, reuse the existing front camera or rear camera of the electronic device as a non-normally-on camera and a normally-on camera respectively. The subsequent content of the embodiments of the present application will mainly be described by taking the electrical device 30 as a camera and the normally-on device as a normally-on camera as an example, which is only used to explain the scheme of the embodiments of the present application more clearly and simply, and the corresponding scheme can also be applied to electrical devices 30 such as displays and microphones without limitation.
[0060] The electrical device 30 is provided with a plurality of power ports, which are used to receive electrical signals. These electrical signals work together to enable the electrical device 30 to work or shut down. Correspondingly, the power chip 10 is provided with a plurality of power supply pins, which are used to output electrical signals. The power supply pins of the power chip 10 are connected to the power ports of the electrical device 30, and the power chip 10 can output electrical signals to the power ports of the electrical device 30 through the power supply pins, so that the power supply chip 10 can supply power to the electrical device 30. Of course, in the above-mentioned connection scheme from the power supply pin to the power port, there is a corresponding relationship between the output electrical signal and the received electrical signal, that is, the power supply pin that outputs a type of electrical signal needs to be connected to a power port that can receive the type of electrical signal to achieve effective power supply, rather than any power supply pin can be connected to any power port.
[0061] The electrical signals required by the various electrical devices 30 generally include upper and lower electrical signals, digital signals, analog signals, auto-focus voltage signals, etc. Correspondingly, the power port of the electrical device 30 also generally includes upper and lower electrical signal ports, digital signal ports, analog signal ports, auto-focus voltage signals, etc. for receiving upper and lower electrical signals. The upper and lower electrical signals can be represented as IOVDD, which is used to provide the power-up / power-down power I / O Port Supply to the electrical device 30, and control the opening or closing of the electrical device 30. The digital signal can be represented by DVDD, which is used to provide the digital core power Digital Core Supply for the digital devices in the electrical device 30; the analog signal can be represented by AVDD, which is used to provide the analog power Analog Power Supply for the analog parts in the electrical device 30; the auto-focus voltage signal can be represented by AFVDD, which provides the auto-focus power Auto Focus Supply for the motor and other devices. Of course, in addition to this, the electrical device 30 can also include other power ports, and only some common or main power port types are shown here, and no limitation is made to this.
[0062] Correspondingly, the power supply pins on the power chip 10 may include: an upper and lower electrical signal output pin for outputting upper and lower electrical signals, a digital signal output pin for outputting a digital signal, an analog signal output pin for outputting an analog signal, an auto-focus voltage signal output pin for outputting an auto-focus voltage signal, etc. Here, only the main power supply pins are exemplarily described, and are not intended to be a restrictive description of the power supply pins that may be provided on the power chip 10.
[0063] like Figure 2The figure shows a schematic diagram of a power management circuit provided by the prior art. The power port of an electrical device a is connected to the power supply pin of a power chip A, and the power port of another electrical device b is connected to the power supply pin of a power chip B. In this way, the power chip A and the power chip B respectively provide a part of the power to power the corresponding electrical device, and the power utilization rate is not high. In addition, more power chips are not conducive to the miniaturization design of electronic devices, and also increase the hardware cost.
[0064] In the present application embodiment, Figure 1 As shown, the power port of electrical device a is correspondingly connected to the power pin of the power chip 10, and the power port of another electrical device b is also correspondingly connected to the power pin of the power chip 10, that is, the power chip 10 can supply power to electrical device a and electrical device b at the same time.
[0065] From the above principle introduction, it can be known that the power supply principle of the power chip 10 is to output an electrical signal to the power port of the power device 30 through the power pin. Then, if power reuse is required, the power pins on the same power chip 10 can be connected to different power devices 30. When connecting the pins, different power pins on the same power chip 10 can be connected to different power devices 30, or the same power pin on the same power chip 10 can be connected to different power devices 30, that is, power reuse is achieved by reusing idle pins or reusing the same pins.
[0066] It should be noted that the embodiments of the present application correspond to Figure 1 This is a simple schematic diagram of a power management circuit. There are two electrical devices 30. For the convenience of description, they are marked as electrical device a and electrical device b. Electrical device a and electrical device b are only used to distinguish and refer to different electrical devices 30, and do not limit whether the parameters such as the models or types of the two electrical devices 30 are the same or different. In addition, Figure 1 The number of pins of the electrical device a and the electrical device b is 1, and they are connected to different pins of the same power chip. This is only a simple connection diagram to show that two electrical devices reuse the same power chip, and does not limit the number of electrical devices and the connection method of the pins. In actual connection, the power port of the electrical device a and the power port of the electrical device b can be connected to the same power pin of the power chip, or to different power pins of the power chip. Or the power port of the electrical device a and part of the power ports of the electrical device b are connected to the same power pin of the power chip, and the power port of the electrical device a and part of the power ports of the electrical device b are connected to different power pins of the power chip, and there is no limitation on this.
[0067] Similarly, the existing technology corresponds to Figure 2 In the figure, the electrical device a and the electrical device b as well as the power chip A and the power chip B are only used to distinguish and refer to each other. In actual use, the power chip can be the power chip A or the power chip B. The power chips can be power chips of exactly the same type or model or completely different types. In actual use, the number and type of the electrical devices 30 in the power management circuit can be various and are not limited.
[0068] During specific implementation, for ease of description, the pins on the power chip 10 that can be reused are defined as first-class power supply pins. Correspondingly, the power ports of the electrical device 30 that are connected to the first-class power supply pins are defined as first-class power ports. When connecting the power management circuit, the first-class power ports on multiple electrical devices 30 are connected to the first-class power supply pins on the power chip 10, so that power reuse of multiple electrical devices 30 can be achieved. Based on the above introduction to the types and functions of power ports and power supply pins, there are multiple types of power ports and power supply pins. In the power management circuit that realizes power reuse through power supply pin reuse, there can also be multiple specific implementation methods. Several main implementation methods are listed below.
[0069] In a specific embodiment, Figure 3 As shown, the first type of power supply port may include an upper and lower electrical signal port IOVDD, and the corresponding first type of power supply pin connected thereto is an upper and lower electrical signal output pin.
[0070] The current of the upper and lower electrical signals is usually small, and even if the total current after multiple currents are connected in parallel, it will not exceed the maximum current of the electrical signal that the power chip 10 can output. Based on this parallel connection characteristic, the upper and lower electrical signal output pins on the power chip 10 for outputting the upper and lower electrical signals can be used as the first type of power supply pins that can be reused. For example, the current of the upper and lower electrical signals of the conventional electrical device 30 is less than 1A, for example, usually only 0.1A, while the maximum current of the electrical signal that the power chip 10 can output may be 1A or even greater. Then it can be understood that the power chip can provide the upper and lower electrical signals for 10 or even more electrical devices, and the power supply efficiency of providing the upper and lower electrical signals for only one electrical device is low.
[0071] Furthermore, considering that the maximum current of the output signal of the power chip 10 is limited, the number of times the upper and lower electrical signal output pins can be reused is also limited. The specific multiplexing scheme can be adjusted according to the current size of the electrical signal required by each electrical device 30 and the maximum current of the power chip 10.
[0072] For example, if the maximum current of the power chip 10 is 1A, the corresponding currents required by the electrical devices a, b, c and d are 0.1A, 0.2A, 0.3A and 0.5A respectively, 0.1A+0.2A+0.3A=0.6A<1A, 0.1A+0.2A+0.3A+0.5=1.1A>1A, then the upper and lower electrical signal output pins of the power chip 10 can support the electrical devices a, b and c at the same time, but cannot support the simultaneous multiplexing of the electrical devices a, b, c and d. Of course, in other embodiments, the output current of the power chip 10 can also be adjusted according to the required current and number of the multiplexed electrical devices c, so that it can meet the current requirements of the upper and lower electrical signals of multiple electrical devices 30.
[0073] In another specific implementation, the current of the analog signal and the auto-focus voltage signal output by the power chip is also relatively small, and the corresponding power supply pins can also be considered to be reused as the first type of power supply pins. Figure 4 As shown, the first type of power port may also include an analog signal port AVDD, and the corresponding first type of power supply pin is an analog signal output pin. And / or, the first type of power port may also include an autofocus voltage signal port AFVDD, and the corresponding first type of power supply pin is an autofocus voltage signal output pin. The current of the analog signal and autofocus voltage signal required by different electrical devices 30 is small, and the voltage value may be relatively close, and AVDD and / or AFVDD are also suitable for pin multiplexing. When considering multiple electrical devices 30 multiplexing first type power supply pins such as AVDD and / AFVDD, it is necessary to consider whether leakage or other problems may occur when the number of electrical devices 30 multiplexed at the same time is too large. This can be specifically determined and adjusted according to the electrical parameters of the electrical signals required by each electrical device 30.
[0074] On the basis of the above-mentioned multiplexing schemes, considering that some signals have large current or large voltage differences, the power supply pins that output such signals may not be suitable for multiplexing by multiple electrical devices 30. Different from the first type of pins proposed in the aforementioned embodiment, the pins in the power chip 10 that are not suitable for multiplexing are defined as second-type power supply pins, and the corresponding power ports on the electrical device 30 are defined as second-type signal ports. In the power management circuit, the electrical device 30 includes a second-type power supply port, and the power chip 10 includes multiple second-type power supply pins. The second-type power port of each of the electrical devices 30 is respectively connected to a second-type power supply pin of the power chip 10, and the second-type power supply pins connected to the second-type power ports of different electrical devices 30 are not exactly the same. The second-class power supply pins proposed here are not completely the same, which can be understood as completely different, that is, the second-class power supply pins connected to the second-class power ports of each electrical device 30 are completely different, and each electrical device has a dedicated second-class power supply pin on the power chip; the second-class power supply pins are not completely the same, which can be understood as partially different, that is, the second-class power ports of some electrical devices 30 are connected to the same second-class power supply pin, and the second-class power ports of other electrical devices 30 are connected to different second-class power supply pins.
[0075] When implementing it, Figure 5 As shown, the second type of power port may include a digital signal port DVDD, and the corresponding second type of power supply pin is a digital signal output pin. The current of the digital signal required by different electrical devices is usually large, and the voltage range of the digital signal required by different electrical devices may be quite different. Then the same digital signal output pin of the power chip 10 is not suitable as a multiplexing pin, that is, the power chip cannot output digital signals that meet the needs of different electrical devices 30 at the same time through the same digital signal output pin. When connecting the power management circuit, the digital signal ports of each electrical device 30 can be connected to different digital signal output pins on the power chip 10 respectively.
[0076] Of course, there may be some other situations. For example, the current of the digital signal required by different electrical devices 30 may be relatively small, and the upper and lower lines of the voltage range of the digital signal required by different electrical devices 30 may overlap. In this case, power multiplexing can be considered, that is, connecting the digital signal ports of each electrical device to the same digital signal output pin of the power chip.
[0077] In addition, there may be partial reuse, for example, there are differences in the electrical parameters of the digital signals required by all electrical devices, but the electrical parameters of the digital signals of some electrical devices are relatively close. For example, some electrical devices 30 require digital signals with a smaller current and a voltage range of 1V-5V, while other electrical devices 30 require digital signals with a larger current and a voltage range of 10V-20V. Then, for several electrical devices 30 that require relatively small currents for digital signals, it is also possible to consider reusing the same power supply pin on the power supply chip 10, while for several electrical devices 30 that require relatively large currents for digital signals, it is possible to consider using a separate power supply pin for each. Whether to choose to reuse or use separately can be determined based on the electrical parameters of the digital signal and the output capacity of the power supply pin. It should be noted that in order to more clearly show the connection relationship between the signal output pin of the power supply chip 10 and the signal ports on different electrical devices 30, Figure 3 , Figure 4 and Figure 5 The power management module 20 and related connection relationships are not shown, and other power supply pins are not shown, but this should not be interpreted as the power management module 20 and other power supply pins are not included in the implementations corresponding to these figures.
[0078] In other embodiments, different electrical devices 30 may have different signal ports and different power supply pins. The difference here means that the connection cannot be made or the signal transmission cannot be realized after the connection, and it may even cause damage to the electrical device 30. Then, for such a situation, pin reuse is not applicable between different electrical devices 30. In this case, if you want to realize effective power chip 10 reuse, you can consider selecting a power chip 10 whose power supply pins on the power chip 10 meet all the power supply pins and signal output branches required by all electrical devices 30, or modify the existing power chip 10, that is, add a signal output branch and power supply pins, so as to meet the requirements of multiple electrical devices 30 to realize power chip 10 reuse without limitation.
[0079] The following will provide a specific pin connection scheme for the power management circuit. Figure 5 As shown, the power device a is a non-operating camera, and the power device b is a normally-operating camera. The corresponding power chip 10 may include 4 power supply pins, such as L1N_1.1, L2N_1.1 / 1.05, L3N_1.8, L5N_2.8, and L7N_3.14 shown in Table 1. Then, the connection relationship between the signal output pins and the corresponding signal ports can be as shown in Table 1. The IOVDD, AVDD, and AFVDD of the two power devices 30 are multiplexed, and DVDD is used alone without multiplexing.
[0080] Electrical devices Electrical devices IOVDD L2N_1.1 / 1.05 L1N_1.1 AVDD L3N_1.8 L3N_1.8 AFVDD L5N_2.8 L5N_2.8 DVDD L7N_3.14 L7N_3.14
[0081] Table 1
[0082] The power management circuit also includes a power management module 20, which is the main control device for the power management circuit to realize power reuse. The power management module 20 can be a controller specifically used to manage the power chip 10 to supply power to the power-consuming device 30, or it can be a power management module 20 that reuses the power supply of other modules in the electronic device, which is not limited here.
[0083] There can be two types of power management modules 20 in electronic devices, one is a main control management module used to manage most of the non-on devices, and the other is a normally-on management module that can be used to manage normally-on devices. The main control management module will also be in working mode when the non-on devices are in working mode, and may enter sleep mode when all non-on devices are not in working mode. In specific implementation, the main control management module can be used to manage and control the power supply of non-on devices, and the normally-on management module can be used to manage the power supply of normally-on devices. Alternatively, the main control management module can be controlled to be in the normally-on mode continuously, that is, the power supply control of all electrical devices 30 is managed by the main control management module. Of course, the main control management module and the normally-on management module can also be selected according to the working status of the main control management module to cooperate in managing the power supply control of different electrical devices 30, without limitation.
[0084] After explaining the hardware structure of the power management circuit above, the specific implementation of the power management method applied by the power management circuit will be explained below.
[0085] See also Figure 6 , is a flow chart of a power management method provided in an embodiment of the present application. The provided power management method is applied to the power management circuit provided in the above embodiment. Figure 1 As shown, the power management circuit includes a power chip, a power management module and at least two power-consuming devices. The power management module controls and manages the power chip to supply power to at least two power-consuming devices, thereby realizing power chip reuse and improving power utilization. The power management method will be mainly explained below by taking the power management module as the execution subject. Specifically, Figure 6 As shown, the power management method provided mainly includes the following steps:
[0086] Step S601: receiving power usage instructions from at least two power-consuming devices.
[0087] Electronic devices mainly include application layer (Application, APP), application framework layer (ApplicationsFrameWork, AFW), hardware abstraction layer (HAL) and hardware circuits. Each electrical device requires the cooperation of these functional layers to realize related applications. For example, if the electrical device is a camera, the main workflow is: the electronic device receives the operation of opening the application imposed by the user, and the application framework layer sends the request to open the camera application to the hardware abstraction layer through internal processing. The hardware abstraction layer interacts with the underlying hardware circuit and transmits relevant signals through the hardware circuit to realize the function of opening the camera application.
[0088] In the power management method provided in the embodiment of the present application, the execution subject power management module can be a processor in the hardware circuit, and the power chip is controlled to supply power to the electrical device. Specifically, when the electrical device needs to switch the working state, such as switching from the on state to the off state, or from the off state to the on state, the corresponding power instruction will be triggered through the application architecture layer to the power management module. The power instruction may include the type of power demand of the electrical device, the identification information of the electrical device itself, or the identification information of the power port connected to the power chip, and may also include power supply parameters of the power demand such as voltage value and current value. The power instruction can be divided into power-on instruction and power-off instruction according to the type of power demand indicated by it, wherein the power-on instruction can be a request program indicating that the electrical device is powered on, that is, instructing the power chip to send a power-on signal to the electrical device; the power-off instruction can be a request program indicating that the electrical device is powered off, that is, instructing the electrical device to send a power-off signal to the electrical device. Of course, in the specific implementation, the power instruction can also be a request program with other instructions, for example, it can be a request program for indicating the adjustment of the signal voltage, the output of a certain voltage, etc., without limitation.
[0089] It should be noted that an electrical device may send a power usage instruction only when it needs to switch the power supply state, and may not send power usage instructions continuously. When performing power supply management, the power management module may receive the power usage instructions sent by each electrical device respectively and store them accordingly. The received power usage instructions may include the latest power usage instructions sent by the electrical device in real time, and may also include the power usage instructions sent by the electrical device in advance. In order to facilitate the accuracy of subsequent power supply control, the power management module may only store the latest power usage instructions sent by each electrical device. That is, for each electrical device, when a new power usage instruction sent by it is received, the power usage instruction sent previously is replaced.
[0090] Step S602: According to the power consumption instructions of the at least two electrical components, control the power supply chip to supply power to the at least two electrical components respectively.
[0091] After receiving all the power usage instructions, the power management module can control the power chip to work according to the power requirements indicated by each power usage instruction, so that the power chip can supply power to all the power-consuming devices. In specific implementation, the power management module can obtain a comprehensive power supply scheme according to all the power usage instructions, so that the comprehensive power supply scheme can be applied to the power requirements of the multiple power-consuming devices when executed by the power supply chip, and the comprehensive power supply scheme can be defined as a multiplexed power supply scheme.
[0092] If the power management module is a processor independent of the power chip, the power management module can send the reused power supply scheme to the power chip, and the power chip executes it according to the indicated power supply type of the reused power supply scheme. If the power management module is integrated into the power chip, it can directly control the operation of the corresponding circuit in the power chip to execute the reused power supply scheme.
[0093] The basic principles for multiplexing power supplies for multiple electrical devices may include: powering on does not affect powering off, powering off cannot meet powering on, high voltage does not affect low voltage, low voltage cannot meet high voltage, etc. The power management module can determine a multiplexing power supply solution suitable for multiple electrical devices based on these basic principles.
[0094] In a specific implementation, the step of the power management module controlling the power chip to supply power to the at least two power-consuming devices respectively according to all power-consuming instructions may specifically include:
[0095] Determining whether there is at least one power-on instruction among all power-usage instructions;
[0096] If there is at least one power-on instruction among all the power usage instructions, controlling the power chip to execute the power-on plan;
[0097] If all power usage instructions are power-off instructions, the power chip is controlled to execute the power-off plan.
[0098] For example, if all power-on instructions are power-on instructions, that is, all power-consuming devices require power-on signals, then it is necessary to control the power chip to output power-on signals, and the corresponding multiplexed power supply scheme is the power-on scheme. The power chip executes the power-on scheme and provides power-on signals to power-consuming devices that require power-on, thereby meeting the power needs of these power-consuming devices.
[0099] For another example, if all power instructions are power-off instructions, that is, all electrical devices require a power-off signal, then it is necessary to control the power chip to output a power-off signal, and the corresponding multiplexed power supply scheme is the power-off scheme. The power chip executes the power-off scheme and no longer supplies power to any electrical device. At this time, each electrical device has no power demand and can simply stop working. If the power chip still executes the power-on scheme when all electrical devices have no power demand, it may cause power consumption loss, and may even cause electrical devices to be abnormal or even damaged.
[0100] In another case, if all power usage instructions include some power-on instructions and some power-off instructions, it means that some electrical devices have power requirements, while other electrical devices do not. Based on the aforementioned principle of "power-on does not affect the power-off requirement, and power-off cannot meet the power-on requirement", the power chip can be controlled to output a power-on signal to meet the power requirements of some electrical devices that output power-on instructions. At this time, the electrical devices that do not have power requirements and output power-off instructions do not work, and the power chip executing the power-on plan will not affect the shutdown of these electrical devices.
[0101] Furthermore, in the case where there is a power-on instruction, a power-on voltage limit may be added. The step of specifically controlling the power chip to execute the power-on solution may also include:
[0102] If there is at least one power-on instruction among all the power-usage instructions, determining the maximum supply voltage according to the voltage parameters included in all the power-on instructions;
[0103] The power chip is controlled to execute a power-on scheme of outputting an electrical signal corresponding to a maximum supply voltage.
[0104] For example, both electrical device a and electrical device b need to be powered on, the voltage of the power-on signal required by electrical device a is 1V, and the voltage of the power-on signal required by electrical device b is 0.8V, that is, electrical device a needs to receive a power-on signal of 1V or above to work normally, and electrical device b needs to receive a power-on signal of 0.8V or above. Since the maximum value of the 1V power-on voltage in the power-on instruction of electrical device a and the 0.8V power-on voltage in the power-on instruction of electrical device b is 1V, it can be determined that 1V is the maximum supply voltage. The electrical signal corresponding to the 1V voltage output by the control power chip can meet the power-on requirements of electrical device a and electrical device b at the same time; if the output voltage is between 0.8V and 1V, it can only meet the power demand of electrical device b but not the power demand of electrical device a; if the output voltage is less than 0.8V, the power demand of both electrical device a and electrical device b cannot be met.
[0105] like Figure 7The figure shows an exemplary flow chart of the power management method provided by the embodiment of the present application. The power-consuming devices are cameras, which are marked as Camera1 and Camera2 respectively. Camera1 can be a normally-on device, and Camera2 can also be a normally-on device, without limitation. In this solution, the power management module is the main control processor AP.
[0106] The power management authority of Camera1 and Camera2 is on the AP side, that is, the AP manages and controls the power supply of Camera1 and Camera2 at the same time. As long as one camera needs to turn on the camera, that is, the power demand is to power on, the AP side controls the power chip to power on. This can be understood as a voting arbitration mechanism. If one camera votes to power on, the AP arbitrates that the reused power supply scheme is the power-on scheme, and controls the power chip to execute the power-on scheme. For example, when Camera1 is turned on, it will be powered on and initialized, and the module needs to be powered on. When the power chip is powered on, if Camera2 is also turned on and powered on and initialized at this time, there are two power demands for powering on. Since Camera1 has been powered on, the module of Camera2 does not need to be powered on again. Similarly, if Camera1 is turned on and Camera2 is turning off the camera, the voting arbitration mechanism on the AP side will think that Camera1 is still in use, so there is no need to control the power chip to power off.
[0107] On the basis of the above implementation, considering that electrical devices are divided into normally-on devices and non-normally-on devices, their corresponding power management modules are usually also divided into normally-on management modules and master management modules. The normally-on management module is used to manage the power supply of normally-on devices, and the master management module is used to manage the power supply of non-normally-on devices. Then, the execution subject of the final generation of the reused power supply scheme may be the master management module or the normally-on management module, or the master management module and the normally-on management module may cooperate to generate the reused power supply scheme. Several possible implementation methods for generating the reused power supply scheme are described in detail below.
[0108] In one implementation, the main control management module and the normally-on management module may respectively receive power usage instructions of corresponding power-consuming devices, and the main control management module may determine a final multiplexed power supply solution.
[0109] Specifically, the device types of all electrical devices include non-normally open devices and normally open devices, the power management module of the electronic device includes a main control management module and a normally open management module, the normally open device is connected to the normally open management module, the non-normally open device is connected to the main control management module, and the main control management module is connected to the power chip. The power management module receives the power consumption instructions of each electrical device and controls the power chip to supply power to at least two electrical devices, which may specifically include:
[0110] The main control management module receives the power usage instruction of the non-normally open device, and the normally open management module receives the power usage instruction of the normally open device;
[0111] The normally-on management module sends a normally-on power usage plan to the main control management module according to all power usage instructions received;
[0112] The main control management module controls the power chip to supply power to the at least two power-consuming devices according to all received power-consuming instructions and the normally-on power-consuming scheme.
[0113] In this embodiment, the main control management module receives the power usage instructions of each non-open device, and the normally open management module receives the power usage instructions of the normally open device. The instruction receiving subjects of different power devices can be pre-configured by the application architecture layer of the power device. Considering that there is also a case where an electric device is reused as a non-open device and a normally open device, then when sending instructions, if the electric device is reused as a non-open device, the main control management module can receive the power usage instructions of the electric device; if the electric device is reused as a normally open device, the normally open management module receives the power usage instructions of the electric device.
[0114] In addition to receiving power usage instructions from non-normally open devices, the main control management module is also responsible for executing the final power management operation. The normally open management module is responsible for receiving power usage instructions from each normally open device, and does not execute the final power management operation. After receiving all power usage instructions, the main control management module determines the multiplexed power supply scheme applicable to multiple power-consuming devices based on the basic principles of "power on does not affect the power off demand, power off cannot meet the power on demand, high voltage does not affect the low voltage demand, low voltage cannot meet the high voltage demand, etc.". That is, according to the power demand indicated by each power usage instruction, the power chip can be controlled to work so that the power chip supplies power to all power-consuming devices. If the main control management module is a processor independent of the power chip, the power management module can send the multiplexed power supply scheme to the power chip, and the power chip will execute it according to the indicated power supply type of the multiplexed power supply scheme. If the main control management module is integrated in the power chip, the corresponding circuit in the power chip can be directly controlled to work to execute the multiplexed power supply scheme.
[0115] After receiving the power usage instructions of each normally-on device, the normally-on management module forwards the power usage demand corresponding to the power usage instructions of the normally-on device to the main control management module, and the power usage demand corresponding to the power usage instructions of the normally-on device can be defined as a normally-on power usage plan.
[0116] In a specific implementation, the step of the normally-on management module sending the normally-on power usage plan to the main control management module according to all received power usage instructions may include any of the following:
[0117] The normally-on management module generates a normally-on power usage plan corresponding to all normally-on devices according to all power usage instructions received, and sends the normally-on power usage plan to the main control management module, wherein the normally-on power usage plan includes a power-on plan or a power-off plan;
[0118] The normally-on management module uses all received power usage instructions as the normally-on power usage plan, and sends the normally-on power usage plan to the main control management module.
[0119] The normally-on management module can only do the work of voting and counting, that is, receiving the power usage instructions of the normally-on devices, and directly forwarding all the received power usage instructions as the normally-on power usage plan to the main control management module. The main control management module generates a multiplexed power supply plan to manage and control the power chip based on the power usage instructions directly received from each non-normal device and the power usage instructions forwarded by the normally-on management module. In this case, the normally-on management module can share part of the arbitration calculation and reduce the workload of the main control management module.
[0120] The normally-on management module can also perform voting counting and preliminary arbitration, that is, it receives power usage instructions from normally-on devices, and generates a normally-on power usage plan applicable to all normally-on devices based on the received power usage instructions, and then forwards the normally-on power usage plan to the main control management module. The main control management module generates the final multiplexed power supply plan based on the power usage instructions sent by each non-normally-on device directly received and the normally-on power usage plan generated by the normally-on management module. In this case, the main control management module only needs to perform one arbitration work, reducing the overall amount of calculation.
[0121] The process of the normally-on management module generating a normally-on power usage plan may include: after obtaining the power usage instructions of all normally-on devices, determining the normally-on power usage plan applicable to multiple normally-on power devices according to the basic principles of "powering on does not affect the power-off demand, power off cannot meet the power-on demand, high voltage does not affect the low voltage demand, low voltage cannot meet the high voltage demand, etc."
[0122] In another implementation, the main control management module and the normally-on management module may respectively receive power usage instructions of corresponding power-consuming devices, and the main control management module or the normally-on management module may perform the final power management operation.
[0123] Specifically, the device types of all the electrical devices include non-open devices and normally-open devices, the power management module of the electronic device includes a main control management module and a normally-open management module, the normally-open device is connected to the normally-open management module, the non-open device is connected to the main control management module, and the main control management module and the normally-open management module are both connected to the power chip;
[0124] If the main control management module is in a dormant state, the step of receiving power usage instructions from at least two power-consuming devices and controlling the power chip to supply power to the at least two power-consuming devices respectively according to the power usage instructions of the at least two power-consuming devices comprises:
[0125] The normally-on management module receives a power usage instruction of the normally-on device;
[0126] The normally-on management module controls the power chip to supply power to the normally-on device according to the power usage instruction of the normally-on device.
[0127] Considering that in actual use, if all non-operating devices are turned off and not used, the main control management module will usually enter the sleep state to reduce power consumption. After the main control management module enters the sleep state, the event of entering the sleep state can be broadcast to the system, and the normally-operating management module can know that the main control management module has entered the sleep state based on the broadcast. If the main control management module itself fails, the main control management module may also enter the sleep state. The normally-operating management module can determine that the main control management module has entered the sleep state based on the system log or the lack of instruction feedback from the main control management module.
[0128] Regardless of whether the master management mode enters the sleep state normally or enters the sleep state due to a fault, the master management module cannot perform power management operations at this time. If the normally open management module continues to wait for the master management module to perform power management control, it may affect the normal use of the normally open device. If the normally open management module performs the final power management operation when the master management module is in the sleep state, this problem can be solved.
[0129] If all non-normally open devices are turned off and not used, there is no need for the main control management module to receive the power requirements of these non-normally open devices. The normally-open management module receives the power usage instructions of the normally-open devices, and controls the power chip to supply power to the normally-open devices according to the power usage instructions of all normally-open devices. The process of the normally-open management module generating the normally-open power usage scheme may include: after obtaining the power usage instructions of all normally-open devices, according to the basic principles of "powering on the power supply does not affect the power-off demand, powering off the power supply cannot meet the power-on demand, high voltage does not affect the low voltage demand, low voltage cannot meet the high voltage demand, etc.", determine the normally-open power usage scheme applicable to multiple normally-open power devices. If the normally-open management module is a processor independent of the power chip, the normally-open management module can send the reused power supply scheme to the power chip, and the power chip will execute it according to the indicated power supply type of the reused power supply scheme. If the normally-open management module is integrated in the power chip, it can directly control the operation of the corresponding circuits in the power chip to execute the reused power supply scheme.
[0130] It should be noted that, in these implementations, the specific process of the main control management module generating a directly managed control power supply chip according to the power usage instruction, the specific process of the always-on management module generating a normally-on power usage plan according to the power usage instruction, and the specific process of the always-on management module directly managing and controlling the power supply chip for power supply according to the power usage instruction can all be referred to the specific process of the power management module directly managing and controlling the power supply chip for power supply according to the power usage instruction in the aforementioned implementation, and will not be described one by one here.
[0131] In order to further clearly explain the power management method provided in the embodiment of the present application, several specific exemplary schemes are provided below, taking the non-normally open camera as the non-normally open device, the AO Camera as the normally open device, the main control management module as the AP, and the normally open management module as the Sensorhub as an example.
[0132] In one case, if Figure 8 The figure shows an exemplary flow chart of the power management method provided by the embodiment of the present application, wherein Camera1 is a non-operating camera, Camera2 is multiplexed as an AO Camera, the number of AO Cameras is one, and the arbitration operation is performed by the AP side.
[0133] In the AO scenario, Camera2 has two control power-on processes: AP side and Sensorhub side. If Camera2 is used as a non-operating camera, the voting count on the AP side is used; if it is used as an AO Camera, the voting count on the Sensorhub side is used. When Camera2 is used as an AO Camera, the voting count on the Sensorhub side is used, and the Sensorhub then transparently transmits the voting count to the AP side for arbitration. The arbitration process can be that Camera2 is used as an AO Camera and is powered on. At this time, if Camera1 is used as a normal camera and is powered on and powered off, the AP side can receive the voting counts from both sides and arbitrate that there is no need to power off.
[0134] In another case, if Fig. 9 Another exemplary flow chart of the power management method provided in the embodiment of the present application is shown, wherein the number of AO Cameras is two, that is, Camera1 and Camera2 are both multiplexed as AO Cameras, and the arbitration operation is performed by the AP side.
[0135] In the AO scenario, Camera1 and Camera2 both have two control power-on processes: AP side and Sensorhub side. If Camera1 is used as a non-operating camera, the voting count on the AP side is used; if it is used as an AO Camera, the voting count on the Sensorhub side is used. The control process of Camera2 is the same as that of Camera1. The voting count on the Sensorhub side can be transparently transmitted to the AP side for final arbitration.
[0136] Need to explain, Figure 8 and Fig. 9 In the two cases shown, the AP side needs to be kept on to avoid affecting the normal power-on of the normally-on devices in the sleep state. Of course, it is also possible to consider setting up another module to replace the AP as the always-on power management module, for example, using the SPMI bus to work on the subsystem of the always-on processing module (Always On Processor, AOP), that is, providing an AOP to replace the AP to manage and control the power chip.
[0137] In another case, if Fig.10 As shown, there are two AO Cameras, that is, Camera1 and Camera2 are both multiplexed as AO Cameras. The arbitration operation can be performed by the AP side, and can also be performed by the Sensorhub side when the AP side is dormant.
[0138] like Fig.10As shown in the figure, the arbitration operation on the Sensorhub side is added. In this way, even if the AP side is dormant, the power demand of the AO Camera can be processed by the Sensorhub side without affecting the normal use of the AO Camera.
[0139] From these examples, it can be seen that a new voting count for AO Camera is added on the Sensorhub side, and an arbitration scheme is added on the AP / AOP side or the Sensorhub side, so that the final multiplexed power supply scheme can also meet the power demand of AOCamera. The several implementation methods of the power management method provided in the embodiments of the present application can effectively realize the reuse of the same power chip by electrical devices with different power consumption, and the executed multiplexed power supply scheme can meet the power demand of multiple electrical devices. It also saves the number of power chips, reduces the hardware cost of the equipment, and is more conducive to the miniaturization design of electronic equipment.
[0140] In addition, the embodiment of the present application also provides an electronic device, including a memory, a processor, a power chip and at least two electrical devices; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the power management method provided by the above embodiment. Specifically, the electrical device may include a camera, a display or a microphone. In addition to these main components, the electronic device also includes components for realizing basic functions, which will be combined with Fig.11 Provide specific instructions.
[0141] like Fig.11As shown, it is a structural schematic diagram of an electronic device 1100 provided in an embodiment of the present application. Among them, the electronic device 1100 may include a processor 1110, an external memory interface 1120, a memory 1121, a Universal Serial Bus (USB) interface 1130, a battery 1140, a power management module 1141, a power chip 1142, an antenna 1, an antenna 2, a radio frequency module 1150, a communication module 1160, an audio module 1170, a speaker 1170A, a receiver 1170B, a microphone 1170C, an earphone interface 1170D, a sensor module 1180, a button 1190, a motor 1191, an indicator 1192, a camera 1193, a display screen 1194, and a Subscriber Identification Module (SIM) card interface 1195, etc. The sensor module 1180 may include a pressure sensor 1180A, a gyroscope sensor 1180B, an air pressure sensor 1180C, a magnetic sensor 1180D, an acceleration sensor 1180E, a distance sensor 1180F, a proximity light sensor 1180G, a fingerprint sensor 1180H, a temperature sensor 1180J, a touch sensor 1180K, an ambient light sensor 1180L, a bone conduction sensor 1180M, and the like.
[0142] The structure shown in the embodiment of the present invention does not limit the electronic device 1100. It may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0143] The processor 1110 may include one or more processing units. For example, the processor 1110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0144] The controller can be a decision maker that directs the various components of the electronic device 1100 to work in coordination according to the instructions. It is the nerve center and command center of the electronic device 1100. The controller generates an operation control signal according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0145] The processor 1110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1110 is a high-speed cache memory, which can store instructions or data that the processor 1110 has just used or cyclically used. If the processor 1110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1110, and thus improves the efficiency of the system.
[0146] In some embodiments, the processor 1110 may include an interface. The interface may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI) interface, a General-Purpose Input / Output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0147] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDL) and a serial clock line (SCL). In some embodiments, the processor 1110 may include multiple groups of I2C buses. The processor 1110 may be coupled to the touch sensor 1180K, the charger, the flash, the camera 1193, etc. through different I2C bus interfaces. For example: the processor 1110 may be coupled to the touch sensor 1180K through the I2C interface, so that the processor 1110 communicates with the touch sensor 1180K through the I2C bus interface, thereby realizing the touch function of the electronic device 1100.
[0148] The I2S interface can be used for audio communication. In some embodiments, the processor 1110 can include multiple I2S buses. The processor 1110 can be coupled to the audio module 1170 via the I2S bus to achieve communication between the processor 1110 and the audio module 1170. In some embodiments, the audio module 1170 can transmit an audio signal to the communication module 1160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0149] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 1170 and the communication module 1160 can be coupled via a PCM bus interface. In some embodiments, the audio module 1170 can also transmit audio signals to the communication module 1160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication, and the sampling rates of the two interfaces are different.
[0150] The UART interface is a universal serial data bus for asynchronous communication. The bus is a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 1110 and the communication module 1160. For example, the processor 1110 communicates with the Bluetooth module through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 1170 can transmit an audio signal to the communication module 1160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0151] The MIPI interface can be used to connect the processor 1110 with peripheral devices such as the display screen 1194 and the camera 1193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 1110 and the camera 1193 communicate via the CSI interface to implement the shooting function of the electronic device 1100. The processor 1110 and the display screen 1194 communicate via the DSI interface to implement the display function of the electronic device 1100.
[0152] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 1110 with the camera 1193, the display 1194, the communication module 1160, the audio module 1170, the sensor module 1180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0153] The USB interface 1130 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 1130 may be used to connect a charger to charge the electronic device 1100, or may be used to transmit data between the electronic device 1100 and a peripheral device. The USB interface 1130 may also be used to connect headphones to play audio through the headphones. The USB interface 1130 may also be used to connect other electronic devices, such as AR devices, etc.
[0154] The interface connection relationship between the modules shown in the embodiment of the present invention is only for illustrative purposes and does not constitute a structural limitation on the electronic device 1100. The electronic device 1100 may use different interface connection methods in the embodiment of the present invention, or a combination of multiple interface connection methods.
[0155] The battery 1140 may be a rechargeable battery or a disposable battery. The rechargeable battery may receive charging input through a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the battery 1140 may receive charging input from a wired charger through the USB interface 1130. In some wireless charging embodiments, the battery 1140 may receive wireless charging input through a wireless charging coil of the electronic device 1100. While the battery 1140 is charging the power chip 1142, it may also power the electronic device 1100 through the power management module 1141.
[0156] The power management module 1141 is used to connect the power chip 1142, the battery 1140 and the processor 1110. The power management module 1141 receives input from the power chip 1142 and / or the battery 1140, and supplies power to the processor 1110, the memory 1121, the external memory interface 1120, the display screen 1194, the camera 1193, and the communication module 1160. The power management module 1141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some embodiments, the power management module 1141 can also be set in the processor 1110. In some embodiments, the power management module 1141 and the power chip 1142 can also be set in the same device.
[0157] The wireless communication function of the electronic device 1100 can be implemented through antenna 1, antenna 2, RF module 1150, communication module 1160, modem and baseband processor.
[0158] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 1100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, a cellular network antenna can be reused as a wireless local area network diversity antenna. In some embodiments, the antenna can be used in combination with a tuning switch.
[0159] The RF module 1150 can provide a communication processing module for wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied to the electronic device 1100. The RF module 1150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The RF module 1150 receives electromagnetic waves from the antenna 1, and performs filtering, amplification, and other processing on the received electromagnetic waves, and transmits them to the modem for demodulation. The RF module 1150 can also amplify the signal modulated by the modem, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the RF module 1150 can be set in the processor 1110. In some embodiments, at least some of the functional modules of the RF module 1150 can be set in the same device as at least some of the modules of the processor 1110.
[0160] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 1170A, a receiver 1170B, etc.), or displays an image or video through a display screen 1194. In some embodiments, the modem may be an independent device. In some embodiments, the modem may be independent of the processor 1110 and may be arranged in the same device as the RF module 1150 or other functional modules.
[0161] The communication module 1160 can provide a communication processing module for wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 1100. The communication module 1160 can be one or more devices integrating at least one communication processing module. The communication module 1160 receives electromagnetic waves via antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 1110. The communication module 1160 can also receive the signal to be sent from the processor 1110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.
[0162] In some embodiments, the antenna 1 of the electronic device 1100 is coupled to the radio frequency module 1150, and the antenna 2 is coupled to the communication module 1160, so that the electronic device 1100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global satellite positioning system (satellite based Augmentation Systems, SBAS), a global navigation satellite system (GLObal NavigAtion Satellite System, GLONASS), a BeiDou navigation Satellite system (BeiDou navigation Satellite system, BDS), a Quasi-Zenith Satellite System (Quasi-Zenith Satellite System, QZSS) and / or a Satellite Based Augmentation System (Satellite Based Augmentation Systems, SBAS).
[0163] The electronic device 1100 implements the display function through a GPU, a display screen 1194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 1194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 1110 may include one or more GPUs that execute program instructions to generate or change display information.
[0164] The display screen 1194 is used to display images, videos, etc. The display screen 1194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLED, Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 1100 may include 1 or N display screens 1194, where N is a positive integer greater than 1.
[0165] The electronic device 1100 can realize the shooting function through ISP, camera 1193, video codec, GPU, display screen and application processor.
[0166] ISP is used to process the data fed back by camera 1193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and chromaticity of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 1193.
[0167] The camera 1193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 1100 may include 1 or N cameras 1193, where N is a positive integer greater than 1.
[0168] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 1100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0169] The video codec is used to compress or decompress digital video. The electronic device 1100 may support one or more video codecs. Thus, the electronic device 1100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG11, MPEG4, etc.
[0170] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 1100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0171] The external memory interface 1120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1100. The external memory card communicates with the processor 1110 through the external memory interface 1120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0172] The internal memory 1121 can be used to store computer executable program codes, which include instructions. The processor 1110 executes various functional applications and data processing of the electronic device 1100 by running the instructions stored in the internal memory 1121. The memory 1121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 1100 (such as audio data, a phone book, etc.), etc. In addition, the memory 1121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash memory (Universal Flash Storage, UFS), etc.
[0173] The electronic device 1100 can implement audio functions such as music playing and recording through the audio module 1170, the speaker 1170A, the receiver 1170B, the microphone 1170C, the headphone jack 1170D, and the application processor.
[0174] The audio module 1170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 1170 can also be used to encode and decode audio signals. In some embodiments, the audio module 1170 can be arranged in the processor 1110, or some functional modules of the audio module 1170 can be arranged in the processor 1110.
[0175] The speaker 1170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 1100 can listen to music or listen to a hands-free call through the speaker 1170A.
[0176] The receiver 1170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 1100 receives a call or voice message, the voice can be received by placing the receiver 1170B close to the human ear.
[0177] Microphone 1170C, also called "microphone" or "microphone", is used to convert sound signals into audio electrical signals. When making a call or sending a voice message, the user can make a sound by putting his mouth close to the microphone 1170C to input the sound signal into the microphone 1170C. The electronic device 1100 can be provided with at least one microphone 1170C. In some embodiments, the electronic device 1100 can be provided with two microphones 1170C, which can not only collect sound signals but also realize noise reduction function. In some embodiments, the electronic device 1100 can also be provided with three, four or more microphones 1170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0178] The earphone interface 1170D is used to connect a wired earphone and can be a USB interface, or an 11.5 mm Open Mobile Terminal Platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0179] The key 1190 includes a power key, a volume key, etc. The key 1190 may be a mechanical key or a touch key. The electronic device 1100 receives the key 1190 input and generates a key signal input related to the user settings and function control of the electronic device 1100.
[0180] Motor 1191 can generate vibration prompts. Motor 1191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. Touch operations acting on different areas of the display screen 1194 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0181] Indicator 1192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0182] The SIM card interface 1195 is used to connect the SIM. The SIM card can be connected to and separated from the electronic device 1100 by inserting it into the SIM card interface 1195 or pulling it out from the SIM card interface 1195. The electronic device 1100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 1195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 1195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 1195 can also be compatible with different types of SIM cards. The SIM card interface 1195 can also be compatible with external memory cards. The electronic device 1100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 1100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 1100 and cannot be separated from the electronic device 1100.
[0183] The power management methods in the aforementioned embodiments can all be implemented in the electronic device 1100 having the aforementioned hardware structure.
[0184] On the basis of the above embodiments, an embodiment of the present application further provides a power management device, which includes a processor, and the processor is used to execute the power management method provided in the above embodiments.
[0185] The embodiment of the present application can divide the above-mentioned electronic device into functional modules or functional units according to the above-mentioned method embodiment. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0186] An embodiment of the present application also provides a software device for realizing electronic functions such as mobile phones, including: a receiving module for receiving power usage instructions of at least two electrical devices; a control module for controlling a power supply chip to supply power to the at least two electrical devices respectively according to the power usage instructions of the at least two electrical devices.
[0187] The present application also provides a hardware device for realizing the functions of electronic devices such as mobile phones. Fig.12 As shown, the hardware device of the electronic device may include: a power management circuit 1201, a memory 1202, a processor 1203 and a communication module 1204. The above-mentioned devices may be connected through one or more communication buses 1205. The power management circuit 1201 may include at least two power-consuming devices 12011 and a power chip 12012, wherein the power chip 12012 supplies power to at least two power-consuming devices 12011. The processor 1203 may include one or more processing units, for example: the processor 1203 may include an application processor, a modulation and demodulation processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory 1202 is coupled to the processor 1203 and is used to store various software programs and / or computer instructions. The memory 1202 may include a volatile memory and / or a non-volatile memory. When the processor executes the computer instructions, the electronic device can perform various functions or steps in the above method embodiment.
[0188] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the power management method provided in the above embodiment.
[0189] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the power management method provided in the above embodiment.
[0190] The electronic device, power management device, computer-readable storage medium, and computer program product containing instructions provided by the embodiment of the present application, by classifying the power supply pins of the power chip according to the electrical parameters of different signals when the circuit is connected, the pins that can be reused by multiple devices are divided into the first type of power supply pins, and the power ports connected to the first type of power supply pins on the electrical device are divided into the first type of power supply ports, and the first type of power ports of each of the electrical devices are connected to the first type of power supply pins of this power chip to realize pin multiplexing. Each of the electrical devices is connected to the power management module to realize the power management module's power management of these electrical devices, and the power management module controls the power chip to supply power to the at least two electrical devices respectively according to the power instructions of each of the electrical devices. In the case of at least two electrical devices and different power consumption of different electrical devices, a power chip is connected to the at least two electrical devices at the same time by pin multiplexing, and then the power management module controls the power chip to realize effective power supply for electrical devices with different power consumption. Compared with the existing power supply scheme of one power supply for one device, the scheme of one power supply for multiple devices can not only improve the power utilization rate of the power chip, but also reduce the number of power chips required for at least two power-consuming devices, thereby reducing the hardware cost of the power management circuit or the electronic device used. The specific implementation methods of the electronic device, power management device, computer-readable storage medium, and computer program product containing instructions provided in the embodiments of the present application and the technical effects brought about by them can be found in the specific implementation process of the power management circuit and power management method provided in the aforementioned embodiments and the technical effects brought about by them, which will not be repeated here.
[0191] In some embodiments, through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0192] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0193] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0194] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A power management circuit, characterized in that: include: A power chip, a power management module and at least two electrical devices, wherein the device types of the at least two electrical devices include a non-open device and a normally open device; Each of the electrical devices comprises a first-type power supply port, the power chip comprises a first-type power supply pin, and the first-type power supply port of each of the electrical devices is connected to the first-type power supply pin of the power chip; The power management module includes a main control management module and a normally open management module, wherein the main control management module is connected to the normally open management module; the normally open management module is connected to the normally open device and is used to receive the power usage instruction of the normally open device; the main control management module is connected to the non-normally open device and is used to receive the power usage instruction of the non-normally open device; the main control management module is also connected to the power chip; The main control management module is used to control the power chip to supply power to the at least two electrical devices respectively according to the power consumption instructions of the at least two electrical devices.
2. The power management circuit according to claim 1, characterized in that: The first type of power supply port includes upper and lower electrical signal ports, and the correspondingly connected first type of power supply pins are upper and lower electrical signal output pins.
3. The power management circuit according to claim 2, characterized in that: The first-type power supply port also includes an analog signal port, and the correspondingly connected first-type power supply pin is an analog signal output pin.
4. The power management circuit according to claim 2 or 3, characterized in that: The first-type power supply port also includes an auto-focus voltage signal port, and the correspondingly connected first-type power supply pin is an auto-focus voltage signal output pin.
5. The power management circuit according to claim 4, characterized in that: Each of the electrical devices comprises a second-type power supply port, and the power supply chip comprises a plurality of second-type power supply pins; The second power supply port of each of the electrical devices is respectively connected to a second power supply pin of the power chip, and the second power supply pins connected to the second power supply ports of different electrical devices are not completely the same.
6. The power management circuit according to claim 5, characterized in that: The second type of power supply port includes a digital signal port, and the corresponding second type of power supply pin is a digital signal output pin.
7. The power management circuit according to any one of claims 1 to 3, 5 and 6, characterized in that: The normally-on device includes a normally-on camera.
8. The power management circuit according to claim 7, characterized in that: All of the at least two electrical consumers function as normally-on cameras.
9. The power management circuit according to claim 7, characterized in that: Two of the at least two electrical devices are used as normally-on cameras.
10. The power management circuit according to any one of claims 1 to 3, 5 and 6, characterized in that: The normally-on device includes a normally-on display or a normally-on microphone.
11. An electronic device, characterized in that: The invention comprises a battery and a power management circuit as claimed in any one of claims 1 to 10, wherein the battery supplies power to the power management circuit.
12. The electronic device according to claim 11, characterized in that: The two power consumers in the power management circuit act as normally-on cameras.
13. A power management method, characterized in that: Applied to an electronic device, the electronic device comprising a power management circuit as claimed in any one of claims 1 to 10, the power management method comprising: The main control management module of the power management circuit receives the power usage instruction of the non-normally open device, and the normally open management module receives the power usage instruction of the normally open device; The main control management module controls the power supply chip to supply power to the at least two electrical components respectively according to the power consumption instructions of the at least two electrical components.
14. The power management method according to claim 13, characterized in that: The step of the main control management module controlling the power chip to supply power to the at least two electrical devices respectively according to the power consumption instructions of the at least two electrical devices comprises: The main control management module determines a reused power supply scheme according to all power consumption instructions, and the reused power supply scheme is used to supply power to the at least two power-consuming devices; The main control management module controls the power chip to execute the multiplexed power supply solution.
15. The power management method according to claim 14, characterized in that: The power usage instruction includes a power-on instruction or a power-off instruction; The step of the main control management module controlling the power chip to supply power to the at least two electrical devices respectively according to the power consumption instructions of the at least two electrical devices comprises: The main control management module determines whether there is at least one power-on instruction among all power usage instructions; If there is at least one power-on instruction among all the power usage instructions, controlling the power chip to execute the power-on plan; If all power usage instructions are power-off instructions, the power chip is controlled to execute the power-off plan.
16. The power management method according to claim 15, characterized in that: The power-on instruction also includes a voltage parameter; The step of controlling the power chip to execute the power-on solution if there is at least one power-on instruction among all the power-usage instructions includes: If there is at least one power-on instruction among all the power-usage instructions, determining the maximum supply voltage according to the voltage parameters included in all the power-on instructions; The main control management module controls the power chip to execute a power-on scheme for outputting an electrical signal corresponding to a maximum supply voltage.
17. The power management method according to any one of claims 13 to 16, characterized in that: The step of the normally-on management module receiving the power usage instruction of the normally-on device also includes: The normally-on management module sends a normally-on power usage plan to the main control management module according to all power usage instructions received; The step of the main control management module controlling the power chip to supply power to the at least two electrical devices according to the power usage instructions of the at least two electrical devices comprises: The main control management module controls the power chip to supply power to the at least two power-consuming devices according to all received power-consuming instructions and the normally-on power-consuming scheme.
18. The power management method according to claim 17, characterized in that: The step of the normally-on management module sending the normally-on power usage plan to the main control management module according to all received power usage instructions includes any of the following: The normally-on management module generates a normally-on power usage plan corresponding to all normally-on devices according to all power usage instructions received, and sends the normally-on power usage plan to the main control management module, wherein the normally-on power usage plan includes a power-on plan or a power-off plan; The normally-on management module uses all received power usage instructions as the normally-on power usage plan, and sends the normally-on power usage plan to the main control management module.
19. The power management method according to any one of claims 13 to 16, characterized in that: The device types of all the electrical devices include non-open devices and normally-open devices, the power management module of the electronic device includes a main control management module and a normally-open management module, the normally-open device is connected to the normally-open management module, the non-open device is connected to the main control management module, and the main control management module and the normally-open management module are both connected to the power chip; If the main control management module is in a dormant state, the step of receiving power usage instructions from at least two power-consuming devices and controlling the power chip to supply power to the at least two power-consuming devices respectively according to the power usage instructions of the at least two power-consuming devices comprises: The normally-on management module receives a power usage instruction of the normally-on device; The normally-on management module controls the power chip to supply power to the normally-on device according to the power usage instruction of the normally-on device.
20. The power management method according to claim 19, characterized in that: The method further comprises: The main control management module receives the power usage instruction sent by the non-open device; If all of the power usage instructions are power-off instructions, the main control management module is in a dormant state.
21. The power management method according to any one of claims 18 and 20, characterized in that: The electrical devices are multiplexed into normally-on devices and non-on devices; The step of the main control management module receiving the power usage instruction of the non-normally open device, and the step of the normally open management module receiving the power usage instruction of the normally open device, comprises: If the power-consuming device is reused as a non-operating device, the main control management module receives a power consumption instruction of the power-consuming device; If the power-consuming device is reused as a normally-on device, the normally-on management module receives a power usage instruction of the power-consuming device.
22. The power management method according to any one of claims 13 to 16, 18 and 20, characterized in that: Two of the at least two electrical consumers function as always-on cameras.
23. A power management device, characterized in that: The power management device comprises a processor, and the processor is used to execute the power management method according to any one of claims 13 to 22.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the power management method according to any one of claims 13 to 22.
