Power distribution method and device, electronic equipment, storage medium and vehicle
By setting target power limits to allocate the power of compressors and car heaters in new energy vehicles, the fluctuation problem in power control of air-heated PTCs and compressors is solved, and the charge-discharge matching of the battery and the vehicle are improved. Accuracy of power distribution among internal components.
Patent Information
- Application Number
- CN202410771344.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
In new energy vehicles, the air-heated PTC and compressor have power fluctuations during power control, causing the battery to be overcharged or overdischarged, and the pulse width modulation method cannot accurately feedback the actual power consumption, resulting in a problem between the thermal management controller and the vehicle controller. The power request difference between them is too large, affecting battery discharge matching.
By determining the required power of the compressor and car heater, set the target limit power so that the total actual power consumption does not exceed the target limit power, and allocate power based on this to ensure the actual power consumption and reasonable adjustment of the compressor and car heater. , improve the accuracy of power distribution.
It achieves the accuracy of power distribution of various components of the vehicle, stably controls the power distribution of various components inside the vehicle, avoids overcharging or over-discharging of the battery, and improves the charge and discharge matching of the vehicle battery.
Smart Images

Figure CN118722148A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a power distribution method, device, electronic device, storage medium and vehicle. Background Art
[0002] With the rapid development of new energy vehicles, positive temperature coefficient thermistors (PTC) and compressors are currently used in new energy vehicles to achieve heating and cooling of the passenger compartment. However, there are power fluctuation problems in the use of air-heating PTC and compressors. If the power control algorithm is not accurate enough, the unreasonable power distribution of the vehicle will cause the battery to overcharge or over-discharge.
[0003] At present, air-heating PTC is mostly controlled by pulse width modulation (PWM), which results in unstable actual power consumption. In addition, the sampling period and communication period of air-heating PTC are relatively long, and the actual power consumption cannot be accurately fed back. As a result, the difference between the requested power sent by the thermal management controller to the vehicle control unit (VCU) and the actual power consumption is too large, causing the battery discharge power to not match the power consumption, resulting in overcharge or over-discharge of the battery, the inability of the air-heating PTC to heat up, and the inability of the compressor to adjust. Therefore, the current accuracy of allocating power to various components in the vehicle is low. Summary of the invention
[0004] The present application provides a power distribution method, device, electronic device, storage medium and vehicle to at least solve the technical problem of low accuracy in power distribution to various components in the vehicle in the related art. The technical solution of the present application is as follows:
[0005] According to a first aspect provided by the present application, a power allocation method is provided, which is applied to a vehicle, wherein the vehicle includes a compressor and a car heater, and the method includes: determining the required power of the compressor and the required power of the car heater at a current moment; determining a target power limit based on the required power of the compressor and the required power of the car heater, wherein the target power limit is used to limit the total actual power consumption corresponding to the compressor and the car heater at the current moment, wherein the target power limit is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the car heater at the current moment; and allocating power to the compressor and the car heater based on the target power limit.
[0006] According to the above technical means, the present application can determine the required power of the compressor and the required power of the car heater in real time, and then determine the target limit power for limiting the total actual power consumption corresponding to the compressor and the car heater based on the required power of the compressor and the required power of the car heater. The power allocated to the compressor and the car heater is limited based on the determined target limit power, so that the sum of the actual power consumption of the compressor and the actual power consumption of the car heater does not exceed the target limit power. Through the above method, a reasonable limit parameter (i.e., target limit power) can be determined based on the required power of the compressor and the car heater, so as to accurately adjust the power allocated to the compressor and the car heater based on the determined limit parameters. Thus, the power allocated to each component in the vehicle can be stably controlled, and the accuracy of power allocation to each component in the vehicle can be improved.
[0007] In a possible implementation, the above-mentioned determination of the required power of the compressor and the required power of the car heater at the current moment includes: determining the required power of the compressor based on a first parameter corresponding to the compressor at the current moment, the first parameter including at least one of the following: a first preset power, the actual power consumption of the compressor, and a first adjusted power, the first adjusted power being used to determine the required power when the compressor is in the on state; determining the required power of the car heater based on a second parameter corresponding to the car heater at the current moment, the second parameter including at least one of the following: a second preset power, the actual power consumption of the car heater, and a second adjusted power, the second adjusted power being used to determine the required power when the car heater is in the on state.
[0008] According to the above technical means, the present application can accurately determine the required power of the compressor based on the first parameter corresponding to the compressor at the current moment; and accurately determine the required power of the car heater based on the second parameter corresponding to the car heater at the current moment. Therefore, based on the accurate required power, the target limit power is accurately determined in the subsequent process, and the power is accurately allocated to the compressor and the car heater, thereby improving the accuracy of power allocation to various components in the vehicle.
[0009] In a possible implementation, the above-mentioned determination of the required power of the compressor based on the first parameter corresponding to the compressor at the current moment includes: when the state of the compressor at the current moment is switched from the off state to the on state, the first preset power is determined as the required power of the compressor; when the limited power of the compressor is less than the first preset power, the required power of the compressor is adjusted to a third preset power, and the third preset power is less than the limited power of the compressor.
[0010] According to the above technical means, the present application can accurately determine the required power of the compressor when the compressor is switched from the off state to the on state according to the state of the compressor, and adjust the required power of the compressor based on the limited power of the compressor, thereby further improving the accuracy of determining the required power of the compressor.
[0011] In a possible implementation, the above-mentioned determination of the required power of the compressor based on the first parameter corresponding to the compressor at the current moment includes: when the state of the compressor at the current moment is the on state, determining the first adjustment power based on the difference between the target power and the actual power consumption of the compressor, the target power being the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the compressor is different, and the corresponding first adjustment power is different; the sum of the actual power consumption of the compressor and the first adjustment power is determined as the required power of the compressor.
[0012] According to the above technical means, the present application can accurately determine the required power of the compressor based on the target power and the actual power consumption of the compressor according to the state of the compressor when the compressor is in the on state, thereby further improving the accuracy of determining the required power of the compressor.
[0013] In a possible implementation, the above-mentioned determination of the first adjustment power based on the difference between the target power and the actual power consumption of the compressor includes: when the difference between the target power and the actual power consumption of the compressor is greater than 0, determining the first adjustment power from a preset comparison table, the preset comparison table including adjustment powers corresponding to different differences; when the difference between the target power and the actual power consumption of the compressor is less than or equal to 0, determining the first adjustment power to be 0.
[0014] According to the above technical means, the present application can determine the specific first adjustment power according to the difference between the target power and the actual power consumption of the compressor when the difference is different, so as to accurately determine the required power of the compressor based on the first adjustment power in the future, thereby further improving the accuracy of determining the required power of the compressor.
[0015] In a possible implementation, the above-mentioned determining the required power of the vehicle heater based on the second parameter corresponding to the vehicle heater at the current moment includes: when the state of the vehicle heater is switched from the off state to the on state at the current moment, determining the second preset power as the required power of the vehicle heater; when the limited power of the vehicle heater is less than the second preset power, adjusting the required power of the vehicle heater to a fourth preset power, and the fourth preset power is less than the limited power of the vehicle heater.
[0016] According to the above technical means, the present application can accurately determine the required power of the car heater according to the state of the car heater when the state of the car heater is switched from the off state to the on state, and adjust the required power of the car heater based on the limited power of the car heater, thereby further improving the accuracy of determining the required power of the car heater.
[0017] In a possible implementation, the above-mentioned determining the required power of the vehicle heater based on the second parameter corresponding to the vehicle heater at the current moment includes: when the state of the vehicle heater at the current moment is on, determining the second adjustment power based on the difference between the target power and the actual power consumption of the vehicle heater, the target power being the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the vehicle heater is different, and the corresponding second adjustment power is different; determining the sum of the actual power consumption of the vehicle heater and the second adjustment power as the required power of the vehicle heater.
[0018] According to the above technical means, the present application can accurately determine the required power of the car heater based on the target power and the actual power consumption of the car heater when the car heater is turned on, thereby further improving the accuracy of determining the required power of the car heater.
[0019] In a possible implementation, the method further includes: determining a priority of the compressor and a priority of the vehicle heater. Allocating power to the compressor and the vehicle heater based on the target power limit includes: allocating power to the compressor and the vehicle heater in descending order of priority based on the target power limit, the priority of the compressor and the priority of the vehicle heater.
[0020] According to the above technical means, the present application can further allocate power to the compressor and the car heater in descending order of priority based on the priority of the compressor and the priority of the car heater, so as to preferentially allocate power to the devices with higher priority.
[0021] In a possible implementation, the above-mentioned method of allocating power to the compressor and the car heater in descending order of priority based on the target limit power, the priority of the compressor and the priority of the car heater includes: when the priority of the first device is higher than the priority of the second device, determining the limit power of the first device based on the target limit power, the limit power of the first device is less than or equal to the target limit power, and the first device and the second device are different devices in the compressor and the car heater; determining the difference between the target limit power and the limit power of the first device as the limit power of the second device; allocating power to the first device based on the limit power of the first device, and allocating power to the second device based on the limit power of the second device.
[0022] According to the above technical means, the present application can limit power based on the target and give priority to meeting the power requirements of devices with higher priority, so that after allocating power to devices with higher priority and meeting the power requirements of devices with higher priority, the power requirements of devices with lower priority can be met based on the remaining power.
[0023] In a possible implementation, the method further includes: when the duration of the limited power of the compressor being less than the fifth preset power reaches a first preset duration, adjusting the required power of the compressor to 0, and the fifth preset power is less than the first preset power; when the duration of the limited power of the vehicle heater being less than the sixth preset power reaches a second preset duration, adjusting the required power of the vehicle heater to 0, and the sixth preset power is less than the second preset power.
[0024] According to the above technical means, the present application can adjust the required power of the compressor or the required power of the car heater to 0 when the limited power of the compressor or the limited power of the car heater is less than a preset threshold. That is, when the limited power is too small, the vehicle cannot meet the power demand of the compressor or the car heater, and the compressor or the car heater can be directly turned off to ensure the safety of the vehicle.
[0025] According to a second aspect provided by the present application, a power distribution device is provided, which is applied to a vehicle, wherein the vehicle includes a compressor and a car heater, and the power distribution device includes: a processing module; the processing module is used to determine the required power of the compressor and the required power of the car heater at a current moment; the processing module is also used to determine a target limit power based on the required power of the compressor and the required power of the car heater, the target limit power is used to limit the total actual power consumption corresponding to the compressor and the car heater at the current moment, and the target limit power is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the car heater at the current moment; the processing module is also used to allocate power to the compressor and the car heater based on the target limit power.
[0026] In a possible implementation, the processing module is specifically used to determine the required power of the compressor based on a first parameter corresponding to the compressor at a current moment, the first parameter including at least one of the following: a first preset power, the actual power consumption of the compressor, and a first adjusted power, the first adjusted power being used to determine the required power when the compressor is in an on state; the processing module is specifically used to determine the required power of the vehicle heater based on a second parameter corresponding to the vehicle heater at a current moment, the second parameter including at least one of the following: a second preset power, the actual power consumption of the vehicle heater, and a second adjusted power, the second adjusted power being used to determine the required power when the vehicle heater is in an on state.
[0027] In one possible implementation, the processing module is specifically used to determine the first preset power as the required power of the compressor when the state of the compressor is switched from the off state to the on state at the current moment; the processing module is specifically used to adjust the required power of the compressor to a third preset power when the limited power of the compressor is less than the first preset power, and the third preset power is less than the limited power of the compressor.
[0028] In one possible implementation, the processing module is specifically used to determine the first adjustment power based on the difference between the target power and the actual power consumption of the compressor when the compressor is in the on state at the current moment, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the compressor is different, and the corresponding first adjustment power is different; the processing module is specifically used to determine the sum of the actual power consumption of the compressor and the first adjustment power as the required power of the compressor.
[0029] In one possible implementation, the processing module is specifically used to determine the first adjustment power from a preset comparison table when the difference between the target power and the actual power consumption of the compressor is greater than 0, and the preset comparison table includes adjustment powers corresponding to different differences; the processing module is specifically used to determine that the first adjustment power is 0 when the difference between the target power and the actual power consumption of the compressor is less than or equal to 0.
[0030] In a possible implementation, the processing module is specifically used to determine the second preset power as the required power of the vehicle heater when the state of the vehicle heater is switched from the off state to the on state at the current moment; the processing module is specifically used to adjust the required power of the vehicle heater to a fourth preset power when the limited power of the vehicle heater is less than the second preset power, and the fourth preset power is less than the limited power of the vehicle heater.
[0031] In a possible implementation, the processing module is specifically used to determine the second adjustment power based on the difference between the target power and the actual power consumption of the car heater when the car heater is in the on state at the current moment, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the car heater is different, and the corresponding second adjustment power is different; the processing module is specifically used to determine the sum of the actual power consumption of the car heater and the second adjustment power as the required power of the car heater.
[0032] In one possible implementation, the processing module is further used to determine the priority of the compressor and the priority of the vehicle heater; the processing module is specifically used to allocate power to the compressor and the vehicle heater in descending order of priority based on the target limit power, the priority of the compressor and the priority of the vehicle heater.
[0033] In one possible implementation, the processing module is specifically used to determine the limited power of the first device based on the target limited power when the priority of the first device is higher than the priority of the second device, the limited power of the first device is less than or equal to the target limited power, and the first device and the second device are different devices in the compressor and the car heater; the processing module is specifically used to determine the difference between the target limited power and the limited power of the first device as the limited power of the second device; the processing module is specifically used to allocate power to the first device based on the limited power of the first device, and allocate power to the second device based on the limited power of the second device.
[0034] In one possible implementation, the processing module is further used to adjust the required power of the compressor to 0, and the fifth preset power is less than the first preset power, when the duration during which the limited power of the compressor is less than the fifth preset power reaches a first preset time; the processing module is further used to adjust the required power of the vehicle heater to 0, and the sixth preset power is less than the second preset power, when the duration during which the limited power of the vehicle heater is less than the sixth preset power reaches a second preset time.
[0035] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0036] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0037] According to a fifth aspect provided by the present application, a vehicle is provided, the vehicle comprising a power distribution device as in the second aspect, the vehicle being used to implement a method as in the first aspect and any possible implementation manner thereof.
[0038] According to the sixth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0039] Therefore, the above technical features of the present application have the following beneficial effects:
[0040] (1) The present application can determine the power requirements of the compressor and the car heater in real time, and then determine the target power limit for limiting the total actual power consumption corresponding to the compressor and the car heater based on the power requirements of the compressor and the car heater. The power allocated to the compressor and the car heater is limited based on the determined target power limit, so that the sum of the actual power consumption of the compressor and the actual power consumption of the car heater does not exceed the target power limit. Through the above method, a reasonable limiting parameter (i.e., the target power limit) can be determined based on the power requirements of the compressor and the car heater, so that the power allocated to the compressor and the car heater can be accurately adjusted based on the determined limiting parameters. In this way, the power allocated to each component in the vehicle can be stably controlled, and the accuracy of power allocation to each component in the vehicle can be improved.
[0041] (2) The present application can accurately determine the required power of the compressor based on the first parameter corresponding to the compressor at the current moment; and accurately determine the required power of the car heater based on the second parameter corresponding to the car heater at the current moment. Therefore, based on the accurate required power, the target limit power can be accurately determined in the subsequent process, and the power can be accurately allocated to the compressor and the car heater, thereby improving the accuracy of power allocation to various components in the vehicle.
[0042] (3) The present application can accurately determine the required power of the compressor when the compressor is switched from the off state to the on state according to the state of the compressor, and adjust the required power of the compressor based on the limited power of the compressor, thereby further improving the accuracy of determining the required power of the compressor.
[0043] (4) The present application can accurately determine the required power of the compressor based on the target power and the actual power consumption of the compressor according to the state of the compressor, when the compressor is in the on state, thereby further improving the accuracy of determining the required power of the compressor.
[0044] (5) The present application can determine the specific first adjustment power according to the difference between the target power and the actual power consumption of the compressor when the difference is different, so as to accurately determine the required power of the compressor based on the first adjustment power in the future, thereby further improving the accuracy of determining the required power of the compressor.
[0045] (6) The present application can accurately determine the required power of the vehicle heater according to the state of the vehicle heater when the state of the vehicle heater is switched from the off state to the on state, and adjust the required power of the vehicle heater based on the limited power of the vehicle heater, thereby further improving the accuracy of determining the required power of the vehicle heater.
[0046] (7) The present application can accurately determine the required power of the vehicle heater based on the target power and the actual power consumption of the vehicle heater according to the state of the vehicle heater, when the vehicle heater is in the on state, thereby further improving the accuracy of determining the required power of the vehicle heater.
[0047] (8) The present application can further allocate power to the compressor and the car heater in descending order of priority based on the priority of the compressor and the priority of the car heater, so as to preferentially allocate power to the devices with higher priority.
[0048] (9) The present application can limit power based on the target, give priority to meeting the power requirements of devices with higher priority, so that after allocating power to the devices with higher priority, the power requirements of devices with higher priority are met, and then the power requirements of devices with lower priority are met based on the remaining power.
[0049] (10) The present application can adjust the required power of the compressor or the required power of the car heater to 0 when the limited power of the compressor or the limited power of the car heater is less than a preset threshold. That is, when the limited power is too small, the vehicle cannot meet the power demand of the compressor or the car heater, and the compressor or the car heater can be directly turned off to ensure the safety of the vehicle.
[0050] It should be noted that the technical effects brought about by any implementation method in the second to sixth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.
[0051] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0053] Figure 1 is a schematic structural diagram of a power distribution system according to an exemplary embodiment;
[0054] Figure 2 is a flow chart of a power allocation method according to an exemplary embodiment;
[0055] Figure 3 is a flow chart of another power allocation method according to an exemplary embodiment;
[0056] Figure 4is a flow chart of another power allocation method according to an exemplary embodiment;
[0057] Figure 5 is a flow chart of another power allocation method according to an exemplary embodiment;
[0058] Figure 6 is a block diagram of a power distribution device according to an exemplary embodiment;
[0059] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0061] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0062] The power distribution method provided in the embodiment of the present application can be applied to a power distribution system. Figure 1 FIG. 1 shows a schematic diagram of the structure of a power distribution system. Figure 1 As shown, the power distribution system 10 includes: a vehicle controller 11, a thermal management controller 12, a compressor 13 and a vehicle heater 14.
[0063] The vehicle controller 11 is used to calculate the available power of the vehicle according to the battery capacity, and allocate available power to each controller based on the corresponding priority according to the corresponding energy consumption of different controllers under various working conditions (i.e. determine the limit power).
[0064] The thermal management controller 12 is used to allocate power to the compressor and the car heater according to the set temperature set by the user for the air conditioner, the ambient temperature, the battery heating / cooling request, the temperature of each water circuit, the available power allocated to the thermal management controller 12 by the vehicle controller 11 (i.e., the limited power for the compressor and the car heater), and the priority of heating / cooling, and calculate the required power of the compressor and the car heater. It can also send a request for power to the vehicle controller 11 based on the actual power consumption and required power of the compressor and the car heater.
[0065] The compressor 13 is used in the automobile air conditioning refrigeration system, and the automobile heater 14 is used in the automobile air conditioning heating system.
[0066] The thermal management controller 12 may determine the required power of the compressor and the required power of the vehicle heater at the current moment, and send the determination results to the vehicle controller 11 .
[0067] The vehicle controller 11 can determine the target power limit based on the required power of the compressor 13 and the required power of the vehicle heater 14, and send it to the thermal management controller 12. The target power limit is used to limit the total actual power consumption corresponding to the compressor 13 and the vehicle heater 14 at the current moment, and the target power limit is greater than or equal to the sum of the actual power consumption of the compressor 13 and the actual power consumption of the vehicle heater 14 at the current moment.
[0068] The thermal management controller 12 may also determine the limit power of the compressor 13 and the limit power of the vehicle heater 14 based on the target limit power, and allocate power to the compressor 13 and the vehicle heater 14 .
[0069] For ease of understanding, the power allocation method provided in the present application is described in detail below with reference to the accompanying drawings.
[0070] Figure 2 is a flow chart of a power allocation method according to an exemplary embodiment. Figure 2 As shown, the power distribution method is applied to a vehicle, the vehicle includes a compressor and a car heater, and the method includes the following S201-S203:
[0071] S201 , determining the required power of the compressor and the required power of the vehicle heater at the current moment.
[0072] In the embodiment of the present application, the vehicle may be a range-extended electric vehicle, a hybrid vehicle, a pure electric vehicle, etc., and an air conditioning system may be installed on the vehicle, and the passenger compartment may be cooled by a compressor or heated by a vehicle heater. Specifically, the vehicle heater may be an air-heated PTC.
[0073] It should be noted that PTC refers to semiconductor materials or components with a large positive temperature coefficient. It usually refers to positive temperature coefficient thermistor, or PTC thermistor for short. PTC thermistor is a temperature-sensitive semiconductor resistor. When the temperature exceeds a certain value (Curie temperature), its resistance value increases stepwise as the temperature rises.
[0074] Optionally, after the vehicle is powered on, when the user turns on the air conditioning system on the vehicle, the compressor and / or the car heater can work. Since the battery will be charged when the vehicle is powered on, and the electrical equipment on the vehicle (such as motors, audio, compressors and car heaters, etc.) will consume the battery power, in order to stabilize the charging and discharging power of the battery and prevent the battery from being overcharged or over-discharged, it is necessary to determine the power consumption of each electrical equipment, so as to allocate power to each electrical equipment. The embodiments of the present application only take the compressor and the car heater as examples for exemplary description, and other electrical equipment can also be used.
[0075] In the embodiment of the present application, the compressor and the car heater can be operated separately or simultaneously. When the compressor or the car heater is operated separately, the power demand of the non-operating device is 0. When the compressor and the car heater are operated simultaneously, it is necessary to determine the power demand of the compressor and the power demand of the car heater in real time respectively to determine the thermal management power demand corresponding to the thermal management controller.
[0076] It should be noted that the thermal management controller is a component that manages the compressor and the car heater, and is used to adjust the power allocated to the compressor and the car heater. It can be understood that the thermal management required power is the sum of the required power of the compressor and the required power of the car heater (thermal management required power = compressor required power + car heater required power).
[0077] S202: Determine a target power limit based on the required power of the compressor and the required power of the vehicle heater.
[0078] The target power limit is used to limit the total actual power consumption corresponding to the compressor and the car heater at the current moment, and the target power limit is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the car heater at the current moment.
[0079] Optionally, after the thermal management controller determines the thermal management required power based on the required power of the compressor and the required power of the vehicle heater, the thermal management required power can be sent to the vehicle controller, so that the vehicle controller can send the target limit power to the thermal management controller.
[0080] It should be noted that the target power limit may be greater than or equal to the thermal management required power. In some cases, the target power limit may also be less than the thermal management required power, depending on the power that can be allocated by the vehicle controller.
[0081] S203 . Allocate power to the compressor and the vehicle heater based on the target limited power.
[0082] Optionally, the thermal management controller may allocate power to the compressor and the vehicle heater based on the target limit power and other parameters (such as priority) to control the sum of the actual power consumption of the compressor and the actual power consumption of the vehicle heater to be less than or equal to the target limit power.
[0083] In an embodiment of the present application, the present application can determine the required power of the compressor and the required power of the car heater in real time, and then determine the target limit power for limiting the total actual power consumption corresponding to the compressor and the car heater based on the required power of the compressor and the required power of the car heater. The power allocated to the compressor and the car heater is limited based on the determined target limit power, so that the sum of the actual power consumption of the compressor and the actual power consumption of the car heater does not exceed the target limit power. Through the above method, a reasonable limit parameter (i.e., target limit power) can be determined based on the required power of the compressor and the car heater, so as to accurately adjust the power allocated to the compressor and the car heater based on the determined limit parameter. Thus, the power allocated to each component in the vehicle is stably controlled, and the accuracy of power allocation to each component in the vehicle can be improved.
[0084] In some embodiments, the priority of the compressor and the priority of the car heater can also be determined; based on this, the above-mentioned allocating power to the compressor and the car heater based on the target limit power includes: allocating power to the compressor and the car heater in order of priority from high to low based on the target limit power, the priority of the compressor and the priority of the car heater.
[0085] It is understandable that the priority of the compressor can be higher than the priority of the car heater, or the priority of the compressor can be lower than the priority of the car heater. The thermal management controller can allocate power to high-priority devices first according to the priority of the compressor and the priority of the car heater, give priority to satisfying the power of high-priority devices, and limit the power of low-priority devices when power is insufficient.
[0086] In the embodiment of the present application, the present application can further allocate power to the compressor and the car heater in descending order of priority based on the priority of the compressor and the priority of the car heater, so as to preferentially allocate power to the device with higher priority.
[0087] Specifically, when the priority of the first device is higher than that of the second device, the limit power of the first device is determined based on the target limit power, the limit power of the first device is less than or equal to the target limit power, and the first device and the second device are different devices such as a compressor and a car heater. That is, the first device is a compressor and the second device is a car heater; or the first device is a car heater and the second device is a compressor.
[0088] Then, the difference between the target limit power and the limit power of the first device is determined as the limit power of the second device; and power is allocated to the first device based on the limit power of the first device, and power is allocated to the second device based on the limit power of the second device.
[0089] It is understandable that when the required power of the first device is high (for example, the required power of the first device is greater than or equal to the target limited power), the limited power of the first device can be set to the highest value (that is, the limited power of the first device is equal to the target limited power). At this time, the limited power of the second device can be 0.
[0090] Optionally, when the required power of the first device is low (for example, the required power of the first device does not reach half of the target limited power), the limited power of the first device can be set to half of the target limited power. In this case, the limited power of the second device is half of the target limited power.
[0091] Exemplarily, when the priority of the compressor is higher than the priority of the vehicle heater, the thermal management controller preferentially determines that the limited power of the compressor meets the required power of the compressor (i.e., the limited power of the compressor is greater than or equal to the required power of the compressor) according to the target limited power assigned by the vehicle controller. Then the limited power of the vehicle heater is determined, i.e., the limited power of the vehicle heater is the difference between the target limited power and the limited power of the compressor (limited power of the vehicle heater = target limited power - limited power of the compressor). In this case, the limited power of the vehicle heater may not meet the required power of the vehicle heater (i.e., the limited power of the vehicle heater is less than the required power of the vehicle heater).
[0092] In an embodiment of the present application, the present application can limit power based on the target and give priority to meeting the power requirements of devices with higher priority, so that after allocating power to the devices with higher priority and meeting the power requirements of the devices with higher priority, the power requirements of devices with lower priority can be met based on the remaining power.
[0093] In some embodiments, when the duration of the compressor's limited power being less than the fifth preset power reaches a first preset duration, the compressor's required power is adjusted to 0, and the fifth preset power is less than the first preset power.
[0094] It can be understood that in this case, the power provided by the vehicle controller to the compressor is low and cannot meet the startup of the compressor, so the compressor can be temporarily shut down.
[0095] Alternatively, when the duration of the limited power of the vehicle heater being less than the sixth preset power reaches a second preset duration, the required power of the vehicle heater is adjusted to 0, and the sixth preset power is less than the second preset power.
[0096] It can be understood that in this case, the power provided by the vehicle controller to the car heater is low and cannot meet the startup of the car heater, so the car heater can be temporarily turned off.
[0097] In the embodiment of the present application, the present application can adjust the required power of the compressor or the required power of the car heater to 0 when the limited power of the compressor or the limited power of the car heater is less than a preset threshold. That is, when the limited power is too small, the vehicle cannot meet the power demand of the compressor or the car heater, and the compressor or the car heater can be directly turned off to ensure the safety of the vehicle.
[0098] In some embodiments, in order to determine the required power of the compressor and the required power of the vehicle heater at the current moment, as shown in FIG. Figure 3 As shown, in a power allocation method provided in an embodiment of the present application, the above S201 may specifically include S301-S302:
[0099] S301. Determine the required power of the compressor based on a first parameter corresponding to the compressor at the current moment.
[0100] The first parameter includes at least one of the following: a first preset power, an actual power consumption of the compressor, and a first adjusted power, wherein the first adjusted power is used to determine a required power when the compressor is in an on state.
[0101] In an embodiment of the present application, when the compressor meets the starting conditions, the required power of the compressor begins to be calculated. The starting conditions can be understood as the user turning on the cooling switch of the air conditioner, or the thermal management controller receiving the thermal management limit power sent by the vehicle controller in real time, which can meet the required power of the compressor when it is running.
[0102] It should be noted that the power required when the compressor is started (i.e., switching from the off state to the on state) and the power required after the compressor is started (i.e., in the on state) are determined differently. When the compressor is started, the power required by the compressor needs to be determined based on the first preset power; after the compressor is started, the power required by the compressor needs to be determined based on the actual power consumption of the compressor and the first adjusted power.
[0103] In some embodiments, when the compressor is started, the above-mentioned determination of the required power of the compressor based on the first parameter corresponding to the compressor at the current moment may specifically include: when the state of the compressor at the current moment is switched from the off state to the on state, the first preset power is determined as the required power of the compressor; when the limited power of the compressor is less than the first preset power, the required power of the compressor is adjusted to a third preset power, and the third preset power is less than the limited power of the compressor.
[0104] In an embodiment of the present application, when the compressor switches from an off state to an on state, the required power of the compressor can be determined as a first preset power, and the first preset power is a fixed power, which is a pre-set parameter and can be flexibly adjusted.
[0105] It should be noted that when the compressor is switched from the off state to the on state, since the compressor has just been started, it can be considered that the compressor currently has no actual power consumption, and therefore the required power of the compressor is determined by the first preset power.
[0106] Optionally, in this case, when the thermal management controller receives the thermal management limit power sent by the vehicle controller in real time, which is less than the first preset power, it means that the power allocated by the vehicle controller to the thermal management controller (i.e., allocated to the compressor and the car heater) is less and cannot meet the required power of the compressor, and the required power of the compressor needs to be reduced. Therefore, the required power of the compressor can be adjusted to the third preset power, where the third preset power is less than the limited power of the compressor. Usually, the third preset power can be set to 0 or a smaller value.
[0107] In the embodiment of the present application, the present application can accurately determine the required power of the compressor when the state of the compressor is switched from the off state to the on state according to the state of the compressor, and adjust the required power of the compressor based on the limited power of the compressor, thereby further improving the accuracy of determining the required power of the compressor.
[0108] In some embodiments, the above-mentioned determination of the required power of the compressor based on the first parameter corresponding to the compressor at the current moment may also specifically include: when the state of the compressor at the current moment is the on state, determining the first adjustment power based on the difference between the target power and the actual power consumption of the compressor, the target power being the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the compressor is different, and the corresponding first adjustment power is different; the sum of the actual power consumption of the compressor and the first adjustment power is determined as the required power of the compressor.
[0109] In the embodiment of the present application, when the compressor is already turned on and is in the on state, the required power of the compressor can be adjusted according to the difference between the actual power consumption of the compressor and the target power.
[0110] It should be noted that when the compressor is turned on and is in the on state, the actual power consumption of the compressor can be determined. Therefore, the required power of the compressor can be determined more accurately through the actual power consumption of the compressor.
[0111] Optionally, in this case, the temperature difference between the current passenger compartment temperature (the area to be adjusted in temperature, or the battery) and the set temperature can be determined by the difference between the target power and the actual power consumption of the compressor, thereby determining the temperature adjustment rate of the passenger compartment, and determining the first adjustment power by the difference between the target power and the actual power consumption of the compressor. In this way, the required power of the compressor is determined by taking the sum of the actual power consumption of the compressor and the first adjustment power. The temperature of the passenger compartment can be adjusted quickly and efficiently.
[0112] In the embodiment of the present application, the present application can accurately determine the required power of the compressor based on the target power and the actual power consumption of the compressor according to the state of the compressor when the compressor is in the on state, thereby further improving the accuracy of determining the required power of the compressor.
[0113] In some embodiments, the above-mentioned determination of the first regulating power based on the difference between the target power and the actual power consumption of the compressor may specifically include: when the difference between the target power and the actual power consumption of the compressor is greater than 0, determining the first regulating power from a preset comparison table, the preset comparison table including regulating powers corresponding to different differences; or, when the difference between the target power and the actual power consumption of the compressor is less than or equal to 0, determining the first regulating power to be 0.
[0114] Optionally, when the difference between the target power and the actual power consumption of the compressor is greater than 0, it indicates that the compressor has a demand for increased power, and therefore the first adjustment power should be a value greater than 0. The first adjustment power corresponding to the difference between the target power and the actual power consumption of the compressor can be determined from a preset comparison table.
[0115] It should be noted that, since the difference between the target power and the actual power consumption of the compressor is different at different times, when the difference between the target power and the actual power consumption of the compressor is large, the first adjusted power to be determined should also be large, and when the difference between the target power and the actual power consumption of the compressor is small, the first adjusted power to be determined should also be small. Therefore, the preset comparison table may include multiple adjusted powers corresponding to multiple difference intervals.
[0116] Optionally, when the difference between the target power and the actual power consumption of the compressor is less than or equal to 0, it indicates that the compressor has no need to increase power and the compressor can operate stably with the current power. Therefore, the first adjustment power can be determined to be 0 without adjusting the required power of the compressor.
[0117] For example, Figure 4As shown, when the compressor meets the starting conditions, it is first determined whether the compressor is successfully started. In one case, when the compressor is successfully started, it can be determined that the required power of the compressor is the sum of the actual power consumption of the compressor and the first adjustment power; then it is further determined whether the duration of the limited power of the compressor being less than the fifth preset power reaches the first preset duration. When the duration of the limited power of the compressor being less than the fifth preset power reaches the first preset duration, the required power of the compressor is determined to be 0, and it is determined at all times whether the compressor meets the starting conditions. In another case, when the compressor is not successfully started, it is determined that the required power of the compressor is the first preset power, and then it is determined whether the limited power of the compressor is less than the first preset power. When the limited power of the compressor is less than the first preset power, the required power of the compressor is determined to be 0, and it is determined at all times whether the compressor meets the starting conditions.
[0118] In the embodiment of the present application, the present application can determine the specific first adjustment power according to the difference between the target power and the actual power consumption of the compressor when the difference is different, so as to accurately determine the required power of the compressor based on the first adjustment power in the subsequent process, thereby further improving the accuracy of determining the required power of the compressor.
[0119] S302: Determine the required power of the vehicle heater based on the second parameter corresponding to the vehicle heater at the current moment.
[0120] The second parameter includes at least one of the following: a second preset power, actual power consumption of the vehicle heater, and a second adjusted power, wherein the second adjusted power is used to determine the required power when the vehicle heater is in the on state.
[0121] In the embodiment of the present application, when the car heater meets the starting conditions, the required power of the car heater begins to be calculated. The starting conditions can be understood as the user turning on the heating switch of the air conditioner, or the thermal management controller receiving the thermal management limit power sent by the vehicle controller in real time, which can meet the required power of the car heater when it is running.
[0122] It should be noted that the power required when the car heater is started (i.e., switched from the off state to the on state) and the power required after the start-up (i.e., in the on state) are determined differently. When the car heater is started, the power required by the car heater needs to be determined based on the second preset power; after the car heater is started, the power required by the car heater needs to be determined based on the actual power consumption of the car heater and the second adjustment power.
[0123] In some embodiments, when the car heater is started, the above-mentioned determination of the required power of the car heater based on the second parameter corresponding to the car heater at the current moment may specifically include: when the state of the car heater is switched from the off state to the on state at the current moment, the second preset power is determined as the required power of the car heater; when the limited power of the car heater is less than the second preset power, the required power of the car heater is adjusted to a fourth preset power, and the fourth preset power is less than the limited power of the car heater.
[0124] In an embodiment of the present application, when the car heater is switched from an off state to an on state, the required power of the car heater can be determined as a second preset power, and the second preset power is a fixed power, which is a pre-set parameter and can be flexibly adjusted.
[0125] It should be noted that when the car heater is switched from the off state to the on state, since the car heater has just been started, it can be considered that the car heater currently does not actually consume power, and therefore the required power of the compressor is determined by the second preset power.
[0126] Optionally, in this case, when the thermal management controller receives the thermal management limit power sent by the vehicle controller in real time, which is less than the second preset power, it means that the power allocated by the vehicle controller to the thermal management controller (i.e., allocated to the compressor and the vehicle heater) is less and cannot meet the required power of the vehicle heater, and the required power of the vehicle heater needs to be reduced. Therefore, the required power of the vehicle heater can be adjusted to the fourth preset power, where the fourth preset power is less than the limited power of the vehicle heater. Usually, the fourth preset power can be set to 0 or a smaller value.
[0127] In the embodiment of the present application, the present application can accurately determine the required power of the car heater according to the state of the car heater when the state of the car heater is switched from the off state to the on state, and adjust the required power of the car heater based on the limited power of the car heater, thereby further improving the accuracy of determining the required power of the car heater.
[0128] In some embodiments, the above-mentioned determining the required power of the car heater based on the second parameter corresponding to the car heater at the current moment may also specifically include: when the state of the car heater at the current moment is on, determining the second adjustment power based on the difference between the target power and the actual power consumption of the car heater, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the car heater is different, and the corresponding second adjustment power is different; the sum of the actual power consumption of the car heater and the second adjustment power is determined as the required power of the car heater.
[0129] In the embodiment of the present application, when the car heater is already turned on and is in the on state, the required power of the car heater can be adjusted according to the difference between the actual power consumption of the car heater and the target power.
[0130] It should be noted that when the car heater is turned on and in the on state, the actual power consumption of the car heater can be determined. Therefore, the required power of the car heater can be determined more accurately through the actual power consumption of the car heater.
[0131] Optionally, in this case, the temperature difference between the current passenger compartment temperature (the area to be adjusted, or the battery) and the set temperature can be determined by the difference between the target power and the actual power consumption of the car heater, thereby determining the temperature adjustment rate of the passenger compartment, and determining the second adjustment power by the difference between the target power and the actual power consumption of the car heater. In this way, the sum of the actual power consumption of the car heater and the second adjustment power is determined as the required power of the car heater. The temperature of the passenger compartment can be adjusted quickly and efficiently.
[0132] In the embodiment of the present application, the present application can accurately determine the required power of the car heater based on the target power and the actual power consumption of the car heater according to the state of the car heater when the car heater is turned on, thereby further improving the accuracy of determining the required power of the car heater.
[0133] In some embodiments, the second adjustment power is determined based on the difference between the target power and the actual power consumption of the car heater, and specifically may include: when the difference between the target power and the actual power consumption of the car heater is greater than 0, determining the second adjustment power from a preset comparison table, the preset comparison table including adjustment powers corresponding to different differences; or, when the difference between the target power and the actual power consumption of the car heater is less than or equal to 0, determining the second adjustment power to be 0.
[0134] Optionally, when the difference between the target power and the actual power consumption of the car heater is greater than 0, it indicates that the car heater has a need for increased power, and therefore the second adjustment power should be a value greater than 0. The second adjustment power corresponding to the difference between the target power and the actual power consumption of the car heater can be determined from a preset comparison table.
[0135] It should be noted that, since the difference between the target power and the actual power consumption of the car heater is different at different times, when the difference between the target power and the actual power consumption of the car heater is large, the determined second adjustment power should also be large, and when the difference between the target power and the actual power consumption of the car heater is small, the determined second adjustment power should also be small. Therefore, the preset comparison table may include multiple adjustment powers corresponding to multiple difference intervals.
[0136] Optionally, when the difference between the target power and the actual power consumption of the car heater is less than or equal to 0, it indicates that there is no need to increase the power of the car heater, and the car heater can operate stably with the current power. Therefore, the second adjustment power can be determined to be 0, and there is no need to adjust the required power of the car heater.
[0137] For example, Figure 5 As shown, when the car heater meets the start-up conditions, it is first determined whether the car heater is successfully started. In one case, when the car heater is successfully started, it can be determined that the required power of the car heater is the sum of the actual power consumption of the car heater and the second adjustment power; then it is further determined whether the limited power of the car heater is less than the sixth preset power for a duration of up to the second preset duration. When the limited power of the car heater is less than the sixth preset power for a duration of up to the second preset duration, the required power of the car heater is determined to be 0, and it is determined at all times whether the car heater meets the start-up conditions. In another case, when the car heater is not successfully started, it is determined that the required power of the car heater is the second preset power, and then it is determined whether the limited power of the car heater is less than the second preset power. When the limited power of the car heater is less than the second preset power, the required power of the car heater is determined to be 0, and it is determined at all times whether the car heater meets the start-up conditions.
[0138] In the embodiment of the present application, the present application can accurately determine the required power of the compressor based on the first parameter corresponding to the compressor at the current moment; and accurately determine the required power of the car heater based on the second parameter corresponding to the car heater at the current moment. Therefore, based on the accurate required power, the target limit power is accurately determined in the subsequent process, and the power is accurately allocated to the compressor and the car heater, thereby improving the accuracy of power allocation to various components in the vehicle.
[0139] The power allocation method provided in the embodiment of the present application is used to allocate the power of the compressor and the car heater when new energy vehicles have cooling and heating needs, and limit the power consumption of the compressor and the car heater to ensure stable power fluctuations during the entire cooling and heating process and avoid problems such as battery over-discharge or overcharge.
[0140] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the power distribution device or electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0141] The embodiment of the present application can exemplarily divide the functional modules of the power distribution device or electronic device according to the above method. For example, the power distribution device or electronic device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0142] Figure 6 is a block diagram of a power distribution device according to an exemplary embodiment. Figure 6 The power distribution device 600 is applied to a vehicle, the vehicle includes a compressor and a car heater, and the power distribution device 600 includes: a processing module 601.
[0143] The processing module 601 is used to determine the power demand of the compressor and the power demand of the car heater at the current moment; the processing module 601 is also used to determine the target power limit based on the power demand of the compressor and the power demand of the car heater, the target power limit is used to limit the total actual power consumption corresponding to the compressor and the car heater at the current moment, and the target power limit is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the car heater at the current moment; the processing module 601 is also used to allocate power to the compressor and the car heater based on the target power limit.
[0144] In a possible implementation, the processing module 601 is specifically used to determine the required power of the compressor based on a first parameter corresponding to the compressor at a current moment, the first parameter including at least one of the following: a first preset power, the actual power consumption of the compressor, and a first adjusted power, the first adjusted power being used to determine the required power when the compressor is in an on state; the processing module 601 is specifically used to determine the required power of the vehicle heater based on a second parameter corresponding to the vehicle heater at a current moment, the second parameter including at least one of the following: a second preset power, the actual power consumption of the vehicle heater, and a second adjusted power, the second adjusted power being used to determine the required power when the vehicle heater is in an on state.
[0145] In one possible implementation, the processing module 601 is specifically used to determine the first preset power as the required power of the compressor when the state of the compressor is switched from the off state to the on state at the current moment; the processing module 601 is specifically used to adjust the required power of the compressor to a third preset power when the limited power of the compressor is less than the first preset power, and the third preset power is less than the limited power of the compressor.
[0146] In a possible implementation, the processing module 601 is specifically used to determine the first adjustment power based on the difference between the target power and the actual power consumption of the compressor when the compressor is in the on state at the current moment, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the compressor is different, and the corresponding first adjustment power is different; the processing module 601 is specifically used to determine the sum of the actual power consumption of the compressor and the first adjustment power as the required power of the compressor.
[0147] In one possible implementation, the processing module 601 is specifically used to determine the first adjustment power from a preset comparison table when the difference between the target power and the actual power consumption of the compressor is greater than 0, and the preset comparison table includes adjustment powers corresponding to different differences; the processing module 601 is specifically used to determine that the first adjustment power is 0 when the difference between the target power and the actual power consumption of the compressor is less than or equal to 0.
[0148] In a possible implementation, the processing module 601 is specifically used to determine the second preset power as the required power of the vehicle heater when the state of the vehicle heater is switched from the off state to the on state at the current moment; the processing module 601 is specifically used to adjust the required power of the vehicle heater to a fourth preset power when the limited power of the vehicle heater is less than the second preset power, and the fourth preset power is less than the limited power of the vehicle heater.
[0149] In a possible implementation, the processing module 601 is specifically used to determine the second adjustment power based on the difference between the target power and the actual power consumption of the vehicle heater when the vehicle heater is in the on state at the current moment, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the vehicle heater is different, and the corresponding second adjustment power is different; the processing module 601 is specifically used to determine the sum of the actual power consumption of the vehicle heater and the second adjustment power as the required power of the vehicle heater.
[0150] In a possible implementation, the processing module 601 is also used to determine the priority of the compressor and the priority of the vehicle heater; the processing module 601 is specifically used to allocate power to the compressor and the vehicle heater in descending order of priority based on the target limit power, the priority of the compressor and the priority of the vehicle heater.
[0151] In a possible implementation, the processing module 601 is specifically used to determine the limited power of the first device based on the target limited power when the priority of the first device is higher than the priority of the second device, the limited power of the first device is less than or equal to the target limited power, and the first device and the second device are different devices in the compressor and the car heater; the processing module 601 is specifically used to determine the difference between the target limited power and the limited power of the first device as the limited power of the second device; the processing module 601 is specifically used to allocate power to the first device based on the limited power of the first device, and allocate power to the second device based on the limited power of the second device.
[0152] In a possible implementation, the processing module 601 is further used to adjust the required power of the compressor to 0, and the fifth preset power is less than the first preset power, when the duration during which the limited power of the compressor is less than the fifth preset power reaches a first preset duration; the processing module 601 is further used to adjust the required power of the vehicle heater to 0, and the sixth preset power is less than the second preset power, when the duration during which the limited power of the vehicle heater is less than the sixth preset power reaches a second preset duration.
[0153] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0154] Figure 7 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 7 As shown, the electronic device 700 includes but is not limited to: a processor 701 and a memory 702 .
[0155] The memory 702 is used to store executable instructions of the processor 701. It can be understood that the processor 701 is configured to execute instructions to implement the power allocation method in the above embodiment.
[0156] It should be noted that those skilled in the art can understand that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Figure 7 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0157] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 701 may include one or more processing units. Optionally, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0158] The memory 702 may be used to store software programs and various data. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a processing module, etc.), etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0159] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 702 including instructions. The above instructions can be executed by the processor 701 of the electronic device 700 to implement the power allocation method in the above embodiment.
[0160] In actual implementation, Figure 6 The function of the processing module 601 in Figure 7 The processor 701 in the embodiment calls the computer program stored in the memory 702. The specific execution process can refer to the description of the power allocation method in the above embodiment, which will not be repeated here.
[0161] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0162] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 701 of the electronic device 700 to complete the power allocation method in the above embodiment.
[0163] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned power allocation method embodiment are implemented, and the same technical effect as the above-mentioned power allocation method can be achieved. To avoid repetition, they will not be repeated here.
[0164] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0165] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0166] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0167] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0168] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.
[0169] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A power allocation method, It is characterized in that Applied to a vehicle, the vehicle comprising a compressor and a car heater, the method comprising: Determine the required power of the compressor and the required power of the vehicle heater at the current moment; Determine a target power limit based on the required power of the compressor and the required power of the vehicle heater, wherein the target power limit is used to limit the total actual power consumption corresponding to the compressor and the vehicle heater at the current moment, and the target power limit is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the vehicle heater at the current moment; Based on the target limit power, power is allocated to the compressor and the vehicle heater.
2. The method according to claim 1, It is characterized in that The determining of the required power of the compressor and the required power of the vehicle heater at the current moment includes: Determine the required power of the compressor based on a first parameter corresponding to the compressor at the current moment, wherein the first parameter includes at least one of the following: a first preset power, the actual power consumption of the compressor, and a first adjusted power, wherein the first adjusted power is used to determine the required power when the compressor is in an on state; Based on a second parameter corresponding to the car heater at the current moment, the required power of the car heater is determined, the second parameter including at least one of the following: a second preset power, the actual power consumption of the car heater, and a second adjusted power, the second adjusted power being used to determine the required power when the car heater is in the on state.
3. The method according to claim 2, It is characterized in that The determining the required power of the compressor based on the first parameter corresponding to the compressor at the current moment includes: When the state of the compressor is switched from the off state to the on state at the current moment, the first preset power is determined as the required power of the compressor; When the limited power of the compressor is less than the first preset power, the required power of the compressor is adjusted to a third preset power, and the third preset power is less than the limited power of the compressor.
4. The method according to claim 2, It is characterized in that The determining the required power of the compressor based on the first parameter corresponding to the compressor at the current moment includes: When the compressor is in an on state at the current moment, the first adjustment power is determined based on the difference between the target power and the actual power consumption of the compressor, the target power being the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the compressor is different, and the corresponding first adjustment power is different; The sum of the actual power consumption of the compressor and the first regulated power is determined as the required power of the compressor.
5. The method according to claim 4, It is characterized in that The determining the first adjustment power based on the difference between the target power and the actual power consumption of the compressor comprises: When the difference between the target power and the actual power consumption of the compressor is greater than 0, determining the first adjustment power from a preset comparison table, wherein the preset comparison table includes adjustment powers corresponding to different differences; When the difference between the target power and the actual power consumption of the compressor is less than or equal to 0, the first adjusted power is determined to be 0.
6. The method according to claim 2, It is characterized in that The step of determining the required power of the vehicle heater based on the second parameter corresponding to the vehicle heater at the current moment includes: When the state of the vehicle heater is switched from the off state to the on state at the current moment, the second preset power is determined as the required power of the vehicle heater; When the limited power of the vehicle heater is less than the second preset power, the required power of the vehicle heater is adjusted to a fourth preset power, and the fourth preset power is less than the limited power of the vehicle heater.
7. The method according to claim 2, It is characterized in that The step of determining the required power of the vehicle heater based on the second parameter corresponding to the vehicle heater at the current moment includes: When the state of the vehicle heater is turned on at the current moment, the second adjustment power is determined based on the difference between the target power and the actual power consumption of the vehicle heater, the target power is the power corresponding to the set temperature, and the difference between the target power and the actual power consumption of the vehicle heater is different, and the corresponding second adjustment power is different; The sum of the actual power consumption of the vehicle heater and the second adjusted power is determined as the required power of the vehicle heater.
8. The method according to claim 1, It is characterized in that The method further comprises: determining a priority of the compressor and a priority of the vehicle heater; The allocating power to the compressor and the vehicle heater based on the target limited power includes: Based on the target limit power, the priority of the compressor, and the priority of the vehicle heater, power is allocated to the compressor and the vehicle heater in order of priority from high to low.
9. The method according to claim 8, It is characterized in that The allocating power to the compressor and the car heater in descending order of priority based on the target limit power, the priority of the compressor and the priority of the car heater comprises: In a case where the priority of the first device is higher than the priority of the second device, determining a limit power of the first device based on the target limit power, the limit power of the first device is less than or equal to the target limit power, and the first device and the second device are different devices in the compressor and the car heater; Determine a difference between the target limit power and the limit power of the first device as the limit power of the second device; Power is allocated to the first device based on the limited power of the first device, and power is allocated to the second device based on the limited power of the second device.
10. The method according to claim 9, It is characterized in that The method further comprises: When the duration of the limited power of the compressor being less than the fifth preset power reaches a first preset duration, adjusting the required power of the compressor to 0, and the fifth preset power is less than the first preset power; When the duration of the limited power of the vehicle heater being less than the sixth preset power reaches a second preset duration, the required power of the vehicle heater is adjusted to 0, and the sixth preset power is less than the second preset power.
11. A power distribution device, It is characterized in that Applied to a vehicle, the vehicle comprising a compressor and a car heater, the power distribution device comprising: a processing module; The processing module is used to determine the required power of the compressor and the required power of the vehicle heater at a current moment; The processing module is further used to determine a target power limit based on the required power of the compressor and the required power of the vehicle heater, wherein the target power limit is used to limit the total actual power consumption corresponding to the compressor and the vehicle heater at the current moment, and the target power limit is greater than or equal to the sum of the actual power consumption of the compressor and the actual power consumption of the vehicle heater at the current moment; The processing module is further configured to allocate power to the compressor and the vehicle heater based on the target limited power.
12. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the method according to any one of claims 1 to 10.
14. A vehicle, It is characterized in that The vehicle comprises the power distribution device according to claim 11, and the vehicle is used to implement the method according to any one of claims 1-10.
