Zero standby control method, electronic equipment and storage medium
By using the first control circuit to monitor the current and voltage of the charging port in the Type-A power supply equipment, the problem of not being able to enter the zero standby state in time is solved, and normal detection and power supply of the small current charging equipment is achieved, saving power and improving user experience.
Patent Information
- Application Number
- CN202510325024.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-20
AI Technical Summary
Type-A powered equipment cannot determine whether the charging device is connected based on the pin signal, resulting in the inability to enter the zero standby state in time or incorrectly.
By introducing a first control circuit into the power supply device, the current value of the charging port is obtained, and when the current value is less than the preset value, the control load switch is turned off, so that the port voltage is maintained by the inherent capacitor, and then whether it enters a zero standby state is determined based on the change of the port voltage.
Accurate monitoring of the charging port is achieved, avoiding the situation of accidentally entering the zero standby state, ensuring normal charging of small current charging equipment, saving power resources, and improving user experience.
Smart Images

Figure CN120185147A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technologies, and in particular, to a zero standby control method, an electronic device, and a storage medium. Background Art
[0002] With the gradual development of charging technologies, zero standby technology has emerged. Zero standby means that when no charging device is connected to a power supply device, the power supply device enters the zero standby state, thereby saving electric energy. The significant advantages of zero standby technology in aspects such as environmental protection, device lifespan improvement, and user experience enhancement have been widely applied in charging power supply devices.
[0003] Currently, Type-C power supply devices can determine whether a charging device is connected through the signals of the pins of the configuration channel (CC) of the Type-C port, and can enter the zero standby state when no charging device is connected. However, for Type-A power supply devices, when charging devices of different brands are connected, the voltage levels of the respective pins of the Type-A port may be affected differently, so it is impossible to determine whether a charging device is connected based on the pin signals, resulting in failure to enter the zero standby state in a timely manner or incorrectly. Summary of the Invention
[0004] This application provides a zero standby control method, an electronic device, and a storage medium to solve the problem that it is impossible to determine whether a charging device is connected based on the pin signals, resulting in failure to enter the zero standby state in a timely manner or incorrectly. It realizes timely triggering of the zero standby state, and avoids the situation of mistakenly entering the zero standby state when charging is required, saves power resources, and can also improve the user experience.
[0005] In a first aspect, this application provides a zero standby control method, which is applied to a power supply device. The power supply device includes a charging port, a first control circuit, and a load switch. The load switch is connected to a power source, the charging port is electrically connected to the load switch, and the first control circuit is electrically connected to the charging port and the load switch respectively. The method includes:
[0006] The first control circuit obtains a first current value, where the first current value is the current value of the current flowing through the charging port when the load switch is closed;
[0007] When the first current value is less than a preset current value, the first control circuit controls the load switch to disconnect, so that the charging port maintains the port voltage through an inherent capacitor;
[0008] The first control circuit determines whether to enter the zero standby state according to the change of the port voltage within a first time period.
[0009] Through the method provided by the first aspect, the first control circuit obtains the first current value of the current flowing through the charging port when the load switch is closed, thereby realizing the monitoring of the charging port current. The first control circuit determines whether the first current value is less than the preset current value, so that it can preliminarily determine whether a charging device is connected to the charging port according to the relationship between the first current value and the preset current value. When the first current value is greater than or equal to the preset current value, the first control circuit can determine that there is a charging device connected to the power supply device through the charging port, thereby ensuring that the power supply device can normally supply power to the charging device. When the first current value is less than the preset current value, the first control circuit can determine that the first control circuit can determine that no charging device is connected to the charging port, or a charging device with a small current is connected to the charging port. At this time, the first control circuit controls the load switch to disconnect, so that the charging port maintains the port voltage through the inherent capacitance. Thus, the first control circuit can further judge the situation of the charging port according to the change of the port voltage within the first time period and determine whether to enter the zero standby state, so as to accurately distinguish the situation of no charging device connected or a charging device with a small current connected, and avoid the problem of directly entering the zero standby state while ignoring the charging device with a small current during only current detection, and avoid the charging device with a small current from being unable to charge normally.
[0010] Furthermore, after the charging device with a small current is unplugged from the charging port, the first control circuit can determine that no charging device is connected to the charging port, and thus enter the zero standby state in a timely manner. Based on this, whether it is a conventional charging device or a charging device with a small current, the first control circuit can trigger the zero standby state in a timely and accurate manner, thereby improving the user experience and saving power resources.
[0011] In a possible design, the first control circuit determines whether to enter the zero standby state according to the change of the port voltage within the first time period, including:
[0012] The first control circuit collects the port voltage of the charging port within the first time period according to the first preset frequency, and obtains a plurality of first voltage values;
[0013] The first control circuit determines whether to enter the zero standby state according to a plurality of first voltage values.
[0014] In a possible design, the first control circuit determines whether to enter the zero standby state according to a plurality of first voltage values, including:
[0015] When there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the plurality of first voltage values, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port;
[0016] When multiple first voltage values are all greater than or equal to a preset voltage value, the first control circuit controls the power supply device to enter the zero standby state.
[0017] In a possible design, the first control circuit determines whether to enter the zero standby state according to multiple first voltage values, including:
[0018] The first control circuit determines a first voltage change curve according to multiple first voltage values, and the first voltage change curve is used to indicate the change of the port voltage within a first time period;
[0019] When the absolute value of the slope of the first voltage change curve is greater than the absolute value of a preset slope, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port;
[0020] When the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of the preset slope, the first control circuit controls the power supply device to enter the zero standby state.
[0021] In a possible design, the zero standby control method further includes:
[0022] When the first current value is greater than or equal to a preset current value, the first control circuit keeps the load switch closed, so that the power supply device can normally supply power to the charging device connected to the charging port.
[0023] In a possible design, the zero standby control method further includes:
[0024] The first control circuit determines the preset slope according to the slope of the second voltage change curve of the test device when no charging device is connected, where the model of the test device is the same as that of the power supply device.
[0025] In a possible design, the determining step of the second voltage change curve includes:
[0026] When no charging device is connected, the second control circuit of the test device collects the port voltage of the charging port of the test device within a second time period according to a second preset frequency to obtain multiple fourth voltage values;
[0027] The second control circuit determines a second voltage change curve according to multiple fourth voltage values, and the second voltage change curve is used to indicate the change of the charging port of the test device within a second time period.
[0028] In a second aspect, the present application provides a zero standby control device, including: a module for executing the method in the first aspect and any possible design of the first aspect.
[0029] As provided in the second aspect above and each possible design of the second aspect, the beneficial effects can be referred to the beneficial effects brought by the first aspect above and each possible implementation manner of the first aspect, which will not be elaborated here.
[0030] In a third aspect, the present application provides a power supply device, including a charging port, a first control circuit, and a load switch. The first control circuit is configured to execute the method in the first aspect and any possible design of the first aspect. The load switch is connected to a power source, the charging port is electrically connected to the load switch, and the first control circuit is electrically connected to the charging port and the load switch respectively.
[0031] In a fourth aspect, the present application provides an electronic device, including: a processor;
[0032] The processor is configured to execute computer-executable programs or instructions in a memory, so that the electronic device executes the method in the first aspect and any possible design of the first aspect.
[0033] In a fifth aspect, the present application provides an electronic device, including: a memory and a processor; the memory is configured to store program instructions; the processor is configured to call the program instructions in the memory so that the electronic device executes the method in the first aspect and any possible design of the first aspect.
[0034] In a sixth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the electronic device is enabled to execute the method in the first aspect and any possible design of the first aspect.
[0035] In a seventh aspect, the present application provides a computer program product, including: execution instructions. The execution instructions are stored in a readable storage medium. At least one processor of the electronic device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions so that the electronic device implements the method in the first aspect and any possible design of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 FIG. is a schematic structural diagram of a power supply device provided by an embodiment of the present application.
[0037] Figure 2 FIG. is a schematic structural diagram of a power supply device provided by an embodiment of the present application.
[0038] Figure 3 FIG. is a flowchart of a zero standby control method provided by an embodiment of the present application.
[0039] Figure 4 FIG. is a flowchart of a zero standby control method provided by an embodiment of the present application.
[0040] Figure 5 Flow chart of a zero standby control method provided by an embodiment of the present application.
[0041] Figure 6 Schematic diagram of the distribution of a first voltage value provided by an embodiment of the present application.
[0042] Figure 7 Schematic diagram of the distribution of a first voltage value provided by an embodiment of the present application.
[0043] Figure 8 Flow chart of a zero standby control method provided by an embodiment of the present application.
[0044] Figure 9 Schematic diagram of a first voltage change curve provided by an embodiment of the present application.
[0045] Figure 10 Schematic diagram of a first voltage change curve provided by an embodiment of the present application.
[0046] Figure 11 Schematic diagram of the structure of a zero standby control device provided by an embodiment of the present application.
[0047] Figure 12 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application.
[0048] Figure 13 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0049] In the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B may be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" or its similar expressions refer to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one of a alone, b alone, or c alone may represent: a alone, b alone, c alone, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b, and c, where a, b, and c may be single or multiple. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0050] The orientation or positional relationship indicated by terms such as "center", "longitudinal", "lateral", "upper", "lower", "left", "right", "front", "rear", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present application.
[0051] The terms "connected" and "coupled" should be understood in a broad sense. For example, the "connection" or "coupling" of a circuit structure can refer not only to a physical connection, but also to an electrical connection or a signal connection. For example, it can be a direct connection, that is, a physical connection, or it can be indirectly connected through at least one intermediate element, as long as the circuit is electrically connected. It can also be the internal connection of two elements; the signal connection can refer not only to the signal connection through a circuit, but also to the signal connection through a media medium, such as radio waves. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific situations.
[0052] In the related art, the power supply device can determine whether the charging device is connected by detecting the change rate of the current value of the charging port, so that when the charging device is not connected, it enters the zero standby state.
[0053] Specifically, considering that when the charging device is connected to the charging port of the power supply device, the current value of the charging port is greater than zero, and when the charging device is unplugged from the power supply device, the current value of the charging port suddenly becomes zero. When the charging state of the charging device changes, such as the required charging current decreases, it will cause the current value of the charging port to decrease slowly.
[0054] Based on this, the power supply device can determine that the charging device is not connected to the charging port of the power supply device when the current value of the charging port suddenly changes from a non-zero value to zero, and thus can enter the zero standby state. When the current value of the charging port decreases slowly, remains unchanged, or increases, it is determined that the charging device is still connected to the charging port of the power supply device, and thus the normal charging state needs to be maintained.
[0055] However, in the above related art, since the current detection accuracy of the power supply device is usually low, for a small current charging device with a small charging current, the power supply device may not be able to detect the current of the charging port, and thus cannot determine whether the charging device is connected according to whether the current value of the charging port changes suddenly, resulting in the inability to enter the zero standby state, thereby wasting power resources.
[0056] In addition, during the process of a charging device accessing the charging port of a power supply device for charging, there are situations where the charging current in some charging states is extremely small, such as the screen turning on and off of the charging device, and the volume change of the charging device. When switching from a normal charging state to a charging state with an extremely small charging current, it may accidentally enter the zero standby state, causing the charging device to be unable to charge normally and resulting in a poor user experience.
[0057] Exemplarily, the present application provides a zero standby control method, apparatus, electronic device, storage medium, program, and chip. In the current detection stage, the first control circuit of the power supply device preliminarily determines whether a charging device is connected to the charging port through the current of the charging port of the power supply device. Further, when the current value of the charging port is less than a preset current value, it enters the voltage detection stage. The first control circuit can determine whether to enter the zero standby state according to the change situation of the voltage of the charging port within a certain period of time, ensuring that whether a conventional charging device or a small current charging device is unplugged from the power supply device, the power supply device can promptly trigger the zero standby state, and avoiding the situation of accidentally entering the zero standby state when charging is required, which can not only save power resources but also improve the user experience.
[0058] Among them, the zero standby control method provided by the present application can be executed by an electronic device, such as a power supply device. Or, it is executed by a zero standby control device in the electronic device.
[0059] Among them, the zero standby control device can be implemented by the combination of software and / or hardware. For example, the zero standby control device can be the first control circuit, and the zero standby control device can also be an application (APP), a web page, a public account, etc. For the sake of simplicity of description, the embodiments of the present application are described by taking the execution by the first control circuit as an example.
[0060] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of a power supply device provided by an embodiment of the present application. As Figure 1 shown, the power supply device of the present application includes: a charging port 10, a first control circuit 20, and a load switch 30.
[0061] Among them, one end of the load switch 30 is connected to the power supply, and the other end of the load switch 30 is electrically connected to the charging port 10. The first control circuit 20 is electrically connected to the charging port 10 and the load switch 30 respectively.
[0062] Among them, the power supply can be an AC power supply, such as a household power grid, or a DC power supply, such as a lithium battery, etc.
[0063] Among them, the charging port 10 is used to connect to a charging device. When the charging device is connected to the power supply device through the charging port 10, the power supply device can provide electrical energy to the charging device through the charging port 10. The charging device is an electronic device such as a mobile phone, a laptop computer, or a radio.
[0064] Among them, the charging port 10 can be a Type-C port, a Type-A port, a Type-B port, etc.
[0065] Among them, the first control circuit 20 can be used to control the closing and opening of the load switch. The first control circuit 20 can also be used to collect the current and voltage of the charging port 10 in real time. The first control circuit 20 can also control the state of the power supply device.
[0066] Among them, the state of the power supply device includes a zero standby state and a normal power supply state. The zero standby state means that the first control circuit 20 controls the optocoupler in the power supply device to disconnect, so that the power supply device enters the zero standby state, thereby reducing the power consumption of the power supply device. The normal power supply state means that the power supply device normally supplies power to the charging device through the charging port 10.
[0067] Among them, the first control circuit 20 can be a microcontroller unit (MCU), etc.
[0068] Among them, the first control circuit 20 includes an analog-to-digital converter (ADC), and the ADC can be used to collect the current of the charging port 10.
[0069] Among them, the load switch 30 is used to close or open under the control of the first control circuit 20, thereby controlling the current flowing to the charging port 10.
[0070] Among them, the load switch 30 can be a field effect transistor, a switching triode, etc.
[0071] In addition to the above structure, in some examples, as Figure 2 shown, when the power supply device is a device connected to an AC power supply, the power supply device further includes an AC-DC conversion circuit 40. The load switch 30 can be connected to the AC power supply through the AC-DC conversion circuit 40, so that the AC-DC conversion circuit 40 can convert AC to DC, so that the power supply device can provide electrical energy to the charging device through the charging port 10.
[0072] Next, the following embodiments of the present application will take the power supply device with the Figure 1 shown structure as an example, and in combination with Figures 3 to 10 , the zero standby control method provided by the present application will be elaborated in detail.
[0073] Figure 3 The flowchart of a zero standby control method provided by an embodiment of the present application. As Figure 3 shown, the method includes:
[0074] S101. The first control circuit obtains a first current value.
[0075] Wherein, the first current value is the current value of the current flowing through the charging port when the load switch is closed.
[0076] Initially, the load switch is closed, and there are the following two situations for the charging port:
[0077] Situation 1, if there is a charging device connected to the charging port that needs to be charged, the current flows through the load switch to the charging port, so that the power supply device provides electric energy for the charging device through the charging port.
[0078] Situation 2, if there is no charging device connected to the charging port, no current is generated at the charging port.
[0079] Based on the above two situations, the first control circuit can detect the current of the charging port and judge whether there is a charging device connected to the charging port according to the magnitude of the current.
[0080] Specifically, the first control circuit uses the ADC in the first control circuit to collect the current of the charging port in real time to obtain the first current value, so as to be able to determine the magnitude of the current of the charging port according to the first current value.
[0081] In some examples, the first control circuit can obtain multiple first current values based on a preset period, so as to be able to monitor the current of the charging port in real time and ensure that when the current of the charging port changes, the first control circuit can detect the current change of the charging port in time.
[0082] Wherein, the preset period can be set to 1 ms, etc.
[0083] Based on this, the first control circuit obtains the first current value to preliminarily judge whether there is a charging device connected to the charging port according to the current of the charging port.
[0084] S102. The first control circuit judges whether the first current value is less than a preset current value.
[0085] When the first current value is less than the preset current value, the first control circuit executes S103; when the first current value is greater than or equal to the preset current value, the first control circuit executes S105.
[0086] Wherein, the preset current value can be set according to the sampling accuracy of the ADC in the first control circuit.
[0087] In some examples, considering that the sampling accuracy of the ADC in current common power supply devices is distributed between 5 mA and 20 mA, the preset current value can be set to 20 mA. Thus, the first control circuit can initially determine whether a charging device is connected to the charging port according to the minimum current that can be collected.
[0088] If the first current value is greater than or equal to the preset current value, it means that the power supply device is providing electrical energy to the charging device through the charging port. That is to say, according to the magnitude of the first current value, when the first current value is greater than or equal to the preset current value, the first control circuit can determine that there is a charging device connected to the power supply device through the charging port at this time, and this charging device requires the power supply device to provide electrical energy. Thus, the first control circuit needs to ensure that the power supply device maintains a normal charging state to facilitate the normal supply of electrical energy to the power supply device.
[0089] If the first current value is less than the preset current value, it means that the power supply device is not providing electrical energy to the charging device through the charging port, or the power supply device is providing a small current to the charging device through the charging port. That is to say, according to the magnitude of the first current value, when the first current value is less than the preset current value, the first control circuit can determine that no charging device is connected to the charging port, or a charging device with a small current is connected to the charging port. Thus, the first control circuit needs to further judge whether a charging device is connected to the charging port.
[0090] Among them, the small current refers to a current less than or equal to 5 mA, and the ADC in a conventional power supply device cannot detect a small current.
[0091] Based on this, the first control circuit initially determines whether a charging device is connected to the charging port by judging the relationship between the first current value and the preset current value.
[0092] S103. The first control circuit controls the load switch to disconnect so that the charging port maintains the port voltage through the inherent capacitance.
[0093] When the first current value is less than the preset current value, the first control circuit can judge that no charging device is connected to the charging port, or a charging device with a small current is connected to the charging port.
[0094] Considering the limitation of the ADC sampling accuracy, the first control circuit cannot further judge whether a charging device is connected through the current of the charging port. Then the first control circuit can use the change of the port voltage of the charging port when no power supply is connected to determine that no charging device is connected to the charging port at this time, or a charging device with a small current is connected.
[0095] Specifically, the first control circuit controls the load switch to disconnect, ensuring that the charging port maintains the port voltage through the inherent capacitance, so that the first control circuit can further determine the situation of the charging port according to the change of the port voltage.
[0096] S104. The first control circuit determines whether to enter the zero standby state according to the change of the port voltage within the first time period.
[0097] When the charging port maintains the port voltage through the inherent capacitance, the change of the port voltage has the following situations A and B.
[0098] Situation A: The port voltage decreases slowly. Here, the slow decrease is relative to situation B, that is, the speed of the port voltage decrease is slower than that in situation B.
[0099] Situation B: The port voltage decreases rapidly. Here, the rapid decrease is relative to situation A, that is, the speed of the port voltage decrease is faster than that in situation A.
[0100] Among them, when no external device (such as a charging device) is connected to the charging port, the port voltage decreases naturally and relatively slowly, that is, the above situation A occurs.
[0101] Among them, when an external device (such as a charging device with a small current) is connected to the charging port, due to the small voltage of the charging device with a small current, when the external device is connected to the charging port, it will pull down the port voltage, resulting in a rapid decrease in the port voltage, that is, the above situation B occurs.
[0102] Based on this, the first control circuit can determine whether to enter the zero standby state according to the change of the port voltage within the first time period.
[0103] Specifically, the first control circuit can collect multiple port voltage values within a period of time, determine the change of the port voltage according to the multiple port voltage values, and thus, by judging the change of the port voltage, the first control circuit can determine that no charging device is connected to the charging port, or a charging device with a small current is connected to the charging port.
[0104] When it is determined that no charging device is connected to the charging port, the first control circuit can control the power supply device to enter the zero standby state.
[0105] Exemplarily, when the power supply device includes an AC-DC conversion circuit, the first control circuit can control the optocoupler in the AC-DC conversion circuit through the configuration register, so that the optocoupler limits the power output of the AC-DC conversion circuit, thereby enabling the power supply device to enter the zero standby state.
[0106] When it is determined that a charging device with a small current is connected to the charging port, in order to ensure that the power supply device provides electrical energy to the charging device through the charging port, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port.
[0107] Based on this, the first control circuit further determines whether there is a charging device connected to the charging port according to the change of the port voltage within the first time period, which can accurately distinguish the situation of no charging device connected or a charging device with a small current connected, and avoid ignoring the charging device with a small current connected to the charging port and directly entering the zero standby state, resulting in the situation that the charging device with a small current cannot be normally charged. After the charging device with a small current is unplugged from the charging port, the first control circuit can determine that no charging device is connected to the charging port, and thus enter the zero standby state in time.
[0108] S105. Keep the load switch closed so that the power supply device can normally supply power to the charging device connected to the charging port.
[0109] When the first current value is greater than the preset current value, the first control circuit can directly determine that a charging device is connected to the charging port.
[0110] Based on this, the first control circuit does not need to further detect the port voltage, saving the computing resources of the first control circuit, and can maintain the state of providing electrical energy to the charging device, avoiding mis-entering the zero standby state, thereby improving the user experience.
[0111] In the embodiment of the present application, the first control circuit obtains the first current value of the current flowing through the charging port when the load switch is closed, so as to monitor the current of the charging port. The first control circuit judges whether the first current value is less than the preset current value, so that it can preliminarily determine whether there is a charging device connected to the charging port according to the relationship between the first current value and the preset current value. When the first current value is greater than or equal to the preset current value, the first control circuit can determine that there is a charging device connected to the power supply device through the charging port, so as to ensure that the power supply device can normally provide electrical energy to the charging device. When the first current value is less than the preset current value, the first control circuit can determine that no charging device is connected to the charging port, or a charging device with a small current is connected to the charging port. At this time, the first control circuit controls the load switch to disconnect, so that the charging port maintains the port voltage through the inherent capacitance, so that the first control circuit can further judge the situation of the charging port according to the change of the port voltage within the first time period, and determine whether to enter the zero standby state, so as to accurately distinguish the situation of no charging device connected or a charging device with a small current connected, and avoid the problem of directly entering the zero standby state and ignoring the charging device with a small current when only performing current detection, and avoid the situation that the charging device with a small current cannot be normally charged.
[0112] Furthermore, after a charging device with a small current is unplugged from the charging port, the first control circuit can determine that no charging device is connected to the charging port, and thus enter the zero standby state in a timely manner. Based on this, whether it is a conventional charging device or a charging device with a small current, the first control circuit can trigger the zero standby state in a timely and accurate manner, thereby improving the user experience and saving power resources.
[0113] Based on the above exemplary description, in S104, the first control circuit can determine whether to enter the zero standby state through the following Figure 4 method shown.
[0114] Figure 4 The flowchart of a zero standby control method provided by an embodiment of the present application. As Figure 4 shown, S104 can be implemented through the following S201 to S202:
[0115] S201. The first control circuit collects the port voltage of the charging port within the first time period according to the first preset frequency, and obtains a plurality of first voltage values.
[0116] Among them, the first preset frequency can be set according to experience. For example, the first preset frequency is 25 kHz. The higher the first preset frequency, the more the number of first voltage values collected by the first control circuit within the first time period, so that the first control circuit can obtain a more accurate change situation of the port voltage.
[0117] Among them, the first time period can be set in the following manner.
[0118] Specifically, if no charging device is connected to the charging port, the voltage of the charging port is maintained only by the port capacitor. According to the characteristics of the capacitor, the discharge voltage of the capacitor shows a monotonic decrease. Therefore, the voltage change curve of the charging port when no charging device is connected and the load switch is off can be obtained in advance. This voltage change curve shows the relationship between the time period and the voltage value after no charging device is connected and the load switch is off at the charging port.
[0119] If the slope of the actual voltage change curve of the charging port when the load switch is off is greater than the slope of the voltage change curve of the charging port when no charging device is connected and the load switch is off, it can be explained that a charging device is connected.
[0120] Based on this, the first control circuit can set a voltage threshold and determine the first time period according to the voltage change curve of the charging port when no charging device is connected and the load switch is off.
[0121] For example, if the slope of the voltage change curve of the power supply device when no charging device is connected and the load switch is off is 0.004 V / ms, considering the tolerance of the actual component selection, the first control circuit can set a slope greater than 0.004 V / ms as the slope threshold, such as 0.025 V / ms. That is, if the slope of the voltage change curve of the actual charging port when the load switch is off is greater than 0.025 V / ms, it indicates that a charging device is connected. Taking the charging voltage of the charging port as 5 V as an example, after the load switch is off, the voltage of the charging port starts to drop from 5 V. It is expected to complete zero standby control at the initial stage of the voltage drop. Therefore, the voltage threshold can be set to 4.8 V. Combining with the set slope threshold of 0.025 V / ms, the duration at this time is 8 ms. That is, the first duration can be 8 ms. Within 8 ms, the first control circuit collects the port voltage of the charging port according to the first preset frequency to obtain multiple first voltage values.
[0122] Based on this, by collecting the port voltage within the first duration, the first control circuit can obtain multiple first voltage values to facilitate determining the change of the port voltage according to the multiple first voltage values.
[0123] S202. The first control circuit determines whether to enter the zero standby state according to the multiple first voltage values.
[0124] Specifically, the first control circuit can determine whether to enter the zero standby state in the following two ways.
[0125] Method 1. The first control circuit directly determines the change of the port voltage according to the multiple first voltage values, thereby determining whether to enter the zero standby state.
[0126] Specifically, considering that in cases A and B described in S104 above, the reduction speed of the port voltage is different. Therefore, the first control circuit can determine a voltage threshold. Within the first duration, in case A, the port voltage has not dropped below the voltage threshold, while in case B, the reduction speed of the port voltage is faster and the port voltage will drop below the voltage threshold.
[0127] Considering that in the method of this application, if a charging device is connected, the load switch needs to be re-closed to continue supplying power to the charging device. If the load switch is closed to continue supplying power to the charging device after the port voltage drops to a relatively low value, a "false charge" phenomenon may occur. To ensure that power supply can be quickly restored in this case and avoid the "false charge" phenomenon, the voltage threshold can be a value less than the charging voltage of the charging port.
[0128] For example, if the charging voltage of the charging port is 5V after the load switch is turned off and the voltage of the charging port starts to drop from 5V, the voltage threshold can be 4.8V, so as to expect to complete the detection of whether to enter the zero standby state at the initial stage of the voltage drop.
[0129] Based on this, the first control circuit can determine the change of the port voltage according to the distribution of multiple first voltage values around the voltage threshold.
[0130] For example, if multiple first voltage values are all greater than or equal to the voltage threshold, the first control circuit determines that the port voltage naturally decreases within the first time period, that is, no charging device is connected to the charging port, and the first control circuit determines to enter the zero standby state. If there is a first voltage value less than the voltage threshold and there is also a first voltage value greater than the voltage threshold, the first control circuit determines that the port voltage drops relatively fast within the first time period, that is, a charging device with a small current is connected to the charging port, and the first control circuit determines that there is no need to enter the zero standby state and closes the load switch, so that the power supply device can normally supply power to the charging device with a small current through the charging port.
[0131] Method 2: The first control circuit processes multiple first voltage values and then determines the change of the port voltage, so as to determine whether to enter the zero standby state.
[0132] Specifically, the first control circuit can perform curve fitting on multiple first voltage values to obtain a first voltage change curve, and the first voltage change curve can reflect the change of the port voltage within the first time period. By analyzing the first voltage change curve, the first control circuit can determine the state of the charging port.
[0133] Among them, the first control circuit can analyze the first voltage change curve in various ways.
[0134] As a feasible implementation method, the first control circuit can determine whether there is a charging device connected to the charging port by determining the difference between the first voltage change curve and the standard voltage curve, such as the difference in slope magnitude.
[0135] Among them, the standard voltage curve refers to the change curve of the port voltage when the port voltage is maintained by the inherent capacitance when no charging device is connected to the power supply device. The standard voltage curve can be obtained in advance through experiments. Due to differences in component selection of the power supply device, the standard voltage curve may be different, and the first control circuit can store the standard voltage curve in the memory.
[0136] As another feasible implementation method, the first control circuit can determine whether there is a charging device connected to the charging port by determining whether there is an intersection between the first voltage change curve and the voltage threshold curve within the first time period.
[0137] Among them, the voltage threshold curve is the voltage threshold in the above-mentioned method 1, and the method for determining the voltage threshold will not be elaborated here.
[0138] Based on this, when it is determined that no charging device is connected to the charging port, the first control circuit can control the power supply device to enter the zero standby state.
[0139] When it is determined that a charging device with a small current is connected to the charging port, in order to ensure that the power supply device provides electrical energy to the charging device through the charging port, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port.
[0140] Based on the above exemplary description, the first control circuit can determine whether to enter the zero standby state in multiple ways according to multiple first voltage values.
[0141] Next, in combination with Figure 5 and Figure 8 , the specific method for determining whether to enter the zero standby state will be described.
[0142] Figure 5 This is a flowchart of a zero standby control method provided by an embodiment of the present application. As Figure 5 shown, S202 can be implemented through the following Sa1 to Sa3:
[0143] Sa1. The first control circuit determines whether there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the multiple first voltage values.
[0144] When there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the multiple first voltage values, the first control circuit executes Sa2; when all the multiple first voltage values are greater than or equal to, or all less than the preset voltage value, the first control circuit executes Sa3.
[0145] Sa2. The first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port.
[0146] Next, in combination with the specific example as Figure 6 shown, the situation where there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the multiple first voltage values will be described.
[0147] Figure 6 In, the solid circles represent multiple first voltage values, the horizontal axis t represents time, the vertical axis U represents voltage values, U0 represents the preset voltage value, and 0-T1 represents the first duration. From Figure 6It can be seen that among the multiple first voltage values, there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value, which means that within the first time period, some of the multiple first voltage values are already lower than the preset voltage value, that is, it indicates that within the first time period, the voltage value of the port voltage has triggered the preset voltage value, that is to say, the port voltage drops relatively quickly, meeting the above-mentioned situation B. Therefore, the first control circuit can determine that there is a charging device connected to the charging port.
[0148] When the first control circuit determines that there is a charging device connected to the charging port, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port, improving the user experience.
[0149] Sa3, the first control circuit controls the power supply device to enter the zero standby state.
[0150] Next, in combination with the Figure 7 specific example shown below, describe the situation where there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the multiple first voltage values.
[0151] Figure 7 In the figure, the hollow circles represent multiple first voltage values, the horizontal axis t represents time, the vertical axis U represents the voltage value, U0 represents the preset voltage value, and 0-T1 represents the first time period. From Figure 7 it can be seen that when all of the multiple first voltage values are greater than or equal to the preset voltage value, it means that within the first time period, there are no multiple first voltage values lower than the preset voltage value, that is to say, the port voltage drops relatively slowly, meeting the above-mentioned situation A. Therefore, the first control circuit can determine that there is no charging device connected to the charging port.
[0152] When the first control circuit determines that there is no charging device connected to the charging port, the first control circuit controls the power supply device to enter the zero standby state, ensuring that the power supply device can normally enter the zero standby state and saving power resources.
[0153] Among them, for the specific method by which the first control circuit controls the power supply device to enter the zero standby state, please refer to the description in S104 and will not be elaborated here.
[0154] Figure 8 It is a flowchart of a zero standby control method provided by an embodiment of the present application. As Figure 8 shown, S202 can be implemented through the following Sb1 to Sb4:
[0155] Sb1, the first control circuit determines the first voltage change curve according to the multiple first voltage values.
[0156] Among them, the first voltage change curve is used to indicate the change of the port voltage within the first time period.
[0157] Specifically, the first control circuit may perform fitting processing on a plurality of first voltage values to obtain a first voltage variation curve.
[0158] The first control circuit may use a B-spline curve method, a least squares method, or the like to perform fitting processing on a plurality of first voltage values to obtain a first voltage variation curve.
[0159] Before performing the fitting process, the first control circuit may also perform data preprocessing on multiple first voltage values, eliminate first voltage values with errors, and obtain a more accurate first voltage change curve, thereby helping to improve the accuracy of determining whether to enter zero standby based on the first voltage change curve.
[0160] Based on this, the first control circuit determines a first voltage variation curve according to the multiple first voltage values, and the first voltage variation curve can directly reflect the variation of the port voltage within the first time period.
[0161] Sb2. The first control circuit determines whether the absolute value of the slope of the first voltage change curve is greater than the absolute value of a preset slope.
[0162] The slope is a quantity that can reflect the degree of inclination of the tangent of a straight line or curve with respect to the horizontal axis. In the first voltage change curve of the present application, the slope of the first voltage change curve can reflect the rate of decrease of the port voltage. The larger the slope of the first voltage change curve, the more it meets the above-mentioned situation B, and the smaller the slope of the first voltage change curve, the more it meets the above-mentioned situation A.
[0163] The first control circuit can determine the preset slope according to the slope of the first voltage change curve of the power supply device when the power supply device is not connected to the charging device. The slope of the first voltage change curve of the power supply device when the power supply device is not connected to the charging device can reflect the change of the port voltage of the power supply device when the power supply device is not connected to the charging device.
[0164] Based on this, taking into account the tolerance of actual component selection of the power supply device, the first control circuit can determine a value greater than the slope of the first voltage change curve of the power supply device when the power supply device is not connected to the charging device as the preset slope.
[0165] For example, if the slope of the first voltage variation curve of the power supply device when not connected to the charging device is 0.004 V / ms, the preset slope may be 0.025 V / ms.
[0166] Therefore, the first control circuit determines whether a charging device is connected to the charging port by comparing the slope of the first voltage variation curve corresponding to the plurality of first voltage values with a preset slope.
[0167] When the absolute value of the slope of the first voltage change curve is greater than the absolute value of the preset slope, the first control circuit executes Sb3; when the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of the preset slope, the first control circuit executes Sb4.
[0168] Sb3. The first control circuit controls the load switch to close so that the power supply device can supply power to the charging device connected to the charging port normally.
[0169] Next, combined with the specific example as Figure 9 shown, the situation when the absolute value of the slope of the first voltage change curve is greater than the absolute value of the preset slope.
[0170] Figure 9 In it, the first voltage change curve is represented by a solid line, the curve corresponding to the preset slope is represented by a dotted line, the horizontal axis t represents time, the vertical axis U represents the voltage value, and 0 - T1 represents the first duration. From Figure 9 it can be seen that the absolute value of the slope of the first voltage change curve is greater than the absolute value of the preset slope, indicating that the port voltage drops relatively quickly, which conforms to the above - mentioned situation B. Thus, the first control circuit can determine that there is a charging device connected to the charging port.
[0171] When the first control circuit determines that there is a charging device connected to the charging port, the first control circuit controls the load switch to close so that the power supply device can supply power to the charging device connected to the charging port normally, improving the user experience.
[0172] Sb4. The first control circuit controls the power supply device to enter the zero - standby state.
[0173] Next, combined with the specific example as Figure 10 shown, describe the situation where the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of the preset slope.
[0174] Figure 10 In it, the first voltage change curve is represented by a solid line, the curve corresponding to the preset slope is represented by a dotted line, the horizontal axis t represents time, the vertical axis U represents the voltage value, and 0 - T1 represents the first duration. From Figure 10 it can be seen that the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of the preset slope (the equal situation Figure 10 is not shown), indicating that the port voltage drops relatively slowly, which conforms to the above - mentioned situation A. Thus, the first control circuit can determine that there is no charging device connected to the charging port.
[0175] When the first control circuit determines that there is no charging device connected to the charging port, the first control circuit controls the power supply device to enter the zero - standby state, ensuring that the power supply device can normally enter the zero - standby state and saving power resources.
[0176] Based on the above exemplary description, in Figure 8 On the basis of the embodiment, the first control circuit can determine a preset slope according to the following method.
[0177] Specifically, the first control circuit determines the preset slope according to the slope of the second voltage change curve of the test device when no charging device is connected.
[0178] Among them, the model of the test device is the same as that of the power supply device.
[0179] In some examples, the determination steps of the second voltage change curve include the following first step and second step:
[0180] First step, when no charging device is connected, the second control circuit collects the port voltage of the charging port of the test device within the second time period according to the second preset frequency, and obtains a plurality of fourth voltage values.
[0181] Among them, the second control circuit is the control circuit in the test device.
[0182] Among them, the second preset frequency may be the same as or different from the above first preset frequency, and the second time period may also be the same as or different from the above first time period. The present application does not limit this.
[0183] Second step, the second control circuit determines the second voltage change curve according to the plurality of fourth voltage values. The second voltage change curve is used to indicate the change of the charging port of the test device within the second time period.
[0184] Among them, the method of determining the second voltage change curve in the second step is similar to the method of determining the first voltage change curve in Sb1, and will not be elaborated here.
[0185] Based on this, the second control circuit obtains the second voltage change curve. The second control circuit or the first control circuit can determine a value greater than the slope of the second voltage change curve as the preset slope according to the second voltage change curve, taking into account the tolerance of the actual component selection of the power supply device, and store the preset slope in the memory of the power supply device. Thus, when executing the zero standby control method, the first control circuit can ensure that the operation of entering and exiting the zero standby state can be accurately realized according to the preset slope.
[0186] Exemplarily, the present application provides a zero standby control device.
[0187] Please refer to Figure 11 , Figure 11 which is a schematic structural diagram of a zero standby control device provided by an embodiment of the present application. As Figure 11 shown, the zero standby control device of the present application may include an acquisition module 101, a control module 102, and a determination module 103:
[0188] An acquisition module 101, configured to acquire a first current value, where the first current value is the current value of the current flowing through the charging port when the load switch is closed;
[0189] A control module 102, configured to, when the first current value is less than a preset current value, control the first control circuit to disconnect the load switch, so that the charging port maintains the port voltage through the inherent capacitance;
[0190] A determination module 103, configured to determine whether to enter the zero standby state according to the change condition of the port voltage within a first time period.
[0191] In some examples, the determination module 103 is specifically configured to:
[0192] Collect the port voltage of the charging port within the first time period according to a first preset frequency to obtain a plurality of first voltage values;
[0193] Determine whether to enter the zero standby state according to the plurality of first voltage values.
[0194] In some examples, the determination module 103 is specifically configured to:
[0195] When there is a second voltage value greater than a preset voltage value and a third voltage value less than the preset voltage value among the plurality of first voltage values, control the load switch to close, so that the power supply device supplies power to the charging device connected to the charging port normally;
[0196] When the plurality of first voltage values are all greater than or equal to the preset voltage value, control the power supply device to enter the zero standby state.
[0197] In some examples, the determination module 103 is specifically configured to:
[0198] Determine a first voltage change curve according to the plurality of first voltage values, where the first voltage change curve is used to indicate the change condition of the port voltage within the first time period;
[0199] When the absolute value of the slope of the first voltage change curve is greater than the absolute value of a preset slope, control the load switch to close, so that the power supply device supplies power to the charging device connected to the charging port normally;
[0200] When the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of the preset slope, control the power supply device to enter the zero standby state.
[0201] In some examples, the control module 102 is further configured to:
[0202] When the first current value is greater than or equal to the preset current value, keep the load switch closed, so that the power supply device supplies power to the charging device connected to the charging port normally.
[0203] In some examples, the determining module 103 is further specifically configured to:
[0204] Determine a preset slope according to the slope of the second voltage change curve of the test device when no charging device is connected, where the model of the test device is the same as that of the power supply device.
[0205] In some examples, the steps for determining the second voltage change curve include:
[0206] When no charging device is connected, the second control circuit of the test device collects the port voltage of the charging port of the test device within a second time period according to a second preset frequency, and obtains a plurality of fourth voltage values;
[0207] The second control circuit determines a second voltage change curve according to the plurality of fourth voltage values, and the second voltage change curve is used to indicate the change of the charging port of the test device within the second time period.
[0208] Figure 12 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As Figure 12 shown, the electronic device may include: a processor 201 and a memory 202. A computer program is stored in the memory 202. When the processor 201 executes the computer program, the zero standby control method shown in the embodiment of the present application is implemented. Figures 3 to 10 shown.
[0209] Figure 13 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As Figure 13 shown, the electronic device may include: a processor 301. When the processor 301 executes the computer executable program or instruction in the memory to execute the computer program, the zero standby control method shown in the embodiment of the present application is implemented. Figures 3 to 10 shown.
[0210] The electronic device of the present application can be used to execute the technical solutions of the foregoing method embodiments. The implementation principles and technical effects are similar. The operations implemented by each module can be further referred to the relevant descriptions of the method embodiments, which will not be elaborated here. The modules here can also be replaced by components or circuits.
[0211] Another embodiment of the present application further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the zero standby control method shown in the embodiment of the present application can be implemented. Figures 3 to 10 shown.
[0212] Another embodiment of the present application further provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, at least one processor of the electronic device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to enable the electronic device to implement the embodiments of the present application Figures 3 to 10 The zero standby control method shown.
[0213] Another embodiment of the present application further provides a chip, the chip is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, the zero standby control method shown in the embodiments of the present application is implemented. Figures 3 to 10 The zero standby control method shown.
[0214] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0215] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
[0216] Those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments, the combination of features of different embodiments means that it is within the scope of the present application and forms different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0217] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A zero standby control method, characterized in that: Applied to a power supply device, the power supply device includes a charging port, a first control circuit and a load switch, the load switch is connected to a power source, the charging port is electrically connected to the load switch, the first control circuit is electrically connected to the charging port and the load switch respectively, and the method includes: The first control circuit acquires a first current value, where the first current value is a current value of a current flowing through the charging port when the load switch is closed; When the first current value is less than a preset current value, the first control circuit controls the load switch to be disconnected, so that the charging port maintains the port voltage through the inherent capacitance; The first control circuit determines whether to enter the zero standby state according to the change of the port voltage within a first time period.
2. The method according to claim 1, characterized in that The first control circuit determines whether to enter the zero standby state according to the change of the port voltage within the first time period, including: The first control circuit collects the port voltage of the charging port within a first time period according to a first preset frequency to obtain a plurality of first voltage values; The first control circuit determines whether to enter a zero standby state according to the plurality of first voltage values.
3. The method according to claim 2, characterized in that The first control circuit determines whether to enter a zero standby state according to the plurality of first voltage values, including: When there is a second voltage value greater than the preset voltage value and a third voltage value less than the preset voltage value among the multiple first voltage values, the first control circuit controls the load switch to be closed, so that the power supply device can normally supply power to the charging device connected to the charging port; The first control circuit controls the power supply device to enter a zero standby state when the multiple first voltage values are all greater than or equal to a preset voltage value.
4. The method according to claim 2, characterized in that: The first control circuit determines whether to enter a zero standby state according to the plurality of first voltage values, including: The first control circuit determines a first voltage variation curve according to the plurality of first voltage values, wherein the first voltage variation curve is used to indicate a variation of the port voltage within a first time period; When the absolute value of the slope of the first voltage variation curve is greater than the absolute value of the preset slope, the first control circuit controls the load switch to close, so that the power supply device can normally supply power to the charging device connected to the charging port; The first control circuit controls the power supply device to enter a zero standby state when the absolute value of the slope of the first voltage change curve is less than or equal to the absolute value of a preset slope.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the first current value is greater than or equal to the preset current value, the first control circuit keeps the load switch closed, so that the power supply device can normally supply power to the charging device connected to the charging port.
6. The method according to claim 4, characterized in that The method further comprises: The first control circuit determines a preset slope according to a slope of a second voltage variation curve of the test equipment when no charging device is connected, wherein a model of the test equipment is the same as a model of the power supply device.
7. The method according to claim 6, characterized in that The step of determining the second voltage variation curve comprises: When no charging device is connected, the second control circuit of the test device collects the port voltage of the charging port of the test device within a second time period according to the second preset frequency to obtain a plurality of fourth voltage values; The second control circuit determines the second voltage variation curve according to the plurality of fourth voltage values, where the second voltage variation curve is used to indicate a variation of the charging port of the test equipment within a second time period.
8. A power supply device, characterized in that: include: A charging port, a first control circuit, and a load switch; The load switch is connected to a power supply, the charging port is electrically connected to the load switch, the first control circuit is electrically connected to the charging port and the load switch respectively, and the first control circuit is used to execute the method described in any one of claims 1 to 7.
9. An electronic device, characterized in that: include: At least one memory and at least one processor; the memory is used to store computer executable programs or instructions; the processor is used to call the computer executable programs or instructions in the memory, so that the electronic device executes the method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program or instructions, and the computer-executable program or instructions are configured to execute the method according to any one of claims 1 to 7.