Power control method and apparatus
By adjusting the power control unit power based on the power supply temperature information, the problem of poor temperature matching between the product's functional components and the power supply was solved, thus achieving temperature control of the power supply and stability of the electrical equipment's performance.
Patent Information
- Application Number
- PCT/CN2025/110860
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-29
- Filing Date
- 2025-07-28
- Publication Date
- 2026-02-05
AI Technical Summary
In the existing technology, the power and temperature matching between the functional part and the power supply part of the product is not good, which leads to excessively high temperature of the power supply part or limited performance of the electrical equipment.
By acquiring the temperature information at the power supply end, the system determines whether to adjust the current power of the control unit. If the distance between the control unit and the power supply end is greater than a first distance threshold, the system adjusts the target power of the control unit to match the temperature change at the power supply end.
The power of the product's functional components and the temperature matching of the power supply components have been improved, ensuring that the power supply components meet safety requirements and maintain the normal operating performance of the electrical equipment.
Smart Images

Figure CN2025110860_05022026_PF_FP_ABST
Abstract
Description
Power control method and device
[0001] This application claims priority to Chinese Patent Application No. 202411026169.4, filed on July 29, 2024, entitled "Power Control Method and Apparatus", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, and in particular to a power control method and apparatus. Background Technology
[0003] In related technologies, the power supply and product functional components are designed separately, are geographically distant, and cannot communicate. When the product functional components use high power, the power supply cannot notify them of its temperature, preventing the functional components from promptly reducing power and causing the power supply temperature to rise beyond safety regulations. Conversely, when the functional components reduce power usage, the power supply temperature decreases. However, if the functional components continue to use lower power or are disconnected at this point, the performance of connected equipment may be limited. This results in a poor match between the power consumption of the product functional components and the corresponding temperature of the power supply.
[0004] As an example, the power supply section can be a wall socket connected to mains power, and the product function section can be a device that can be detachably connected to the socket, such as another socket, a charger, or an electrical appliance.
[0005] It is evident that improving the matching degree between the power of the product's functional components and the corresponding temperature of the power supply is a technical issue worthy of attention. Summary of the Invention
[0006] In view of this, in order to solve some or all of the above-mentioned technical problems, embodiments of this application provide a power control method and apparatus.
[0007] In a first aspect, embodiments of this application provide a power control method, the method comprising:
[0008] Acquire temperature information corresponding to the power supply terminal; wherein, the temperature information represents: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal;
[0009] Based on the temperature information, it is determined whether to adjust the current power of the control unit, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold.
[0010] If it is determined that the current power should be adjusted, the target power of the control unit is determined based on the temperature information;
[0011] The control unit is instructed to adjust the current power to the target power.
[0012] In one possible implementation, determining whether to adjust the current power of the control unit based on the temperature information includes:
[0013] Determine whether the temperature represented by the temperature information is greater than or equal to a preset temperature threshold to obtain a determination result;
[0014] Based on the determination result, it is determined whether to adjust the current power of the control unit.
[0015] In one possible implementation, determining whether to adjust the current power of the control unit based on the determination result includes:
[0016] If the determination result indicates that the temperature information is greater than or equal to the preset temperature threshold, determine the duration for which the temperature information is greater than or equal to the preset temperature threshold;
[0017] Determine whether the duration is greater than or equal to a preset duration threshold;
[0018] If the duration is greater than or equal to the preset duration threshold, it is determined to reduce the current power of the control unit.
[0019] In one possible implementation, determining whether to adjust the current power of the control unit based on the determination result includes:
[0020] Based on the determination result, a first signal is generated; wherein the level type of the first signal is high level or low level;
[0021] Based on the level type of the first signal, determine whether to adjust the current power of the control unit.
[0022] In one possible implementation, determining whether to adjust the current power of the control unit based on the temperature information includes:
[0023] Based on the temperature information and the preset correspondence, the duty cycle of the pulse width modulation signal to be generated is determined, wherein the preset correspondence represents the correspondence between the temperature information and the duty cycle of the pulse width modulation signal;
[0024] Generate the pulse width modulation signal containing the duty cycle;
[0025] Based on whether the duty cycle in the pulse width modulation signal is greater than or equal to a preset value, it is determined whether to adjust the current power of the control unit.
[0026] In one possible implementation, determining whether to adjust the current power of the control unit based on the determination result includes:
[0027] Based on the determination result, a second signal conforming to the Universal Asynchronous Receiver / Transmitter Protocol is generated, wherein the second signal includes a temperature status identifier representing the determination result;
[0028] Analyze the second signal to obtain the temperature status identifier in the second signal;
[0029] Based on the temperature status identifier obtained through analysis, it is determined whether to adjust the current power of the control unit.
[0030] Secondly, embodiments of this application provide a power control device, which includes a temperature acquisition unit and a control unit, wherein the temperature acquisition unit and the control unit are connected;
[0031] The temperature acquisition unit is used to: acquire temperature information corresponding to the power supply terminal connected to the temperature acquisition unit; wherein, the temperature information represents: the temperature of the power supply terminal, or, when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal; and transmit the temperature information to the control unit.
[0032] The control unit is configured to: determine whether to adjust the current power of the control unit based on the temperature information, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0033] In one possible implementation, the temperature acquisition unit includes a temperature sensor and a chip, the temperature sensor and the chip are signal-connected, and the chip is provided with a target interface, the target interface including at least one of the following: a general-purpose input / output interface, an integrated circuit interconnect interface, a pulse width modulation interface, and a general asynchronous transceiver interface;
[0034] The temperature sensor is used to: collect temperature information corresponding to the power supply terminal;
[0035] The chip is used to: acquire the temperature information; process the temperature information into a third signal that matches the target interface; and transmit the third signal to the control unit through the target interface.
[0036] In one possible implementation, the control unit includes a power supply module, a power conversion module, and a main control module. The power conversion module is connected to the power supply module and the main control module, respectively. The power supply module and the main control module are also connected to the control unit and the chip, respectively.
[0037] The power supply module is used to: provide power from the power supply terminal to the control unit;
[0038] The power conversion module is used to convert the voltage of the power supplied by the power supply module into the operating voltage of the main control module;
[0039] The main control module is used to: receive temperature information sent from the chip; determine whether to adjust the current power of the control unit based on the temperature information; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0040] In one possible implementation, the temperature information represents the temperature of the temperature acquisition unit, the power control device is connected to the power supply terminal, and the control unit is connected to the power supply terminal via a cable.
[0041] Thirdly, embodiments of this application provide an electronic device, including:
[0042] Memory, used to store computer programs;
[0043] A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the method of any embodiment of the power control method of the first aspect of this application.
[0044] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any embodiment of the power control method of the first aspect described above.
[0045] Fifthly, embodiments of this application provide a computer program product comprising computer-readable code that, when executed on a device, causes a processor in the device to implement the method of any embodiment of the power control method of the first aspect described above.
[0046] The power control method provided in this application can acquire temperature information corresponding to the power supply terminal. The temperature information represents the temperature of the power supply terminal, or, when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal, the temperature of the temperature acquisition unit. Then, based on the temperature information, it is determined whether to adjust the current power of the control unit, where the distance between the control unit and the power supply terminal is greater than the first distance threshold. If it is determined that the current power should be adjusted, a target power for the control unit is determined based on the temperature information. Subsequently, the control unit is controlled to adjust the current power to the target power. Therefore, by using the temperature information corresponding to the power supply terminal, it is possible to determine whether to adjust the power of the control unit, thereby improving the matching degree between the power of the control unit (i.e., the product functional part) and the temperature information corresponding to the power supply terminal (i.e., the power supply part). For example, when the control unit uses higher power, causing the temperature information corresponding to the power supply terminal to rise, the current power of the control unit can be reduced; when the control unit uses lower power, causing the temperature information corresponding to the power supply terminal to be lower, the current power of the control unit can be increased or maintained. This ensures that the power supply terminal meets safety requirements and also ensures the working performance of the electrical equipment connected to the control unit. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0048] To more clearly illustrate the technical solutions 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, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0050] Figure 1 is a schematic flowchart of a power control method provided in an embodiment of this application;
[0051] Figure 2 is a flowchart illustrating another power control method provided in an embodiment of this application;
[0052] Figure 3 is a schematic diagram of a power control device provided in an embodiment of this application;
[0053] Figure 4A is a schematic diagram of another power control device provided in an embodiment of this application;
[0054] Figure 4B is a schematic flowchart of another power control method provided in an embodiment of this application;
[0055] Figure 4C is a schematic flowchart of another power control method provided in an embodiment of this application;
[0056] Figure 4D is a schematic flowchart of another power control method provided in an embodiment of this application;
[0057] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0058] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this application.
[0059] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.
[0060] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0061] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.
[0062] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.
[0063] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0064] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0065] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0066] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0067] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0068] To address the technical problem of how to improve the matching degree between the power of the functional part of a product and the temperature of the corresponding power supply part in the prior art, this application provides a power control method and apparatus that can improve the matching degree between the power of the functional part of the product and the temperature of the corresponding power supply part.
[0069] Figure 1 is a schematic flowchart of a power control method provided in an embodiment of this application. This method can be applied to one or more electronic devices such as power control devices, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the execution entity of this method can be hardware or software. When the execution entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the execution entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.
[0070] As shown in Figure 1, the method specifically includes:
[0071] Step 101: Obtain the temperature information corresponding to the power supply terminal; wherein, the temperature information refers to: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within the first distance threshold range of the power supply terminal.
[0072] In this embodiment, the power supply terminal can be used to provide power. As an example, the power supply terminal can be a socket (e.g., a wall socket) connected to mains power, or it can be a power bank.
[0073] The first distance threshold can be a preset distance. The temperature acquisition unit may or may not be connected to the power supply. For example, the temperature acquisition unit can be connected to the power supply via an interface. In this case, the temperature acquisition unit is in contact with the power supply, and the distance between them is 0, which is less than the aforementioned first preset threshold. Alternatively, the temperature acquisition unit can be positioned within the range of the aforementioned first distance threshold of the power supply (i.e., less than or equal to the first distance threshold), but not in a position where it is in contact with the power supply.
[0074] Here, regardless of whether the temperature information represents the temperature at the power supply end or the temperature of the temperature acquisition unit when the temperature acquisition unit is set within the first distance threshold range of the power supply end (i.e., the two are close to each other), the temperature information can reflect the temperature at the power supply end. For example, the temperature information can be positively correlated with the temperature at the power supply end.
[0075] The temperature acquisition unit mentioned above may include a temperature sensor (Negative Temperature Coefficient, NTC).
[0076] Step 102: Based on the temperature information above, determine whether to adjust the current power of the control unit, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold.
[0077] In this embodiment, if the temperature information is greater than or equal to a preset temperature threshold (e.g., 60 degrees Celsius, 70 degrees Celsius), then it can be determined to adjust (e.g., reduce) the current power of the control unit; if the temperature information is less than the preset temperature threshold, then it can be determined to adjust (e.g., increase) or not adjust (i.e., maintain) the current power of the control unit.
[0078] Optionally, the current power of the control unit can be adjusted based on the difference between the two collected temperature data. For example, if the difference is greater than or equal to a preset difference, the current power of the control unit can be adjusted; if the difference is less than the preset difference, the current power of the control unit can be left unadjusted.
[0079] By controlling the current control of the control unit, the power of the electrical equipment connected to the control unit can be further controlled.
[0080] The electrical device can be a device that requires power from a power source. When the electrical device requires power from the power source, the temperature acquisition device can be positioned within a first preset range of the power source. The electrical device can be connected to the control unit via wired or wireless means, and the control unit can be connected to the temperature acquisition unit via wired or wireless means. The distance between the control unit and the power source can be greater than the aforementioned first distance threshold. As an example, the electrical device can be a socket, electrical equipment, etc., that can be detachably connected to the power source. In other words, the electrical device and the power source can be in a disconnected or connected state.
[0081] In this embodiment, the control unit and the temperature acquisition unit can be connected wirelessly or via a wired connection.
[0082] When the control unit and temperature acquisition unit are connected by a wire, the distance between the control unit and the power supply can be understood as the maximum connection distance between them. That is, when the control unit and temperature acquisition unit are connected by a cable, and the control unit, temperature acquisition unit, and power supply are aligned in a straight line (not a curve), the distance between the control unit and the power supply is considered. In this case, since the control unit, temperature acquisition unit, and power supply are aligned in a straight line, the distance between the control unit and the power supply can be the sum of the following two: the cable length between the control unit and the temperature acquisition unit, and the distance between the temperature acquisition unit and the power supply. This sum can be greater than the aforementioned first distance threshold.
[0083] When the control unit and temperature acquisition unit are wirelessly connected, the distance between the control unit and the power supply can be understood as the maximum communication distance between them. That is, the maximum distance between the control unit and the power supply when they can communicate and are aligned in a straight line. This maximum communication distance represents the maximum distance at which the control unit and temperature acquisition unit can communicate. In other words, if the distance between the control unit and the power supply exceeds this maximum distance, they cannot communicate; for example, the temperature collected by the temperature acquisition unit cannot be transmitted to the control unit. In this case, since the control unit, temperature acquisition unit, and power supply are aligned in a straight line, the distance between the control unit and the power supply can be the sum of the maximum communication distance between them and the distance between the temperature acquisition unit and the power supply. This sum can be greater than the first distance threshold mentioned above.
[0084] It should be noted that in practice, the control unit, temperature acquisition unit, and power supply may not be located in a straight line, and / or the cable may not be in a straight line. The above description is only used as an example to explain the distance between the control unit and the power supply, and does not constitute a limitation on the positional relationship between the control unit, temperature acquisition unit, and power supply.
[0085] Here, based on the above temperature information, it can also be determined whether to adjust the current power of the control unit:
[0086] First, obtain the temperature curve corresponding to the power supply terminal. This temperature curve represents the correspondence between the power supply duration and the corresponding temperature information at the power supply terminal. For example, the horizontal axis of the temperature curve can represent the power supply duration, and the vertical axis can represent the corresponding temperature information at the power supply terminal.
[0087] In some cases, the temperature profile corresponding to the power supply terminal can be determined based on the temperature information and power supply duration collected during the most recent preset number of power supply processes (e.g., the last 100 times) that meet preset conditions (e.g., the power supply terminal temperature meets safety regulations, such as being less than 70 degrees Celsius). Therefore, the temperature profile corresponding to the power supply terminal can be updated over time to overcome the influence of factors such as ambient temperature and power supply aging on the temperature information of the power supply terminal.
[0088] Next, it is determined whether the temperature information obtained in step 101 matches the aforementioned temperature curve. For example, the power supply duration A corresponding to the temperature information A obtained in step 101 can be determined, and then the temperature information B corresponding to the power supply duration A can be determined in the aforementioned temperature curve. If temperature information A and temperature information B match (e.g., they are equal or the difference is less than a preset threshold), it can be determined whether the temperature information obtained in step 101 matches the aforementioned temperature curve.
[0089] Finally, if the temperature information obtained in step 101 matches the temperature curve described above, it can be determined that the current power of the control unit should not be adjusted; if the temperature information obtained in step 101 does not match the temperature curve described above, it can be determined that the current power of the control unit should be adjusted.
[0090] Step 103: If it is determined that the current power needs to be adjusted, the target power of the control unit is determined based on the temperature information.
[0091] In this embodiment, the target power can be the output power of the control unit that will be adjusted later.
[0092] Here, when the control unit has multiple power ports, the power of each power port can be determined in the following way:
[0093] First, determine whether the electrical device connected to each power port of the control unit supports power reduction, that is, determine whether it can operate at a lower power level. If it supports power reduction, control the power reduction of the power port connected to the electrical device that supports power reduction; if none of the electrical devices connected to each power port support power reduction, at least one power port can be disconnected while maintaining the power of the other power ports.
[0094] In practice, the target power of the above-mentioned control unit can be determined in a variety of ways.
[0095] As an example, multiple power sets can be preset. If the temperature information is greater than or equal to a preset temperature threshold A, then a power less than the current power of the control unit can be determined from the above power sets and used as the target power. If the temperature information is less than or equal to a preset temperature threshold B, then a power greater than the current power of the control unit can be determined from the above power sets and used as the target power. If the temperature information is between the preset temperature threshold A and the preset temperature threshold B, then the current power of the control unit can be used as the target power.
[0096] As another example, a preset formula can also be used to calculate the target power of the control unit based on temperature information. This preset formula represents the correspondence between temperature information and target power.
[0097] Step 104: Control the control unit to adjust the current power to the target power.
[0098] In some optional implementations of this embodiment, the following method can be used to determine whether to adjust the current power of the control unit based on the above temperature information:
[0099] The first step is to determine the duty cycle of the pulse width modulation signal to be generated based on the temperature information and the preset correspondence.
[0100] The aforementioned preset correspondence represents the relationship between temperature information and the duty cycle of the pulse width modulation signal. For example, the aforementioned preset correspondence can be represented by a formula or a table.
[0101] Pulse Width Modulation (PWM) is a technique that uses the digital output of a microprocessor to control analog circuits.
[0102] The second step is to generate the pulse width modulation signal that includes the duty cycle mentioned above.
[0103] The third step is to determine whether to adjust the current power of the control unit based on whether the duty cycle in the pulse width modulation signal is greater than or equal to a preset value.
[0104] Here, when the duty cycle is greater than or equal to a preset value, the current power of the control unit can be adjusted; when the duty cycle is less than the preset value, the current power of the control unit can remain unchanged. Alternatively, when the duty cycle is greater than or equal to the preset value, the current power of the control unit can remain unchanged; when the duty cycle is less than the preset value, the current power of the control unit can be adjusted.
[0105] It is understandable that among the above optional implementation methods, pulse width modulation signals can be used to transmit temperature information. In this way, since the single-wire PWM design can reduce one wire compared to the two-wire serial communication design, the size and cost of the design cable can be reduced.
[0106] In some optional implementations of this embodiment, the above method can be applied to a power control device.
[0107] As an example, please refer to Figure 3, which is a schematic diagram of the structure of a power control device provided in an embodiment of this application.
[0108] As shown in Figure 3, the power control device 300 includes a temperature acquisition unit 301 and a control unit 302. The temperature acquisition unit 301 and the control unit 302 are connected together.
[0109] The temperature acquisition unit 301 is used to: acquire temperature information corresponding to the power supply terminal; wherein the temperature information represents: the temperature of the power supply terminal, or the temperature of the temperature acquisition unit when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal; and transmit the temperature information to the control unit 302.
[0110] The control unit 302 is configured to: determine whether to adjust the current power of the control unit based on the temperature information, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0111] It is understandable that, among the above-mentioned optional implementation methods, a power control device with the above structure can improve the matching degree between the power of the control unit (i.e., the functional part of the product) and the temperature information corresponding to the power supply (i.e., the power supply section). For example, when the control unit uses higher power, causing the temperature information corresponding to the power supply section to rise, the current power of the control unit can be reduced; when the control unit uses lower power, causing the temperature information corresponding to the power supply section to be lower, the current power of the control unit can be increased or maintained. In this way, it can be ensured that the power supply section meets safety requirements and that the working performance of the electrical equipment connected to the control unit is also ensured.
[0112] In some application scenarios of the above-mentioned optional implementation methods, as shown in Figure 4A, which is a schematic diagram of another power control device provided in an embodiment of this application, the temperature acquisition unit includes a temperature sensor NTC and a chip IC.
[0113] The aforementioned temperature sensor NTC and the aforementioned chip IC are connected by signals. The aforementioned chip IC is provided with a target interface, which includes at least one of the following: a general purpose input / output (GPIO) interface, an inter-integrated circuit (I2C) interface, a pulse width modulation (PMW) interface, and a universal asynchronous receiver / transmitter (UART) interface.
[0114] The aforementioned NTC temperature sensor is used to collect temperature information corresponding to the power supply terminal.
[0115] The AC-DC100 can be used to convert alternating current to direct current from the power supply.
[0116] The aforementioned chip IC is used to: acquire the aforementioned temperature information; then, process the aforementioned temperature information into a third signal that matches the aforementioned target interface; wherein the third signal is a signal that matches the aforementioned target interface; and then, transmit the aforementioned third signal to the power supply module through the aforementioned target interface.
[0117] It is understandable that in the above application scenarios, the temperature information at the power supply end can be collected using a temperature sensor built into the IC. This way, temperature information can be collected simply by setting the power control device within a first distance threshold range from the power supply end, thereby reducing restrictions on the power supply end and lowering the difficulty of temperature information collection.
[0118] In some application scenarios of the above-mentioned optional implementation methods, as shown in Figure 4A, which is a structural schematic diagram of another power control device provided in an embodiment of this application, the control unit includes a power supply module (i.e., the DC power supply in the figure), a power conversion module (i.e., the power conversion in the figure), and a main control module (i.e., the main control in the figure). The power conversion module is connected to the power supply module and the main control module, respectively. The power supply module and the main control module are also connected to the control unit 200, respectively.
[0119] The power supply module is used to supply power from the power supply terminal to the control unit 200.
[0120] The power conversion module described above is used to convert the voltage of the power supplied by the power supply module to the operating voltage of the main control module.
[0121] The main control module is used to: receive temperature information sent from the chip; determine whether to adjust the current power of the control unit based on the temperature information; if it is determined to adjust the current power, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0122] It is understandable that in the above application scenario, the power supply module can provide the power from the power supply terminal to the control unit, and the main control module can control the current power of the control unit. In this way, the matching degree between the power of the control unit and the temperature information corresponding to the power supply terminal can be improved.
[0123] In some application scenarios of the above-mentioned optional implementation methods, the temperature information represents the temperature of the temperature acquisition unit, the power control device is connected to the power supply terminal, and the control unit is connected to the power supply terminal via cable.
[0124] It is understandable that when the power control device is connected to the power supply terminal and the power control device is equipped with a temperature sensor, the temperature information can more accurately reflect the temperature of the power supply terminal.
[0125] The power control method provided in this application can acquire temperature information corresponding to the power supply terminal. This temperature information represents the temperature of the power supply terminal, or, when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal, the temperature of the temperature acquisition unit. Based on this temperature information, it is determined whether to adjust the current power of the control unit, where the distance between the control unit and the power supply terminal is greater than the first distance threshold. If it is determined that the current power should be adjusted, a target power for the control unit is determined based on the temperature information. Subsequently, the control unit is controlled to adjust its current power to the target power. Therefore, by using the temperature information corresponding to the power supply terminal, it is possible to determine whether to adjust the power of the control unit, thereby improving the matching degree between the power of the control unit (i.e., the product functional part) and the temperature information corresponding to the power supply terminal (i.e., the power supply part). For example, when the control unit uses higher power, causing the temperature information corresponding to the power supply terminal to rise, the current power of the control unit can be reduced; when the control unit uses lower power, causing the temperature information corresponding to the power supply terminal to be lower, the current power of the control unit can be increased or maintained. This ensures that the power supply terminal meets safety requirements and also ensures the working performance of the electrical equipment connected to the control unit.
[0126] Figure 2 is a flowchart illustrating another power control method provided in an embodiment of this application. As shown in Figure 2, the method specifically includes:
[0127] Step 201: Obtain the temperature information corresponding to the power supply terminal; wherein, the temperature information refers to: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within the first distance threshold range of the power supply terminal.
[0128] In this embodiment, step 201 is basically the same as step 101 in the embodiment corresponding to Figure 1, and will not be described again here.
[0129] Step 202: Determine whether the temperature represented by the above temperature information is greater than or equal to a preset temperature threshold, and obtain the determination result.
[0130] In this embodiment, the determination result can indicate whether the temperature represented by the temperature information is greater than or equal to a preset temperature threshold.
[0131] Step 203: Based on the above determination results, determine whether to adjust the current power of the control unit, wherein the power supply terminal provides power to the electrical equipment connected to the control unit, and the distance between the control unit and the power supply terminal is greater than the first distance threshold.
[0132] In this embodiment, if the temperature information is greater than or equal to a preset temperature threshold (e.g., 60 degrees Celsius, 70 degrees Celsius), then it can be determined to adjust (e.g., reduce) the current power of the control unit; if the temperature information is less than the preset temperature threshold, then it can be determined to adjust (e.g., increase) or not adjust (i.e., maintain) the current power of the control unit.
[0133] The control unit can be a device that requires power from a power source. For example, the control unit can be a detachable socket, electrical appliance, or similar device. In other words, the control unit and the power source can be in a detached or connected state. When the control unit and the power source are connected, the maximum connection distance between them can be the length of the cable connecting them.
[0134] Step 204: If the current power is adjusted as described above, the target power of the control unit is determined based on the temperature information described above.
[0135] In this embodiment, step 204 is basically the same as step 103 in the embodiment corresponding to Figure 1, and will not be described again here.
[0136] Step 205: Control the control unit to adjust the current power to the target power.
[0137] In this embodiment, step 205 is basically the same as step 104 in the embodiment corresponding to Figure 1, and will not be described again here.
[0138] In some optional implementations of this embodiment, the following method can be used to determine whether to adjust the current power of the control unit based on the above determination result:
[0139] The first step is to determine the duration during which the temperature information is greater than or equal to the preset temperature threshold, given that the above determination result indicates that the temperature information is greater than or equal to the preset temperature threshold.
[0140] The duration mentioned above refers to the duration for which the temperature information is continuously greater than or equal to the preset temperature threshold.
[0141] The second step is to determine whether the above duration is greater than or equal to the preset duration threshold.
[0142] The third step is to determine to reduce the current power of the control unit if the duration is greater than or equal to the preset duration threshold.
[0143] It is understandable that, among the above optional implementation methods, the effect of de-jitter filtering can be achieved by setting a preset duration threshold, thereby improving the accuracy of power control of the second device.
[0144] In some optional implementations of this embodiment, the following method can be used to determine whether to adjust the current power of the control unit based on the above determination result:
[0145] The first step is to generate the first signal based on the above-mentioned results.
[0146] The voltage level of the first signal is either high or low.
[0147] As an example, if the determined result indicates that the temperature information is greater than or equal to a preset temperature threshold, the first signal can be either a high-level signal or a low-level signal; if the determined result indicates that the temperature information is less than the preset temperature threshold, the first signal can also be either a high-level signal or a low-level signal. In other words, the correspondence between the content represented by the determined result and the level type (high-level or low-level) of the first signal can be determined according to the actual situation.
[0148] The second step is to determine whether to adjust the current power of the control unit based on the level type of the first signal mentioned above.
[0149] As an example, if the result indicates that the temperature information is greater than or equal to a preset temperature threshold, and if the level of the first signal is high, then it can be determined that the current power of the control unit should be adjusted (e.g., reduced); if the level of the first signal is low, then it can be determined that the current power of the control unit should not be adjusted (or may be adjusted, e.g., increased). Alternatively, if the result indicates that the temperature information is greater than or equal to a preset temperature threshold, and if the level of the first signal is high, then it can be determined that the current power of the control unit should not be adjusted (or may be adjusted, e.g., increased); if the level of the first signal is high, then it can be determined that the current power of the control unit should be adjusted (e.g., reduced).
[0150] It is understandable that, among the above optional implementation methods, the power control unit can be controlled by binary signals (such as GPIO signals and I2C signals).
[0151] In some optional implementations of this embodiment, the following method can be used to determine whether to adjust the current power of the control unit based on the above determination result:
[0152] The first step is to generate a second signal that conforms to the Universal Asynchronous Receiver / Transmitter Protocol (UAP) based on the above determination results.
[0153] The second signal includes a temperature status identifier, such as 0 or 1, indicating the determination result.
[0154] The second step is to analyze the second signal to obtain the temperature status indicator in the second signal.
[0155] The third step is to determine whether to adjust the current power of the control unit based on the temperature status indicators obtained from the analysis.
[0156] As an example, the second signal can include two data bytes: the first byte, UartData1, is the temperature status flag, TempOverFlag, and the second byte, UartData2, is the value of the current power reduction (i.e., the target power). Therefore, after parsing, we can first determine if the current temperature status flag, TempOverFlag, is 0. If it is 0, it means the temperature is less than the preset temperature threshold, and the check on the second byte, UartData2, can be ignored. If the current temperature status flag, TempOverFlag, is 1, it means the temperature is greater than or equal to the preset temperature threshold. Then, we check the second byte, UartData2, and update the current power, newPower, based on it. For example, if the second byte, UartData2, is 0xDC, it means the current power, newPower, needs to be adjusted to 200W (i.e., the target power). When the power allocation task detects that TempOverFlag is 1, the power reduction operation is performed. This is done by communicating with the protocol chip via the second signal and configuring the protocol chip's power to change to UartData2 (different power settings can be adjusted according to different needs).
[0157] It is understandable that, among the above optional implementation methods, the power control unit can be controlled by using a second signal that conforms to the Universal Asynchronous Receiver / Transmitter Protocol (UART).
[0158] It should be noted that, in addition to the contents described above, this embodiment may also include the corresponding technical features described in the embodiment corresponding to FIG1, thereby achieving the technical effect of the power control method shown in FIG1. For details, please refer to the relevant description in FIG1. For the sake of brevity, it will not be elaborated here.
[0159] The power control method provided in this application embodiment can achieve the effect of de-jitter filtering by setting a preset duration threshold, thereby improving the accuracy of power control of the second device.
[0160] Figure 3 is a schematic diagram of a power control device provided in an embodiment of this application. The power control device 300 specifically includes: a temperature acquisition unit 301 and a control unit 302, wherein the temperature acquisition unit 301 and the control unit 302 are connected.
[0161] The temperature acquisition unit 301 is used to: acquire temperature information corresponding to the power supply terminal; wherein the temperature information represents: the temperature of the power supply terminal, or the temperature of the temperature acquisition unit when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal; and transmit the temperature information to the control unit 302.
[0162] The control unit 302 is configured to: determine whether to adjust the current power of the control unit based on the temperature information, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0163] In some optional implementations of this embodiment, the temperature acquisition unit 301 includes a temperature sensor and a chip, the temperature sensor and the chip are signal connected, the chip is provided with a target interface, and the target interface includes at least one of the following: a general-purpose input / output interface, an integrated circuit interconnect interface, a pulse width modulation interface, and a general asynchronous transceiver interface.
[0164] The temperature sensor described above is used to: collect temperature information corresponding to the power supply terminal;
[0165] The chip is used to: acquire the temperature information; process the temperature information into a third signal that matches the target interface; and transmit the third signal to the control unit 302 through the target interface.
[0166] In some optional implementations of this embodiment, the control unit 302 includes a power supply module, a power conversion module, and a main control module. The power conversion module is connected to the power supply module and the main control module, respectively. The power supply module and the main control module are also connected to the control unit.
[0167] The power supply module described above is used to: provide power from the power supply terminal to the control unit described above;
[0168] The aforementioned power conversion module is used to convert the voltage of the power supplied by the aforementioned power supply module into the operating voltage of the aforementioned main control module;
[0169] The main control module is used to: receive temperature information sent from the chip; determine whether to adjust the current power of the control unit based on the temperature information; if it is determined to adjust the current power, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
[0170] In some optional implementations of this embodiment, the temperature information refers to the temperature of the temperature acquisition unit, the power control device is connected to the power supply terminal, and the control unit is connected to the power supply terminal via cable.
[0171] In some optional implementations of this embodiment, determining whether to adjust the current power of the control unit based on the temperature information includes:
[0172] Determine whether the temperature represented by the above temperature information is greater than or equal to a preset temperature threshold to obtain a determination result;
[0173] Based on the above results, determine whether to adjust the current power of the control unit.
[0174] Optionally, based on the above determination result, determining whether to adjust the current power of the control unit includes:
[0175] If the above determination result indicates that the temperature information is greater than or equal to the preset temperature threshold, determine the duration for which the temperature information is greater than or equal to the preset temperature threshold.
[0176] Determine whether the above duration is greater than or equal to a preset duration threshold;
[0177] If the duration is greater than or equal to the preset duration threshold, the current power of the control unit is reduced.
[0178] Optionally, based on the above determination result, determining whether to adjust the current power of the control unit includes:
[0179] Based on the above determination results, a first signal is generated; wherein the level type of the first signal is either high level or low level;
[0180] Based on the level type of the first signal mentioned above, it is determined whether to adjust the current power of the control unit.
[0181] Optionally, determining whether to adjust the current power of the control unit based on the aforementioned temperature information includes:
[0182] Based on the above temperature information and the preset correspondence, the duty cycle of the pulse width modulation signal to be generated is determined, wherein the above preset correspondence represents the correspondence between the temperature information and the duty cycle of the pulse width modulation signal.
[0183] Generate the pulse width modulation signal containing the above duty cycle;
[0184] Based on whether the duty cycle in the pulse width modulation signal is greater than or equal to a preset value, it is determined whether to adjust the current power of the control unit.
[0185] Optionally, based on the above determination result, determining whether to adjust the current power of the control unit includes:
[0186] Based on the above determination results, a second signal conforming to the Universal Asynchronous Receiver / Transmitter Protocol is generated, wherein the second signal includes a temperature status identifier representing the above determination results;
[0187] Analyze the second signal to obtain the temperature status identifier in the second signal.
[0188] Based on the temperature status indicator obtained from the analysis, it is determined whether to adjust the current power of the control unit.
[0189] The power control device provided in this embodiment can be the power control device shown in Figure 3, which can execute all the steps of the power control methods described above, thereby achieving the technical effects of the power control methods described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.
[0190] The embodiments of this application are described below by way of example. However, it should be noted that the embodiments of this application may have the features described below, but the following description does not constitute a limitation on the protection scope of the embodiments of this application.
[0191] First, the technical terms mentioned in the embodiments of this application are explained as follows:
[0192] PD: USB Power Delivery, a USB fast charging protocol standard.
[0193] MCU: microprogrammed control unit (smallest control unit).
[0194] I2C: A simple, bidirectional, two-wire synchronous serial bus communication protocol.
[0195] UART: Universal Asynchronous Receiver Transmitter.
[0196] C1: The first Type-C port.
[0197] C2: The second Type-C port.
[0198] C3: The third Type-C port.
[0199] C4: The fourth Type-C port.
[0200] SRAM: Static Random-Access Memory.
[0201] In existing technologies, the power supply and product functional components are designed separately, with the NTC sensor integrated into the product functional components. When the product functional components use high power, the temperature of the power supply cannot be communicated to the product functional components. Therefore, the product functional components cannot promptly reduce the power, causing the power supply temperature to rise continuously and exceed safety requirements. The reason why the product functional components cannot directly incorporate an NTC sensor to read the temperature is that the power supply and product functional components are two different parts, their temperatures may be inconsistent, and accurate temperature synchronization cannot be achieved.
[0202] In view of this, the solution provided in this application can be applied to scenarios where the power supply and functional components of a separate charging product are designed (the power supply and functional components can be separated) and the functional components of the product need to meet safety regulations when used at high power.
[0203] The following example, using the product framework diagram of 4C port 240W shown in Figure 4A, illustrates this solution.
[0204] In the diagram:
[0205] AC-DC refers to the power supply section, which converts AC power to the maximum voltage (e.g., 29V) that the charger output needs to support.
[0206] NTC stands for Temperature Sensor, used to sample the local temperature of the current product (i.e., the power control device).
[0207] IC stands for Non-Specified Chip, which is programmable and can be an IC that integrates synchronous rectification and NTC acquisition functions and has GPIO / PWM / UART interfaces.
[0208] It should be noted that Figure 4A only shows a schematic diagram of the IC being placed in the power topology section. In practice, the IC can be placed in the product function section.
[0209] In other words, the chip in this solution can be located in the temperature acquisition unit included in the power control device, or it can be located in the control unit included in the power control device.
[0210] DC power supply means that the AC / DC converted power is directly supplied to the protocol + DC / DC adjustment interface to the actual output voltage required (e.g., 5V~28V).
[0211] The power conversion module is used to convert DC power to the operating voltage (3.3V / 5V) required by the main controller.
[0212] Protocol+DC can be a protocol IC that integrates protocol+DC functions.
[0213] C1~C4: Indicates rechargeable output interfaces.
[0214] Solution Design ①: Designed by transmitting GPIO signals, please refer to Figure 4B:
[0215] After the device (i.e., the power control unit mentioned above) is powered on, the main control module performs system initialization (configuring the performance parameters of the peripherals to be run). By default, it starts in a non-over-temperature state, i.e., the over-temperature flag parameter TempOverFlag is 0. Then, it starts detecting the interface insertion status and performs power allocation according to the interface insertion status. For example, if the insertion is a single C1 port, the main control unit communicates with the protocol chip C1 via I2C signal and configures the power of the C1 protocol chip to be changed to 240W. (The same configuration applies to the corresponding protocol IC for single C2 / C3 / C4 insertions). During interface insertion detection and power setting, the main controller reads the signal line status of the power supply section. Assuming it's defined with the power supply IC that the signal line is high when not over-temperature and low when over-temperature (and vice versa), the over-temperature status, i.e., the over-temperature flag parameter TempOverFlag, is updated under the following conditions: TH (duration of the high-level signal) is greater than 3 seconds (TempOverFlag = 0) or TL (duration of the low-level signal) is greater than 3 seconds (TempOverFlag = 1). (The time is used for debouncing filtering; for example, if a low level occurs for 2 seconds and then a high level occurs, the low-level timeout TL needs to be cleared). When the main controller detects a low-level signal line, it starts timing the low-level timeout TL and simultaneously clears the high-level timeout TH. When the main controller detects a high-level signal line, it starts timing the high-level timeout TH. Simultaneously, the low-level timer TL is cleared. If TL remains longer than 3 seconds, the over-temperature flag parameter TempOverFlag is set to 1. If TL remains longer than 3 seconds, the over-temperature flag parameter TempOverFlag is set to 0. When the main controller detects that the over-temperature flag parameter TempOverFlag is 1 during the power allocation task, a power reduction operation is performed. The main controller communicates with the protocol chip C1 via the I2C signal and configures the power of the C1 protocol chip to be changed to 220W (this is an assumption that a 20W reduction is needed; different power levels can be adjusted for different needs). When the main controller detects that the over-temperature flag parameter TempOverFlag is 0 during the power allocation task, a normal power setting operation is performed. The main controller communicates with the protocol chip C1 via the I2C signal and configures the power of the C1 protocol chip to be changed to 240W. Thus, the power reduction operation is achieved through the transmission of GPIO signals in the power supply section. The principle is the same when connecting ports 2 to 4.
[0216] Scheme Design ②: Designed by transmitting PWM signals, see Figure 4C:
[0217] After the device (i.e., the aforementioned power control device) is powered on, the main control module performs system initialization (configuring the peripherals that need to run). The default startup state is non-over-temperature, meaning the over-temperature flag parameter (i.e., the aforementioned temperature status indicator) TempOverFlag is 0. Then, it starts detecting the interface insertion status and allocates power accordingly. For example, if the insertion is a single C1 port, the main control communicates with the protocol chip C1 via I2C and configures the power of the C1 protocol chip to 240W. (The same configuration applies to single C2 / C3 / C4 insertions, corresponding to the corresponding protocol ICs). Simultaneously with interface insertion detection and power setting, the main control reads the signal status transmitted by the power supply section in real time through the PWM capture function. It can read the duty cycle of the currently received PWM signal as P (in %). Assuming it's defined with the power supply IC that P is 0% in the non-over-temperature state and non-0% indicates an over-temperature state, the current interface power is adjusted based on the duty cycle. The adjustment algorithm is the total power multiplied by the duty cycle to obtain the power reduction value. Changing the over-temperature state, i.e., the over-temperature flag parameter TempOverFlag... The update condition for AG is either that the time PT1 when P is non-0% is greater than 3 seconds (TempOverFlag = 1) or the time PT0 when P is 0% is greater than 3 seconds (TempOverFlag = 0) (the time is used for debouncing filtering; for example, if the time PT1 when P is non-0% lasts for 2 seconds, and then P becomes 0%, then the time PT1 when P is non-0% needs to be cleared). When the main controller detects that the state of signal line P is 0%, it starts timing the time PT0 when P is 0%, and simultaneously clears the time PT1 when P is non-0%. If line P is in a non-0% state, timing begins with P at the non-0% timing time PT1, and simultaneously P is reset to the 0% timing time PT0. If PT1 remains greater than 3 seconds, the over-temperature flag parameter TempOverFlag is set to 1; if PT0 remains greater than 3 seconds, the over-temperature flag parameter TempOverFlag is set to 0. When the main controller detects that the over-temperature flag parameter TempOverFlag is 1 during power allocation, it performs a power reduction operation. The main controller communicates with the protocol chip C1 via I2C signal and configures the C1 protocol chip. The power is changed to 240W * duty cycle P (assuming a duty cycle of 90%, then it is 240 × 0.90 = 216W; different power can be adjusted according to different needs). When the main controller detects that the over-temperature flag parameter TempOverFlag is 0 when running the power allocation task, it performs normal power setting operation. The main controller communicates with the protocol chip C1 through the I2C signal and configures the power of the C1 protocol chip to be changed to 240W. Thus, the power reduction operation is realized through the transmission of the PWM signal in the power supply section. The principle is the same when connecting from port 2 to port 4.
[0218] Scheme Design ③: Designed by transmitting UART signals, see Figure 4D:
[0219] After the device (i.e. the power control device) is powered on, the main controller performs system initialization (configures the peripherals that need to run). The default startup state is not over-temperature, that is, the over-temperature flag parameter TempOverFlag is 0. Then, it starts to detect the interface insertion status and performs power allocation according to the interface insertion status. For example, if the insertion is a single C1 port, the main controller communicates with the protocol chip C1 through the UART signal and configures the power of the C1 protocol chip to be changed to 240W. (The same configuration applies to single C2 / C3 / C4 insertions, corresponding to the corresponding protocol ICs). During interface insertion detection and power setting, the main controller receives UART signals from the power IC and parses the UART protocol in real time. A custom UART protocol can be used to achieve temperature transmission or direct power reduction adjustment. Temperature transmission works by synchronizing the real-time temperature of the power supply section to the product function section via a serial port protocol. The product function section then triggers a power reduction value based on the set temperature to control the power supply temperature. Direct power reduction adjustment is designed so that the serial port protocol directly transmits the required power reduction value to the product function section, which then adjusts the power allocation based on the power reduction amount. Taking direct power reduction adjustment as an example, when the main controller receives a serial port data frame, it parses the data frame. After verifying that there are no problems, it parses two data bytes. The first byte, UartData1, is the temperature status identifier TempOverFlag, and the second byte, UartData2, is the current required power reduction value. The main controller first determines the current... If the TempOverFlag value is 0, it indicates that the temperature is not overheated, and the judgment of the second byte UartData2 can be ignored. When the main controller determines that the current temperature TempOverFlag is 1, it means that the power supply section has overheated. Then, it checks the second byte UartData2 and updates the current output power newPower according to the second byte UartData2. For example, if the second byte UartData2 is 0xDC, it means that the current output power newPower needs to be adjusted to 200W. When the main controller detects that the overheating flag parameter TempOverFlag is 1 when running the power allocation task, it performs a power reduction operation. The main controller communicates with the protocol chip C1 through the I2C signal and configures the power of the C1 protocol chip to be changed to UartData2 (different power can be adjusted according to different needs). Thus, the power reduction operation is realized through the transmission of the UART signal of the power supply section. The principle is the same when connecting from 2 to 4 ports.
[0220] It should be noted that, in addition to the contents described above, this embodiment may also include the technical features described in the above embodiments, thereby achieving the technical effects of the power control method shown above. Please refer to the above description for details. For the sake of brevity, it will not be elaborated here.
[0221] This solution achieves temperature synchronization and power adjustment through signal interaction, ensuring safety and meeting regulatory design requirements. Furthermore, the single-wire PWM design reduces one wire compared to a two-wire serial communication design, decreasing cable size and cost. It allows for stepless adjustment of the required power reduction range, improving power utilization.
[0222] Figure 5 is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 500 shown in Figure 5 includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together through a bus system 505. It is understood that the bus system 505 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 505 in Figure 5.
[0223] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0224] It is understood that the memory 502 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0225] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.
[0226] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this application embodiment can be included in application program 5022.
[0227] In this embodiment, by calling the program or instructions stored in memory 502, specifically the program or instructions stored in application program 5022, processor 501 executes the method steps provided in each method embodiment, including, for example:
[0228] Acquire the temperature information corresponding to the power supply terminal; wherein, the temperature information refers to: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within the first distance threshold range of the power supply terminal.
[0229] Based on the above temperature information, it is determined whether to adjust the current power of the control unit, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold.
[0230] Given that the current power needs to be adjusted, the target power of the control unit is determined based on the temperature information.
[0231] The control unit adjusts the current power to the target power.
[0232] The methods disclosed in the embodiments of this application can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or can be executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.
[0233] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described above, or combinations thereof.
[0234] For software implementation, the techniques described herein can be implemented by units that perform the functions described above. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or external to the processor.
[0235] The electronic device provided in this embodiment can be the electronic device shown in Figure 5, which can execute all the steps of the above-mentioned power control methods, thereby achieving the technical effects of the above-mentioned power control methods. For details, please refer to the above-mentioned descriptions. For the sake of brevity, it will not be elaborated here.
[0236] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0237] One or more programs in the storage medium can be executed by one or more processors to implement the power control method described above that is executed on the electronic device side.
[0238] The processor described above is used to execute a power control program stored in memory to implement the following steps of a power control method executed on the electronic device side:
[0239] Acquire the temperature information corresponding to the power supply terminal; wherein, the temperature information refers to: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within the first distance threshold range of the power supply terminal.
[0240] Based on the above temperature information, it is determined whether to adjust the current power of the control unit, wherein the power supply terminal provides power to the electrical equipment connected to the control unit, and the distance between the control unit and the power supply terminal is greater than the first distance threshold.
[0241] Given that the current power needs to be adjusted, the target power of the control unit is determined based on the temperature information.
[0242] The control unit adjusts the current power to the target power.
[0243] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0244] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0245] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0246] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A power control method, wherein, The method includes: Acquire temperature information corresponding to the power supply terminal; wherein, the temperature information represents: the temperature of the power supply terminal, or, the temperature of the temperature acquisition unit when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal; Based on the temperature information, it is determined whether to adjust the current power of the control unit, wherein the power supply provides power to the electrical equipment connected to the control unit, and the distance between the control unit and the power supply is greater than the first distance threshold. If it is determined that the current power should be adjusted, the target power of the control unit is determined based on the temperature information; The control unit is instructed to adjust the current power to the target power.
2. The method according to claim 1, wherein, The step of determining whether to adjust the current power of the control unit based on the temperature information includes: Determine whether the temperature represented by the temperature information is greater than or equal to a preset temperature threshold to obtain a determination result; Based on the determination result, it is determined whether to adjust the current power of the control unit.
3. The method according to claim 2, wherein, The step of determining whether to adjust the current power of the control unit based on the determination result includes: If the determination result indicates that the temperature information is greater than or equal to the preset temperature threshold, determine the duration for which the temperature information is greater than or equal to the preset temperature threshold; Determine whether the duration is greater than or equal to a preset duration threshold; If the duration is greater than or equal to the preset duration threshold, it is determined to reduce the current power of the control unit.
4. The method according to claim 2, wherein, The step of determining whether to adjust the current power of the control unit based on the determination result includes: Based on the determination result, a first signal is generated; wherein the level type of the first signal is high level or low level; Based on the level type of the first signal, determine whether to adjust the current power of the control unit.
5. The method according to claim 1, wherein, The step of determining whether to adjust the current power of the control unit based on the temperature information includes: Based on the temperature information and the preset correspondence, the duty cycle of the pulse width modulation signal to be generated is determined, wherein the preset correspondence represents the correspondence between the temperature information and the duty cycle of the pulse width modulation signal; Generate the pulse width modulation signal containing the duty cycle; Based on whether the duty cycle in the pulse width modulation signal is greater than or equal to a preset value, it is determined whether to adjust the current power of the control unit.
6. The method according to claim 2, wherein, The step of determining whether to adjust the current power of the control unit based on the determination result includes: Based on the determination result, a second signal conforming to the Universal Asynchronous Receiver / Transmitter Protocol is generated, wherein the second signal includes a temperature status identifier representing the determination result; Analyze the second signal to obtain the temperature status identifier in the second signal; Based on the temperature status identifier obtained through analysis, it is determined whether to adjust the current power of the control unit.
7. A power control device, wherein, The power control device includes a temperature acquisition unit and a control unit, and the temperature acquisition unit and the control unit are connected together; The temperature acquisition unit is used to: acquire temperature information corresponding to the power supply terminal connected to the temperature acquisition unit; wherein, the temperature information represents: the temperature of the power supply terminal, or, when the temperature acquisition unit is set within a first distance threshold range of the power supply terminal; and transmit the temperature information to the control unit. The control unit is configured to: determine whether to adjust the current power of the control unit based on the temperature information, wherein the distance between the control unit and the power supply terminal is greater than the first distance threshold; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
8. The power control device according to claim 7, wherein, The temperature acquisition unit includes a temperature sensor and a chip. The temperature sensor and the chip are signal-connected. The chip is provided with a target interface, which includes at least one of the following: a general-purpose input / output interface, an integrated circuit interconnection interface, a pulse width modulation interface, and a general asynchronous transceiver interface. The temperature sensor is used to: collect temperature information corresponding to the power supply terminal; The chip is used to: acquire the temperature information; process the temperature information into a third signal that matches the target interface; and transmit the third signal to the control unit through the target interface.
9. The power control device according to claim 8, wherein, The control unit includes a power supply module, a power conversion module, and a main control module. The power conversion module is connected to the power supply module and the main control module, respectively. The power supply module and the main control module are also connected to the control unit and the chip, respectively. The power supply module is used to: provide power from the power supply terminal to the control unit; The power conversion module is used to convert the voltage of the power supplied by the power supply module into the operating voltage of the main control module; The main control module is used to: receive temperature information sent from the chip; determine whether to adjust the current power of the control unit based on the temperature information; if it is determined that the current power should be adjusted, determine the target power of the control unit based on the temperature information; and control the control unit to adjust the current power to the target power.
10. The power control device according to any one of claims 7-9, wherein, The temperature information represents the temperature of the temperature acquisition unit, the power control device is connected to the power supply terminal, and the control unit is connected to the power supply terminal via cable.
Citation Information
Patent Citations
Power receiving equipment control method and device, computer equipment and storage medium
CN111130090A
Power battery cooling control method and device and electric vehicle
CN111509331A
Wireless charging device and electrical equipment
CN114157045A
Power supply equipment, temperature protection method, temperature protection device and readable storage medium
CN115347639A
Method and device for controlling power of electric appliance based on temp.
CN1435930A