Control method and power supply device

By establishing real-time channels and control modules in the power supply device, using artificial neural network model to determine the maximum discharge capacity of the battery, and adjusting the power consumption of the power consumption module, the problem of delay in judging the maximum discharge capacity in the prior art is solved, and battery stability and reliability of electronic equipment are improved.

CN119944899APending Publication Date: 2025-05-06LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510125390.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The prior art determines whether the maximum discharge capacity of the battery meets the power consumption of the electronic device system, the delay is large, which affects the battery stability and may cause abnormal shutdown of the electronic device.

Method used

The channel with the control module is established through the first pin of the power supply device, and the state parameters and discharge parameters are obtained in real time. The maximum discharge capacity is determined using the trained artificial neural network model, and the power consumption of the power consumption module is adjusted in time to ensure that the actual power consumption does not exceed the maximum discharge capacity.

Benefits of technology

It reduces the delay in determining whether the maximum discharge capacity meets the current power consumption, improves battery stability, and avoids the risk of abnormal shutdown of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119944899A_ABST
    Figure CN119944899A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method and a power supply device, the control method and the power supply device are applied to electronic equipment, the electronic equipment comprises the power supply device, a control module and a power consumption module, and the method comprises the steps that the power supply device obtains current state parameters and discharge parameters of the power supply device, transmitting a first signal to the control module through a channel established with the control module through a first pin under the condition of determining that the maximum discharge capacity does not meet the current power consumption of the power consumption module based on the state parameter and the discharge parameter; the first signal is used for indicating that the maximum discharge capacity does not meet the current power consumption; the control module adjusts the power consumption of the power consumption module based on the received first signal, so that the actual power consumption of the power consumption module does not exceed the maximum discharge capability of the power supply device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a control method and a power supply device. Background Art

[0002] The discharge capacity of the battery of an electronic device is different at different temperatures, such as Figure 1 As shown, with the use, the discharge capacity (discharge voltage) will become weaker and weaker, affecting the stability and performance of the system. In order to enable electronic equipment to operate stably at different temperatures, some power consumption settings and protection measures will be designed according to the discharge capacity of the battery to prevent the electronic equipment from shutting down abnormally.

[0003] In the related art, the battery and the electronic device system are usually tested in advance, and the maximum discharge capacity of the battery under different state parameters (such as its own temperature, remaining power, battery impedance, etc.) and the power consumption of the electronic device system are recorded, and the power consumption threshold of the electronic device system is set, and a mapping table of the battery's working parameters, maximum discharge capacity and electronic device system power consumption threshold is established, and the mapping table is written into the embedded controller (EC) of the electronic device. During the use of the electronic device, the EC compares the real-time collected working parameters of the battery and the actual power consumption of the electronic device system with the information in the mapping table, and adjusts the power consumption of the system. Since it takes a certain amount of time for the EC to access the battery's working parameters, system power consumption and other data, it is impossible to make a timely judgment on whether the maximum discharge capacity of the battery meets the system power consumption, which affects the stability of the battery and may cause the electronic device to shut down abnormally. Summary of the invention

[0004] The technical solution of this application is implemented as follows:

[0005] The present application provides a control method, which is applied to an electronic device, wherein the electronic device includes a power supply device, a control module, and a power consumption module. The method includes:

[0006] The power supply device obtains its own current state parameters and discharge parameters, and when it is determined based on the state parameters and the discharge parameters that its own maximum discharge capacity does not meet the current power consumption of the power consumption module, transmits a first signal to the control module through a channel established with the control module via its first pin; the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption;

[0007] The control module adjusts the power consumption of the power consumption module based on the received first signal so that the actual power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device.

[0008] An embodiment of the present application provides a power supply device, including a processing unit, wherein:

[0009] The processing unit obtains current state parameters and discharge parameters of the power supply device, calculates the state parameters through a trained artificial neural network model running on the processing unit to obtain a maximum discharge capacity of the power supply device, and determines the current power consumption of the power consumption module of the electronic device based on the discharge parameters;

[0010] When the processing unit determines that the maximum discharge capacity does not meet the current power consumption, the processing unit transmits a first signal to the control module through a channel established with the control module of the electronic device through its own first pin, so that the control module adjusts the power consumption of the power consumption module based on the first signal; the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A schematic diagram of the discharge capacity of a battery at different temperatures provided in the related art;

[0012] Figure 2 A schematic diagram of a method flow for system power consumption provided in the related art;

[0013] Figure 3 A flow chart of a control method provided in an embodiment of the present application;

[0014] Figure 4 A schematic diagram of a flow chart of a method for adjusting power consumption of a power consumption module provided in an embodiment of the present application;

[0015] Figure 5 A schematic diagram of the pin structure of a battery provided in an embodiment of the present application;

[0016] Figure 6 A schematic flow chart of a method for adjusting system power consumption based on a warning signal provided in an embodiment of the present application;

[0017] Figure 7 A schematic flow chart of a method for determining the maximum discharge power of a battery provided in an embodiment of the present application;

[0018] Figure 8 A schematic diagram of the composition structure of a power supply device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0022] In the following description, reference is made to “some embodiments\other embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments\other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0023] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0024] In related technologies, such as Figure 2 As shown, in the process of adjusting the system power consumption of the electronic device, first, S201, the battery supplier or engineer obtains the working parameters of the battery and determines the maximum discharge capacity of the battery during the battery testing process; then, S202, the power engineer sets the system power consumption threshold and system working parameters according to the maximum discharge capacity of the battery, and establishes a mapping table between the battery working parameters, the maximum discharge capacity, the system power consumption threshold, and the system working parameters; S203, the software engineer writes the mapping table into the EC; then, S204, the EC detects the real-time working parameters of the battery and the discharge current of the charger module to determine the current maximum discharge capacity of the battery and the current power consumption of the system; S205, the EC adjusts the working parameters of the power-consuming modules such as the processor (such as reducing the working frequency of the processor) when determining the current maximum discharge capacity and system power consumption. In this method, the pre-established mapping table cannot cover all the working conditions of the battery. Only judging whether the maximum discharge capacity meets the current power consumption of the system and adjusting the system power consumption based on the mapping table has low accuracy.

[0025] Based on the problems existing in the related art, the embodiment of the present application provides a control method, which can be applied to an electronic device, the electronic device includes a power supply device, a control module and a power consumption module. Figure 3FIG. 1 is a flow chart of a control method provided in an embodiment of the present application, and the method comprises the following steps:

[0026] S301, the power supply device obtains its current state parameters and discharge parameters, and when it is determined based on the state parameters and discharge parameters that its maximum discharge capacity does not meet the current power consumption of the power consumption module, transmits a first signal to the control module through the channel established with the control module through its first pin.

[0027] It should be noted that the current state parameters of the power supply device may include the current temperature of the power supply device, the power percentage (Relative State of Charge, RSOC), battery impedance, etc. The discharge parameters may include the discharge current and power stored in the register of the power supply device, and may also include the detected power consumption of the charging module charger, etc.

[0028] In some embodiments, the first signal is transmitted to the control module through a channel established between the first pin of the power supply device and the control module. The channel may be a direct connection channel established between the first pin and the control module.

[0029] In some embodiments, the power supply device may determine the current maximum discharge capacity of the power supply device according to its current state parameters, and the maximum discharge capacity may include maximum discharge power, maximum discharge current, maximum discharge voltage, etc. The power supply device may also determine the current power consumption of the power consumption module according to the discharge parameters, for example, the current power consumption of the power consumption module may be calculated according to the discharge current stored in the register of the power supply device, or the detected power consumption of the charger may be determined as the current power consumption of the power consumption module.

[0030] In some embodiments, the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption, and the first signal can be a low-level signal or a high-level signal. The maximum discharge capacity does not meet the current power consumption of the power-consuming module can be that the current maximum discharge power of the power supply device is less than the current power consumption of the power-consuming module. The first pin of the power supply device can be any one of the enable signal pin, the clock signal pin, and the undefined pin of the power supply device. When the power supply device determines that its current maximum discharge power is less than the current power consumption of the power-consuming module, it can transmit a low-level signal or a high-level signal to the control module through the first pin to prompt the control module that the current maximum discharge capacity of the power supply device does not meet the current power consumption of the power-consuming module.

[0031] S302: The control module adjusts the power consumption of the power consumption module based on the received first signal so that the actual power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device.

[0032] In some embodiments, the power consumption module may include a display screen, a communication module, a processor, a sensor, etc. of a battery device, and the control module may adjust the working parameters or working status of each power consumption module, such as reducing the brightness and contrast of the display screen, reducing the bandwidth of the communication module corresponding to the data transmission and the frequency of data transmission and reception, reducing the operating frequency of the processor, reducing the load of the processor, modifying the working mode of the sensor, reducing the sampling frequency of the sensor, etc.

[0033] In some embodiments, the actual power consumption of the power consumption module may be the total power consumption of the power consumption modules of the electronic device. After determining that the first signal has been received, the control module may adjust the operating parameters or state parameters of each power consumption module so that the adjusted total power consumption of the power consumption module is less than or equal to the maximum discharge power of the power supply device.

[0034] In an embodiment of the present application, the power supply device obtains its own current state parameters and discharge parameters, and when it is determined based on the state parameters and discharge parameters that its own maximum discharge capacity does not meet the current power consumption of the power consumption module, the first signal is transmitted to the control module through the channel established with the control module through its first pin; the control module adjusts the power consumption of the power consumption module based on the received first signal, so that the actual power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device. In this way, the power supply device obtains its own current state parameters and discharge parameters in real time, avoiding the access of the operating parameters and discharge parameters of the power supply device through the controller, reducing the time delay of determining the maximum discharge capacity of the power supply device and the current power consumption of the power consumption module, thereby improving the speed of judging whether the maximum discharge capacity meets the current power consumption; and the channel established with the control module through the first pin of the power supply device enables the controller to adjust the power consumption of the power consumption module in time after receiving the first signal, thereby ensuring the stability of the battery and avoiding the occurrence of abnormal shutdown events of the electronic device.

[0035] In some embodiments of the present application, the maximum discharge capacity includes the maximum discharge power of the power supply device. Based on this, the implementation of determining that its own maximum discharge capacity does not meet the current power consumption of the power consumption module based on the state parameters and the discharge parameters may include: the power supply device inputs the state parameters into its own trained artificial neural network model to obtain the maximum discharge power, and determines the current power consumption of the power consumption module based on the discharge parameters; if the maximum discharge power is less than the current power consumption, it is determined that the maximum discharge capacity of the power supply device does not meet the current power consumption of the power consumption module.

[0036] It should be noted that the trained artificial neural network model can be a pre-trained deep learning network model. During the training of the artificial neural network model, the pre-collected reference working parameters of the power supply device and the corresponding real maximum discharge power data can be input into the initial artificial neural network model, so that the initial artificial neural network model can learn the correlation between the working parameters and the maximum discharge power of the power supply device. After the training is completed, the artificial neural network model can analyze and process the real-time working parameters of the input power supply device to determine the current maximum discharge power of the power supply device.

[0037] In some embodiments, the power supply device can also determine the current power consumption of the power consumption module based on the discharge parameters. For example, when the discharge parameters include the discharge current and the discharge voltage, the current power consumption of the power consumption module can be determined based on the discharge current and the discharge voltage, or when the discharge parameters include the detected power consumption of the charger, the detected power consumption is determined as the current power consumption of the power consumption module.

[0038] In some embodiments, the power supply device can compare its current maximum discharge power and the power consumption of the power consumption module. When it is determined that the maximum discharge power is less than the current power consumption, it can be determined that the maximum discharge capacity of the power supply device does not meet the current power consumption of the power consumption module.

[0039] It can be understood that by running a trained artificial neural network model on the power supply device to analyze and process the real-time status parameters of the power supply device, a more accurate maximum discharge power can be obtained, and the time for sending status parameters to the control module is saved, so that the power supply device can make accurate and timely judgments on whether its current maximum discharge capacity meets the current power consumption of the power consumption module.

[0040] In some embodiments of the present application, the power supply device may determine the maximum discharge power of the power supply device according to its current state parameters and a preset discharge power.

[0041] It should be noted that the preset discharge power includes the maximum discharge power corresponding to different power levels of the power supply device. For example, when the power supply device is a battery, the preset discharge power may be the maximum discharge power corresponding to the battery cell when the RSOC is 10%, 20%, 30%, 40%, ..., 100%, respectively. The preset discharge power may be obtained after testing the RSOC and the corresponding maximum discharge power of the battery before leaving the factory.

[0042] In some embodiments, the power supply device can determine the current first reference maximum discharge power based on its own state parameters. For example, the power supply device can input its current state parameters into a trained neural network to obtain the first reference maximum discharge power; or, obtain the first reference maximum discharge power through other pre-established relationship models between state parameters and maximum discharge power.

[0043] In some embodiments, the current state parameters of the power supply device may include its own temperature and current RSOC. The power supply device may compare its own temperature with a preset temperature range. If it is determined that its own temperature is within the preset temperature range, the first reference maximum discharge power may be compared with the maximum discharge power corresponding to the current RSOC in the preset discharge power. If the first reference maximum discharge power is less than or equal to the maximum discharge power corresponding to the current RSOC in the preset discharge power, the maximum discharge power corresponding to the RSOC of a lower level corresponding to the current RSOC in the preset discharge power may be determined as the current maximum discharge power; if the first reference maximum discharge power is greater than the maximum discharge power corresponding to the current RSOC in the preset discharge power, the first reference maximum discharge power may be determined as the current maximum discharge power. The preset temperature range may be a predetermined temperature range to ensure that the battery can be in normal operation.

[0044] Exemplarily, if the current RSOC of the power supply device is 60%, when the first reference maximum discharge power is less than or equal to the maximum discharge power corresponding to RSOC of 60% in the preset discharge power, the maximum discharge power corresponding to RSOC of 50% in the preset discharge power can be determined as the current maximum discharge power of the power supply device; when the first reference maximum discharge power is greater than the maximum discharge power corresponding to RSOC of 60% in the preset discharge power, the first reference maximum discharge power can be determined as the current maximum discharge power of the power supply device.

[0045] In some embodiments, when the power supply device determines that its temperature is outside the preset temperature range, the maximum discharge power corresponding to the minimum RSOC in the preset discharge power can be determined as the current maximum discharge power of the power supply device. For example, if the minimum RSOC in the preset discharge power is 10%, the maximum discharge power corresponding to the RSOC of 10% can be determined as the current maximum discharge power of the power supply device.

[0046] It can be understood that by determining the maximum discharge power through the current state parameters of the power supply device itself and the preset discharge power, a comprehensive decision on the maximum discharge power based on the actual working state of the power supply device and the theoretical test power is achieved, which can avoid the problem of inaccurate maximum discharge power determined after the power supply device is used for a long time.

[0047] In some embodiments of the present application, the power supply device can determine its average discharge power in a preset time period; the power supply device can also determine the maximum discharge power of the power supply device based on the average discharge power; the power supply device can transmit a first signal to the control module through a channel established by its first pin when it is determined that the maximum discharge power does not meet the current power consumption of the power consumption module.

[0048] In some embodiments, the preset time period can be any pre-set time length, for example, it can be 20 seconds (s), 30s, 90s, etc. The power supply device can monitor the actual discharge power within its own preset time period, and determine the average discharge power within the preset time period, and determine the average discharge power within the preset time period as the maximum discharge power.

[0049] In other embodiments, after the power supply device obtains the maximum discharge power based on the current state parameters and the trained artificial neural network model, or determines the maximum discharge power based on the current state parameters and the preset discharge power, the maximum discharge power can be updated based on the average discharge power. For example, when it is determined that the average discharge power is greater than the maximum discharge power, the maximum discharge power is determined as the final maximum discharge power; when it is determined that the average discharge power is less than or equal to the maximum discharge power, the average discharge power is determined as the final maximum discharge power.

[0050] In some embodiments, after the power supply device determines its own maximum discharge power based on the average discharge power, it can further determine whether the maximum discharge power meets the current power consumption of the power consumption module. When it is determined that the maximum discharge power does not meet the current power consumption, such as when the maximum discharge power is less than the current power consumption, the first signal can be transmitted to the control module through the channel established by its first pin, so that the control module adjusts the current power consumption of the power consumption module.

[0051] It can be understood that by determining the maximum discharge power of the power supply device through the average discharge power of the power supply device within a preset time period, the ultimately determined maximum discharge power can be consistent with the operating conditions of the power supply device in actual work, thereby ensuring the accuracy of the determined maximum discharge power.

[0052] In some embodiments of the present application, the power consumption module includes a first processor and a second processor of the electronic device. Based on this, the control module can determine the type of the first processor and the operating parameters of the first processor and the second processor during the process of adjusting the power consumption of the power consumption module; and adjust the power consumption of the first processor and the second processor according to the type and operating parameters of the first processor.

[0053] It should be noted that the first processor may be a graphics processing unit (GPU), the second processor may be a central processing unit (CPU), the type of the first processor may be a packaging type of the GPU, which may include an independent packaging and an integrated packaging. The operating parameters of the first processor and the second processor may be the operating frequency and operating voltage of the CPU and GPU.

[0054] In some embodiments, after receiving the first signal, the control module can obtain parameter information related to the first processor, thereby obtaining the type of the first processor from the parameter information. The control module can also collect and obtain the working parameters of the first processor and the second processor in real time, determine the current occupancy rate of each processor based on the parameters of the two processors, and adjust the power consumption of the first processor and the power consumption of the second processor based on the type of the first processor, as well as the working parameters and occupancy rates of the two processors.

[0055] It is understandable that by adjusting the power consumption of the two processors according to the type of the first processor and the operating parameters of the first processor and the second processor, the power consumption of the two processors can be adjusted more finely, so that the first processor and the second processor can operate smoothly under the maximum discharge capacity.

[0056] In some embodiments of the present application, in the process of adjusting the power consumption of the first processor and the second processor according to the type and operating parameters of the first processor, if the first processor is of the first type, and the operating parameters of the first processor and the operating parameters of the second processor both meet the first condition, the total power consumption threshold of the first processor and the second processor are updated to obtain the updated total power consumption threshold; and the first processor and the second processor are controlled to operate under the total power consumption threshold.

[0057] In some embodiments, the first type may be an independent package type, that is, the first processor and the second processor are each independently packaged, and the operating parameters of the first processor and the operating parameters of the second processor both satisfy the first condition, which may be that the core frequency and / or occupancy rate of the first processor is greater than or equal to a preset ratio, and the core frequency and / or occupancy rate of the second processor is greater than or equal to a preset ratio, which may be 50%, 60%, etc.

[0058] In some embodiments, when the first processor is of the first type, if it is determined that the operating parameters of the first processor and the operating parameters of the second processor both meet the first condition, it means that the first processor and the second processor are both in a high-load state at this time, and the total power consumption threshold of the first processor and the second processor needs to be updated, for example, by lowering the total power consumption threshold to obtain an updated total power consumption threshold, which can be the total thermal power consumption of the processor (Total Processor Thermal Power, TPP).

[0059] In some embodiments, after the total power consumption threshold of the first processor and the second processor is updated, the operating parameters or operating status of the first processor and the second processor can be adjusted, for example, the operating frequency, operating voltage, etc. of the first processor and the second processor can be reduced, thereby reducing the power consumption of the two processors, so that the total power consumption of the first processor and the second processor is less than or equal to the updated total power consumption threshold.

[0060] In other embodiments, if the first processor is of the first type, the operating parameters of the first processor do not meet the first condition, and the operating parameters of the second processor meet the first condition, the power consumption threshold of the second processor is updated to obtain the first power consumption threshold; and the second processor is controlled to operate under the first power consumption threshold.

[0061] In some embodiments, the operating parameters of the first processor failing to satisfy the first condition may be that the core frequency and / or occupancy rate of the first processor is less than a preset ratio. If the first processor is of the first type, the operating parameters of the first processor fail to satisfy the first condition, but the operating parameters of the second processor satisfy the first condition, indicating that the first processor is in a low-load state and the second processor is in a high-load state, and the contribution to the system power consumption mainly comes from the second processor. Therefore, the power consumption threshold of the second processor may be updated, such as by lowering the power consumption threshold of the second processor to obtain the first power consumption threshold, and lowering parameters such as the operating frequency of the second processor to control the power consumption of the second processor not to exceed the first power consumption threshold.

[0062] In other embodiments, if it is determined that the first processor is of the first type, the operating parameters of the first processor meet the first condition, and the operating parameters of the second processor do not meet the first condition, the power consumption threshold of the first processor is updated to obtain the second power consumption threshold; and the first processor is controlled to operate at the second power consumption threshold.

[0063] In some embodiments, if the first processor is of the first type and the operating parameters of the first processor satisfy the first condition, but the operating parameters of the second processor do not satisfy the first condition, it means that the first processor is in a high-load state and the second processor is in a low-load state, and the contribution to the system power consumption mainly comes from the first processor. Therefore, the power consumption threshold of the first processor can be updated, such as lowering the power consumption threshold of the first processor to obtain the second power consumption threshold, and lowering parameters such as the operating frequency of the first processor to control the power consumption of the first processor not to exceed the second power consumption threshold.

[0064] It can be understood that when the first processor is of the first type, by judging whether the first processor satisfies the first condition and whether the second processor satisfies the first condition, it is possible to determine which processor is the main contributor to the system power consumption, thereby enabling the power consumption of the first processor and the second processor to be adjusted more accurately.

[0065] In some embodiments of the present application, in the process of adjusting the power consumption of the first processor and the second processor according to the type and operating parameters of the first processor, if it is determined that the first processor is of the second type and the operating parameters of the second processor meet the first condition, the power consumption threshold of the second processor is updated to obtain a third power consumption threshold; and the second processor is controlled to operate at the third power consumption threshold.

[0066] In some embodiments, the first processor is of the second type and the second processor is of an integrated package type, that is, the first processor and the second processor are packaged together. In this case, it is possible to first determine whether the operating parameters of the second processor meet the first condition. If the operating parameters of the second processor meet the first condition, it means that the second processor is currently in a high load state. The current power consumption threshold of the second processor can be lowered to update the power consumption threshold of the second processor, thereby obtaining a third power consumption threshold, and by reducing parameters such as the operating frequency of the second processor, the actual power consumption of the second processor is controlled not to exceed the third power consumption threshold.

[0067] In other embodiments, if it is determined that the first processor is of the second type, the operating parameters of the second processor do not meet the first condition, and the operating parameters of the first processor meet the first condition, the power consumption threshold of the first processor is updated to obtain a fourth power consumption threshold; the first processor is controlled to operate at the fourth power consumption threshold.

[0068] In some embodiments, when the first processor is of the second type, if it is determined that the operating parameters of the second processor do not satisfy the first condition, but the operating parameters of the first processor satisfy the first condition, it means that the first processor is currently in a high-load state and the second processor is currently in a low-load state. The power consumption threshold of the first processor can be updated by lowering the current power consumption threshold of the first processor to obtain a fourth power consumption threshold, and the actual power consumption of the first processor can be controlled not to exceed the fourth power consumption threshold by lowering parameters such as the operating frequency of the first processor.

[0069] It can be understood that, when the first processor is of the second type, by first determining whether the second processor satisfies the first condition, and then determining whether the first processor satisfies the first condition, it can be determined whether the source of system power consumption is mainly the second processor, so that the power consumption of the first processor and the second processor can be reasonably adjusted.

[0070] In some embodiments of the present application, the power consumption module also includes a communication connection module. During the process of adjusting the power consumption of the power consumption module, if the control module determines that the operating parameters of the first processor and the operating parameters of the second processor do not meet the first condition, the control module adjusts the operating parameters of the communication connection module to reduce the power consumption of the communication connection module.

[0071] It should be noted that the communication connection module may include a communication interface for connecting the electronic device to other external devices, and the operating parameters of the communication connection module include at least one of an output current and an output voltage. By adjusting the operating parameters of the communication module, the power consumption generated by the communication connection module during operation can be controlled.

[0072] In some embodiments, if the working parameters of the first processor and the working parameters of the second processor do not meet the first condition, it means that the first processor and the second processor are currently in a low-load state, that is, the power consumption of the two processors is low. Therefore, the power consumption of the communication connection module can be reduced by adjusting the working parameters of the communication connection module, such as reducing the output current, output voltage, etc. of the communication connection module, so that the total power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device.

[0073] It can be understood that when the working parameters of the first processor and the working parameters of the second processor do not meet the first condition, the power consumption of the communication connection module can be reduced by adjusting the working parameters of the communication connection module, thereby reducing the current total power consumption of the power consumption modules of the electronic device and ensuring the stable operation of the electronic device.

[0074] In some embodiments of the present application, when the power supply device determines that its maximum discharge capacity meets the current power consumption of the power consumption module based on the state parameters and the discharge parameters, the power supply device transmits a second signal to the control module through the first pin; the control module increases the power consumption threshold of the power consumption module based on the second signal, and controls the power consumption module to operate under the increased power consumption threshold.

[0075] It should be noted that the second signal is used to indicate that the maximum discharge capacity meets the current power consumption, that is, the current maximum discharge power of the power supply device is greater than or equal to the current power consumption of the power consumption module. The second signal is different from the first signal. For example, if the first signal is a low-level signal, the second signal is a high-level signal; if the first signal is a high-level signal, the second signal is a low-level signal.

[0076] In some embodiments, when the power supply device determines that its current maximum discharge capacity meets the current power consumption of the power consumption module, it can send a second signal to the control module through the first pin. The control module can increase the power consumption thresholds of the first processor, the second processor, and the communication connection module based on the second signal, and adjust the operating parameters of the first processor, the second processor, and the communication connection module, and control the power consumption of each power consumption module not to exceed the increased power consumption threshold.

[0077] It can be understood that when the power supply device determines that its current maximum discharge capacity meets the current power consumption of the power consumption module, it sends a second signal to the control module through the first pin, so that the control module can increase the power consumption threshold of the power consumption module, thereby improving the utilization rate of the power consumption module and optimizing the system performance of the electronic device.

[0078] For example, Figure 4 As shown, when the power consumption module includes a CPU and a GPU, and the power supply device determines that the current maximum discharge capacity meets the power consumption of the CPU and the GPU, the power consumption adjustment method of the CPU and the GPU includes:

[0079] S401: Determine whether the GPU is independently packaged.

[0080] If yes, execute the following steps S402 to S409; otherwise, execute the following steps S415 to S419.

[0081] S402: Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0082] If yes, execute the following step S403; otherwise, execute steps S410 to S414.

[0083] S403: Determine whether the frequency and occupancy rate of the GPU are greater than or equal to 50%.

[0084] If yes, then execute the following steps S404 to S406; otherwise, execute steps S407 to S409.

[0085] S404, increase the current TPP value by X1 to obtain a first TPP value.

[0086] Here, X1 can be any positive integer greater than 0, for example, 3, 5, 8, etc.

[0087] S405: Determine whether the first TPP value exceeds the maximum TPP setting value allowed in the current system mode.

[0088] If yes, then step S406 is executed; otherwise, the process returns to step S404 for further execution. The current system mode may include any one of the energy-saving mode, balanced mode, high-performance mode, etc., in which the electronic device is currently in.

[0089] S406: Determine the first TPP value as the maximum TPP value allowed in the current system mode.

[0090] S407 , increase the current power consumption threshold (Power Limit, PL) of the CPU by X2 to obtain a first PL.

[0091] Here, X2 can be any positive integer greater than 0, such as 5, 8, 10, etc.

[0092] S408: Determine whether the first PL exceeds the maximum PL of the CPU allowed in the current system mode.

[0093] If yes, execute the following step S409; otherwise, return to step S407 and continue execution.

[0094] S409: Determine the first PL as a power consumption threshold of the CPU allowed in the current system mode.

[0095] S410: Determine whether the frequency and occupancy rate of the GPU are greater than or equal to 50%.

[0096] If so, execute the following steps S411 to S413; otherwise, execute the following step S414.

[0097] S411. Increase the current GPU subsystem total power (Total GPU Subsystem Power, TGP) value by X3 to obtain a first TGP value.

[0098] S412: Determine whether the first TGP value exceeds the maximum TGP setting value allowed in the current system mode.

[0099] If so, the following step S413 may be executed; otherwise, the process may return to step S411 and continue the execution.

[0100] S413: Determine the first TGP value as the TGP value allowed in the current system mode.

[0101] S414. Keep the default TPP value and TGP value unchanged.

[0102] S415: Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0103] If so, execute the following steps S416 to S418; otherwise, execute the following step S419.

[0104] S416, increase the current PL of the CPU by X4 to obtain a second PL.

[0105] Among them, X4 can be any positive integer greater than 0, such as 5, 8, 10, etc.

[0106] S417: Determine whether the second PL exceeds the maximum PL of the CPU allowed in the current system mode.

[0107] Then execute the following step S418; otherwise, return to step S416 and continue execution.

[0108] S418: Determine the second PL as the power consumption threshold of the CPU allowed in the current system mode.

[0109] S419: Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0110] If so, steps S416 to S418 may be executed; otherwise, step S420 may be executed.

[0111] S420. Keep the default TPP value and TGP value unchanged.

[0112] In an embodiment of the present application, the power supply device obtains its own current state parameters and discharge parameters, and when it is determined based on the state parameters and discharge parameters that its own maximum discharge capacity does not meet the current power consumption of the power consumption module, the first signal is transmitted to the control module through the channel established with the control module through its first pin; the control module adjusts the power consumption of the power consumption module based on the received first signal, so that the actual power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device. In this way, the power supply device obtains its own current state parameters and discharge parameters in real time, avoiding the access of the operating parameters and discharge parameters of the power supply device through the controller, reducing the time delay of determining the maximum discharge capacity of the power supply device and the current power consumption of the power consumption module, thereby improving the speed of judging whether the maximum discharge capacity meets the current power consumption; and the channel established with the control module through the first pin of the power supply device enables the controller to adjust the power consumption of the power consumption module in time after receiving the first signal, thereby ensuring the stability of the battery and avoiding the occurrence of abnormal shutdown events of the electronic device.

[0113] Next, the implementation process of the application embodiment in the actual application scenario is introduced.

[0114] This application adds an alert signal pin (Alert Pin, equivalent to the "first pin" in other embodiments) on the basis of the laptop battery. The signal can be connected to the motherboard EC (equivalent to the "control module" in other embodiments). The battery itself has a built-in neural network model, that is, the battery will learn and calculate the current maximum discharge capacity in real time based on its own temperature, RSOC, aging, output power consumption status and other information, while monitoring the actual power consumption of the system. If the power required by the current system exceeds the threshold (voltage & current) that the current battery can provide, the signal of this Alert Pin will be pulled low. After receiving the prompt information of the Alert Pin, the EC can dynamically control the power consumption of each power-consuming module of the system and reduce the total system power consumption.

[0115] like Figure 5 As shown, it is a schematic diagram of the pin structure of a battery provided in an embodiment of the present application, and the battery includes pin (pin) 1 501, pin 2 502, pin 3 503, pin 4 504, pin 5 505, pin 6 506, pin 7 507, and pin 8 508. The detailed information of each pin is shown in Table 1 below, wherein AWG is American Wire Gauge, and Alert Pin can be pin 6 506, that is, an enable signal pin, or a clock signal pin, or an undefined pin.

[0116] Table 1 Battery pin information

[0117] Pin Index Pin Definition Wire diameter Pin Color pin 1 positive electrode #24AWG red pin 2 negative electrode #24AWG red Pin 3 Clock signal #26AWG green pin 4 Transferring Data #26AWG blue pin 5 Identification Information #26AWG White Pin 6 Enable signal / clock signal / alert signal / undefined #26AWG yellow pin 7 Ground signal #24AWG black pin 8 Ground signal #24AWG black

[0118] like Figure 6 As shown, it is a flow chart of a method for adjusting system power consumption based on a warning signal provided by the present application. The method can be implemented by the battery itself, and the method includes:

[0119] S601. The battery determines the continuous discharge capacity (equivalent to the "maximum discharge capacity" in other embodiments) based on its own operating parameters and the neural network model.

[0120] In some embodiments, the battery can input its current temperature, power, number of cycles, impedance and other information into the neural network model to obtain the battery's current continuous discharge capability.

[0121] S602: When the battery determines that the continuous discharge capacity is greater than the power consumption of the system, the battery lowers the warning signal.

[0122] S603: Determine whether the GPU is independently packaged.

[0123] If yes, execute the following steps S604 to S616; otherwise, execute the following steps S617 to S628.

[0124] S604: Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0125] If so, execute the following steps S605 to S611; otherwise, execute steps S612 to S616.

[0126] S605: Determine whether the frequency and occupancy rate of the GPU are greater than or equal to 50%.

[0127] If yes, then execute the following steps S606 to S608; otherwise, execute steps S609 to S611.

[0128] S606 , reduce the current TPP value (equivalent to the “total power consumption threshold of the first processor and the second processor” in other embodiments) by X5 to obtain a second TPP value.

[0129] Here, X5 can be any positive integer greater than 0, for example, 5, 8, 10, etc.

[0130] S607: Determine whether the warning signal is still pulled low.

[0131] If yes, the process returns to step S606 and continues to execute; otherwise, the process executes the following step S608.

[0132] S608: Determine the second TPP value as the maximum TPP value allowed in the current system mode.

[0133] S609 , reduce the current PL value of the CPU (equivalent to the “power consumption threshold of the second processor” in other embodiments) by X6 to obtain a third PL.

[0134] Among them, X6 can be any positive integer greater than 0, such as 2, 3, 5, etc.

[0135] S610: Determine whether the warning signal is still pulled low.

[0136] If yes, the process returns to step S609 and continues to execute; otherwise, the process executes the following step S611.

[0137] S611 . Determine the third PL as the power consumption threshold of the CPU allowed in the current system mode.

[0138] S612: Determine whether the frequency and occupancy rate of the GPU are greater than or equal to 50%.

[0139] If so, execute the following steps S613 to S615; otherwise, execute the following step S616.

[0140] S613, reducing the current TGP value of the GPU (equivalent to the “power consumption threshold of the first processor” in other embodiments) by X7 to obtain a second TGP value.

[0141] S614: Determine whether the warning signal is still pulled low.

[0142] If so, the process returns to step S613 and continues to execute; otherwise, the process executes the following step S615.

[0143] S615: Determine the second TGP value as the TGP value allowed in the current system mode.

[0144] S616, limiting the gear position of type-usb (equivalent to "adjusting the working parameters of the communication connection module" in other embodiments).

[0145] S617: Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0146] If so, execute the following steps S618 to S620; otherwise, execute the following step S621.

[0147] S618, reduce the current PL of the CPU by X8 to obtain a fourth PL.

[0148] Among them, X8 can be any positive integer greater than 0, such as 5, 8, 10, etc.

[0149] S619: Determine whether the warning signal is still pulled low.

[0150] If yes, the process returns to step S618 and continues to execute; otherwise, the process executes step S620.

[0151] S620: Determine the fourth PL as the power consumption threshold of the CPU allowed in the current system mode.

[0152] S621. Determine whether the frequency and occupancy rate of the CPU are greater than or equal to 50%.

[0153] If so, execute steps S618 to S620; otherwise, execute the following step S622.

[0154] S622. Limit the gear position of type-usb.

[0155] like Figure 7 FIG. 1 is a flow chart of a method for determining the maximum discharge power of a battery provided by the present application, the method comprising:

[0156] S701: The battery determines whether its current temperature is within a preset temperature range.

[0157] If so, execute the following steps S702 to S708; otherwise, execute the following step S709.

[0158] S702, determining whether the theoretical maximum discharge power Pmax determined based on its own operating parameters and the neural network model is less than or equal to the cell discharge power Pcell corresponding to the current RSOC of the battery (equivalent to the "preset discharge power" in other embodiments).

[0159] If yes, execute step S703; otherwise, execute step S704.

[0160] S703: Determine Pcell as a candidate maximum discharge power of the battery.

[0161] S704: Determine Pmax as a candidate maximum discharge power of the battery.

[0162] S705: Obtain the average discharge power of the battery within a preset time period.

[0163] S706: Update the candidate maximum discharge power based on the average discharge power to obtain the maximum discharge power of the battery.

[0164] In some embodiments, when the candidate maximum discharge power is greater than the average discharge power, the average discharge power can be determined as the maximum discharge power of the battery; when the candidate maximum discharge power is less than the average discharge power, the candidate maximum discharge power or the average discharge power can be determined as the maximum discharge power of the battery.

[0165] S707 . Determine the cell discharge power corresponding to the lowest RSOC of the battery as the maximum discharge power of the battery.

[0166] In the power consumption adjustment method based on warning signals provided in the present application, the battery learns its own discharge capacity corresponding to the current temperature, power level, and aging of the battery cells through its own artificial neural network model, and compares it with the discharge voltage or discharge current of the battery currently consumed by the system. If the threshold is exceeded, its own warning signal will be lowered. After the system detects the prompt signal, it can autonomously and dynamically control the power consumption of each system, thereby achieving the effect of optimizing system performance and preventing abnormal system shutdown.

[0167] The present application also provides a power supply device, Figure 8 A schematic diagram of the structure of a power supply device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the power supply device 800 includes: a processing unit 801, wherein:

[0168] The processing unit 801 obtains the current state parameters and discharge parameters of the power supply device 800, calculates the state parameters through the trained artificial neural network model running on the processing unit 801, obtains the maximum discharge capacity of the power supply device 800, and determines the current power consumption of the power consumption module of the electronic device based on the discharge parameters;

[0169] When determining that the maximum discharge capacity does not meet the current power consumption, the processing unit 802 transmits a first signal to the control module through a channel established with the control module of the electronic device through its own first pin, so that the control module adjusts the power consumption of the power consumption module based on the first signal; the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption.

[0170] In some embodiments, the maximum discharge capacity includes the maximum discharge power of the power supply device 800; the processing unit is also used to: input the state parameters into its own trained artificial neural network model to obtain the maximum discharge power, and determine the current power consumption of the power consumption module based on the discharge parameters; if the maximum discharge power is less than the current power consumption, it is determined that the maximum discharge capacity of the power supply device 800 does not meet the current power consumption of the power consumption module.

[0171] In some embodiments, the processing unit is further used to: determine the maximum discharge power of the power supply device 800 based on the state parameters and the preset discharge power; wherein the preset discharge power includes the maximum discharge power corresponding to different power levels of the power supply device 800.

[0172] In some embodiments, the processing unit is also used to: determine the average discharge power of the power supply device 800 in a preset time period; determine the maximum discharge power of the power supply device 800 based on the average discharge power; and when it is determined that the maximum discharge power does not meet the current power consumption of the power consumption module, transmit the first signal to the control module through the channel established by its own first pin.

[0173] It should be noted that the description of the power supply device in the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it will not be repeated. For technical details not disclosed in this embodiment, please refer to the description of the method embodiment of the present application for understanding.

[0174] It should be noted that, in this article, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the method, module or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such method, module or device. In the absence of further restrictions, the elements defined by the sentence "comprising at least one ..." do not exclude the presence of other identical elements in the method, module or device including the element. In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways.

[0175] The above are only implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can be easily thought of within the technical scope disclosed in the present application. Changes or substitutions should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A control method, applied to an electronic device, the electronic device comprising a power supply device, a control module and a power consumption module, the method comprising: The power supply device obtains its own current state parameters and discharge parameters, and when it is determined based on the state parameters and the discharge parameters that its own maximum discharge capacity does not meet the current power consumption of the power consumption module, transmits a first signal to the control module through a channel established with the control module through its first pin; the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption; The control module adjusts the power consumption of the power consumption module based on the received first signal so that the actual power consumption of the power consumption module does not exceed the maximum discharge capacity of the power supply device.

2. The method according to claim 1, wherein the maximum discharge capacity includes the maximum discharge power of the power supply device; and the determining that the maximum discharge capacity of the power consumption module does not meet the current power consumption of the power consumption module based on the state parameter and the discharge parameter comprises: The power supply device inputs the state parameter into its own trained artificial neural network model to obtain the maximum discharge power, and determines the current power consumption of the power consumption module based on the discharge parameter; If the maximum discharge power is less than the current power consumption, it is determined that the maximum discharge capacity of the power supply device does not meet the current power consumption of the power consumption module.

3. The method according to claim 2, further comprising: The power supply device determines the maximum discharge power of the power supply device according to the state parameter and the preset discharge power; wherein the preset discharge power includes the maximum discharge power corresponding to different power levels of the power supply device.

4. The method according to claim 2 or 3, further comprising: The power supply device determines its own average discharge power in a preset time period; The power supply device also determines the maximum discharge power of the power supply device based on the average discharge power; When the power supply device determines that the maximum discharge power does not meet the current power consumption of the power consumption module, the power supply device transmits a first signal to the control module through a channel established by its first pin.

5. The method according to claim 1, wherein the power consumption module comprises a first processor and a second processor of the electronic device; and adjusting the power consumption of the power consumption module comprises: Determining a type of the first processor, and operating parameters of the first processor and the second processor; The power consumption of the first processor and the second processor is adjusted according to the type of the first processor and the operating parameter.

6. The method according to claim 5, wherein adjusting the power consumption of the first processor and the second processor according to the type of the first processor and the operating parameter comprises at least one of the following: If the first processor is of the first type, and the operating parameters of the first processor and the operating parameters of the second processor both meet the first condition, updating the total power consumption thresholds of the first processor and the second processor to obtain an updated total power consumption threshold; and controlling the first processor and the second processor to operate under the total power consumption threshold; If the first processor is of the first type, the operating parameters of the first processor do not meet the first condition, and the operating parameters of the second processor meet the first condition, updating the power consumption threshold of the second processor to obtain a first power consumption threshold; and controlling the second processor to operate under the first power consumption threshold; If it is determined that the first processor is of the first type, the operating parameters of the first processor meet the first condition, and the operating parameters of the second processor do not meet the first condition, the power consumption threshold of the first processor is updated to obtain a second power consumption threshold; and the first processor is controlled to operate under the second power consumption threshold.

7. The method according to claim 5, wherein adjusting the power consumption of the first processor and the second processor according to the type of the first processor and the operating parameter comprises at least one of the following: If it is determined that the first processor is of the second type and the operating parameters of the second processor meet the first condition, the power consumption threshold of the second processor is updated to obtain a third power consumption threshold; the second processor is controlled to operate at the third power consumption threshold; or, If it is determined that the first processor is of the second type, the operating parameters of the second processor do not meet the first condition, and the operating parameters of the first processor meet the first condition, the power consumption threshold of the first processor is updated to obtain a fourth power consumption threshold; and the first processor is controlled to operate under the fourth power consumption threshold.

8. The method according to claim 5, wherein the power consumption module further comprises a communication connection module, and the method further comprises: Determine that both the operating parameters of the first processor and the operating parameters of the second processor do not meet the first condition, adjust the operating parameters of the communication connection module to reduce the power consumption of the communication connection module; the operating parameters of the communication connection module include at least one of output current and output voltage.

9. The method according to claim 1, further comprising: The power supply device transmits a second signal to the control module through the first pin when the power supply device determines that its maximum discharge capacity meets the current power consumption of the power consumption module based on the state parameter and the discharge parameter; the second signal is used to indicate that the maximum discharge capacity meets the current power consumption; The control module increases the power consumption threshold of the power consumption module based on the second signal, and controls the power consumption module to operate under the increased power consumption threshold.

10. A power supply device, comprising a processing unit, wherein: The processing unit obtains current state parameters and discharge parameters of the power supply device, calculates the state parameters through a trained artificial neural network model running on the processing unit to obtain a maximum discharge capacity of the power supply device, and determines the current power consumption of the power consumption module of the electronic device based on the discharge parameters; When the processing unit determines that the maximum discharge capacity does not meet the current power consumption, the processing unit transmits a first signal to the control module through a channel established with the control module of the electronic device through its own first pin, so that the control module adjusts the power consumption of the power consumption module based on the first signal; the first signal is used to indicate that the maximum discharge capacity does not meet the current power consumption.