Disclosure of Invention
The embodiment of the application provides a power supply device and a power supply method, and relates to the field of electronic equipment, such as computers, tablet computers, notebooks, portable computers and the like. Effectively reduce the heating of power supply unit working process, and then improve power supply unit's power supply efficiency to reduce the risk of damaging power supply unit.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a power supply apparatus, where the apparatus is applied to an electronic device, and the electronic device further includes a battery and a system unit. The power supply device includes: the power supply comprises a power interface, a first power supply unit and a second power supply unit. The first power supply unit comprises a first switch unit and a first control unit, and the second power supply unit comprises a second switch unit and a second control unit. The power interface is coupled to the first end of the first switch unit, the first end of the first switch unit is also coupled to the system unit, the second end of the first switch unit is coupled to the battery, and the third end of the first switch unit is coupled to the first control unit. The power interface is also coupled with the first end of the second switch unit, the second end of the second switch unit is coupled with the battery, and the third end of the second switch unit is coupled with the second control unit. When the power interface is coupled with an external power supply, the first power supply unit supplies power to the system unit, the first control unit controls the first switch unit to be conducted so that the first power supply unit supplies power to the battery, and the second control unit controls the second switch unit to be conducted so that the second power supply unit supplies power to the battery. Or, when the power interface is coupled to the external power source, the first power supply unit supplies power to the system unit, the first control unit controls the first switch unit to be turned off, and the second control unit controls the second switch unit to be turned on, so that the second power supply unit supplies power to the battery. Based on the above scheme, the second power supply unit can share the pressure that first power supply unit is battery powered for two power supply units can not work for a long time under great power supply pressure, reduce generating heat in the power supply unit working process effectively, and then improve power supply unit's power supply efficiency, and reduce the risk of damaging power supply unit.
In some implementations, the first power supply unit further includes: a first end of the first adapting unit is coupled to the power interface, a second end of the first adapting unit is coupled to the first end of the first switch unit, and a control end of the first adapting unit is coupled to the first control unit. When the power interface is coupled with the external power supply, the first adapting unit adapts and outputs the current input by the external power supply under the control of the first control unit. Based on the above scheme, the first adaptation unit is arranged in the first power supply unit to adapt the accessed current, so that when the current accessed to the first power supply unit cannot meet the power supply requirements of the system unit and the battery, the first power supply unit can simultaneously supply power to the system unit and the battery or only the battery for output by using the adapted current.
In some implementations, the first adaptation unit includes a first transistor, a second transistor, a first inductor, a third transistor, and a fourth transistor. The first terminal of the first transistor is the first terminal of the first adapter unit and is coupled to the power interface, the second terminal of the first transistor is coupled to the first terminal of the second transistor, the second terminal of the second transistor is grounded, the first terminal of the second transistor is also coupled to one terminal of the first inductor, the other terminal of the first inductor is coupled to the first terminal of the third transistor, the second terminal of the third transistor is grounded, the first terminal of the third transistor is also coupled to the second terminal of the fourth transistor, the first terminal of the fourth transistor is the second terminal of the first adapter unit and is coupled to the first terminal of the first switch unit. The third terminal of the first transistor, the third terminal of the second transistor, the third terminal of the third transistor and the third terminal of the fourth transistor are control terminals of the first adapting unit. When the first power supply unit only supplies power to the system unit, the first control unit controls the first transistor and the fourth transistor to be in a conducting state, and controls the second transistor and the third transistor to be in a stopping state, so that the first adaptation unit adapts and outputs current input by the external power supply. When the first power supply unit supplies power to the system unit and the battery, the first control unit controls the first transistor, the second transistor, the third transistor and the fourth transistor to be in a switch state, so that the first adaptation unit adapts and outputs current input by the external power supply. Illustratively, the first transistor, the second transistor, the third transistor, and the fourth transistor may be N-channel field effect transistors (NMOS transistors). The first end of the transistor is a drain electrode of the NMOS tube, the second end of the transistor is a source electrode of the NOMS tube, and the third end of the transistor is a grid electrode of the NMOS tube. Based on the scheme, through the adaptation unit formed by the plurality of transistors and the inductor, the adaptation processing of boosting or reducing the voltage of the current connected to the first power supply unit can be performed, so that the processed current can meet the requirements on the power supply of the system unit and the battery or the battery only.
In some implementations, the second power supply unit further includes: a first end of the second adapting unit is coupled to the power interface, a second end of the second adapting unit is coupled to the first end of the second switch unit, and a control end of the second adapting unit is coupled to the second control unit. When the power interface is coupled to the external power source, the second adapting unit adapts the current input by the external power source and outputs the adapted current under the control of the second control unit. Based on the above scheme, through set up the second adaptation unit in the second power supply unit, carry out adaptation processing to the electric current of access for when the electric current of access second power supply unit can't satisfy the power supply demand of battery, the second power supply unit can supply power output to the battery with the electric current after the adaptation processing.
In some implementations, the second adaptation unit includes a fifth transistor, a sixth transistor, a second inductor, a seventh transistor, and an eighth transistor. The first terminal of the fifth transistor is the first terminal of the second adapting unit and is coupled to the power interface, the second terminal of the fifth transistor is coupled to the first terminal of the sixth transistor, the second terminal of the sixth transistor is grounded, the first terminal of the sixth transistor is also coupled to one terminal of the second inductor, the other terminal of the second inductor is coupled to the first terminal of the seventh transistor, the second terminal of the seventh transistor is grounded, the second terminal of the seventh transistor is also coupled to the second terminal of the eighth transistor, and the first terminal of the eighth transistor is the second terminal of the second adapting unit and is coupled to the first terminal of the second switching unit. The third terminal of the fifth transistor, the third terminal of the sixth transistor, the third terminal of the seventh transistor and the third terminal of the eighth transistor are control terminals of the second adapting unit. When the second power supply unit supplies power to the battery, the second control unit controls the fifth transistor, the sixth transistor, the seventh transistor and the eighth transistor to be in a switch state, so that the second adapting unit adapts the current input by the external power supply and outputs the current. Illustratively, the fifth transistor, the sixth transistor, the seventh transistor, and the eighth transistor may be N-channel field effect transistors (NMOS transistors). The first end of the transistor is a drain electrode of the NMOS tube, the second end of the transistor is a source electrode of the NOMS tube, and the third end of the transistor is a grid electrode of the NMOS tube. Based on the scheme, the adaptation unit consisting of the plurality of transistors and the inductor can perform boosting or reducing adaptation processing on the current connected to the second power supply unit, so that the processed current can meet the requirement of only supplying power to the battery.
In some implementations, the first switching unit is a ninth transistor. For example, the ninth transistor may be a P-channel field effect transistor (PMOS transistor), a first terminal (e.g., a source of the PMOS transistor) of the ninth transistor is a first terminal of the first switch unit, a second terminal (e.g., a drain of the PMOS transistor) of the ninth transistor is a second terminal of the first switch unit, and a third terminal (e.g., a gate of the PMOS transistor) of the ninth transistor is a third terminal of the first switch unit. The second switch unit is a tenth transistor, which may be, for example, a P-channel field effect transistor (PMOS transistor), a first terminal (e.g., a source of the PMOS transistor) of the tenth transistor is the first terminal of the second switch unit, a second terminal (e.g., a drain of the PMOS transistor) of the tenth transistor is the second terminal of the second switch unit, and a third terminal (e.g., a gate of the PMOS transistor) of the tenth transistor is the third terminal of the second switch unit. Based on the above scheme, by controlling the ninth transistor and the tenth transistor to be in the on or off state, the first switch unit and the second switch unit are in different on-off states, so that the first power supply unit can simultaneously supply power to the system unit and the battery, and can also only supply power to the battery. Meanwhile, the second power supply unit may supply or not supply power to the battery.
In a second aspect, an embodiment of the present application provides a power supply method, which is applied to an electronic device including any one of the power supply apparatus, the battery, and the system unit as described in the first aspect and optional aspects thereof. The method comprises the following steps: the power interface is coupled with an external power supply, and the system unit controls the first power supply unit and the second power supply unit to start working. The system unit controls the first power supply unit to work in a first mode so that the first power supply unit supplies power to the system unit, and controls the second power supply unit to work in a second mode so that the second power supply unit supplies power to the battery. Or the system unit controls the first power supply unit to work in a third mode so that the first power supply unit supplies power to the system unit and the battery, and controls the second power supply unit to work in the second mode so that the second power supply unit supplies power to the battery. Based on the above scheme, the second power supply unit in the electronic device can share the power supply pressure of the first power supply unit to the battery, so that the power supply unit effectively reduces the heating of the power supply unit in the working process while providing a larger power supply current for the electronic device, the power supply efficiency of the power supply unit is further improved, and the risk of damaging the power supply unit is reduced.
In some implementations, the method further includes: when the system unit controls the first power supply unit and the second power supply unit to start working, the system unit detects the residual capacity of the battery. When the remaining capacity of the battery is less than a first threshold value or the remaining capacity of the battery cannot be detected, the system unit controls the power supply device to operate in a trickle charge mode, when the power supply device operates in the trickle charge mode, the first power supply unit operates in the first mode, the second power supply unit operates in the second mode, and power supply parameters of the first power supply unit and the second power supply unit are first parameters. When the remaining capacity of the battery is greater than the first threshold and less than a second threshold, the system unit controls the power supply device to work in a fast charging mode, when the power supply device works in the fast charging mode, the first power supply unit works in the third mode, the second power supply unit works in the second mode, power supply parameters of the first power supply unit and the second power supply unit are second parameters, and the second threshold is greater than the first threshold. When the remaining capacity of the battery is greater than the second threshold and the battery is not fully charged, the system unit controls the power supply device to work in a charging termination mode, when the power supply device works in the charging termination mode, the first power supply unit works in the first mode, the second power supply unit works in the second mode, and power supply parameters of the first power supply unit and the second power supply unit are third parameters. Wherein, the first parameter and the third parameter are different, and the charging rate of the battery when the power supply device works in the fast charging mode is higher than the charging rate of the battery when the power supply device works in the trickle charging mode or the terminating charging mode. Based on the scheme, when the electric quantity of the battery is in different states, the power supply device is controlled to work in different power supply modes, so that the power supply device can adapt to the power supply requirements of the system unit and the battery, and the power supply efficiency of the power supply device is improved.
In some implementations, the method further includes: during the operation of the power supply device in the trickle charge mode, the system unit continues to detect the remaining amount of the battery. When the remaining capacity of the battery is greater than the first threshold and less than the second threshold, the system unit controls the power supply device to switch from the trickle charge mode to the fast charge mode. Based on the scheme, the switching to the quick charging mode is realized after the power supply device works in the trickle charging mode.
In some implementations, the method further includes: during the operation of the power supply device in the fast charging mode, the system unit continues to detect the remaining capacity of the battery. When the remaining capacity of the battery is greater than the second threshold, the system unit controls the power supply device to switch from the fast charging mode to the terminated charging mode. Based on the scheme, the switching to the termination charging mode is realized after the power supply device works in the quick charging mode.
In some implementations, the method further includes: during the process that the power supply device works in the charging termination mode, the system unit continues to detect the residual capacity of the battery. When the battery is fully charged, the system unit controls the first power supply unit to work in the first mode, and the second power supply unit is closed. Based on the scheme, the switching to the full-power mode is realized after the power supply device works in the charging termination mode.
In some implementations, when the remaining capacity of the battery is greater than the first threshold and less than a second threshold, before the system unit controls the power supply device to operate in the fast charging mode, the method further includes: the system unit determines that the system state of the system unit is a starting state. The system unit acquires the load state of the system unit at the current moment. The load state of the system unit comprises a light load and a heavy load, and the demand of the system unit for current when the load state is the heavy load is larger than the demand of the system unit for current when the load state is the light load. The system unit controls the power supply device to work in the fast charging mode, and comprises: when the load state of the system unit is light load, the system unit controls the power supply device to work in the fast charging mode. Based on the scheme, when the battery can be rapidly charged, the power supply output of the system unit is not influenced while the battery is determined to be rapidly charged by determining the system state and the load state.
In some implementations, the method further includes: when the load state of the system unit is a heavy load, the system unit controls the power supply device to work in a direct connection mode and a switch charging mode. When the power supply device works in the through and switch charging mode, the first power supply unit works in the first mode, the second power supply unit works in the second mode, power supply parameters of the first power supply unit and the second power supply unit are fourth parameters, and the fourth parameters are different from the first parameters and the third parameters. Based on the above scheme, when the battery can be charged quickly, if the system unit needs to be supplied with power and output with a large current, namely the load state is a heavy load, the power supply output of the system unit can be preferentially ensured.
In some implementations, the method further includes: during the operation of the power supply device in the direct-through and switch charging mode, the system unit continues to detect the remaining capacity of the battery. When the remaining capacity of the battery is greater than the second threshold, the system unit controls the power supply device to switch from the direct-connection and switch charging mode to the termination charging mode. Based on the scheme, the switching to the charging termination mode is realized after the power supply device works in the direct connection and switch charging modes.
In some implementations, the power interface is coupled to the external power source through a power adapter unit, and before the system unit controls the first power supply unit and the second power supply unit to start operating, the method further includes: the system unit determines that the power adapter unit and a cable coupled to the power adapter unit and the power interface satisfy a preset standard, wherein the preset standard is used for indicating that the power adapter unit and the cable can support the first power supply unit and the second power supply unit to work simultaneously. Based on the scheme, when determining that the peripheral devices such as the power supply adapting unit and the cable can meet the condition that the two power supply units work simultaneously, the two power supply units are started to work simultaneously.
In some implementations, when one or both of the power adapter unit and the cable coupling the power adapter unit and the power interface does not meet a preset standard, the first power supply unit is enabled to start power supply output. Based on the above scheme, when the peripheral equipment, such as the power adapter unit or the cable, does not meet the preset standard, then the two power supply units can not be normally started simultaneously to supply power for output.
In a third aspect, an embodiment of the present application provides a chip system. The chip system is applied to electronic equipment. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is configured to receive signals from the memory of the electronic device and to send the signals to the processor, where the signals include computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the power supply method according to the second aspect and possible implementations thereof.
In a fourth aspect, the present application provides an apparatus having a function of implementing the behavior of the electronic device in the method of the above aspects. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, for example, a control unit or module, a detection unit or module, a judgment unit or module, an acquisition unit or module, and the like.
In a fifth aspect, an embodiment of the present application provides a readable storage medium, including: computer software instructions. The computer software instructions, when executed in the control device, cause the control device to perform the power supply method as described in the second aspect or any of the possible implementations of the second aspect.
In a sixth aspect, embodiments of the present application provide a computer program product. When the computer program product runs on a computer, the computer is caused to execute the power supply method according to the second aspect or any of the possible implementations of the second aspect to implement the behavioral functions of the power supply apparatus.
It is to be understood that the chip system of the third aspect, the apparatus of the fourth aspect, the readable storage medium of the fifth aspect and the computer program product of the sixth aspect are all configured to perform the corresponding methods provided above, and therefore, the beneficial effects achieved by the chip system of the third aspect, the readable storage medium of the fifth aspect and the computer program product of the sixth aspect can refer to the beneficial effects of the corresponding methods provided above, and are not described herein again.
Detailed Description
Generally, a power supply unit is included in an electronic device for supplying a current required for the operation of the electronic device. For example, when a system unit of a PC is in an operating state, a power supply unit is required to supply current to the system unit to ensure the normal operation of the system unit. The power supply unit can also supply power to a built-in battery in the PC, so that when no external power supply is connected to the PC, the battery can provide current for a system unit of the PC, and the PC can work normally.
For example, please refer to fig. 1, which is a schematic structural diagram of a power supply unit 100.
As shown in fig. 1, the power supply unit 100 may include a power supply chip (a charge Integrated Circuit) and a peripheral Circuit. When the power supply unit 100 works, an external power supply can input current into the power supply unit 100 through a power interface, and a charger IC in the power supply unit 100 controls the current to be output to a system unit and simultaneously supplies power to a battery.
Illustratively, the peripheral circuit may include 3 field effect transistors (MOS transistors) and 1 inductor. For example, as shown in fig. 1, 3 MOS transistors are respectively identified by Q1, Q2 and Q3, and 1 inductor is identified by L1.
Wherein, the Drain (D) pole of Q1 is coupled to the power interface, the Source (S) pole of Q1 is coupled to the D pole of Q2, the Gate (Gate, G) pole of Q1 is coupled to the charge IC, the S pole of Q2 is grounded, and the G pole is coupled to the charge IC. One end of L1 is coupled to the D pole of Q2, the other end of L1 is coupled to the S pole of Q3, the D pole of Q3 is coupled to the battery, the G pole of Q3 is coupled to the charge IC, and the S pole of Q3 is also coupled to the system unit.
When the power supply unit 100 is in operation, the charge IC may control Q1, Q2, and Q3 to be in different states (such as a switching state, an on state, or an off state), so that Q1, Q2, and Q3 can process the current input to the power interface, so as to obtain a current capable of meeting the power supply requirements of the system unit and the battery, and then output the current to the system unit and the battery.
When the power supply unit 100 operates, each of the components included therein generates heat, which causes the temperature of the power supply unit 100 to rise. The greater the current that the power supply unit 100 needs to provide, the faster the temperature rises. Meanwhile, as the temperature rises, the operating efficiency of the power supply unit 100 decreases, and when the temperature exceeds a certain threshold, there is a risk of damage.
In the power supply scheme shown in fig. 1, when the current required by the system unit is large, or the battery capacity is large and rapid power supply is required, the power supply pressure of the power supply unit 100 is large, and the temperature rises more rapidly during the operation. Thereby causing a problem of a decrease in power supply efficiency and damage to the power supply unit 100. In the present embodiment, the power supply unit may also be referred to as a power supply device.
In order to solve the above problem, embodiments of the present application provide a power supply apparatus and a power supply method, so that a power supply unit provides a larger power supply current for an electronic device, and at the same time, heat generated in a working process of the power supply unit is effectively reduced, thereby improving power supply efficiency of the power supply unit, and reducing a risk of damaging the power supply unit.
For example, the electronic device described in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) \ Virtual Reality (VR) device, a media player, and the like, and the embodiments of the present application do not particularly limit the specific form of the device.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Please refer to fig. 2, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 2, the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a power supply 240, a battery 241, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a key 290, a motor 291, an indicator 292, a camera 293, a display screen 294, a Subscriber Identification Module (SIM) card interface 295, and the like. Among them, the sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
It should be noted that, in the embodiment of the present application, a set of other components in the electronic device except for the power supply device 240 and the battery 241 may be referred to as a system unit.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (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 Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus, and includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, the processor 210 may be coupled with the power supply 240 through an I2C interface to facilitate the processor 210 interacting with the power supply 240 through an I2C interface. For example, the processor 210 may receive information about the input current level, the output current level, the temperature condition of the power supply 240, and whether the power supply 240 is already in a stable output via the I2C interface, which are sent by the power supply 240. The processor 210 may also send control information to the power supply 240 via the I2C interface to control the power supply 240 to be in different operating modes for efficient power output.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like. The electronic device implements display functions via the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information. The electronic device may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device may play or record video in multiple encoding formats. The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent cognition of electronic equipment, for example: image recognition, face recognition, speech recognition, text understanding, and the like. The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device may implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, the application processor, and the like. The speaker 270A, also called a "horn", is used to convert an audio electrical signal into an acoustic signal. The electronic device can listen to music through the speaker 270A or listen to a hands-free conversation. The receiver 270B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device answers a call or voice information, the receiver 270B can be used to answer the voice by being close to the ear. The microphone 270C, also referred to as a "microphone," is used to convert acoustic signals into electrical signals. When a call is placed or a voice message is sent or it is desired to trigger the electronic device to perform some function by the voice assistant, the user may speak via his/her mouth near the microphone 270C and input a voice signal into the microphone 270C. The electronic device may be provided with at least one microphone 270C. In other embodiments, the electronic device may be provided with two microphones 270C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may further include three, four, or more microphones 270C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions. The headphone interface 270D is used to connect wired headphones. The keys 290 include a power-on key, a volume key, etc. The motor 291 may generate a vibration cue. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic device by being inserted into the SIM card interface 295 or being pulled out of the SIM card interface 295. The electronic equipment can support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 295 may also be compatible with different types of SIM cards. The SIM card interface 295 may also be compatible with external memory cards. The electronic equipment realizes functions of conversation, data communication and the like through the interaction of the SIM card and the network. In some embodiments, the electronic device employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
The battery 241 may be used to supply power to the system unit when no external power source is connected, so as to ensure the normal operation of the system unit. In the embodiment of the present application, the battery 241 may be a battery pack including a plurality of strings of batteries. For example, the battery 241 may be a battery pack in which 4 strings of batteries are connected in series.
The power supply device 240 may be configured to receive current provided by an external power source and supply power to the system unit and the battery 241 when connected to the external power source. In the embodiment of the present application, the power supply device 240 may be a unit having a power supply function included in the electronic apparatus.
For example, please refer to fig. 3, which is a schematic structural diagram of a power supply device according to an embodiment of the present application. The power supply device may include a power interface, a first power supply unit, and a second power supply unit. The first power supply unit comprises a first control unit and a first switch unit. The second power supply unit includes a second control unit and a second switching unit.
As shown in fig. 3, the power interface may be coupled to a first terminal (e.g., terminal a) of the first switch unit, the first terminal of the first switch unit is further coupled to the system unit, a second terminal (e.g., terminal B) of the first switch unit is coupled to the battery, and a third terminal (e.g., terminal C) of the first switch unit is coupled to the first control unit.
The power interface is further coupled to a first terminal (e.g., terminal D) of the second switch unit, a second terminal (e.g., terminal E) of the second switch unit is coupled to the battery, and a third terminal (e.g., terminal F) of the second switch unit is coupled to the second control unit.
In the configuration shown in fig. 3, in some embodiments, the first power supply unit may supply power to the system unit and the battery while the second power supply unit supplies power to the battery. In other embodiments, the first power supply unit may only supply power to the battery while the second power supply unit supplies power to the battery. Illustratively, when the power interface is coupled to an external power source, the first control unit controls the first switch unit to be turned on, the first power supply unit simultaneously supplies power to the system unit and the battery, the second control unit controls the second switch unit to be turned on, and the second power supply unit supplies power to the battery. When the power interface is coupled with an external power supply, the first control unit controls the first switch unit to be cut off, the first power supply unit only supplies power to the system unit, meanwhile, the second control unit controls the second switch unit to be switched on, and the second power supply unit supplies power to the battery.
In some embodiments, the first control unit and the second control unit may be power supply chips, such as what are referred to as charge ICs. The first switching unit and the second switching unit may be transistors. For example, the transistor may be a P-channel field effect transistor, i.e., a PMOS transistor.
In the power supply device shown in fig. 3, two power supply units are provided to share the power supply pressure, so that the problem of excessive power supply pressure does not occur in both power supply units. Therefore, the high-temperature influence caused by overlarge power supply pressure can not occur, and the power supply efficiency is improved.
In some embodiments, the first power supply unit may further include a first adapting unit disposed between the power interface and the first switching unit, and the second power supply unit may further include a second adapting unit disposed between the power interface and the second switching unit. As shown in fig. 4, for example, a first end of the first adapting unit is coupled to the power interface, a second end of the first adapting unit is coupled to the first end of the first switching unit, and a control end of the first adapting unit is coupled to the first control unit. When the power interface is coupled to the external power source, the first adapting unit can adapt the current input by the external power source and output the adapted current under the control of the first control unit. So that the first power supply unit can meet the power supply requirements of the system unit and the battery through the adaptation processing of the current. For another example, a first terminal of the second adapting unit is coupled to the power interface, a second terminal of the second adapting unit is coupled to the first terminal of the second switching unit, and a control terminal of the second adapting unit is coupled to the second control unit. When the power interface is coupled with the external power supply, the second adapting unit can adapt the current input by the external power supply and then output the current under the control of the second control unit. So that the second power supply unit can meet the power supply requirement of the battery through the adaptation processing of the current.
In the embodiment of the present application, the first adapting unit may include a first transistor Q1, a second transistor Q2, a third transistor Q3, a fourth transistor Q4, and a first inductor L1. The second adaptation unit may include a fifth transistor Q5, a sixth transistor Q6, a seventh transistor Q7, an eighth transistor Q8, and a second inductor L2. In some embodiments, the transistors Q1-Q8 may be MOS transistors, for example, Q1-Q8 may be NMOS transistors.
For example, referring to fig. 5, a first switch unit is a transistor Q9, a second switch unit is a transistor Q10, a first control unit is a first power supply chip (i.e., a charge IC 1), a second control unit is a second power supply chip (i.e., a charge IC2), and the transistors Q1-Q8 and the transistors Q9 and Q10 are MOS transistors for illustration.
As shown in fig. 5, in the first adaptor unit, a first end (e.g., a D pole) of Q1 may be coupled to the power interface as a first end of the first adaptor unit, a second end (e.g., an S pole) of Q1 is coupled to a D pole of Q2, an S pole of Q2 is coupled to ground, a D pole of Q2 is coupled to one end of L1, another end of L1 is further coupled to a D pole of Q3, an S pole of Q3 is coupled to ground, a D pole of Q3 is further coupled to an S pole of Q4, and a D pole of Q4 may be coupled to an S pole of Q9 as a second end of the first adaptor unit. In addition, the G poles of Q1, Q2, Q3, and Q4 may constitute a control terminal of the first adaptor unit coupled to the charge IC 1.
Similarly, in the second adaptor unit, the D pole of Q5 may be coupled to the power interface as the first end of the second adaptor unit, the S pole of Q5 is coupled to the D pole of Q6, the S pole of Q6 is grounded, the D pole of Q6 is coupled to one end of L2, the other end of L2 is further coupled to the D pole of Q7, the S pole of Q7 is grounded, the D pole of Q7 is further coupled to the S pole of Q8, and the D pole of Q8 may be coupled to the S pole of Q9 as the second end of the second adaptor unit. In addition, the G-poles of Q5, Q6, Q7 and Q8 may constitute the control terminal of the second adapter unit connected to charge IC 2.
The Q1, the Q2 and the L1 may form a boosting circuit so as to perform adaptation processing of boosting the current accessed by the power interface. L1, Q3, and Q4 may constitute a step-down circuit to perform an adaptation process of stepping down the current on the path. Similar Q5, Q6 and L2 may also form an adaptation process in which the boost circuit boosts the current accessed by the power interface. L2, Q7, and Q8 may constitute an adaptation process in which a step-down circuit steps down the current on the path. Illustratively, when current passes through a transistor, Pulse Width Modulation (PWM) waves with different characteristics can be generated, and matching with an inductor, the current can be adapted. For example, the charge IC1 may control Q1 and Q4 to be in an on state and Q2 and Q3 to be in an off state. In this case, it can be achieved that the adapted current can satisfy the requirement that the first power supply unit supplies power only to the system unit. For another example, charge IC1 may control Q1, Q2, Q3, and Q4 to be in the on-off state. At this time, the current after the adaptation can meet the requirement that the first power supply unit simultaneously supplies power to the system unit and the battery. For another example, charge IC2 may control Q5, Q6, Q7, and Q8 to be in a switched state. At this time, the current after the adaptation can meet the power supply of the second power supply unit to the battery.
In the power supply device shown in fig. 5, even if the current accessed through the power interface cannot directly supply power to the system unit or the battery, the power supply device can be adapted and adjusted through the adaptation units in the first power supply unit and the second power supply unit, so that the power supply device can meet the power supply requirements of the system unit and the battery no matter whether the input current can directly supply power.
In some embodiments of the present application, other devices may be further included in the power supply apparatus shown in fig. 3, 4 or 5 to further ensure the normal operation of the power supply apparatus.
The following description will be given taking as an example that the first switch unit, the second switch unit, the first control unit, and the second control unit in the power supply device are components shown in fig. 5, and the power supply device further includes the first adapter unit and the second adapter unit shown in fig. 5.
Referring to fig. 6, the first power supply unit may further include a capacitor C1, a resistor R1, a capacitor C2, a resistor R2, and a capacitor C5. The second power supply unit may further include a capacitor C3, a resistor R3, a capacitor C4, and a resistor R4.
In the first power supply unit, one end of the C1 is coupled to the power interface, the other end of the C1 is grounded, one end of the C2 is coupled to the D pole of the Q1, and the other end of the C2 is grounded. The C1 and C2 may be used to rectify the current that is coupled into the power interface, preventing that the current may damage the first power supply unit if the fluctuations are large.
R1 may be connected in series between the power interface and the D pole of Q1, as disposed between C1 and C2. When the first power supply unit is operating, the voltage across R1 may be sampled and the voltage value fed back to the system unit. The system unit may know, by combining with the resistance value of R1, the current magnitude of the first power supply unit connected to the power interface, so that the system unit adjusts the power supply policy of the power supply device according to the input current magnitude (see the following detailed description of the corresponding content in the embodiment shown in fig. 8), so as to improve the power supply efficiency of the power supply device.
R2 may be connected in series between the battery and the D pole of Q9. The charge IC1 may be configured by sampling the voltage across R2 and feeding the voltage value back to the system unit. The system unit may know the output current of the battery and further know the remaining power (RSOC) of the battery according to the resistance of R2, so that the system unit adjusts the power supply policy of the power supply device according to the RSOC of the battery (see the following detailed description of the corresponding content in the embodiment shown in fig. 8), so as to improve the power supply efficiency of the power supply device.
In addition, the first power supply unit may further include a capacitor C5, a D pole of the Q4 of the capacitor C5 is coupled, and the other end of the C5 is grounded. The C5 is configured to rectify the current from the first power supply unit to the system unit, so as to protect the system unit from being affected when the output current of the first power supply unit fluctuates.
As shown in fig. 6, the capacitors (e.g., C3 and C4) and the resistors (e.g., R3 and R4) included in the second power supply unit are coupled in a similar manner to the capacitors and the resistors in the first power supply unit, and their functions are also the same as those of the capacitors and the resistors in the first power supply unit, respectively, and are not described again here.
It should be noted that, as shown in fig. 6, the first power supply chip (i.e., charge IC 1) and the second power supply chip (i.e., charge IC2) may also be coupled to the system unit (e.g., a processor in the system unit) through an I2C interface, so as to interact with the system unit. For example, after the output voltage of the first power supply unit is stabilized, the charge IC1 may send a "voltage stabilization output" signal (e.g., a high level signal) to the system unit, so that the system unit knows that the voltage of the first power supply unit is stably output. When the first power supply unit overheats, the charge IC1 may send an "overheat" signal (e.g., a low level signal) to the system unit so that the system unit knows that the first power supply unit overheats. The charge IC1 and the charge IC2 may also feed back the magnitude of the output current of the power supply device to the system unit through the I2C interface, so that the system unit knows the power supply capability of the power supply device at the present moment. In addition, the system unit may transmit control information to charge IC1 and/or charge IC2 through the I2C interface to set power supply parameters and modes of the power supply apparatus.
For example, referring to fig. 7, each of the first power supply chip (i.e., charge IC 1) and the second power supply chip (i.e., charge IC2) may include a plurality of ports to interact with the system unit. The function of each port is exemplified below.
In the charge IC1, a part of the ports may be used for controlling the first adapter unit and for collecting electrical signals in the first adapter unit. For example, the ACN port and the ACP port are coupled across a resistor R1, respectively, for sampling a voltage across a resistor R1 to determine a current condition of the input power supply. The VBUS _ IN port is coupled to the D pole of Q1 for sampling the voltage input to the power supply. The HIDRV 1 port is coupled to the G-pole of Q1 for controlling the operating state of Q1. The L0 DRV 1 port is coupled to the G pole of Q2 for controlling the operating state of Q2. The SW 1 port and the SW 2 port are respectively coupled to two ends of the inductor L1 for sampling the voltage across the inductor L1. The L0 DRV 2 port is coupled to the G pole of Q3 for controlling the operating state of Q3. The HIDRV 2 port is coupled to the G-pole of Q4 for controlling the operating state of Q4. The SYS port is coupled to the system unit for outputting a current to the system unit. The BATDRV port is coupled to the G pole of Q9 for controlling the operating state of Q9. The SRP port and the SRN port are respectively coupled to two ends of a resistor R2 for sampling a voltage across a resistor R2 to determine a charge condition in the battery.
Also included in the charge IC1 are the PSYS port, ACOK port, IBAT port, IADPT port, I2C _ D port, I2C _ C port, ILIM _ HIZ port, and PROCHOT port. These ports may be coupled to the system unit via I2C buses, respectively, for communicating with the system unit. For example, the PSYS port may be used to feed back to the system unit the magnitude of the first power supply unit output current. The ACOK port may be configured to send a high level signal to the system unit after the output voltage of the first power supply unit is stabilized, so that the system unit knows that the output voltage of the first power supply unit is stabilized. The IBAT port may be used to feed back to the system unit the magnitude of the current discharged from the battery. The IADPT port may be used to feed back to the system unit the current magnitude input to the first power supply unit. The I2C _ C port and the I2C _ D port may be configured to receive a control signal transmitted by the system unit, so as to modify a power supply parameter of the charge IC1 according to the control signal. The ILIM HIZ port may be adapted to receive a control signal sent by the system unit for controlling the first power supply unit module to enter a different power supply mode (e.g. BB or PTM mode) in dependence of the control signal. The PROCHOT port may be used to send a low signal to the system unit when the first power supply unit is overheating, so that the system unit knows that the first power supply unit is overheating.
As shown in fig. 7, charge IC2 may include a port similar to charge IC1, and its role may correspond one-to-one to the role of the port in charge IC 1. The difference is that since the second power supply unit can only supply power to the battery, its various parameters do not require a feedback system unit, and therefore the PROCHOT port, ACOK port, IBAT port, and IADPT port in the charge IC2 may not be connected to the system unit. In addition, the PSYS port of the charge IC2 may be connected with the PSYS port of the charge IC1 so that the system unit may know the sum of the currents that the first and second power supply units are capable of outputting.
It should be noted that, in other embodiments of the present application, before the external power source inputs the current into the power interface, the current provided by the external power source may be rectified by the power adapter, so as to reduce the influence of the fluctuation or the over-voltage of the external power source on the power supply device.
The power supply method provided by the embodiment of the application can be applied to any one of the power supply devices shown in fig. 3, 4, 5, 6 or 7. Based on the power supply method, the power supply device can effectively reduce the heating of the power supply device while providing larger power supply current for the electronic equipment, thereby improving the power supply efficiency of the power supply device and reducing the risk of damaging the power supply device.
In order to more clearly describe the power supply method provided by the embodiment of the present application, an electronic device is taken as a PC, a power supply device included in the electronic device is the power supply device shown in fig. 7, an external power supply is connected to a power interface through a power adapter, and a battery included in the PC is a battery pack formed by connecting a plurality of batteries in series. As shown in fig. 8, the method may include S801-S803.
S801, the power interface is coupled with an external power supply, and the system unit controls the first power supply unit and the second power supply unit to start working.
When the power interface is connected with an external power supply, the current can be connected into the power supply device through the power interface. The processor in the system unit may initiate the power supply to start operating, for example, the processor may initiate the first power supply unit and the second power supply unit to start dual-charge IC charging.
And S802, detecting the residual electric quantity of the battery pack by the system unit.
The remaining capacity (RSOC) of the battery pack in the PC affects the current demand of the battery pack, and therefore, in order to control the power supply device to perform effective power output, the processor of the system unit may detect the remaining capacity of the battery pack when the power supply device is started. The system unit may obtain RSOC of the battery pack by sampling a voltage of a corresponding device in the power supply apparatus and calculating according to the sampled voltage, an electrical property (e.g., resistance value) of the device, and an electrical property of the battery pack.
Illustratively, as shown in fig. 7, the power supply device may sample the voltage across two resistors R2 and R4, and send the sampled 4 voltage samples to the processor. The processor can determine the current magnitude of the path of R2 according to the voltage across R2 and the resistance of R2. Similarly, the processor may also determine the magnitude of the current on the path in which R4 is located. Since the current of the battery pack is equal to the sum of the current of the path of the R2 and the current of the path of the R4, the processor can determine the current flowing through the battery pack according to the current of the path of the R2 and the current of the path of the R4. The RSOC of the battery pack can be determined by calculation in conjunction with the equivalent resistance of the battery pack.
And S803, the system unit controls the power supply device to supply power to the system unit and the battery pack in a corresponding power supply mode according to the residual capacity of the battery pack.
In the embodiment of the present application, the power supply modes of the power supply device may include a trickle Charge mode (Pre/Wakeup Charge), a Fast Charge mode (Fast Charge), a Terminated Charge mode (Terminated Charge), a direct and switch Charge mode (PTM + BuckBoost Charge), and a Full Charge mode (Full Charge). Exemplary descriptions of the several power modes described above will appear from the description below.
For example, the processor of the system unit may control the power supply device to operate in different power supply modes by controlling an operating mode of the first power supply unit, an operating mode of the second power supply unit, and a power supply parameter of the power supply device.
The operation mode of the power supply unit (such as the first power supply unit or the second power supply unit) may include: a Pass Through Mode (PTM) Mode, and a boost/buck (buckbus, BB) Mode. For example, referring to fig. 5, when the first power supply unit is in the Pass Through Mode (PTM), Q1 and Q4 in the first power supply unit are in the on state Q2 and Q3 are in the off state. For another example, when the first power supply unit is in a boost/buck (BB) mode, Q1, Q2, Q3, and Q4 in the first power supply unit are in a switching state. For another example, when the second power supply unit is in the BB mode, Q5, Q6, Q7, and Q8 in the second power supply unit are in the switching state.
Referring to fig. 9, the power supply parameters of the power supply device include an input current limiting parameter I of the first power supply unitlim1Output current limiting parameter I of the first power supply unitchg1Input of a second power supply unitCurrent limiting parameter Ilim2And an output current limiting parameter I of the second power supply unitchg2The unit of the current is ampere (A) for example. The above S803 may specifically include S901 to S904.
And S901, when the RSOC of the battery pack is smaller than a first threshold value or the RSOC of the battery pack cannot be detected, controlling the power supply device to work in a trickle charge mode by the system unit.
When the RSOC in the battery pack is low, for example, the RSOC in the battery pack is smaller than the first threshold (for example, the first threshold may be 0%), the battery pack cannot be rapidly charged with a large current for the protection of the battery pack. The processor of the system unit may then control the power supply to operate in the trickle charge mode.
For example, the processor may control the power supply to operate in the trickle charge mode by: and controlling the first power supply unit to work in a first mode (such as a PTM mode) and the second power supply unit to work in a second mode (such as a BB mode) so that the first power supply unit only supplies power to the system unit and the second power supply unit supplies power to the battery pack. Meanwhile, the power supply parameter of the power supply device is set as a first parameter, and the first parameter satisfies the following formula (1-1), formula (1-2) and formula (1-3).
Ichg20.128 … … formula (1-1),
Ilim2=0.128*Vbat/(a x) … … formula (1-2),
Ilim1=b*y-Ilim2… … formula (1-3).
Wherein, VbatFor the charging voltage of the battery pack, a is the power supply efficiency of the second power supply unit, x is the rated output voltage of the power adapter, b is the safety factor, and y is the rated output current of the power adapter. Exemplary, VbatCan be according to VbatC4, where c is the number of strings in the battery.
And S902, when the residual capacity of the battery pack is greater than a first threshold value and less than a second threshold value, the system unit controls the power supply device to work in a quick charging mode.
When a certain amount of charge is stored in the battery pack (e.g., RSOC of the battery pack is greater than a first threshold (e.g., 0%) and less than a second threshold (e.g., 90%), the battery pack can be charged quickly so as to fill the battery pack in a short time. The processor of the system unit may then control the power supply to operate in the fast charge mode.
For example, the processor may control the power supply to operate in the fast charge mode by: and controlling the first power supply unit to work in a third mode (such as BB mode), and controlling the second power supply unit to work in a second mode (such as BB mode), so that the first power supply unit can simultaneously supply power to the system unit and the battery pack, and the second power supply unit can supply power to the battery pack. And simultaneously setting the power supply parameters of the first power supply unit and the second power supply unit as second parameters, wherein the second parameters satisfy the following formula (2-1), formula (2-2), formula (2-3) and formula (2-4).
Ilim2=Ichg2*Vbat/(a x) … … formula (2-1),
Ichg2=1/3*Ichg… … formula (2-2),
Ilim1=b*y-Ilim2… … formula (2-3),
Ichg1=2/3*Ichg… … equation (2-4).
Wherein, IchgThe maximum charging current of the battery pack.
It should be noted that, when the power supply device operates in the fast charging mode, since the first power supply device needs to supply power to the system unit and the battery simultaneously, I is given in the exemplary descriptions of the above equations (2-2) and (2-4)chg1Is set to Ichg2Twice as much. In the embodiment of the application, I can also be setchg1And Ichg2For other size relationships, for example, the second parameter may be set to satisfy Ichg2=1/4*Ichg1=1/5*Ichg. In a specific implementation process of the embodiment of the present application, the relationship between the output current of the first power supply unit and the output current of the second power supply unit may be flexibly set in combination with the reality, and the embodiment of the present application is not limited herein.
And S903, when the residual capacity of the battery is greater than the second threshold and the battery is not fully charged, the system unit controls the power supply device to work in a charging termination mode.
When the RSOC of the battery is greater than the second threshold (e.g., 90% of the second threshold) and the battery is not fully charged, the battery is close to full charge, and the battery no longer needs to be rapidly charged. The processor of the system unit may then control the power supply to operate in the termination charging mode.
For example, the processor may control the power supply device to operate in the termination charging mode by: and controlling the first power supply unit to work in a first mode (such as a PTM mode) and the second power supply unit to work in a second mode (such as a BB mode) so that the first power supply unit supplies power to the system unit and the second power supply unit supplies power to the battery pack. And simultaneously setting the power supply parameters of the first power supply unit and the second power supply unit as a third parameter, wherein the third parameter satisfies the following formula (3-1), formula (3-2) and formula (3-3).
Ichg20.5 … … formula (3-1),
Ilim2=0.5*Vbat/(a x) … … formula (3-2),
Ilim1=b*y-Ilim2… … formula (3-3).
And S904, when the battery is fully charged, the system unit controls the power supply device to work in a full-charge mode.
When the battery is fully charged, the battery pack no longer needs to be continuously powered. The processor of the system unit may then control the power supply to operate in a full charge mode.
For example, the processor may control the power supply to operate in a full charge mode by: the first power supply unit is controlled to work in a first mode (such as a PTM mode), and the second power supply unit is controlled. The power supply parameters of the first power supply unit and the second power supply unit are simultaneously set to satisfy the following formula (4-1), formula (4-2), and formula (4-3).
Ichg20 … … formula (4-1),
Ilim20 … … formula (4-2),
Ilim1y … … formula (4-3).
It is understood that when the input power is constant, the total current that the power supply device can output is also constant. If the battery pack is charged rapidly, the power supply device needs to output a large current to the battery pack, and the current output to the system unit is reduced in response. If the current required by the system unit is large, the problem of insufficient power supply of the system unit occurs. Therefore, in some implementations of the embodiments of the present application, the processor of the system unit may control the operation mode of the power supply device according to the detection result by detecting the system state and the load condition of the system unit, so as to realize fast charging of the battery pack while ensuring normal operation of the system unit.
The system states may include a sleep state (or referred to as S3 state), a power-off state (or referred to as S5 state), and a power-on state (or referred to as S0 state). When the system state is in the state of S0, the system unit is in a normal operating state, the load condition may include a light load and a heavy load, and the demand for current when the load state of the system unit is the heavy load is greater than the demand for current when the load state of the system unit is the light load. For example, when the current required for the operation of the system unit is greater than 70% of the maximum current that can be supplied by the power supply device, the present load condition is considered to be a heavy load. When the current required by the system unit is less than 70% of the maximum current that can be supplied by the power supply device, the current load condition is considered to be light load.
For example, please refer to fig. 10, which shows a flow chart of a power supply method for controlling a power supply unit to output power supply in combination with a system state and a load condition of a system unit. The flow in this power supply method is similar to the flow shown in fig. 9, and the difference between the two is exemplarily described below.
As shown in fig. 10, after executing S802, when the RSOC of the battery pack is greater than the first threshold and less than the second threshold, the processor of the system unit may perform detection in the system state, and control the power supply device to operate in different modes to perform power supply output according to the detection result. The process may include S1001-S1005.
And S1001, when the RSOC of the battery pack is larger than a first threshold and smaller than a second threshold, the system unit detects the system state.
For example, the detection of the system state may be performed by a processor in the system unit.
S1002, the system unit determines that the system state is a starting state.
It is understood that when the system state is the on state, most components of the system unit are in a normal operating state, and the demand for the supply current may be larger or smaller. In this embodiment of the application, when the system state is in the boot state, the processor of the system unit may execute the following step S1003 to determine the magnitude of the current that needs to be output to the system unit.
When the system state is the shutdown state or the sleep state, most parts of the system unit are also in the non-operating or sleep state, and the demand on the power supply current is very small. The processor may control the power supply to enter the fast charge mode in accordance with the method shown in fig. 9. The method for the processor to control the power supply device to enter the fast charging mode is similar to the above description in S902, and is not described herein again.
S1003, the system unit acquires the load state of the system unit at the current time.
And S1004, when the load state of the system unit is light load, the system unit controls the power supply device to work in a quick charging mode.
When the load state of the system unit is light load, it represents that the normal operation of the system unit does not need large supply current. At this time, the processor of the system unit may control the power supply device to operate in the fast charging mode, so that the power supply device may provide a larger supply current for the battery pack to fast charge the battery pack. The method for controlling the power supply device to operate in the fast charging mode by the processor is similar to S902 shown in fig. 9, and is not described herein again.
And S1005, when the load state of the system unit is a heavy load, the system unit controls the power supply device to work in a direct connection and switch charging mode.
When the load state of the system unit is a heavy load, it indicates that the normal operation of the system unit needs a large supply current. In the embodiment of the present application, although the RSOC of the battery can support fast charging, in order to ensure normal operation of the system unit, the power supply device needs to preferentially output power supplied to the system unit.
For example, the processor of the system unit may control the power supply to operate in the pass-through and switch charging modes.
For example, the processor may control the first power supply unit to operate in a first mode (e.g., PTM mode) and the second power supply unit to operate in a second mode (e.g., BB mode) such that the first power supply unit supplies power to the system unit and the second power supply unit supplies power to the battery pack. Meanwhile, the processor may set the power supply parameters of the first power supply unit and the second power supply unit to a fourth parameter, which satisfies the following formula (5-1), formula (5-2), and formula (5-3).
Ichg2T … … formula (5-1),
Ilim2=t*Vbat/(a x) … … formula (5-2),
Ilim1=b*y-Ilim2… … formula (5-3).
Wherein t is a preset output current magnitude for the battery pack. In some embodiments, the parameter t may also be a parameter customized by the user.
To make the setting of the different power supply modes more clear, the maximum charging current I of the battery is used as followschg6.67A, the number c of the battery strings is 2, the output rated voltage x of the power adapter is 20V, the output rated current y of the power adapter is 3.25A, the power supply efficiency a of the second power supply unit is 0.94, the safety factor b is 0.97, and t is set to be 128 mA.
When the processor controls the power supply device to operate in the trickle charge mode, the power supply parameter of the power supply device may be set to a first parameter according to equations (1-1), (1-2), and (1-3):
Ichg2=128mA,
Ilim2=0.128*Vbat/(a*x)=0.128*2*4/(0.94*20)=54.5mA,
Ilim1=b*y-Ilim2=0.97*3.25-0.0545=3.1A。
when the processor controls the power supply device to operate in the fast charging mode, the power supply parameter of the power supply device may be set to a second parameter according to equations (2-1), (2-2), (2-3), and (2-4):
Ichg2=1/3*Ichg=2.22A,
Ilim2=Ichg2*Vbat/(a*x)=0.95A,
Ilim1=b*y-Ilim2=2.2A,
Ichg1=2/3*Ichg=4.45A。
when the processor controls the power supply device to operate in the termination charging mode, the power supply parameter of the power supply device may be set to a third parameter according to equations (3-1), (3-2), and (3-3):
Ichg2=500mA
Ilim2=0.5*Vbat/(a*x)=0.5*8/(0.94*20)=0.21A
Ilim1=b*y-Ilim2=0.97*3.25-0.21=2.94A
when the processor controls the power supply device to work in the full-charge mode, the power supply parameters of the power supply device can be set to be as follows according to the formulas (4-1), (4-2) and (4-3):
Ichg2=0,
Ilim2=0,
Ilim1=y=3.25A。
when the processor controls the power supply device to operate in the through and switch charging modes, the power supply parameter of the power supply device may be set to a fourth parameter according to equations (5-1), (5-2), and (5-3):
Ichg2=128mA,
Ilim2=0.128*Vbat/(a*x)=0.128*2*4/(0.94*20)=54.5mA,
Ilim1=b*y-Ilim2=0.97*3.25-0.0545=3.1A。
in the method shown in fig. 10, the system state detection is performed after the RSOC of the battery pack is determined to be greater than the first threshold and less than the second threshold. In this embodiment of the present application, the system state may also be detected first, after the system state is determined, the RSOC of the battery pack is detected, and the two detection results are combined to control the power supply device to operate in different modes for power supply output.
For example, referring to fig. 11, the first threshold is 0%, and the second threshold is 90%. As shown in fig. 11, the method may include S1101-S1112.
S1101, when the power interface is connected with an external power supply, the system unit starts the power supply device to supply power.
And S1102, detecting the system state by the system unit.
When the system state is the sleep state or the shutdown state, the following S1103-S1107 are executed. When the system state is the power-on state, the following steps S1108-S1112 are executed.
S1103, the system unit detects RSOC of the battery.
When RSOC is < 0%, or RSOC cannot be detected, the following S1104 is performed. When 0% < RSOC < 90%, the following S1105 is performed. When 90% < RSOC < 100%, the following S1106 is performed. When RSOC is 100%, the following S1107 is executed.
And S1104, the system unit controls the power supply device to work in a quick charging mode.
And S1105, the system unit controls the power supply device to work in a quick charging mode.
And S1106, controlling the power supply device to work in a charging termination mode by the system unit.
And S1107, the system unit controls the power supply device to work in a full-power mode.
S1108, the system unit detects RSOC of the battery.
When RSOC is < 0%, or RSOC cannot be detected, the following S1109 is performed. When 0% < RSOC < 90%, the following S1110 is performed. When 90% < RSOC < 100%, the following S1111 is executed. When RSOC is 100%, the following S1112 is executed.
And S1109, the system unit controls the power supply device to work in a quick charging mode.
S1110, the system unit acquires a load state.
When the load state is a light load, the system unit controls the power supply device to operate in the fast charging mode (i.e., performs S1110 a). When the load status is heavy, the system unit controls the power supply device to operate in the through and switch charging mode (i.e., execute S1110 b).
And S1111, the system unit controls the power supply device to work in a charging termination mode.
S1112, the system unit controls the power supply device to operate in a full power mode.
It should be noted that, on the basis of the power supply methods shown in fig. 8, 9, 10 and 11, during the operation of the power supply device, the processor of the system unit may detect RSOC of the battery pack multiple times to implement real-time control of the operation mode of the power supply device.
For example, please refer to fig. 12, which illustrates a power supply method shown in fig. 9.
As shown in fig. 12, after S901 is executed such that the power supply apparatus operates in the trickle charge mode, S1201 may be executed. That is, the system unit detects the remaining capacity of the battery pack. During the operation of the power supply device in the trickle charge mode, the RSOC of the battery pack gradually rises due to the power supply to the battery pack. For example, the RSOC of the battery pack gradually rises to a level that can be detected or reaches a first threshold (e.g., 0%). When the processor detects that the RSOC of the battery pack is greater than or equal to the first threshold, S902 may be performed. That is, when the remaining capacity of the battery pack is greater than the first threshold and less than the second threshold, the system unit controls the power supply device to operate in the fast charging mode. Thus, the power supply mode is switched from the trickle charge mode to the quick charge mode as the battery pack RSOC increases after the power supply device operates in the trickle charge mode.
It should be noted that, in the embodiment of the present application, after the processor controls the power supply device to operate in the trickle charge mode for a period of time, if the RSOC of the battery is still in a state of being less than the first threshold or being unable to detect the amount of power, it indicates that the battery is damaged (dead battery). In this embodiment, the processor may control the power supply device to stop the second power supply unit, and perform power supply output in a state where only the first power supply unit operates.
Similarly, after the power supply device operates in the fast charging mode, for example, when the RSOC of the battery pack is greater than the first threshold and less than the second threshold when the first power supply unit and the second power supply unit start operating, the system unit controls the power supply device to directly enter the fast charging mode, and if the RSOC of the battery pack is greater than the first threshold and less than the second threshold after the power supply device operates in the trickle charging mode for a while, the system unit controls the power supply mode of the power supply device to switch from the trickle charging mode to the fast charging mode. The system unit may proceed to S1202. That is, the system unit detects the remaining capacity of the battery pack. During the operation of the power supply device in the fast charging mode, due to the power supply to the battery pack, the RSOC of the battery pack gradually rises. For example, the RSOC of the battery pack may gradually increase to be greater than or equal to the second threshold (e.g., 90% of the second threshold) within a range from the first threshold to the second threshold. When the processor detects that the RSOC of the battery pack is greater than or equal to the second threshold, S903 may be performed. That is, when the remaining capacity of the battery is greater than the second threshold and the battery is not fully charged, the system unit controls the power supply device to operate in the termination charging mode. In this way, the switching of the power supply mode from the fast charge mode to the termination charge mode is realized as the battery pack RSOC rises after the power supply device operates in the fast charge mode.
After the power supply device operates in the charging termination mode, for example, when the first power supply unit and the second power supply unit start operating, the RSOC of the battery pack is greater than the second threshold and is less than full power, the system unit controls the power supply device to directly enter the charging termination mode, and if the RSOC of the battery pack is greater than the second threshold and is less than full power after the power supply device operates in the fast charging mode for a while, the system unit controls the power supply mode of the power supply device to be switched from the fast charging mode to the charging termination mode. The system unit may continue to execute S1203. That is, the system unit detects the remaining capacity of the battery pack. During the operation of the power supply device in the termination of the charging mode, due to the power supply to the battery pack, the RSOC of the battery pack gradually rises. For example, the RSOC of the battery pack may gradually increase to reach full power (i.e., RSOC equals 100%) within a range from the second threshold to full power. When the processor detects that RSOC of the battery pack is 100%, S904 may be performed. That is, when the battery is fully charged, the system unit controls the power supply device to operate in a full charge mode. In this way, the power supply mode is switched from the charging termination mode to the full charge mode as the battery pack RSOC rises after the power supply device operates in the charging termination mode.
Similarly, in conjunction with the embodiment shown in fig. 10 or fig. 11, the system unit may also continue to detect the remaining capacity of the battery during the operation of the power supply device in the through and switch charging modes. When the residual capacity of the battery is larger than the second threshold value, the system unit controls the power supply device to be switched from the direct connection and switch charging mode to the charging termination mode.
Therefore, the system unit controls the switching of the power supply device under different power supply modes along with the change of the battery pack RSOC. The power supply device can flexibly and efficiently supply power and output different power supply requirements.
In addition, in some embodiments of the present application, the system unit may determine, before controlling the first power supply unit and the second power supply unit to start operating, that the power adapter unit and the cable coupling the power adapter unit and the power interface satisfy a preset standard, where the preset standard is used to indicate that the power adapter unit and the cable can support the first power supply unit and the second power supply unit to operate, such as dual-charger IC charging. For example, the preset standard may be that the power adapter unit is a standard power adapter unit, and the cable is a standard cable. And when the processor determines that the power adapter unit or the cable does not meet the preset standard, the processor indicates that the power adapter unit and the cable do not support dual-charge IC charging, and the processor can independently start the first power supply unit to supply power and output.
Based on the scheme, the second power supply unit is arranged, so that the power supply pressure of the first power supply unit to the battery is reasonably shared, and the first power supply unit cannot work under a higher load for a long time. Under the prerequisite that the power supply unit is not influenced to the power supply of system unit and battery guaranteeing, power supply unit has reduced generating heat, and then has promoted whole power supply unit's work efficiency to the risk that power supply unit damaged has been reduced.
Furthermore, the processor controls the power supply unit to work in different charging modes according to different states of the system state and the residual electric quantity in the battery, matching of power supply output aiming at different charging scenes is achieved, and the power supply device can efficiently supply power and output power.
Fig. 13 shows a schematic diagram of a chip system 1300. The chip system 1300 may include: a processor 1301 and a communication interface 1302 for supporting a power supply apparatus to implement the functions involved in the above embodiments. In one possible design, chip system 1300 may also include a memory for storing necessary program instructions and data for the terminal. The chip system 1300 may be formed by a chip, or may include a chip and other discrete devices.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.