Power supply device and power management method
By designing a power supply device including a power interface, a power supply interface, a power switch, a battery and a microcontroller, the problem of mobile power supply being unable to charge and discharge at the same time is solved, and the charging and discharge needs are synchronized to handle charging and discharge needs is achieved, and user convenience is improved.
Patent Information
- Application Number
- CN202412000450.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-01
AI Technical Summary
The existing mobile power supply cannot perform charging and discharging operations at the same time, resulting in users having to deal with charging and discharging needs separately, reducing convenience.
Design a power supply device, including a power supply interface, a power supply interface, a power switch, a battery and a microcontroller. The input power and total output power requirements are determined by the microcontroller and the power switch is controlled to achieve simultaneous charging and discharging.
The charging and discharging requirements of the power supply device are synchronized, which improves user convenience, especially when traveling or multiple devices need to be charged.
Smart Images

Figure CN119742894A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic circuit technology, and more particularly to a power supply device and a power management method. Background Art
[0002] As the functions of smartphones are improved, the power consumption of smartphones increases. In the case that the batteries of smartphones are currently non-replaceable, using a mobile power bank to charge smartphones is the current solution.
[0003] Most mobile power banks on the market today have a common limitation in that they cannot charge and discharge at the same time. Specifically, when charging via the mains, the mobile power bank cannot discharge electronic devices such as smartphones and laptops. Therefore, users need to handle the charging and discharging needs of the mobile power bank separately, and cannot charge and discharge the mobile power bank at the same time. The aforementioned limitations of the mobile power bank greatly reduce the convenience, and especially when traveling or when both the mobile phone and the mobile power bank need to be charged, it will cause a lot of inconvenience to the user. Summary of the invention
[0004] Based on the foregoing, the present application provides a power supply device and a power management method to solve the problem that a mobile power supply cannot be charged and discharged at the same time.
[0005] Based on the above purpose, the present application provides a power supply device, including a power interface, a first power interface, a plurality of second power interfaces, a first power switch, a second power switch, a battery and a microcontroller. The power interface is used to connect an external power source to receive input power. The first power interface is used to connect a first power receiving device. The plurality of second power interfaces are used to connect a plurality of second power receiving devices. The first power switch connects the power interface and the first power interface. The second power switch connects the plurality of second power interfaces and the first power switch. The battery connects the second power switch. The microcontroller connects the power interface, the first power interface, the plurality of second power interfaces, the first power switch, the second power switch and the battery, obtains the input power of the input power and calculates the total output power requirement of the first power receiving device and the plurality of second power receiving devices, and determines whether the input power is greater than the total output power requirement. When it is determined that the input power is greater than the total output power requirement, the microcontroller controls the first power switch and the second power switch to be turned on, and the input power is transmitted to the first power interface and the plurality of second power interfaces, and the battery is charged. When it is determined that the input power is not greater than the total output power requirement, the microcontroller controls the first power switch to be disconnected and controls the second power switch to be turned on. The microcontroller starts the battery to provide auxiliary power. The input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power supply interface and multiple second power supply interfaces.
[0006] Based on the above purpose, the present application provides a power management method, which is applicable to a power supply device. The power supply device includes a power interface, a first power interface, a plurality of second power interfaces, a first power switch, a second power switch, a battery and a microcontroller; the power interface is used to connect to an external power source to receive input power, the first power interface is used to connect to a first power receiving device, and the plurality of second power interfaces are used to connect to a plurality of second power receiving devices. The power management method is executed through the microcontroller and includes: obtaining the input power of the input power and calculating the total output power requirement of the first power receiving device and the plurality of second power receiving devices; determining whether the input power is greater than the total output power requirement; when determining that the input power is greater than the total output power requirement, controlling the first power switch and the second power switch to be turned on, wherein the input power is transmitted to the first power interface and the plurality of second power interfaces, and charging the battery; when determining that the input power is not greater than the total output power requirement, controlling the first power switch to be turned off and controlling the second power switch to be turned on, and starting the battery to provide auxiliary power, wherein the input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power interface and the plurality of second power interfaces.
[0007] In summary, the power supply device and power management method of the present application configure input power to power the first power receiving device and multiple second power receiving devices and charge the battery according to the input power and total output power requirements, or selectively start the battery to provide auxiliary power, and configure input power and auxiliary power to power the first power receiving device and multiple second power receiving devices. Therefore, the power supply device and power management method of the present application synchronously handle the charging and discharging requirements of the power supply device. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 The figure shows an external configuration diagram of a power supply device according to an embodiment of the present application.
[0009] Figure 2 The figure shows the internal configuration of a power supply device according to an embodiment of the present application.
[0010] Figure 3 The figure shows the internal configuration of a power supply device according to another embodiment of the present application.
[0011] Figure 4 The figure is a schematic diagram illustrating a power supply device in a standby state according to another embodiment of the present application.
[0012] Figure 5 The following is a flow chart of a power management method according to an embodiment of the present application.
[0013] Figure 6 The present invention is a schematic diagram illustrating the operation of a power supply device when the input power is greater than the output power requirement according to an embodiment of the present application.
[0014] Figure 7 The present invention is a schematic diagram illustrating the operation of a power supply device when the input power is not greater than the output power requirement according to an embodiment of the present application.
[0015] Fig. 8A and Figure 8B The following is a flow chart of a power management method according to another embodiment of the present application.
[0016] Fig. 9 A schematic diagram illustrating the operation of a power supply device when not connected to an external power source is shown according to another embodiment of the present application.
[0017] Fig.10 A schematic diagram illustrating the operation of a power supply device when the input power is greater than the output power requirement is shown according to another embodiment of the present application.
[0018] Fig.11 According to another embodiment of the present application, a schematic diagram is shown of the operation of the power supply device when the input power is not greater than the output power requirement and the input power is not equal to the first load power requirement of the first power receiving device.
[0019] Fig.12 According to another embodiment of the present application, a schematic diagram is shown of the operation of the power supply device when the input power is not greater than the output power requirement and the input power is equal to the first load power requirement of the first power receiving device.
[0020] FIG. 13A to FIG. 13C According to another embodiment of the present application, a flow chart of a power management method is illustrated.
[0021] FIG. 14A to FIG. 14C According to yet another embodiment of the present application, a flow chart of a power management method is illustrated.
[0022] Description of reference numerals:
[0023] 1A, 1B: Power supply device
[0024] 10: First power switch
[0025] 20: Second power switch
[0026] 30: Battery
[0027] 40: Microcontroller
[0028] 50: Power Controller
[0029] 60: First power supply controller
[0030] 70A, 70B: Second power supply controller
[0031] 80: Auxiliary current sensor
[0032] 90: First current sensor
[0033] 100A, 100B: Second current sensor
[0034] C1: External power supply
[0035] D1: The first power receiving device
[0036] D2, D3: Second power receiving device
[0037] DS1: Display screen
[0038] P1: The first power supply port
[0039] P2A, P2B: Second power supply interface
[0040] P3: Power interface
[0041] S11 to S14, S21 to S28, S31 to S46, S51 to S68: Steps DETAILED DESCRIPTION
[0042] The following is an explanation of the implementation of the present application by means of specific embodiments. People familiar with the technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification.
[0043] It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and in combination with the embodiments. In order to enable those skilled in the art to better understand the present application scheme, the technical scheme in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0045] See also Figure 1 , which is a diagram showing the external configuration of a power supply device according to an embodiment of the present application. Figure 1 As shown, the power supply device 1A can be a power bank. In the external configuration of the power supply device 1A, the power supply device 1A includes a first power supply interface P1, second power supply interfaces P2A and P2B, and a power interface P3. The first power supply interface P1 is used to connect the first power receiving device D1. The second power supply interfaces P2A and P2B are used to connect the second power receiving devices D2 and D3. The power interface P3 is used to connect the external power source C1 to receive input power.
[0046] Specifically, the first power supply interface P1 is a USB (Universal Serial Bus) Type-C interface for connecting to the first powered device D1; in the present embodiment, the first power supply interface P1 is an external USB Type-C connector. The external USB Type-C connector is connected to the first powered device D1 through the USB Type-C socket of the first powered device D1 or is not connected to the first powered device D1. The first powered device D1 may be, for example, a laptop computer. When the external USB Type-C connector is inserted into the USB Type-C socket of the laptop computer, the first power supply interface P1 is connected to the laptop computer; when the external USB Type-C connector is not inserted into the USB Type-C socket of the laptop computer, the first power supply interface P1 is not connected to the laptop computer.
[0047] Specifically, the second power supply interface P2A is a USB Type-A interface for connecting the second powered device D2; in the present embodiment, the second power supply interface P2A is a built-in USB Type-A socket. The built-in USB Type-A socket is connected to the second powered device D2 through a USB Type-A transmission line or is not connected to the second powered device D2, and the second powered device D2 may be, for example, a mobile phone. When the USB Type-A transmission line connects the built-in USB Type-A socket and the USB Type-A socket of the mobile phone, the second power supply interface P2A is connected to the mobile phone; when the USB Type-A transmission line is not connected to the built-in USB Type-A socket and the USB Type-A socket of the mobile phone, the second power supply interface P2A is not connected to the mobile phone.
[0048] Specifically, the second power supply interface P2B is a wireless charging plate for connecting to the second power receiving device D3; in the present embodiment, the second power supply interface P2B is a wireless charging plate disposed in the power supply device 1A. The wireless charging plate is connected to the second power receiving device D3 or is not connected to the second power receiving device D3 through wireless induction, and the second power receiving device D3 may be, for example, an earphone charging box. When the earphone charging box is located on the side of the power supply device 1A, and the position of the earphone charging box corresponds to the position of the wireless charging plate, the second power supply interface P2B is connected to the earphone charging box; when the earphone charging box is located on the side of the power supply device 1A, but the position of the earphone charging box does not correspond to the position of the wireless charging plate, the second power supply interface P2B is not connected to the earphone charging box.
[0049] Although the second power supply interfaces P2A and P2B are two power supply interfaces of different types, the second power supply interfaces P2A and P2B may be two power supply interfaces of the same type (eg, USB Type-A interfaces). Figure 1 Only the second power supply interfaces P2A and P2B are shown, but the number of the second power supply interfaces P2A and P2B can be adjusted according to the number of the second power receiving devices D2 and D3 and is not limited to the scope listed in this application.
[0050] The power interface P3 is a power input port for receiving the external power source C1; in the present embodiment, the power interface P3 is a built-in 220V AC plug. The built-in 220V AC plug is connected to the external power source C1 through a socket or is not connected to the external power source C1. For example, the external power source C1 is 220V AC (i.e., mains electricity). When the built-in 220V AC plug is connected to the socket, the power interface P3 obtains 220V AC, and the AC-DC regulator connected to the power interface P3 converts the 220V AC into input power; when the built-in 220V AC plug is not connected to the socket G1, the power interface P3 does not obtain 220V AC.
[0051] See also Figure 2 , which is a diagram illustrating the internal configuration of a power supply device according to an embodiment of the present application. Figure 2As shown, in the internal configuration of the power supply device 1A, the power supply device 1A includes a first power switch 10, a second power switch 20, a battery 30 and a microcontroller 40. The first power switch 10 connects the power interface P3 and the first power interface P1, and the second power switch 20 connects the second power interfaces P2A and P2B and the first power switch 10. The first power switch 10 and the second power switch 20 can be, for example, back-to-back Metal-Oxide-SemiconductorField-Effect Transistor (BtoB MOSFET), and the BtoB MOSFET includes two MOSFETs connected back to back, and the two MOSFETs connected back to back can prevent reverse charging and reverse current of the battery 30. The battery 30 is connected to the second power switch 20 and has a battery capacity; it should be noted that the battery capacity is the amount of electricity that the battery 30 can provide to the load. The microcontroller 40 is connected to the power interface P3, the first power interface P1, the second power interface P2A and P2B, the first power switch 10, the second power switch 20 and the battery 30, and obtains the input power of the input electric energy and calculates the total output power requirement of the first power receiving device D1 and the second power receiving devices D2 and D3. The microcontroller 40 configures the input electric energy to power the first power receiving device P1 and the second power receiving devices D2 and D3 and to charge the battery 30 according to the input power and the total output power requirement, or selectively activates the battery 30 to provide auxiliary electric energy, and configures the input electric energy and the auxiliary electric energy to power the first power receiving device D1 and the second power receiving devices D2 and D3. The details of the operation of the power supply device 1A will be described in detail in the section of the power management method.
[0052] See also Figure 3 , which is a diagram illustrating the internal configuration of a power supply device according to another embodiment of the present application. Figure 3 As shown, in the internal configuration of the power supply device 1B, the power supply device 1B includes a first power switch 10, a second power switch 20, a battery 30, a microcontroller 40, a power controller 50, a first power supply controller 60, second power supply controllers 70A and 70B, an auxiliary current sensor 80, a first current sensor 90, second current sensors 100A and 100B, and a display screen DS1. Figure 3 The configuration of the first power switch 10, the second power switch 20, the battery 30 and the microcontroller 40 shown in FIG. Figure 2 The configurations of the first power switch 10, the second power switch 20, the battery 30 and the microcontroller 40 are similar and will not be described again. In addition, the external configuration of the power supply device 1B is similar to that of the power supply device 1A and will not be described again.
[0053] The power controller 50 is connected to the power interface P3, the microcontroller 40 and the battery 30; in other words, the power interface P3 is connected to the battery 30 through the power controller 50, and the power controller 50 is located between the power interface P3 and the battery 30. The power controller 50 has a charging protocol and input voltage dynamic power management (VIN-DPM) function; the power controller 50 obtains the input power of the input electric energy through the charging protocol, transmits the input power to the microcontroller 40, and monitors the input voltage corresponding to the input electric energy through VIN-DPM to control the input current corresponding to the input electric energy. When the input voltage corresponding to the input electric energy is lower than the trigger threshold set by VIN-DPM, it means that the input current corresponding to the input electric energy is overloaded. The power controller 50 reduces the input current corresponding to the input electric energy through VIN-DPM to prevent the adapter from overloading and crashing and ensure the stability of the battery 30 during the charging process.
[0054] The first power supply controller 60 is connected to the first power supply interface P1, the first power switch 10 and the microcontroller 40; in other words, the first power supply interface P1 is connected to the microcontroller 40 through the first power supply controller 60, and the first power supply controller 60 is located between the first power switch 10 and the first power supply interface P1. The first power supply controller 60 has a charging protocol and a first voltage stabilizing circuit. The first power supply controller 60 obtains the first load power requirement of the first power receiving device D1 through the charging protocol, and transmits the first load power requirement to the microcontroller 40. The first voltage stabilizing circuit outputs the first electric energy corresponding to the first load power requirement according to the first load power requirement, and the power supply controller 60 transmits the first electric energy corresponding to the first power receiving device D1 to the first power supply interface P1 through the charging protocol.
[0055] The second power supply controller 70A is connected to the second power supply interface P2A, the second power switch 20 and the microcontroller 40; in other words, the second power supply interface P2A is connected to the microcontroller 40 through the second power supply controller 70A, and the second power supply controller 60 is located between the second power switch 20 and the second power supply interface P2A. The second power supply controller 70A has a charging protocol and a second voltage stabilizing circuit. The second power supply controller 70A obtains the second load power requirement of the second power receiving device D2 through the charging protocol, and transmits the second load power requirement of the second power receiving device D2 to the microcontroller 40. The second voltage stabilizing circuit outputs the second electric energy corresponding to the second load power requirement of the second power receiving device D2 according to the second load power requirement of the second power receiving device D2, and the second power supply controller 70A transmits the second electric energy corresponding to the second power receiving device D2 to the second power supply interface P2A through the charging protocol.
[0056] The second power supply controller 70B is connected to the second power supply interface P2B, the second power switch 20 and the microcontroller 40; in other words, the second power supply interface P2B is connected to the microcontroller 40 through the second power supply controller 70A, and the second power supply controller 70B is located between the second power switch 20 and the second power supply interface P2B. The second power supply controller 70B has a charging protocol and a second voltage stabilizing circuit. The second power supply controller 70B obtains the second load power requirement of the second power receiving device D3 through the charging protocol, and transmits the second load power requirement of the second power receiving device D3 to the microcontroller 40. The second voltage stabilizing circuit outputs the second electric energy corresponding to the second load power requirement of the second power receiving device D3 according to the second load power requirement of the second power receiving device D3, and the second power supply controller 70A transmits the second electric energy corresponding to the second power receiving device D3 to the second power supply interface P2B through the charging protocol.
[0057] It should be noted that the charging protocol of the first power supply controller 60 can be USB power delivery (PD) or USB quick charge (QC), and the charging protocol of the second power supply controller 70A and the charging protocol of the power supply controller 50 can be the same as or different from the charging protocol of the first power supply controller 60; of course, the charging protocol of the first power supply controller 60 and the second power supply controller 70A can be other types of charging protocols, and are not limited to the scope listed in this application. The charging protocol of the second power supply controller 70B is the wireless charging protocol Qi.
[0058] The first voltage stabilizing circuit of the first power supply controller 60 may be a buck circuit or a buck boost circuit, and the second voltage stabilizing circuit of the second power supply controller 70A and the second voltage stabilizing circuit of the second power supply controller 70B may be the same as or different from the first voltage stabilizing circuit of the first power supply controller 60. Of course, the first voltage stabilizing circuit of the first power supply controller 60, the second voltage stabilizing circuit of the second power supply controller 70A and the second voltage stabilizing circuit of the second power supply controller 70B may also be other circuits with voltage stabilizing functions, and are not limited to the scope listed in this application.
[0059] The auxiliary current sensor 80 is connected to the power interface P3, the power controller 50, the first power switch 10 and the microcontroller 40; in other words, the auxiliary current sensor 80 is located between the power interface P3 and the power controller 50, and is also located between the power interface P3 and the first power switch 10. The auxiliary current sensor 80 senses the input current corresponding to the input power, and transmits the value of the input current to the microcontroller 40, so as to achieve the purpose of monitoring the input current corresponding to the input power.
[0060] The first current sensor 90 is connected to the battery 30, the first power supply controller 60 and the microcontroller 40; in other words, the first current sensor 90 is located between the first power supply controller 60 and the battery 30. The first current sensor 90 senses the first output current output to the first power receiving device D1, and transmits the value of the first output current to the microcontroller 40 to achieve the purpose of monitoring the first output current.
[0061] The second current sensor 100A is connected to the second power supply controller 70A, the microcontroller 40 and the second power switch 20; in other words, the second current sensor 100A is located between the second power supply controller 70A and the second power switch 20. The second current sensor 100A senses the second output current output to the second power receiving device D2, and transmits a value corresponding to the second output current of the second power receiving device D2 to the microcontroller 40, so as to achieve the purpose of monitoring the second output current of the second power receiving device D2.
[0062] The second current sensor 100B is connected to the second power supply controller 70B, the microcontroller 40 and the second power switch 20; in other words, the second current sensor 100B is located between the second power supply controller 70B and the second power switch 20. The second current sensor 100B senses the second output current output to the second power receiving device D3, and transmits the value of the second output current of the second power receiving device D3 to the microcontroller 40, so as to achieve the purpose of monitoring the second output current of the second power receiving device D3.
[0063] The display screen DS1 is connected to the microcontroller 40 and displays the working mode and warning information of the power supply device 1B and the power status of the battery 30 (e.g., 70%). The microcontroller 40 controls the working mode of the power supply device 1B. The working mode of the power supply device 1B can be a charging mode, a standby mode, a discharge mode, a weak discharge mode, or a safety output mode. The warning message of the power supply device 1B can be a red flashing screen or a warning text (e.g., "Insufficient power supply" or "Insufficient battery power"). The display screen DS1 can be, for example, a liquid crystal display screen. The foregoing is only an example and is not intended to limit the present application.
[0064] The following will describe the process of the power supply device 1B switching from the sleep state to the standby state. Figure 4 , which is a schematic diagram illustrating a power supply device in a standby state according to another embodiment of the present application. Figure 4 As shown, and with Figure 3When the user does not use the power supply device 1B, the power supply device 1B is in a dormant state, and the power state of the battery 30 is a preset value (e.g., 65%) instead of 100%. Before the user uses the power supply device 1B to charge the mobile phone, the user needs to perform a charging operation on the power supply device 1B and connect the power interface P3 to the external power supply C1, and the external power supply C1 inputs charging power from the power interface P3. A portion of the charging power passes through the auxiliary current sensor 80 and the first power switch 10 and is transmitted to the first power supply controller 60. The first power supply controller 60 generates and transmits a trigger signal to the microcontroller 40 due to a portion of the charging power. The microcontroller 40 switches from the dormant state to the standby state according to the trigger signal and starts the battery 30. Another portion of the charging power passes through the auxiliary current sensor 80 and the power controller 50 and is transmitted to the battery 30 to charge the battery 30. It should be noted that when the user places the power supply device 1B in a backpack or does not use the power supply device 1B for a long time (e.g., two hours), the first power supply controller 60 will not generate and transmit a trigger signal to the microcontroller 40, and the microcontroller 40 will enter a sleep state to prevent the battery 30 from over-discharging.
[0065] See also Figure 5 , which is a flow chart of a power management method according to an embodiment of the present application. Figure 5 As shown, the power management method includes steps S11 to S14. Figure 1 and Figure 2 The power supply device 1A shown illustrates steps S11 to S14 as follows.
[0066] Step S11: Obtain the input power of the input electric energy and calculate the total output power requirement of the first power receiving device D1 and the plurality of second power receiving devices D2 and D3. As described above, the microcontroller 40 obtains the input power of the input electric energy, the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3 from the power interface P3, the first power receiving device D1, and the second power receiving devices D2 and D3. Then, the microcontroller 40 sums up the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3 to generate the total output power requirement. In other words, the total output power requirement is the sum of the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3.
[0067] Step S12: Determine whether the input power is greater than the total output power requirement. Specifically, the microcontroller 40 compares the input power with the total output power requirement to determine whether the input electric energy can simultaneously meet the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3 and the charging requirement of the battery 30. When it is determined that the input power is greater than the total output power requirement, it means that the input electric energy can simultaneously meet the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3 and the charging requirement of the battery 30, and the microcontroller 40 proceeds to step S13. When it is determined that the input power is not greater than the total output power requirement, it means that the input electric energy cannot simultaneously meet the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3 and the charging requirement of the battery 30, and the microcontroller 40 proceeds to step S14.
[0068] Step S13: Control the first power switch 10 and the second power switch 20 to be turned on, wherein the input power is transmitted to the first power supply interface P1 and the plurality of second power supply interfaces P2A and P2B, and the battery 30 is charged. Figure 6 As shown, when it is determined that the input power is greater than the total output power requirement, the microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20, and the first power switch 10 is turned on according to the first control signal, and the second power switch 20 is turned on according to the second control signal. At this time, the input electric energy simultaneously meets the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3 and the charging requirement of the battery 30, and includes the first electric energy and the second electric energy, the first electric energy corresponds to the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3, and the second electric energy corresponds to the charging requirement of the battery 30. Then, a part of the first electric energy passes through the first power switch 10 and is transmitted to the first power supply interface P1 to power the first power receiving device D1, and another part of the first electric energy passes through the first power switch 10 and the second power switch 20 and is transmitted to the second power supply interface P2A and P2B to power the second power receiving devices D2 and D3; the second electric energy E2 is transmitted to the battery 30 to charge the battery 30, and the battery 30 is in a charging state.
[0069] Step S14: Control the first power switch 10 to be turned off and the second power switch 20 to be turned on, and start the battery 30 to provide auxiliary power, wherein the input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power supply interface P1 and the plurality of second power supply interfaces P2A and P2B. Figure 7As shown, when it is determined that the input power is not greater than the total output power requirement, the microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20, the first power switch 10 is disconnected according to the first control signal, and the second power switch 20 is turned on according to the second control signal. At this time, the input power cannot meet the total power supply requirements of the first power receiving device D1 and the second power receiving devices D2 and D3, the microcontroller 40 starts the battery 30 to provide auxiliary power, and the battery 30 is in a discharge state. Since the first power switch 10 is disconnected, the input power is transmitted to the battery 30 and merged with the auxiliary power to form the output power; a part of the output power does not pass through the second power switch 20 and is directly transmitted to the first power supply interface P1 to power the first power receiving device D1; another part of the output power passes through the second power switch 20 and is transmitted to the second power supply interfaces P2A and P2B to power the second power receiving devices D2 and D3.
[0070] In the power management method of this embodiment, according to the input power and total output power requirements, the input power is transmitted to the first power supply interface, the plurality of second power supply interfaces, and the battery to simultaneously meet the total power supply requirements of the first power receiving device and the plurality of second power receiving devices and the charging requirements of the battery, or the battery is selectively started to provide auxiliary power to make up for the shortage of the input power, so that the input power and the auxiliary power meet the total power supply requirements of the first power receiving device and the plurality of second power receiving devices. Therefore, the power management method of this embodiment directly uses the input power to power the plurality of power receiving devices and charge the battery according to the input power and total output power requirements, or dynamically starts the battery to provide auxiliary power, so that the input power and the auxiliary power are superimposed to jointly power the plurality of power receiving devices, thereby improving the power transmission efficiency of the power supply device.
[0071] See also Fig. 8A and Figure 8B , which is a flow chart of a power management method according to another embodiment of the present application. Fig. 8A as well as Figure 8B As shown in FIG. 1 , the power management method includes steps S21 to S28. Figure 3 The power supply device 1B shown illustrates steps S21 to S28 as follows.
[0072] Step S21: Determine whether the power interface P3 is connected to the external power source C1. Specifically, the microcontroller 40 determines whether to start the battery 30 to directly supply power to the first power receiving device D1 and the second power receiving devices D2 and D3 according to the connection status of the power interface P3 and the external power source C1. When it is determined that the connection status of the power interface P3 and the external power source C1 is that the power interface P3 is connected to the external power source C1, the microcontroller 40 temporarily does not start the battery 30 and continues to execute step S22. When it is determined that the connection status of the power interface P3 and the external power source C1 is that the power interface P3 is not connected to the external power source C1, the microcontroller 40 starts the battery 30 and continues to execute step S23.
[0073] Step S22: Obtain the input power of the input electric energy and calculate the total output power requirement of the first power receiving device D1 and the plurality of second power receiving devices D2 and D3. As described above, the microcontroller 40 obtains the input power of the input electric energy from the power supply controller 50, and obtains the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3 from the first power supply controller 60 and the second power supply controllers 70A and 70B. Then, the microcontroller 40 sums up the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3 to generate the total output power requirement.
[0074] Step S23: Using the battery 30 to charge the first power receiving device D1 and the plurality of second power receiving devices D2 and D3. Fig. 9 As shown, the display screen DS1 shows that the power supply device 1B enters the discharge mode, the microcontroller 40 controls the battery 30 to transmit the supply power, and the battery 30 is in the discharge state. The supply power includes the first supply power and the second supply power. The first supply power corresponds to the first load power demand of the first power receiving device D1, and the second supply power corresponds to the second load power demand of the second power receiving device D2 and the second load power demand of the second power receiving device D3. At this time, the microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20. The first power switch 10 is turned off according to the first control signal, and the second power switch 20 is turned on according to the second control signal. Then, the first supply power passes through the first current sensor 90 and is transmitted to the first power supply controller 60. The first current sensor 90 senses the output current corresponding to the first supply power and transmits the value of the output current corresponding to the first supply power to the microcontroller 40; the first power supply controller 60 adjusts the first supply power according to the first load power demand of the first power receiving device D1, and transmits the adjusted first supply power to the first power supply interface P1 to supply power to the first power receiving device D1.
[0075] The second supply power passes through the second power switch 20 and is divided into a first part and a second part. The first part of the second supply power passes through the second current sensor 100A and is transmitted to the second power supply controller 70A. The second current sensor 100A senses the output current corresponding to the first part of the second supply power and transmits the value of the output current corresponding to the first part of the second supply power to the microcontroller 40. The second power supply controller 70A adjusts the first part of the second supply power according to the second load power demand of the second power receiving device D2, and transmits the adjusted first part of the second supply power to the second power supply interface P2A to power the second power receiving device D2. The second part of the second supply power passes through the second current sensor 100B and is transmitted to the second power supply controller 70B. The second current sensor 100B senses the output current corresponding to the second part of the second supply power and transmits the value of the output current corresponding to the second part of the second supply power to the microcontroller 40. The second power supply controller 70B adjusts the second part of the second supply power according to the second load power requirement of the second power receiving device D3, and transmits the adjusted second part of the second supply power to the second power supply interface P2B to power the second power receiving device D3.
[0076] The content of step S24 is the same as Figure 5 The contents of step S12 are shown in the figure and will not be described again. When it is determined that the input power is greater than the total output power requirement, the microcontroller 40 proceeds to step S25. When it is determined that the input power is not greater than the total output power requirement, the microcontroller 40 proceeds to step S26.
[0077] Step S25: Control the first power switch 10 and the second power switch 20 to be turned on, wherein the input power is transmitted to the first power supply interface P1 and the plurality of second power supply interfaces P2A and P2B, and the battery 30 is charged. Fig.10 As shown, when it is determined that the input power is greater than the total output power requirement, the display screen DS1 shows that the microcontroller 40 enters the charging mode, and the microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20, and the first power switch 10 is turned on according to the first control signal, and the second power switch 20 is turned on according to the second control signal. At this time, the input electric energy simultaneously meets the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3 and the charging requirement of the battery 30, and includes the first electric energy and the second electric energy, the first electric energy corresponds to the total power supply requirement of the first power receiving device D1 and the second power receiving devices D2 and D3, and the second electric energy corresponds to the charging requirement of the battery 30.
[0078] The first electric energy passes through the first power switch 10 and is divided into a first branch electric energy and a second branch electric energy. The first branch electric energy corresponds to the first load power requirement of the first power receiving device D1, and the second branch electric energy corresponds to the second load power requirement of the second power receiving device D2 and the second load power requirement of the second power receiving device D3. The first branch electric energy is transmitted to the first power supply controller 60. The first power supply controller 60 adjusts the first branch electric energy according to the first load power requirement of the first power receiving device D1, and transmits the adjusted first branch electric energy to the first power supply interface P1 to supply power to the first power receiving device D1.
[0079] The second branch electric energy passes through the second power switch 20 and is divided into a first supply part and a second supply part. The first supply part of the second branch electric energy passes through the second current sensor 100A and is transmitted to the second power supply controller 70A. The second current sensor 100A senses the second output current output to the second power receiving device D2. The second power supply controller 70A adjusts the first supply part of the second branch electric energy according to the second load power requirement of the second power receiving device D2, and transmits the adjusted first supply part of the second branch electric energy to the second power supply interface P2A to power the second power receiving device D2. The second supply part of the second branch electric energy passes through the second current sensor 100B and is transmitted to the second power supply controller 70B. The second current sensor 100B senses the second output current output to the second power receiving device D3. The second power supply controller 70B adjusts the second supply part of the second branch electric energy according to the second load power requirement of the second power receiving device D3, and transmits the adjusted second supply part of the second branch electric energy to the second power supply interface P2B to power the second power receiving device D3.
[0080] The second electric energy passes through the auxiliary current sensor 80 and is transmitted to the power controller 50. The auxiliary current sensor 80 senses the input current corresponding to the input electric energy and transmits the value of the input current to the microcontroller 40; the power controller 50 adjusts the second electric energy and transmits the adjusted second electric energy to the battery 30 to charge the battery 30, and the battery 30 is in a charging state.
[0081] Step S26: Determine whether the input power is equal to the first load power requirement of the first power receiving device D1. Specifically, the microcontroller 40 determines whether to control the first power switch 10 to be turned on based on the input power and the first load power requirement of the first power receiving device D1. When it is determined that the input power is equal to the first load power requirement of the first power receiving device D1, the microcontroller 40 controls the first power switch 10 to be turned on, and then proceeds to step S28. When it is determined that the input power is not equal to the first load power requirement of the first power receiving device D1, the microcontroller 40 controls the first power switch 10 to be turned off, and then proceeds to step S27.
[0082] Step S27: Control the first power switch 10 to be turned off and the second power switch 20 to be turned on, and start the battery 30 to provide auxiliary power, wherein the input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power supply interface P1 and the plurality of second power supply interfaces P2A and P2B. Fig.11 As shown, when it is determined that the input power is not equal to the first load power requirement of the first power receiving device D1, the microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20, and the first power switch 10 is turned off according to the first control signal, and the second power switch 20 is turned on according to the second control signal. At this time, the input power cannot simultaneously meet the total power supply requirements of the first power receiving device D1 and the second power receiving devices D2 and D3. The microcontroller 40 starts the battery 30 to provide auxiliary power, and the battery 30 is in a discharge state. Since the first power switch 10 is turned off, the input power passes through the auxiliary current sensor 80 and is transmitted to the power controller 50. The auxiliary current sensor 80 senses the input current corresponding to the input power and transmits the value of the input current to the microcontroller 40; the power controller 50 adjusts the input power and transmits the adjusted input power to the battery 30, and the adjusted input power and the auxiliary power are combined into output power at the battery 30.
[0083] The output power includes a first output power and a second output power. The first output power corresponds to the first load power requirement of the first power receiving device D1, and the second output power corresponds to the second load power requirement of the second power receiving device D2 and the second load power requirement of the second power receiving device D3. The first output power passes through the first current sensor 90 and is transmitted to the first power supply controller 60. The first current sensor 90 senses the first output current output to the first power receiving device D1 and transmits the value of the first output current to the microcontroller 40. The first power supply controller 60 adjusts the first output power according to the first load power requirement of the first power receiving device D1, and transmits the adjusted first output power to the first power supply interface P1 to supply power to the first power receiving device D1. The second output power passes through the second power switch 20 and is divided into a first output part and a second output part. The first output part of the second output electrical energy passes through the second current sensor 100A and is transmitted to the second power supply controller 70A. The second current sensor 100A senses the second output current output to the second power receiving device D2 and transmits the value of the second output current output to the second power receiving device D2 to the microcontroller 40. The second power supply controller 70A adjusts the first output part of the second output electrical energy according to the second load power requirement of the second power receiving device D2, and transmits the adjusted first output part of the second output electrical energy to the second power supply interface P2A to supply power to the second power receiving device D2. The second output portion of the second output electrical energy passes through the second current sensor 100B and is transmitted to the second power supply controller 70B. The second current sensor 100B senses the second output current output to the second power receiving device D3 and transmits the value of the second output current output to the second power receiving device D3 to the microcontroller 40. The second power supply controller 70A adjusts the second output portion of the second output electrical energy according to the second load power requirement of the second power receiving device D3, and transmits the adjusted second output portion of the second output electrical energy to the second power supply interface P2B to supply power to the second power receiving device D3.
[0084] Step S28: Control the first power switch 10 and the second power switch 20 to be turned on, and start the battery 30 to provide auxiliary power, wherein the input power is transmitted to the first power supply interface P1, and the auxiliary power is transmitted to the plurality of second power supply interfaces P2A and P2B. Fig.12As shown, when it is determined that the input power is equal to the first load power requirement of the first power receiving device D1, the microcontroller 40 starts the battery 30 to provide auxiliary power, and the battery 30 is in a discharge state. The microcontroller 40 transmits the first control signal and the second control signal to the first power switch 10 and the second power switch 20. The first power switch 10 is turned on according to the first control signal, and the second power switch 20 is turned on according to the second control signal. Since the first power switch 10 is turned on, the input power passes through the auxiliary current sensor 80 and is transmitted to the first power supply controller 60. The auxiliary current sensor 80 senses the input current corresponding to the input power and transmits the value of the input current to the microcontroller 40. The first power supply controller 60 adjusts the input power according to the first load power requirement of the first power receiving device D1, and transmits the adjusted input power to the first power supply interface P1 to supply power to the first power receiving device D1.
[0085] The auxiliary power passes through the second power switch 20 and is divided into a first auxiliary part and a second auxiliary part. The first auxiliary part of the auxiliary power passes through the second current sensor 100A and is transmitted to the second power supply controller 70A. The second current sensor 100A senses the second output current output to the second power receiving device D2 and transmits the value of the second output current output to the second power receiving device D2 to the microcontroller 40. The second power supply controller 70A adjusts the first auxiliary part of the auxiliary power according to the second load power demand of the second power receiving device D2, and transmits the adjusted first auxiliary part of the auxiliary power to the second power supply interface P2A to power the second power receiving device D2. The second auxiliary part of the auxiliary power passes through the second current sensor 100B and is transmitted to the second power supply controller 70B. The second current sensor 100B senses the second output current output to the second power receiving device D3 and transmits the value of the second output current output to the second power receiving device D3 to the microcontroller 40. The second power supply controller 70B adjusts the second auxiliary part of the auxiliary power according to the second load power requirement of the second power receiving device D3, and transmits the adjusted second auxiliary part of the auxiliary power to the second power supply interface P2B to power the second power receiving device D3.
[0086] In the power management method of this embodiment, according to the input power and the first load power requirement of the first power receiving device, it is selected whether to transmit the input power to the first power supply interface to power the first power receiving device, thereby reducing the power supply load of the battery. Furthermore, by configuring multiple current sensors, the changes of multiple load power requirements of multiple power receiving devices are monitored.
[0087] See also FIG. 13A to FIG. 13C , which is a flow chart of a power management method according to another embodiment of the present application. FIG. 13A to FIG. 13C As shown, the power management method includes steps S31 to S46; wherein steps S31 to S36 and Fig. 8A and Figure 8B Steps S22 to S28 are the same and will not be described again. Steps S31 to S36 are to select whether to start the battery 30 to assist in supplying power to multiple power receiving devices according to the input power and total output power requirements, and steps S37 to S46 consider whether the battery capacity of the battery 30 is sufficient to assist in supplying power to multiple power receiving devices. Figure 3 The power supply device 1B shown illustrates steps S37 to S46 as follows.
[0088] It should be noted that the battery capacity of the battery 30 corresponds to the lowest available voltage of the battery 30. For example, the operating voltage range of the battery 30 is 3.6V to 4.2V, and the lowest operating voltage of the battery 30 (i.e., 3.6V) corresponds to the available battery capacity of the battery 30. The battery 30 can output normally when the operating voltage is 3.6V to 4.2V to supply power to multiple power receiving devices. When the operating voltage of the battery 30 is less than 3.6V, the available battery capacity of the battery 30 is insufficient, and the battery 30 cannot output normally to supply power to multiple power receiving devices. When the battery capacity of the battery 30 is too low, the power supply device 1B should be prevented from continuing to supply power to multiple power receiving devices.
[0089] Step S37: Determine whether the battery capacity is greater than the safe discharge capacity. Specifically, the microcontroller 40 obtains the battery capacity from the battery 30 and compares the battery capacity with the safe discharge capacity to determine whether the battery 30 can output normally. When the battery capacity is greater than the safe discharge capacity, the microcontroller 40 determines that the battery 30 can output normally and continues to execute step S38. When the battery capacity is not greater than the safe discharge capacity, the microcontroller 40 determines that the battery 30 cannot output normally and continues to execute step S40.
[0090] Step S38: Switch to weak discharge mode. Although the available battery capacity of the battery 30 is sufficient for normal output, the input power still does not meet the total power supply demand of the first power receiving device D1 and the second power receiving devices D2 and D3. Therefore, the microcontroller 40 drives the power supply device 1B to switch to weak discharge mode, and the display screen DS1 shows that the power supply device 1B enters the weak discharge mode.
[0091] Step S39: After the battery 30 is discharged, it is determined whether the battery capacity is greater than the safe discharge capacity. At this time, the battery 30 is in a discharge state, so that the battery capacity of the battery 30 is reduced. Step S39 confirms whether the battery capacity of the battery 30 maintains normal output after the battery 30 is discharged. When it is determined that the battery capacity is greater than the safe discharge capacity, it is confirmed that the battery capacity of the battery 30 can still maintain normal output after the battery 30 is discharged, and the microcontroller 40 returns to step S38. When it is determined that the battery capacity is not greater than the safe discharge capacity (for example, 20%), it is confirmed that the battery capacity of the battery 30 cannot maintain normal output after the battery 30 is discharged, and the microcontroller 40 continues to execute step S40.
[0092] Step S40: Switch to safe output mode. Since the battery 30 cannot output normally, the microcontroller 40 needs to reduce the discharge amount of the battery 30. The microcontroller 40 drives the power supply device 1B to switch to safe output mode.
[0093] Step S41: Reduce the first minimum received power of the first power supply interface P1 and the second minimum received power of each of the multiple second power supply interfaces P2A and P2B. In order to reduce the discharge amount of the battery 30, the microcontroller 40 needs to control the battery 30 to reduce the power supply supplied to the first power supply interface P1, the power supply supplied to the second power supply interface P2A, and the power supply supplied to the second power supply interface P2B. Therefore, the microcontroller 40 reduces the first minimum received power of the first power supply interface P1, the second minimum received power of the second power supply interface P2A, and the second minimum received power of the second power supply interface P2B to achieve the purpose of reducing the discharge amount of the battery 30.
[0094] Step S42: Determine whether the first minimum received power meets the first load power requirement of the first power receiving device D1. Specifically, the microcontroller 40 determines whether the power supply amount supplied by the battery 30 to the first power supply interface P1 after the discharge amount is reduced meets the power requirement of the first power receiving device D1 based on the reduced first minimum received power and the first load power requirement of the first power receiving device D1. When it is determined that the first minimum received power meets the first load power requirement of the first power receiving device D1, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the first power supply interface P1 after the discharge amount is reduced meets the power requirement of the first power receiving device D1, and continues to execute step S44. When it is determined that the first minimum received power does not meet the first load power requirement of the first power receiving device D1, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the first power supply interface P1 after the discharge amount is reduced does not meet the power requirement of the first power receiving device D1, and continues to execute step S43.
[0095] Step S43: Cut off the first power transmission between the first power supply interface P1 and the first power receiving device D1. Since the first minimum received power after reduction cannot meet the first load power requirement of the first power receiving device D1, the microcontroller 40 controls the battery 30 to stop supplying power to the first power supply interface P1, thereby cutting off the first power transmission between the first power supply interface P1 and the first power receiving device D1. At this time, the power supply device 1B does not charge the first power receiving device D1, and the microcontroller 40 controls the display screen DS1 to display a warning message "Insufficient power supply and insufficient battery capacity to stop the output of the Type-C interface".
[0096] Step S44: Determine whether the second minimum received power meets the second load power requirement of the corresponding second power receiving device. Specifically, the microcontroller 40 determines whether the power supply amount supplied by the battery 30 to the second power supply interface P2A after the discharge amount is reduced meets the power requirement of the second power receiving device D2 based on the reduced second minimum received power and the second load power requirement of the second power receiving device D2. When it is determined that the second minimum received power meets the second load power requirement of the second power receiving device D2, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the second power supply interface P2A after the discharge amount is reduced meets the power requirement of the second power receiving device D2, and continues to execute step S46. When it is determined that the second minimum received power does not meet the second load power requirement of the second power receiving device D2, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the second power supply interface P2A after the discharge amount is reduced does not meet the power requirement of the second power receiving device D2, and continues to execute step S45.
[0097] The microcontroller 40 determines whether the power supply amount supplied by the battery 30 to the second power supply interface P2B after the discharge amount is reduced meets the power demand of the second power receiving device D3 based on the reduced second minimum received power and the second load power demand of the second power receiving device D3. When it is determined that the second minimum received power meets the second load power demand of the second power receiving device D3, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the second power supply interface P2B after the discharge amount is reduced meets the power demand of the second power receiving device D3, and continues to execute step S46. When it is determined that the second minimum received power does not meet the second load power demand of the second power receiving device D3, the microcontroller 40 determines that the power supply amount supplied by the battery 30 to the second power supply interface P2B after the discharge amount is reduced does not meet the power demand of the second power receiving device D3, and continues to execute step S45.
[0098] Step S45: Cut off the second power transmission between the second power supply interface P2A and the second power receiving device D2 or the second power transmission between the second power supply interface P2B and the second power receiving device D3. Since the second minimum receiving power after reduction cannot meet the second load power demand of the second power receiving device D2 or the second minimum receiving power after reduction cannot meet the second load power demand of the second power receiving device D3, the microcontroller 40 controls the battery 30 to stop supplying power to the second power supply interface P2A or the second power supply interface P2B, thereby cutting off the second power transmission between the second power supply interface P2A and the second power receiving device D2 or the second power transmission between the second power supply interface P2B and the second power receiving device D3. At this time, the power supply device 1B does not charge the second power receiving device D2 or the second power receiving device D3, and the microcontroller 40 controls the display screen DS1 to display a warning message of "Insufficient power supply and insufficient battery capacity to stop the output of the Type-A interface" or a warning message of "Insufficient power supply and insufficient battery capacity to stop wireless charging".
[0099] Step S46: Continuously monitor the battery capacity. Specifically, the microcontroller 40 continues to monitor the battery capacity to determine whether the battery capacity of the battery 30 is sufficient until the battery capacity of the battery 30 is greater than the sum of the safe discharge capacity (eg, 20%) and the set reserve capacity (eg, 50%).
[0100] For example, the battery capacity of the battery 30 is 10%, and the safe discharge capacity is 20%; when the battery capacity of the battery 30 is above the safe discharge capacity, the output power of the battery 30 can be greater than 112 W. The input power of the input electric energy is 15 W, the first load power demand of the first power receiving device D1 is 100 W, the second load power demand of the second power receiving device D2 is 12 W, the second load power demand of the second power receiving device D3 is 15 W, and the total output power demand is 127 W.
[0101] When the battery capacity of the battery 30 is 10%, the output power of the battery 30 is not greater than 112W. The microcontroller 40 reduces the first minimum receiving power of the first power supply interface P1, the second minimum receiving power of the second power supply interface P2A, and the second minimum receiving power of the second power supply interface P2B. After the reduction, the first minimum receiving power of the first power supply interface P1 does not meet the first load power requirement of the first power receiving device D1, and the second minimum receiving power of the second power supply interface P2A and the second minimum receiving power of the second power supply interface P2B meet the second load power requirement of the second power receiving device D2 and the second load power requirement of the second power receiving device D3 respectively. Therefore, the microcontroller 40 controls the battery 30 to stop supplying power to the first power supply interface P1, and the 15W input power is transmitted to the battery 30 and merged with the auxiliary power into 27W output power. The 27W output power is transmitted to the second power supply interfaces P2A and P2B to supply power to the second power receiving devices D2 and D3.
[0102] When the battery capacity of the battery 30 is 0%, the battery 30 cannot output electric energy normally, and the second power receiving device D2 and the second power receiving device D3 are charged only by the input electric energy, and the input power of the input electric energy is 15 W. The microcontroller 40 further reduces the second minimum receiving power of the second power receiving device D2 and the second minimum receiving power of the second power receiving device D3, and the reduced second minimum receiving power of the second power receiving device D2 and the reduced second minimum receiving power of the second power receiving device D3 are 5 W respectively, and the remaining 5 W of electric energy is used to charge the battery 30.
[0103] In the power management method of this embodiment, it is further considered whether the battery capacity can maintain the normal output of the battery. When the battery capacity cannot maintain the normal output of the battery, all or part of the battery output is cut off to avoid over-discharge of the battery.
[0104] See also FIG. 14A to FIG. 14C , which is a flow chart of a power management method according to another embodiment of the present application. FIG. 14A to FIG. 14C As shown, the power management method includes steps S51 to S68; wherein steps S51 to S56 and Fig. 8A and Figure 8B Steps S22 to S28 are the same and will not be described again. Steps S57 to S59 and S63 to S65 consider whether the battery capacity of the battery 30 is sufficient to assist in supplying power to multiple power receiving devices. Steps S60 to S62 and S66 to S68 switch the working mode of the power supply device 1B in response to the decrease in the load power demand of the power receiving device after charging. Figure 3 The power supply device 1B shown illustrates steps S57 to S68 as follows.
[0105] Steps S57 to S59 and steps S63 to S65 are Fig. 13B Step S37, step S38 and step S40 are the same and will not be described again.
[0106] For the condition that the input power is not greater than the total output power requirement and the input power is not equal to the first load power requirement of the first power receiving device D1, after charging the first power receiving device D1, the first load power requirement of the first power receiving device D1 is reduced, and the value of the first output current detected by the first current sensor 90 is reduced. Therefore, after deducting the first load power requirement of the first power receiving device D1, the second load power requirement of the second power receiving device D2, and the second load power requirement of the second power receiving device D3 from the input power, part of the input power is still in the power supply device 1B. The microcontroller 40 controls the power controller 50 to input the aforementioned part of the input power to the battery 30 to charge the battery 30. After charging, the battery capacity of the battery 30 is the first battery capacity.
[0107] Alternatively, after charging the second power receiving device D2 or D3, the second load power demand of the second power receiving device D2 or the second load power demand of the second power receiving device D2 is reduced, and the value of the second output current detected by the second current sensor 100A or the value of the second output current detected by the second current sensor 100A is reduced. Therefore, after deducting the first load power demand of the first power receiving device D1, the second load power demand of the second power receiving device D2, and the second load power demand of the second power receiving device D3 from the input power, part of the input power remains in the power supply device 1B. The microcontroller 40 controls the power controller 50 to input the aforementioned part of the input power to the battery 30 to charge the battery 30, and the battery capacity of the battery 30 after charging is the first battery capacity.
[0108] Step S60: Determine whether there is a decrease in the first output current or a decrease in the second output current. Specifically, the microcontroller 40 obtains the value of the first output current output to the first power receiving device D1, the value of the second output current output to the second power receiving device D2, and the value of the second output current output to the second power receiving device D3 from the first current sensor 90 and the second current sensors 100A and 100B. Then, the microcontroller 40 determines whether there is a decrease in the first output current or a decrease in the second output current based on the value of the first output current output to the first power receiving device D1, the value of the second output current output to the second power receiving device D2, and the value of the second output current output to the second power receiving device D3.
[0109] When it is determined that the first output current decreases or the second output current decreases, the microcontroller 40 continues to execute step S61. When it is determined that the first output current decreases or the second output current decreases, the microcontroller 40 continues to execute step S62.
[0110] Step S61: Switching from the safety output mode to the weak discharge mode. Specifically, the microcontroller 40 determines that the first battery capacity is greater than the safety discharge capacity, and drives the power supply device 1B to switch from the safety output mode to the weak discharge mode, and the display screen DS1 shows that the power supply device 1B enters the weak discharge mode. Then, the microcontroller 40 continues to monitor the first battery capacity to determine whether the first battery capacity of the battery 30 is sufficient, until the first battery capacity of the battery 30 is greater than the sum of the safety discharge capacity (e.g., 20%) and the set reserved capacity (e.g., 50%).
[0111] Step S62: Maintaining the safe output mode. Specifically, the microcontroller 40 determines that the first battery capacity is not greater than the safe discharge capacity, and drives the power supply device 1B to maintain the safe output mode. The display screen DS1 displays that the power supply device 1B enters the safe output mode.
[0112] For the condition that the input power is not greater than the total output power requirement and the input power is equal to the first load power requirement of the first power receiving device D1, after charging the first power receiving device D1, the first load power requirement of the first power receiving device D1 is reduced, and the value of the input current detected by the auxiliary current sensor 80 is reduced. Therefore, after the first load power requirement of the first power receiving device D1 is deducted from the input power, part of the input power remains in the power supply device 1B. The microcontroller 40 controls the power controller 50 to input the aforementioned part of the input power to the battery 30 to charge the battery 30. After charging, the battery capacity of the battery 30 is the second battery capacity.
[0113] Alternatively, after charging the second power receiving device D2 or D3, the second load power demand of the second power receiving device D2 or the second load power demand of the second power receiving device D2 is reduced, and the value of the second output current detected by the second current sensor 100A or the value of the second output current detected by the second current sensor 100A is reduced. Therefore, after the auxiliary power is deducted from the second load power demand of the second power receiving device D2 and the second load power demand of the second power receiving device D3, part of the auxiliary power is still in the power supply device 1B. The microcontroller 40 controls the battery 30 to reduce the supply of the auxiliary power, and part of the auxiliary power is used to charge the battery 30. After charging, the battery capacity of the battery 30 is the second battery capacity.
[0114] Step S66: Determine whether there is a decrease in input current or a decrease in the second output current. Specifically, the microcontroller 40 obtains the value of the input current output to the input power, the value of the second output current output to the second power receiving device D2, and the value of the second output current output to the second power receiving device D3 from the auxiliary current sensor 80 and the second current sensors 100A and 100B. Then, the microcontroller 40 determines whether there is a decrease in input current or a decrease in the second output current based on the value of the input current of the input power, the value of the second output current output to the second power receiving device D2, and the value of the second output current output to the second power receiving device D3.
[0115] When it is determined that the input current decreases or the second output current decreases, the microcontroller 40 proceeds to step S67. When it is determined that the input current decreases or the second output current decreases, the microcontroller 40 proceeds to step S68.
[0116] Step S67: Switching from the safety output mode to the weak discharge mode. Specifically, the microcontroller 40 determines that the second battery capacity is greater than the safety discharge capacity, and drives the power supply device 1B to switch from the safety output mode to the weak discharge mode, and the display screen DS1 shows that the power supply device 1B enters the weak discharge mode. Then, the microcontroller 40 continues to monitor the second battery capacity to determine whether the second battery capacity of the battery 30 is sufficient, until the second battery capacity of the battery 30 is greater than the sum of the safety discharge capacity (e.g., 20%) and the set reserved capacity (e.g., 50%).
[0117] Step S68: Maintaining the safe output mode. Specifically, the microcontroller 40 determines that the second battery capacity is not greater than the safe discharge capacity, and drives the power supply device 1B to maintain the safe output mode. The display screen DS1 displays that the power supply device 1B enters the safe output mode.
[0118] In the power management method of this embodiment, according to the change of the load power demand of the powered device, part of the input power or part of the auxiliary power is allocated to the battery to charge the battery, thereby increasing the use time of the power supply device.
[0119] In summary, the power supply device and power management method of the present application configure input power to power the first power receiving device and multiple second power receiving devices and charge the battery according to the input power and total output power requirements, or selectively start the battery to provide auxiliary power, and configure input power and auxiliary power to power the first power receiving device and multiple second power receiving devices. Therefore, the power supply device and power management method of the present application synchronously handle the charging and discharging requirements of the power supply device.
Claims
1. A power supply device, characterized in that: include: A power interface, used to connect to an external power source to receive input power; A first power supply interface, used to connect to a first power receiving device; A plurality of second power supply interfaces, used for connecting a plurality of second power receiving devices; A first power switch, connecting the power interface and the first power supply interface; A second power switch, connected to the plurality of second power supply interfaces and the first power switch; a battery, connected to the second power switch; a microcontroller connected to the power interface, the first power supply interface, a plurality of the second power supply interfaces, the first power switch, the second power switch, and the battery, and obtaining the input power of the input electric energy and calculating the total output power requirement of the first power receiving device and the plurality of the second power receiving devices, and determining whether the input power is greater than the total output power requirement; When it is determined that the input power is greater than the total output power requirement, the microcontroller controls the first power switch and the second power switch to be turned on, and the input power energy is transmitted to the first power supply interface and the plurality of the second power supply interfaces, and the battery is charged; When it is determined that the input power is not greater than the total output power requirement, the microcontroller controls the first power switch to be disconnected and controls the second power switch to be turned on, the microcontroller starts the battery to provide auxiliary power, the input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power supply interface and multiple second power supply interfaces.
2. The power supply device according to claim 1, wherein: When it is determined that the input power is not greater than the total output power requirement, and the input power is equal to the first load power requirement of the first power receiving device, the microcontroller controls the first power switch and the second power switch to be turned on, the input power is transmitted to the first power supply interface, and the auxiliary power is transmitted to multiple second power supply interfaces.
3. The power supply device according to claim 2, wherein: The battery has a battery capacity, and when it is determined that the input power is not greater than the total output power requirement, or when it is determined that the input power is not greater than the total output power requirement and the input power is equal to the first load power requirement of the first power receiving device, the microcontroller determines whether the battery capacity is greater than the safe discharge capacity, and when it is determined that the battery capacity is greater than the safe discharge capacity, the power supply device switches to a weak discharge mode; When it is determined that the battery capacity is not greater than the safe discharge capacity, the power supply device switches to a safe output mode, and the microcontroller reduces the first minimum received power of the first power supply interface and the second minimum received power of each of the second power supply interfaces, wherein the first minimum received power and the second minimum received power are both less than the input power.
4. The power supply device according to claim 3, characterized in that: When the first minimum received power does not meet the first load power requirement of the first powered device or the second minimum received power does not meet the second load power requirement of the second powered device, the microcontroller cuts off the first power transmission between the first power supply interface and the first powered device or the second power transmission between the second power supply interface and the second powered device.
5. The power supply device according to claim 3, wherein: Also includes: A power controller is connected to the power interface, the microcontroller and the battery, and has an input voltage dynamic power management function, wherein the microcontroller obtains the input power from the power controller; a first power supply controller connected to the first power supply interface, the first power switch, and the microcontroller, wherein the microcontroller obtains the first load power requirement corresponding to the first powered device from the first power supply controller; and A plurality of second power supply controllers are respectively connected to a plurality of the second power supply interfaces, and each of the second power supply controllers is connected to the second power switch and the microcontroller, wherein the microcontroller obtains a plurality of second load power requirements corresponding to the plurality of second power receiving devices from the plurality of the second power supply controllers, and the total output power requirement is the sum of the first load power requirement and the plurality of second load power requirements.
6. The power supply device according to claim 5, characterized in that: Also includes: an auxiliary current sensor connected to the power interface, the power controller, the first power switch and the microcontroller, and sensing an input current corresponding to the input electric energy, and transmitting a value of the input current to the microcontroller; A first current sensor is connected to the battery, the first power supply controller and the microcontroller, and senses a first output current output to the first power receiving device, and transmits a value of the first output current to the microcontroller; as well as A plurality of second current sensors are connected to a plurality of the second power supply controllers, wherein each of the second current sensors is connected to the microcontroller and the second power switch, and senses a second output current output to the corresponding second power receiving device, and transmits a corresponding value of the second output current to the microcontroller.
7. The power supply device according to claim 6, wherein: When it is determined that the battery capacity is not greater than the safe discharge capacity, and when it is determined that the first output current is reduced or the second output current is reduced, the microcontroller controls the power controller to input part of the input electric energy to the battery, wherein the battery capacity of the battery after charging is a first battery capacity; The microcontroller determines whether the first battery capacity is greater than the safe discharge capacity.
8. The power supply device according to claim 7, wherein: When it is determined that the first battery capacity is greater than the safe discharge capacity, the power supply device switches from the safe output mode to the weak discharge mode; When it is determined that the first battery capacity is not greater than the safe discharge capacity, the power supply device maintains the safe output mode.
9. The power supply device according to claim 6, wherein: When it is determined that the battery capacity is not greater than the safe discharge capacity and the input current is reduced or the second output current is reduced, the microcontroller controls the power controller to input part of the input power to the battery or controls the battery to reduce the provision of the auxiliary power, wherein the battery capacity of the battery after charging is the second battery capacity; The microcontroller determines whether the second battery capacity is greater than the safe discharge capacity.
10. The power supply device according to claim 9, wherein: When it is determined that the second battery capacity is greater than the safe discharge capacity, the power supply device switches from the safe output mode to the weak discharge mode; When it is determined that the second battery capacity is not greater than the safe discharge capacity, the power supply device maintains the safe output mode.
11. The power supply device according to claim 1, wherein: The microcontroller determines whether the power interface is connected to the external power supply. When it is determined that the power interface is connected to the external power supply, the microcontroller confirms and obtains the input power of the input electrical energy; when it is determined that the power interface is not connected to the external power supply, the microcontroller controls the battery to transmit and supply electrical energy to the first power supply interface and multiple second power supply interfaces.
12. The power supply device according to claim 1, wherein: The first power switch and the second power switch are back-to-back metal oxide field semiconductor field effect transistors.
13. A power management method, applicable to a power supply device, characterized in that: The power supply device includes a power interface, a first power interface, a plurality of second power interfaces, a first power switch, a second power switch, a battery and a microcontroller. The power interface is used to connect to an external power source to receive input power. The first power interface is used to connect to a first powered device. The plurality of second power interfaces are used to connect to a plurality of second powered devices. The power management method is executed by the microcontroller and includes: Obtaining input power of the input electric energy and calculating a total output power requirement of the first power receiving device and a plurality of the second power receiving devices; Determining whether the input power is greater than the total output power requirement; When it is determined that the input power is greater than the total output power requirement, the first power switch and the second power switch are controlled to be turned on, wherein the input power energy is transmitted to the first power supply interface and the plurality of second power supply interfaces, and the battery is charged; When it is determined that the input power is not greater than the total output power requirement, the first power switch is controlled to be disconnected and the second power switch is controlled to be turned on, and the battery is started to provide auxiliary power, wherein the input power and the auxiliary power are combined into output power, and the output power is transmitted to the first power supply interface and multiple second power supply interfaces.
14. The power management method according to claim 13, wherein: When it is determined that the input power is not greater than the total output power requirement, and the input power is equal to the first load power requirement of the first power receiving device, the first power switch and the second power switch are controlled to be turned on, wherein the input power is transmitted to the first power supply interface, and the auxiliary power is transmitted to multiple second power supply interfaces.
15. The power management method according to claim 14, wherein: The battery has a battery capacity, and when it is determined that the input power is not greater than the total output power requirement, or when it is determined that the input power is not greater than the total output power requirement and the input power is equal to the first load power requirement of the first power receiving device, it is determined whether the battery capacity is greater than a safe discharge capacity; When it is determined that the battery capacity is greater than the safe discharge capacity, driving the power supply device to switch to a weak discharge mode; When it is determined that the battery capacity is not greater than the safe discharge capacity, the power supply device is driven to switch to a safe output mode, and the first minimum received power of the first power supply interface and the second minimum received power of each of the second power supply interfaces are reduced, wherein the first minimum received power and the second minimum received power are both less than the input power.
16. The power management method according to claim 15, characterized in that: When the first minimum received power does not meet the first load power requirement of the first powered device or the second minimum received power does not meet the second load power requirement of the second powered device, the first power transmission between the first power supply interface and the first powered device or the second power transmission between the second power supply interface and the second powered device is cut off.
17. The power management method according to claim 15, characterized in that: The power supply device further includes an auxiliary current sensor, a first current sensor, and a plurality of second current sensors. The power management method further includes: The auxiliary current sensor senses the input current of the input electric energy and transmits the value of the input current to the microcontroller; The first current sensor senses a first output current output to the first powered device, and transmits a value of the first output current to the microcontroller; Each of the second current sensors senses a second output current output to the corresponding second powered device, and transmits a value of the corresponding second output current to the microcontroller.
18. The power management method according to claim 17, wherein: Also includes: When it is determined that the battery capacity is not greater than the safe discharge capacity and the first output current is reduced or the second output current is reduced, the control part inputs the input electric energy into the battery, wherein the battery capacity of the battery after charging is the first battery capacity; Determining whether the first battery capacity is greater than the safe discharge capacity; When it is determined that the capacity of the first battery is greater than the safe discharge capacity, driving the power supply device to switch from the safe output mode to the weak discharge mode; When it is determined that the first battery capacity is not greater than the safe discharge capacity, the safe output mode of the power supply device is maintained.
19. The power management method according to claim 17, wherein: Also includes: When it is determined that the battery capacity is not greater than the safe discharge capacity and the input current is reduced or the second output current is reduced, the control part inputs the input power to the battery or controls the battery to reduce the provision of the auxiliary power, wherein the battery capacity of the battery after charging is the second battery capacity; Determining whether the second battery capacity is greater than the safe discharge capacity; When it is determined that the second battery capacity is greater than the safe discharge capacity, driving the power supply device to switch from the safe output mode to the weak discharge mode; When it is determined that the second battery capacity is not greater than the safe discharge capacity, the safety output mode is maintained.
20. The power management method according to claim 13, wherein: Also includes: Determining whether the power interface is connected to the external power supply; When it is determined that the power interface is connected to the external power source, confirming and obtaining the input power of the input electric energy; When it is determined that the power interface is not connected to the external power source, the battery is controlled to transmit and supply power to the first power interface and the plurality of second power interfaces.