Power supply control method and electronic device

By acquiring the operating parameters of the interface board and the motherboard, power transmission can be disconnected in a timely manner, and residual charge can be discharged on the power supply circuit. This solves the problem of untimely circuit protection during high-power charging in the prior art, and achieves rapid response and equipment protection.

CN123034570APending Publication Date: 2026-11-03LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611161041.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

In the current technology, during high-power charging, circuit protection schemes often only trigger after the circuit abnormality has lasted for a period of time, leading to equipment damage and insufficient timely protection.

Method used

By acquiring the operating parameters of the interface board and the motherboard, it is determined whether their relationship meets the target conditions. Power transmission is disconnected in a timely manner, and a switch is set on the power supply circuit to discharge residual charge. Combined with preset time and multiple sampling to confirm abnormal conditions, measures such as gradual current reduction or direct power cut-off are taken.

Benefits of technology

It enables timely identification of faults in the early stages of anomalies, avoids equipment damage, improves the response speed and reliability of circuit protection, reduces the risk of premature power restoration due to misjudgment, and enhances the safety and stability of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123034570A_ABST
    Figure CN123034570A_ABST
Patent Text Reader

Abstract

The application provides a power supply control method and an electronic device, and belongs to the technical field of control. The power supply control method comprises the following steps: obtaining a first running parameter of an interface board and a second running parameter of a mainboard; wherein the mainboard is electrically connected with the interface board, the interface board is used for performing power transmission to the mainboard through a power supply circuit in response to connection of an external power supply; and if a relationship of the first running parameter relative to the second running parameter meets a first target condition, the power transmission from the interface board to the mainboard is disconnected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application provides a power supply control method and electronic device, belonging to the field of control technology. Background Technology

[0002] With the development of mobile phones, high-power charging has gradually become widespread, making circuit protection particularly important.

[0003] The common current protection solution is to add an NTC (thermistor) detector to the interface board of the device that connects to the external power supply. This detector checks for abnormalities when the temperature reaches a certain value and then cuts off the power supply to the interface board. However, by this time, the power supply abnormality in the circuit has usually already been ongoing for some time, making the protection too late. Summary of the Invention

[0004] To address the aforementioned technical problems, the present invention aims to provide a power supply control method and an electronic device, the specific technical solution of which is as follows: A power supply control method, comprising: The first operating parameters of the interface board and the second operating parameters of the motherboard are obtained; wherein the motherboard is electrically connected to the interface board, and the interface board is used to transmit power to the motherboard through a power supply circuit in response to connecting to an external power source. If the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, the power transmission from the interface board to the motherboard is disconnected.

[0005] In some embodiments, the power supply control method further includes: Obtain the electrical parameters of the power supply circuit; If the electrical parameters meet the second target condition, the second switch is turned on to discharge the residual charge on the power supply circuit; The second target condition includes at least one of the following: the current of the power supply circuit is greater than a preset current threshold, and the voltage of the power supply circuit is greater than a preset voltage threshold.

[0006] In some embodiments, the power supply control method further includes: In response to the discharge of charge lasting for a first preset time, the first operating parameter and the second operating parameter are reacquired. If the second target condition is not met, a second control signal is generated; In response to the second control signal, the second switch is disconnected, and power transmission from the interface board to the motherboard is restored.

[0007] In some embodiments, if the relationship between the first operating parameter and the second operating parameter satisfies a first target condition, the power transmission from the interface board to the motherboard is disconnected, including: A first control signal is generated in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter; In response to the first control signal, the first switch on the power supply circuit is turned off to disconnect the power transmission from the interface board to the motherboard.

[0008] In some embodiments, after disconnecting the power transmission from the interface board to the motherboard, the power supply control method further includes: At least one set of the first operating parameters and the second operating parameters is acquired at a preset period; If the number of acquisitions reaches the first preset threshold, and the relationship between the first operating parameter and the second operating parameter acquired each time does not meet the first target condition, then the first switch is turned on to restore the power transmission from the interface board to the motherboard. The first target condition includes at least one of the following: The first operating parameter is greater than the second operating parameter; The first operating parameter is equal to the second operating parameter; The difference between the first operating parameter and the second operating parameter is within a preset difference range; Wherein, the first operating parameter and the second operating parameter are any one of temperature, voltage and current.

[0009] In some embodiments, before disconnecting the power transmission from the interface board to the motherboard, the method further includes: In response to the first operating parameter satisfying the first target condition in relation to the second operating parameter, the current value on the power supply circuit is reduced to a target current value; wherein the target current value is less than the current current value; In response to the current value on the power supply circuit being the target current value, at least one set of the first operating parameters and the second operating parameters are acquired at a preset period. If the number of acquisitions reaches the second preset threshold, and the relationship between the first operating parameter and the second operating parameter still satisfies the first target condition, then the power transmission from the interface board to the motherboard is disconnected.

[0010] In some embodiments, reducing the current of the power supply circuit to a target current value in response to the relationship between the first operating parameter and the second operating parameter satisfying the first target condition includes: A current control signal is generated in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter; In response to the current control signal, the charging current of the power supply circuit is adjusted from the current current value to the target current value; wherein, the current control signal is used to control the charging management chip of the motherboard to send a protocol message to the external power supply to adjust the current current value.

[0011] In some embodiments, the power supply control method further includes: Based on the cause of the anomaly in the first operating parameter, an anomaly level is determined; wherein, the cause of the anomaly includes at least one of the following: the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, or the first operating parameter exceeds a preset threshold; Based on the anomaly level, a corresponding level of prompt information is generated; wherein, different prompt levels correspond to different prompt content and / or different prompt methods; The aforementioned prompt message is output to indicate a charging malfunction to the user.

[0012] An electronic device, comprising: An interface board is provided with a charging interface and a first detection element. The first detection element is used to acquire the first operating parameters of the interface board, and the charging interface is used to connect to an external power source. The motherboard is equipped with a control unit and a second detection element. The second detection element is used to acquire the second operating parameters of the motherboard. The motherboard and the interface board are electrically connected through a power supply circuit. In response to the charging interface being connected to the external power supply, the external power supply can transmit power to the motherboard through the power supply circuit. A switching assembly, including at least a first switch, wherein the first switch is connected in series in a power supply circuit between the motherboard and the interface board; The control unit is connected to the first detection element, the second detection element and the first switch respectively, and in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter, controls the first switch to close, so as to disconnect the power transmission from the interface board to the motherboard; The first target condition includes at least one of the following: The first operating parameter is greater than the second operating parameter; The first operating parameter is equal to the second operating parameter; The difference between the first operating parameter and the second operating parameter is within a preset difference range; Wherein, the first operating parameter and the second operating parameter are any one of temperature, voltage and current.

[0013] The switching assembly further includes a second switch, one end of which is connected to the power supply circuit and the other end is grounded. The control unit is also connected to the control terminal of the second switch, and in response to obtaining that the electrical parameters of the power supply circuit meet the second target condition, turns on the second switch to discharge the residual charge on the power supply circuit; The second target condition includes at least one of the following: the current of the power supply circuit is greater than a preset current threshold, and the voltage of the power supply circuit is greater than a preset voltage threshold. Attached Figure Description

[0014] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 This is a flowchart of a power supply control method provided in Embodiment 1 of this application; Figure 2 This is a flowchart of a power supply control method provided in Embodiment 2 of this application; Figure 3 This is a flowchart of a power supply control method provided in Embodiment 3 of this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.

[0016] In the picture: 1. Interface board; 10. First detection element; 11. Power supply circuit; 2. Mainboard; 20. Second detection element; 21. Charging management chip; 3. First switch; 4. Second switch; 5. Adapter. Detailed Implementation

[0017] To further illustrate the technical means and effects adopted by this application to achieve the intended inventive purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of a power supply control method and electronic device proposed according to this application. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0019] The specific scheme of a power supply control method provided in this application is described below with reference to the accompanying drawings. This control method can be used in electronic devices, specifically mobile phones, tablets, laptops, and other devices that need to be charged by an external power source through a charging interface. This embodiment does not impose any specific limitations.

[0020] Please see Figure 1 and Figure 4 The diagram illustrates a flowchart of a power supply control method according to an embodiment of this application. The power supply control method specifically includes the following steps: Step S100: Obtain the first operating parameters of the interface board 1 and the second operating parameters of the motherboard 2; wherein, the motherboard 2 is electrically connected to the interface board 1, and the interface board 1 is used to transmit power to the motherboard 2 through the power supply circuit 11 in response to connecting to an external power source.

[0021] Interface board 1 can be a USB interface board, i.e. a circuit board with Universal Serial Bus (USB) interface function; or interface board 1 can be a Type-C interface board, i.e. a circuit board with USB Type-C interface specification.

[0022] A power supply circuit 11 is provided between the interface board 1 and the motherboard 2. After the interface board 1 is connected to an external power source, it can transmit power to the motherboard 2 through the power supply circuit 11 to power or charge the motherboard 2 and the electronic devices containing the motherboard 2.

[0023] In this embodiment, the operating parameters on the interface board 1 and the operating parameters on the motherboard 2 can be used to characterize the working state of the two boards.

[0024] The first operating parameter is a parameter that can characterize the operating state of the interface board 1 when it is connected to an external power source and transmits power to the motherboard 2, and the second operating parameter is a parameter that can characterize the operating state of the motherboard 2 when it receives power transmitted by the interface board 1.

[0025] The first and second operating parameters can be parameters obtained directly from data collection, or parameters calculated, transformed, or fused based on one or more data collection results.

[0026] The embodiments of this application do not limit the specific parameter type, quantity, acquisition method and representation form of the first operating parameter and the second operating parameter, as long as they can respectively characterize the operating status of the interface board side and the motherboard side, and can be used to determine whether the power transmission between the interface board 1 and the motherboard 2 is abnormal.

[0027] Step S200: If the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, disconnect the power transmission from the interface board 1 to the motherboard 2.

[0028] The first target condition can be preset according to the type of the first operating parameter and the second operating parameter. When the relative relationship between the two parameters meets the first target condition, it can be determined that there is an abnormality in the power supply circuit 11. At this time, the power transmission from the interface board 1 to the motherboard 2 is disconnected, which can terminate the abnormal power supply in time and avoid abnormal high current or high temperature.

[0029] When the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, it indicates that there is an abnormal risk in the power supply status between interface board 1 and motherboard 2, and the power transmission from interface board to motherboard is disconnected. Disconnecting the power transmission can be either completely disconnecting the power supply path between interface board 1 and motherboard 2, or stopping at least a portion of the power supply output from interface board 1 to motherboard 2.

[0030] The first target condition can be characterized as follows: during the process of power transmission from interface board 1 to motherboard, there is an inconsistency between the operating state of interface board 1 and the operating state of motherboard 2, and the inconsistency reaches the level that requires power supply protection to be implemented.

[0031] The relationship between the first operating parameter and the second operating parameter may include at least one of the following: a difference relationship, a proportional relationship, a trend relationship, a time-series response relationship, or a comprehensive state relationship determined based on the two.

[0032] The first target condition can be determined based on the correspondence between the operating states of the interface board 1 side and the motherboard 2 side under normal operating conditions of the power supply circuit 11. This application embodiment does not limit the specific form of the first target condition.

[0033] The power supply control method in this embodiment judges the abnormality by simultaneously collecting the operating parameters on both sides of the interface board 1 and the motherboard 2. It can identify the fault in the early stage of the charging circuit abnormality. Compared with the related scheme that only relies on the temperature detection on the interface board 1 side, it can trigger protection without waiting for the temperature to accumulate and rise, avoiding damage to the motherboard 2 or power supply equipment caused by long-term power supply abnormality, and improving the response speed and reliability of circuit protection.

[0034] In some embodiments, the control method further includes: Step S300: Obtain the electrical parameters of the power supply circuit 11; In this embodiment, the electrical parameters on the power supply circuit 11 include, but are not limited to: the voltage to ground of the power supply circuit 11; the real-time current of the power supply circuit 11; or the voltage change rate or current change rate of the power supply circuit 11, etc.

[0035] The electrical parameters of the power supply circuit 11 can be obtained by collecting the detection parameters of the detection circuit connected to the power supply circuit 11.

[0036] For example, by setting a current detection circuit or a voltage detection circuit on the power supply circuit 11, the control unit can collect the detection signal output by the detection circuit to obtain the corresponding electrical parameters, without making further limitations here.

[0037] Step S301: If the electrical parameters meet the second target condition, turn on the second switch 4 to discharge the residual charge on the power supply circuit 11.

[0038] The second target condition includes at least one of the following: the current of the power supply circuit 11 is greater than a preset current threshold, and the voltage of the power supply circuit 11 is greater than a preset voltage threshold. When at least one of the above conditions is met, the power supply circuit 11 can be determined to be in an abnormal state, thereby turning on the second switch 4 to discharge residual charge. Alternatively, when both conditions are met, the power supply circuit 11 can be determined to be in an abnormal state.

[0039] In this embodiment, the second switch 4 can connect the power supply circuit 11 and ground. After the second switch 4 is turned on, the residual high voltage charge on the power supply circuit 11 can be discharged through the grounding path, avoiding the continuous accumulation of residual charge on the power supply circuit 11, further reducing the risk of circuit components on the interface board 1 being damaged by high voltage or leakage under abnormal operating conditions, and improving the safety of the charging circuit.

[0040] It should be noted that the operation of discharging residual charge can be performed after disconnecting the power transmission from interface board 1 to motherboard 2, or it can be performed simultaneously with the disconnection operation depending on the actual working conditions. This application does not limit this.

[0041] In some embodiments, the control method may further include: Step S302: In response to the discharge time lasting for a first preset time, reacquire the first operating parameters and the second operating parameters; if the first target condition is not met, generate a second control signal.

[0042] In step S302, after the second switch 4 is turned on, the residual charge on the power supply circuit 11 side begins to discharge through the discharge path. The discharge duration is timed from the moment the second switch 4 is turned on. When the timed duration reaches a first preset time, the first operating parameters on the power supply circuit 11 side and the second operating parameters on the interface board 1 side are re-acquired.

[0043] When the first and second operating parameters that are re-acquired still meet the first target condition, the power transmission from interface board 1 to motherboard 2 is kept disconnected.

[0044] When the first and second operating parameters that are re-acquired do not meet the first target condition, a control signal is generated to disconnect the second switch 4, thereby stopping the discharge of charge.

[0045] As for the first preset time in this embodiment, it can be set according to the actual situation to ensure that the residual charge can be fully discharged. This embodiment does not impose specific restrictions on this.

[0046] Step S303: In response to the second control signal, disconnect the second switch 4 and restore power transmission from the interface board 1 to the motherboard 2.

[0047] In step S303, when a detection result indicating that the first target condition is not met is obtained, it indicates that the power supply circuit has been restored to normal power supply state. At this time, a second control signal is generated to disconnect the second switch, stop the charge discharge, and restore the power transmission from the interface board to the motherboard, allowing the electronic device to resume the normal charging process.

[0048] By setting a first preset time delay for judgment, the system does not immediately restore power after discharging the charge, but waits for a fixed period of time (such as 30 seconds) before re-collecting parameters. This effectively avoids misjudgments caused by the temperature just dropping to the threshold edge or by residual charge not being completely discharged, thus improving the stability of power supply control.

[0049] In some embodiments, if the relationship between the first operating parameter and the second operating parameter satisfies a first target condition, the power transmission from the interface board 1 to the motherboard 2 is disconnected, including: Step S201: In response to the first operating parameter satisfying the first target condition in relation to the second operating parameter, a first control signal is generated.

[0050] Step S202: In response to the first control signal, turn off the first switch 3 on the power supply circuit 11 to disconnect the power transmission from the interface board 1 to the motherboard 2.

[0051] In this embodiment, the first switch 3 can be connected in series with the power supply circuit 11 between the interface board 1 and the motherboard 2. For example, the first end of the first switch 3 is connected to the power output terminal of the interface board 1, and the second end is connected to the power input terminal of the motherboard 2.

[0052] Under normal operating conditions, the first switch 3 is in the ON state, and the power output from the interface board 1 is transmitted to the motherboard 2 through the first switch 3 to power various load devices on the motherboard 2. The first switch 3 can switch to the OFF state in response to the first control signal, cutting off the aforementioned power transmission path.

[0053] This embodiment quickly shuts off the first switch 3 when an anomaly is detected, directly cutting off the power transmission line at the physical level. This can directly block the continuous input of high-power electrical energy from the source to protect the motherboard 2.

[0054] In some embodiments, after disconnecting the power transmission from the interface board 1 to the motherboard 2, the power supply control method further includes: Step S400: Obtain at least one set of the first operating parameters and the second operating parameters at a preset cycle.

[0055] In step S400, the preset period is a time interval that can characterize the time interval between two consecutive acquisitions of the first operating parameter and the second parameter.

[0056] The preset period can be a constant value, such as collecting parameters once every 1 second or 2 seconds. The specific time interval is not specifically limited in this application.

[0057] Alternatively, the preset period can be a non-fixed value. For example, the preset period can adaptively adjust the sampling interval. For instance, the sampling interval is shorter when an anomaly first occurs, and the sampling interval can be appropriately extended after the parameters tend to stabilize.

[0058] Step S401: If the number of acquisitions reaches the first preset threshold, and the relationship between the first operating parameter and the second operating parameter acquired each time does not meet the first target condition, then the first switch 3 is turned on to restore the power transmission from the interface board 1 to the motherboard 2.

[0059] The first target condition includes at least one of the following: the first operating parameter is greater than the second operating parameter; the first operating parameter is equal to the second operating parameter; the difference between the first operating parameter and the second operating parameter is within a preset difference range.

[0060] The first operating parameter and the second operating parameter are any one of temperature, voltage and current.

[0061] In step S401, at least one set of first operating parameters and the number of times the second operating parameters are collected can be acquired by means of a counter. For each sample, if the current sample meets the recovery admission condition (i.e. does not meet the first target condition), the counter is incremented by 1; if the current sample does not meet the recovery admission condition, the counter is immediately cleared and the accumulation counting starts again.

[0062] In step S401, before turning on the first switch 3, the current state of the second switch 4 on the interface board 1 can be detected: if the second switch 4 is detected to still be in the on state, a shutdown command is sent to the second switch 4 to force it to shut down; if the second switch 4 is already in the off state, the first switch 3 is turned on directly.

[0063] In this embodiment, the first operating parameter of the interface board 1 and the second operating parameter of the motherboard 2 can both be any one of the temperature parameter, voltage parameter, and current parameter.

[0064] Correspondingly, the first target condition can be one or more of the following: the first operating parameter is greater than the second operating parameter, the first operating parameter is equal to the second operating parameter, or the difference between the first operating parameter and the second operating parameter is within a preset difference range.

[0065] For example, let's take temperature as an example. Under normal charging conditions, the temperature of motherboard 2 is much higher than that of interface board 1 because high-power devices are generally located on motherboard 2. When the detected temperatures of interface board 1 and motherboard 2 do not meet the first target condition mentioned above, charging can be considered normal. If the first target condition is not met, charging can be considered abnormal. In this case, the power transmission from interface board 1 to motherboard 2 can be disconnected, thereby protecting the circuitry of motherboard 2.

[0066] By setting a preset period for multiple consecutive samplings and setting a first preset threshold for the number of samplings, the recovery action is only performed if multiple consecutive sets of data fail to meet the first target condition. This multiple confirmation mechanism can effectively filter out parameter anomalies caused by occasional noise in a single sampling, significantly reducing the risk of premature power restoration due to misjudgment.

[0067] In some embodiments, before disconnecting the power transmission from the interface board 1 to the motherboard 2, the power supply control method may further include: Step S500: In response to the first operating parameter satisfying the first target condition in relation to the second operating parameter, the current value on the power supply circuit 11 is reduced to a target current value; wherein the target current value is less than the current current value.

[0068] The target current value can be preset according to the charging power range of the electronic device. Reducing the current value can suppress abnormal power supply intensity before disconnecting power transmission, avoid the fault from continuing to expand during the abnormality detection process, and reserve buffer time for multiple abnormality checks.

[0069] Step S501: In response to the current value on the power supply circuit 11 being the target current value, at least one set of the first operating parameters and the second operating parameters are acquired at a preset period; if the number of acquisitions reaches a second preset threshold and the relationship between the first operating parameters and the second operating parameters still satisfies the first target condition, then the power transmission from the interface board 1 to the motherboard 2 is disconnected.

[0070] In step S501, if the relationship between the first operating parameter and the second operating parameter no longer satisfies the first target condition in any sampling, the sampling can be terminated immediately, and the current of the power supply circuit 11 can be restored from the target current value to the current current value.

[0071] In addition, if the first operating parameter exceeds the preset absolute safety threshold (e.g., the temperature of interface board 1 is ≥70°C) during the sampling period, or if the total duration from the start of current reduction to the current moment exceeds the preset hard timeout threshold, the power transmission will be disconnected and the charge will be discharged directly without waiting for the sampling count to reach the target.

[0072] In this embodiment, when the relative relationship between the first operating parameter and the second operating parameter meets the preset first target condition, the overall power supply is not directly cut off. Instead, the power supply power is reduced by lowering the power supply current. This allows for verification of whether the abnormal state continues while maintaining the power supply path, thus avoiding device damage caused by continuous high current supply under abnormal conditions.

[0073] In some embodiments, reducing the current of the power supply circuit 11 to a target current value in response to the relationship between the first operating parameter and the second operating parameter satisfying the first target condition includes: Step S502: In response to the first operating parameter satisfying the first target condition in relation to the second operating parameter, a current control signal is generated.

[0074] Step S503: In response to the current control signal, adjust the charging current of the power supply circuit 11 from the current current value to the target current value; wherein, the current control signal is used to control the charging management chip 21 of the motherboard 2 to send a protocol message to the external power supply to adjust the current current value.

[0075] In this embodiment, adjusting the charging current of the power supply circuit 11 from the current current value to the target current value may include: Step 504: The charging management chip 21 parses the current control signal, obtains the target current value, and then constructs a protocol data packet containing the target current, which is sent to the external power supply through the communication pin of the interface board 1.

[0076] Step 505: After sending the protocol data packet, the charging management chip 21 starts a timer; if no external power supply confirmation feedback is received within a preset time, the protocol negotiation is determined to have failed, the protocol dependency on the external power supply is directly turned off, the target current value is written to the internal input current limit register of the charging management chip 21, and the current is forcibly reduced to the target value through the internal power transistor of the chip.

[0077] Step 506: After receiving an external power supply confirmation signal or performing internal current limiting, obtain the real-time actual current value of the power supply line at a preset period; if the real-time actual current value is stable within the allowable error range of the target current value within the preset verification time, the current reduction is determined to be successful; if the actual current value does not drop to the target range, the current reduction is determined to be unsuccessful, and the control unit is notified to perform the protection action of cutting off the power supply.

[0078] This embodiment achieves current reduction by having the charging management chip 21 actively send protocol messages to the external power supply, rather than simply relying on current limiting on the motherboard 2. By obtaining confirmation and cooperation from the external power supply through protocol communication, the current reduction process can be smooth and controllable.

[0079] In some embodiments, it also includes: Step S600: Determine the anomaly level based on the cause of the anomaly of the first operating parameter; wherein the cause of the anomaly includes at least one of the following: the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, or the first operating parameter exceeds a preset threshold.

[0080] In step S600, if the cause of the anomaly only includes situations where the relationship between the first operating parameter and the second operating parameter satisfies the first target condition (for example, only satisfying that the temperature of interface board 1 is equal to or equal to the temperature of motherboard 2, while the temperature of motherboard 2 does not exceed a preset threshold), the anomaly level can be determined as the first level. The first level indicates a significant increase in interface contact resistance or the presence of foreign matter causing localized high-current heating.

[0081] In response to an anomaly level of Level 1, the current of the power supply circuit 11 can be gradually reduced to the target current value. For example, if the current current is 5A and the target current is 3A, the current can be reduced to 4A first, and then to 3A, instead of being reduced to 3A all at once.

[0082] During the process of reducing the power supply current, the first operating parameters and the second operating parameters can be collected multiple times. If the first target condition is still met, the power transmission from the interface board 1 to the motherboard 2 can be directly disconnected.

[0083] In step S600, when the cause of the anomaly simultaneously includes the relationship between the first operating parameter and the second operating parameter satisfying the first target condition and the first operating parameter exceeding a preset threshold, the anomaly level can be determined as the second level. The second level represents an emergency situation, indicating that the interface temperature has exceeded the safe operating limit of the electronic components, posing an extremely high risk of melting the outer casing or igniting the insulation layer.

[0084] In response to an anomaly level of Level 2, the system can directly disconnect the power transmission from the interface board 1 to the motherboard 2 without reducing the current.

[0085] Step S601: Generate corresponding prompt information based on the abnormality level; wherein, different prompt levels correspond to different prompt content and / or different prompt methods.

[0086] Step S602: Output the prompt information to indicate a charging malfunction to the user.

[0087] In this step, there are several ways to output prompts, such as displaying an error message in a pop-up window on the screen, flashing an indicator light at a preset frequency, or emitting a preset sound through a speaker. These different output methods can be used individually or in combination to adapt to the reminder needs of different usage scenarios.

[0088] Therefore, the control method in this embodiment determines the anomaly level based on the cause of the anomaly and takes gradual current reduction or direct power cut-off measures for different anomaly levels, enabling the anomaly handling method to match the risk level. Specifically, gradually reducing current and repeatedly collecting operating parameters can reduce the impact of sudden current changes on the circuit and lower the possibility of accidental power cut-offs due to instantaneous parameter fluctuations. Timely disconnection of power transmission when the anomaly persists or the risk is high can suppress abnormal heating and reduce the risk of device damage, insulation burn-out, or fire. Furthermore, by outputting prompts corresponding to the anomaly level, users can promptly understand the severity of the anomaly and the possible current reduction or power cut-off operations that the equipment may perform, forming reasonable psychological expectations and reducing confusion caused by sudden changes in power supply status, thereby improving the safety, stability, and user experience of the charging process.

[0089] like Figure 3 and Figure 4 As shown, the power supply control method of this embodiment will now be fully described using a specific example: Assume the power supply control system includes a motherboard 2 (MB) and an interface board 1 (USB Board). The interface board 1 (USB Board) is used to connect to an external power source via an adapter 5 and transmit power to the motherboard 2 via a power supply circuit 11 (VBUS). The motherboard 2 (MB) has a charging management chip 21 (changing IC), a system IC connected to the charging management chip 21, and a battery.

[0090] Wherein, the interface board 1 (i.e., USB Board) is provided with a first detection element 10 (marked as T2 / NTC) for detecting the temperature of the interface board 1, and a Protection MOSFET (bleeding MOSFET) controlled by the MOS_EN signal.

[0091] The main board 2 (i.e., MB) is provided with an OVP Switch (overvoltage protection switch) and a second detection element 20 (marked as T1 / NTC).

[0092] The power supply control method includes: Step S0: After the system is powered on, set the charging enable flag to 1 (i.e., charging ON=1), initialize the polling counter n=1, and simultaneously start USB IN Protocol handshake to establish a normal charging link.

[0093] Step S1: Read the NTC temperature T1 of the main board 2 (i.e., MB NTC) and the NTC temperature T2 of the USB board (i.e., USB NTC) in a polling manner, and determine whether T1>T2 is satisfied.

[0094] If T1>T2, it is determined to be normal, and it is further determined whether T1 is less than 70°C. If T1 is less than 70°C, normal charging is performed. If T1 is not less than 70°C, the OVP Switch (i.e., overvoltage protection switch) is directly turned off, which corresponds to turnoff charging in the figure.

[0095] If T1<T2, reduce the current charging current, and proceed to step S2.

[0096] Step S2: Reduce the current charging current (i.e., reduce current delay 1s), increment the counter n by 1 (for example, change from 1 to 2), and after a delay of 1 second, read the temperature again. If T1>T2, perform recovery (return to normal polling). If the temperature does not drop (still abnormal), enter the judgment branch of n>3.

[0097] If n ≤ 3 (for example, the current is the 2nd or 3rd attempt), return to the current reduction step to continue attempting soft protection.

[0098] If n>3 (this is the 4th time or more): enter hard protection action, turn off OVP switch and turn on anti-burn protection MOSFET (i.e., metal oxide semiconductor field effect transistor), corresponding to turn on protect MOSFET (i.e. conduction protection MOSFET) in the figure, force VBUS current to be discharged to ground, enter step S3, and remind the user (i.e. pop-up notification).

[0099] Step S3: After triggering hardware protection, delay for 30 seconds (i.e., delay 30s in the diagram) to ensure the hardware is adequately cooled. After the 30-second delay, read T2 again.

[0100] If the test result satisfies T2<60℃, then the USB input protocol handshake is initiated.

[0101] If the test result does not meet the requirement of T2<60℃, continue to perform a 30-second lock-in wait, and then test again.

[0102] like Figure 4 As shown in the figure, this application provides an electronic device, which includes an interface board 1, a motherboard 2, and a switch assembly. This electronic device can be a mobile phone, tablet computer, laptop computer, wearable smart device, or other power supply device with charging function, and is not specifically limited thereto.

[0103] The interface board 1 can be a USB interface board 1 or a Type-C interface board 1, or other circuit board capable of connecting to an external power source. The interface board 1 may have a charging port and a first detection element 10. The first detection element 10 is used to detect first operating parameters of the interface board 1, and the charging port is used to connect to a compatible external power source.

[0104] A power supply circuit 11 is provided between the interface board 1 and the motherboard 2. After the charging interface is connected to an external power source, the external power source can be transmitted to the motherboard 2 through the interface board 1 and the power supply circuit 11 in sequence to power the motherboard 2 or charge the battery connected to the motherboard 2.

[0105] The motherboard 2 can be the core control circuit board of the electronic device, and it can be equipped with a control unit and a second detection element 20. The second detection element 20 is used to acquire the second operating parameters of the motherboard 2.

[0106] The switching assembly includes at least a first switch 3. The first switch 3 is connected in series in the power supply circuit 11 between the motherboard 2 and the interface board 1. When the first switch 3 is in the on state, the current output by the external power supply can be transmitted to the motherboard 2 through the interface board 1 and the first switch 3. When the first switch 3 is turned off, the power transmission path is cut off, and the power supply is terminated. The control unit is connected to the first detection element 10, the second detection element 20, and the first switch 3. The control unit can respond to a first target condition being met by the relationship between the first operating parameter and the second operating parameter, by controlling the first switch 3 to close, thereby disconnecting the power transmission from the interface board 1 to the main board 2, thus achieving timely protection against power supply anomalies.

[0107] Compared to traditional single-position parameter detection solutions, this electronic device judges anomalies by the relative relationship of parameters at two positions. It can trigger protective actions at the initial stage of an anomaly, avoiding the need for protection to be triggered only after the temperature has accumulated and risen. This effectively protects the motherboard 2 from damage caused by continuous abnormal power supply and improves the safety of use in high-power charging scenarios.

[0108] In this embodiment, the first target condition may include at least one of the following: the first operating parameter is greater than the second operating parameter, the first operating parameter is equal to the second operating parameter, and the difference between the first operating parameter and the second operating parameter is within a preset difference range.

[0109] The first operating parameter and the second operating parameter can be any one of temperature, voltage, and current. Correspondingly, the detection element can be selected from a temperature sensor, a voltage detection chip, or a current sampling resistor according to the parameter type; this embodiment does not impose specific restrictions on this.

[0110] For example, this application embodiment only uses temperature as the two operating parameters and an NTC resistor as the detection element for illustration. The first target condition can be that the temperature of interface board 1 is higher than or equal to the temperature of motherboard 2. Alternatively, the temperature difference between interface board 1 and motherboard 2 is within a preset range, such as 2°C or 3°C.

[0111] High-power components are typically located on motherboard 2, whose temperature is significantly higher than that of interface board 1. If the detected temperatures of interface board 1 and motherboard 2 do not meet the aforementioned first target condition, charging can be considered normal. Conversely, if the first target condition is not met, charging can be considered abnormal. In this case, the first switch 3 can be closed to disconnect the power transmission from interface board 1 to motherboard 2, thereby protecting the circuitry of motherboard 2.

[0112] In this embodiment, the first detection element 10 can be located near the charging interface on the interface board 1. Since the charging interface is the input terminal of current, the temperature rise at the interface location is most obvious when a large current flows through it. By placing the first detection element 10 near the charging interface, abnormal temperature rise can be captured immediately, improving the timeliness of abnormal detection.

[0113] Correspondingly, there can be multiple first detection elements 10. After obtaining the first operating parameters at multiple locations, anomaly determination can be made by taking the average or maximum value, thereby further improving the detection accuracy. Considering that the motherboard 2 usually generates a certain amount of heat, the second detection element 20 can be located at the cold end of the motherboard 2, such as the edge of the motherboard 2. Moreover, there can be multiple second detection elements 20, which can be arranged at the cold end of the motherboard 2.

[0114] In some embodiments, the first switch 3 may be a controllable switching element, the type of which includes, but is not limited to, an overvoltage protection switch (OVP switch), a power MOSFET, or a load switch.

[0115] For example, as shown in the figure, the first switch 3 can be an OVP switch, wherein the OVP switch is connected in series on the power supply circuit 11, and the control terminal of the OVP switch is connected to the control unit. The control unit can directly switch the on / off state of the OVP switch by outputting a first control signal of the corresponding level, without the need for an additional drive circuit, which is suitable for the compact internal layout of electronic devices and simplifies circuit design.

[0116] like Figure 4 As shown, in some embodiments, the switching assembly of the electronic device may further include a second switch 4. One end of the second switch 4 is connected to the power supply circuit 11, and the other end is grounded. The second switch 4 is normally in the off state.

[0117] The control unit is also connected to the control terminal of the second switch 4, and in response to the acquisition that the electrical parameters of the power supply circuit 11 meet the second target condition, the second switch 4 is turned on, thereby discharging the residual charge on the power supply circuit 11.

[0118] In this embodiment, the second target condition includes at least one of the following: the current of the power supply circuit 11 is greater than a preset current threshold, and the voltage of the power supply circuit 11 is greater than a preset voltage threshold.

[0119] The second switch 4 can be a controllable semiconductor switching device, including but not limited to: metal-oxide-semiconductor field-effect transistors (MOSFETs) and bipolar junction transistors (BJTs) and other types of controllable semiconductor switching devices. This embodiment does not limit the specific type of the second switch 4, as long as the second switch 4 can be turned on and off under the control of the control unit to complete the discharge of residual charge.

[0120] In some embodiments, the control unit on the motherboard 2 may include a charging management chip 21 and a main control chip (i.e., the System IC in the figure). The first detection element 10 and the second detection element 20 are respectively connected to the charging management chip 21, and the main control chip is connected to the charging management chip 21.

[0121] The charging management chip 21 can first perform preliminary processing on the parameters collected by the first detection element 10 and the second detection element 20, and then transmit them to the main control chip for anomaly judgment. The main control chip generates a corresponding control signal and outputs it to the switching component to realize the corresponding control action.

[0122] The charging management chip 21 is also connected to the first switch 3 and the second switch 4 respectively, and is used to receive the judgment result output by the main control chip, generate the corresponding control signal according to the judgment result, and control the first switch 3 and the second switch 4 to perform the corresponding conduction or cut-off action.

[0123] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0124] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

Claims

1. A power supply control method, comprising: The first operating parameters of the interface board and the second operating parameters of the motherboard are obtained; wherein the motherboard is electrically connected to the interface board, and the interface board is used to transmit power to the motherboard through a power supply circuit in response to connecting to an external power source. If the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, the power transmission from the interface board to the motherboard is disconnected.

2. The power supply control method as described in claim 1, further comprising: Obtain the electrical parameters of the power supply circuit; If the electrical parameters meet the second target condition, the second switch is turned on to discharge the residual charge on the power supply circuit; The second target condition includes at least one of the following: the current of the power supply circuit is greater than a preset current threshold, and the voltage of the power supply circuit is greater than a preset voltage threshold.

3. The power supply control method as described in claim 2, further comprising: In response to the discharge of charge lasting for a first preset time, the first operating parameter and the second operating parameter are reacquired. If the second target condition is not met, a second control signal is generated; In response to the second control signal, the second switch is disconnected, and power transmission from the interface board to the motherboard is restored.

4. The power supply control method as described in claim 1, wherein if the relationship between the first operating parameter and the second operating parameter satisfies a first target condition, the power transmission from the interface board to the motherboard is disconnected: This includes: A first control signal is generated in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter; In response to the first control signal, the first switch on the power supply circuit is turned off to disconnect the power transmission from the interface board to the motherboard.

5. The power supply control method as described in claim 4, after disconnecting the power transmission from the interface board to the motherboard, the power supply control method further includes: At least one set of the first operating parameters and the second operating parameters is acquired at a preset period; If the number of acquisitions reaches the first preset threshold, and the relationship between the first operating parameter and the second operating parameter acquired each time does not meet the first target condition, then the first switch is turned on to restore the power transmission from the interface board to the motherboard. The first target condition includes at least one of the following: The first operating parameter is greater than the second operating parameter; The first operating parameter is equal to the second operating parameter; The difference between the first operating parameter and the second operating parameter is within a preset difference range; Wherein, the first operating parameter and the second operating parameter are any one of temperature, voltage and current.

6. The power supply control method as described in claim 1, further comprising, before disconnecting the power transmission from the interface board to the motherboard: In response to the first operating parameter satisfying the first target condition in relation to the second operating parameter, the current value on the power supply circuit is reduced to a target current value; wherein the target current value is less than the current current value; In response to the current value on the power supply circuit being the target current value, at least one set of the first operating parameters and the second operating parameters are acquired at a preset period. If the number of acquisitions reaches the second preset threshold, and the relationship between the first operating parameter and the second operating parameter still satisfies the first target condition, then the power transmission from the interface board to the motherboard is disconnected.

7. The power supply control method as described in claim 6, wherein the step of reducing the current of the power supply circuit to a target current value in response to the relationship between the first operating parameter and the second operating parameter satisfying the first target condition includes: A current control signal is generated in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter; In response to the current control signal, the charging current of the power supply circuit is adjusted from the current current value to the target current value; wherein, the current control signal is used to control the charging management chip of the motherboard to send a protocol message to the external power supply to adjust the current current value.

8. The power supply control method according to claim 1 further includes: Based on the cause of the anomaly in the first operating parameter, an anomaly level is determined; wherein, the cause of the anomaly includes at least one of the following: the relationship between the first operating parameter and the second operating parameter satisfies the first target condition, or the first operating parameter exceeds a preset threshold; Based on the anomaly level, a corresponding level of prompt information is generated; wherein, different prompt levels correspond to different prompt content and / or different prompt methods; The aforementioned prompt message is output to indicate a charging malfunction to the user.

9. An electronic device, comprising: An interface board is provided with a charging interface and a first detection element. The first detection element is used to acquire the first operating parameters of the interface board, and the charging interface is used to connect to an external power source. The motherboard is equipped with a control unit and a second detection element. The second detection element is used to acquire the second operating parameters of the motherboard. The motherboard and the interface board are electrically connected through a power supply circuit. In response to the charging interface being connected to the external power supply, the external power supply can transmit power to the motherboard through the power supply circuit. A switching assembly, including at least a first switch, wherein the first switch is connected in series in a power supply circuit between the motherboard and the interface board; The control unit is connected to the first detection element, the second detection element and the first switch respectively, and in response to the first target condition being met by the relationship between the first operating parameter and the second operating parameter, controls the first switch to close, so as to disconnect the power transmission from the interface board to the motherboard; The first objective condition includes at least one of the following: The first operating parameter is greater than the second operating parameter; The first operating parameter is equal to the second operating parameter; The difference between the first operating parameter and the second operating parameter is within a preset difference range; Wherein, the first operating parameter and the second operating parameter are any one of temperature, voltage and current.

10. The electronic device of claim 9, wherein the switching assembly further comprises a second switch, one end of the second switch being connected to the power supply circuit and the other end being grounded; The control unit is also connected to the control terminal of the second switch, and in response to obtaining that the electrical parameters of the power supply circuit meet the second target condition, turns on the second switch to discharge the residual charge on the power supply circuit; in, The second target condition includes at least one of the following: the current of the power supply circuit is greater than a preset current threshold, and the voltage of the power supply circuit is greater than a preset voltage threshold.