Compressor control method and device, vehicle and storage medium
Patent Information
- Application Number
- CN202510912873.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-02
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2045-07-02
AI Technical Summary
但在低温工况,若在直接将压缩机作为系统热量来源,转速-制热量传递关系发生变化,传统控制量闭环转速产生延迟与变形
[0038]目标车辆在极端温度环境下进行温度控制时,可以获取到需要调节到的目标温度以及目标车辆的当前温度,然后再根据目标温度以及当前温度计算出初始功率,而后根据初始功率以及目标车辆的压缩机的当前功率,通过比例积分微分来获取到功率修正值,而后通过功率修正值对目标车辆的压缩机的转速进行控制,从而实现目标车辆中的温度控制。上述方案中,直接将功率作为PID控制的控制目标,即使极端情况下转速与压缩机功率为非线性关系,也可以通过控制压缩机的转速来使得压缩机功率满足需求,从而提高了极端温度下空调的温度控制能力。
Smart Images

Figure CN120481561B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, specifically to a compressor control method, device, vehicle, and storage medium. Background Technology
[0002] Currently, the driving range of electric vehicles is limited by the energy storage density of batteries, and the energy efficiency optimization of the air conditioning system, as the second largest subsystem of vehicle energy consumption, directly affects the actual driving range of electric vehicles.
[0003] Currently, most electric vehicle air conditioning algorithms use PID control. PID control is based on compressor speed control, influencing the control target by changing the compressor speed. For example, changes in compressor speed affect the temperature of the air conditioner's outlet air, and the difference between the target outlet air temperature and the actual outlet air temperature is used as feedback to adjust the compressor speed. However, in low-temperature conditions, if the compressor is directly used as the system's heat source, the speed-heating capacity transfer relationship changes, and the traditional closed-loop control speed becomes delayed and distorted. At this time, the system's heat relies entirely on the compressor's work, losing the buffer of the ambient heat source. The matching relationship between speed and conventional control quantities (such as air temperature) changes, resulting in the air conditioner speed being increased through PID control, but the actual vehicle temperature not rising, causing the air conditioner to fail to heat properly in low temperatures. Summary of the Invention
[0004] In view of this, this application provides a compressor control method, device, vehicle, and storage medium, which improves the temperature control capability of air conditioners under extreme temperatures. The technical solution is as follows.
[0005] In a first aspect, a compressor control method is provided, the method being applied to a target vehicle, the method comprising:
[0006] Obtain the target temperature and the current temperature of the target vehicle;
[0007] The initial power is obtained based on the target temperature and the current temperature;
[0008] Based on the initial power and the current power of the compressor of the target vehicle, a power correction value is obtained through proportional-integral-derivative (PID) calculation.
[0009] The rotational speed of the compressor in the target vehicle is controlled based on the power correction value.
[0010] In one optional implementation, controlling the compressor speed of the target vehicle according to the power correction value includes:
[0011] The target power is obtained based on the power correction value and the current power;
[0012] The target rotational speed of the compressor of the target vehicle is determined based on the target power.
[0013] The compressor speed of the target vehicle is controlled based on the target rotational speed.
[0014] In one optional implementation, obtaining the target power based on the power correction value and the current power includes:
[0015] If the current power is less than the first power threshold, the sum of the power correction value and the current power is determined as the target power.
[0016] In an optional implementation, the method further includes:
[0017] If the current power is greater than or equal to the first power threshold and less than the second power threshold, then the sum of the current power and the power correction value of the first ratio is determined as the target power;
[0018] If the current power is greater than or equal to the second power threshold, then the second power threshold is determined to be the target power.
[0019] In one optional implementation, controlling the compressor speed of the target vehicle based on the target rotational speed includes:
[0020] If both the target speed and the speed of the compressor of the target vehicle are less than the speed threshold, the speed of the compressor of the target vehicle will be controlled to the target speed.
[0021] In one optional implementation, controlling the compressor speed of the target vehicle based on the target rotational speed includes:
[0022] If the target speed is greater than or equal to a speed threshold, and the speed of the compressor of the target vehicle is less than the speed threshold, then a first speed difference between the target speed and the speed of the compressor of the target vehicle, and a second speed difference between the speed of the compressor and the speed threshold are obtained.
[0023] The second ratio is obtained based on the first speed difference, and the product of the second ratio and the second speed difference is used as the first control quantity to increase the speed of the compressor of the target vehicle.
[0024] In one optional implementation, controlling the compressor speed of the target vehicle based on the target rotational speed includes:
[0025] If the target speed and the speed of the compressor of the target vehicle are both greater than or equal to the speed threshold, then a second control quantity is determined based on the difference between the target speed and the speed threshold, so as to reduce the speed of the compressor of the target vehicle.
[0026] In one optional implementation, the target vehicle is further provided with a PTC module;
[0027] The method controls the rotational speed of the compressor in the target vehicle based on the power correction value, including:
[0028] If the PTC module is detected to be in operation, and the difference between the target temperature and the current temperature of the target vehicle is greater than the temperature difference threshold, then the speed of the compressor of the target vehicle is controlled according to the power correction value.
[0029] Secondly, a compressor control device is provided, the device being disposed in a target vehicle, the device comprising:
[0030] A temperature acquisition module is used to acquire the target temperature and the current temperature of the target vehicle;
[0031] A power acquisition module is used to acquire initial power based on the target temperature and the current temperature;
[0032] A power correction module is used to obtain a power correction value based on the initial power and the current power of the compressor of the target vehicle through proportional-integral-derivative (PID) calculation.
[0033] The speed control module is used to control the speed of the compressor of the target vehicle according to the power correction value.
[0034] Thirdly, a vehicle is provided, including a vehicle controller, which includes a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the compressor control method of the first aspect described above.
[0035] Fourthly, a computer-readable storage medium is provided, on which computer instructions are stored, the computer instructions being used to cause a computer to execute the above-described compressor control method.
[0036] Fifthly, a computer program product or computer program is provided, including computer instructions for causing a computer to execute the compressor control method described above.
[0037] The technical solution provided in this application may include the following beneficial effects:
[0038] When controlling the temperature of a target vehicle in extreme temperature environments, the system can obtain the target temperature and the current temperature of the vehicle. Then, an initial power is calculated based on these two temperatures. Next, a power correction value is obtained using proportional-integral-derivative (PI) calculations, taking the initial power and the current power of the vehicle's compressor. This power correction value is then used to control the compressor speed, thereby achieving temperature control within the vehicle. In this scheme, power is directly used as the control target for PID control. Even if the relationship between speed and compressor power is non-linear under extreme conditions, controlling the compressor speed can ensure that the compressor power meets the requirements, thus improving the air conditioning's temperature control capability under extreme temperatures. Attached Figure Description
[0039] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0040] Figure 1 A schematic diagram of the architecture of a vehicle according to an embodiment of this application is shown.
[0041] Figure 2 A schematic flowchart illustrating a compressor control target quantity according to an embodiment of this application is shown.
[0042] Figure 3 This is a flowchart illustrating a compressor control method according to an exemplary embodiment.
[0043] Figure 4 This is a flowchart illustrating a compressor control method according to an exemplary embodiment.
[0044] Figure 5 A logic flowchart of a power closed-loop control compressor according to an embodiment of this application is shown.
[0045] Figure 6 This is a schematic diagram of the structure of a compressor control device provided in an embodiment of this application.
[0046] Figure 7 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] In the description of the embodiments of this application, the term "correspondence" may indicate that there is a direct or indirect correspondence between two things, or that there is an association between two things, or that there is a relationship of instruction and being instructed, configuration and being configured, etc.
[0049] Figure 1 A schematic diagram of the architecture of a vehicle according to an embodiment of this application is shown. Figure 1 As shown, the overall architecture of the target vehicle can be divided into three parts: driving module, air conditioning module, and energy module. These modules cooperate with each other to ensure the vehicle's safety, comfort, and energy management.
[0050] The driving module is primarily responsible for translating the driver's intentions into vehicle movement commands and for monitoring and adjusting the vehicle's driving status in real time. Specifically, the driving module may include, but is not limited to, the following units:
[0051] The human-machine interface unit is used to collect the driver's operation commands through input devices such as the steering wheel, accelerator pedal, and brake pedal; on the other hand, it can feed back the vehicle's current speed, gear, steering angle and other status information to the driver through output devices such as the in-vehicle instrument panel and head-up display (HUD).
[0052] Electronic power steering units, including electronic power steering (EPS) and electronic brake assist (EBA), provide appropriate assistance or braking gain through an electronic control unit (ECU) when the driver turns the steering wheel or presses the brake pedal, thereby making driving easier and safer.
[0053] The chassis control unit integrates the Anti-lock Braking System (ABS), Vehicle Stability Control (VSC), and Traction Control System (TCS). By collecting and processing information such as wheel speed, yaw rate, and roll angle in real time, it actively intervenes in braking or drive force distribution during emergency braking or high-speed cornering to maintain vehicle dynamic stability.
[0054] The sensing and perception interface unit works in conjunction with the aforementioned image sensors, millimeter-wave radar, lidar, and other sensors in the vehicle to continuously monitor the surrounding environment and road conditions, and transmit the perception results to the driving control ECU to assist the driver in safe driving or to achieve advanced driver assistance functions.
[0055] Optionally, this energy module is primarily responsible for providing the necessary electrical energy to all vehicle electronic devices, powertrain systems, and air conditioning modules, and for intelligently managing energy flow. Depending on the vehicle type, the energy module may include a high-voltage battery pack and management unit (BMS), a motor, and an inverter unit.
[0056] Among them, BMS is used to ensure that the battery is in the optimal operating range by collecting real-time voltage, current and temperature of individual battery cells; at the same time, it uses SOC (State of Charge) and SOH (State of Health) algorithms to predict the remaining capacity and life of the battery, providing a basis for decision-making for subsequent energy distribution and regenerative braking.
[0057] The motor and inverter unit serve as the driving power source for the entire vehicle. The operation of the vehicle's motor relies on the inverter to convert direct current into three-phase alternating current. The inverter uses pulse width modulation technology to achieve precise control of the motor's speed and torque. When the vehicle brakes or goes downhill, the motor can switch to generator mode to feed mechanical energy back to the battery, achieving energy recovery.
[0058] This air conditioning module is used to maintain the temperature, humidity, and air quality inside the vehicle to improve passenger comfort. The air conditioning module may include the following main components:
[0059] Sensor array: Includes in-vehicle temperature sensor, humidity sensor, solar radiation sensor, and air quality sensor (e.g., PM2.5 detector). By collecting real-time environmental parameters inside and outside the vehicle cabin, the control system can accurately determine the current required cooling, heating, or ventilation status.
[0060] Temperature control unit: By throttling and expanding (in cooling mode) or exchanging heat (in heating mode) the high-pressure refrigerant output from the compressor, in conjunction with the evaporator and condenser, it regulates the air temperature entering and leaving the vehicle cabin. This unit is also equipped with an electronically controlled compressor or electronic expansion valve to achieve precise regulation of refrigerant flow, improving air conditioning efficiency and reducing energy consumption.
[0061] Air circulation and ventilation system: including blower, multi-stage fan, adjustable air intake grille and air outlet, can evenly distribute cold / hot air to various cabin areas in the vehicle according to the one-button automatic or zone control needs set by the occupants; it also has an internal and external circulation switching function, so that it can prioritize switching to internal circulation in environments such as urban exhaust or tunnels to protect the air quality inside the vehicle.
[0062] Optionally, the target vehicle may also include a PTC (Positive Temperature Coefficient) heater. This is an electric heating device based on a positive temperature coefficient material (usually a ceramic with a specific formulation). It has low resistance at low temperatures and heats up rapidly when energized; as the temperature rises, the material's resistance increases significantly. In pure electric or hybrid (HEV / PHEV) vehicles, where "engine waste heat" cannot be relied upon for heating, the PTC heater is the primary means of interior heating.
[0063] Due to considerations of energy consumption or vehicle production costs, some vehicles do not have a PTC heater in the air conditioning module. In this case, under low-temperature conditions without a PTC, the compressor serves as the system's heat source, but the system's heat generation depends entirely on the compressor's work. Figure 2 A schematic flowchart illustrating a compressor control target quantity according to an embodiment of this application is shown. Figure 2 As shown, when controlling the compressor speed using a PID algorithm, the compressor speed can be directly used as the target quantity for control to simplify the calculation process. Specifically, firstly, after the compressor starts, the target vehicle can be controlled based on the compressor feedforward speed. The compressor feedforward speed is generally set according to the actual situation, and the system matches an appropriate value based on the current operating conditions to quickly respond to load demands. After the compressor starts, the system obtains actual signal values (such as actual air temperature) through sensors, compares them with the target (such as target air temperature) to generate an error signal, and uses the PID algorithm to calculate the feedback correction amount. After passing through the feedforward and feedback loops, the compressor combines the feedforward speed and the feedback speed, and changes its speed under filtering constraints. Filtering constraints refer to limiting the compressor speed that can change per second, with the aim of eliminating noise in the speed signal, preventing sudden changes in speed, and ensuring control stability.
[0064] However, the aforementioned low-temperature heating process without PTC assistance still has certain drawbacks. For example, in scenarios with extremely low ambient temperatures (such as -20℃) and where the compressor needs to independently handle the heating load, the matching relationship between compressor speed and heating load is quite complex, and the relationship between speed and compressor power is not linear. Affected by factors such as ambient temperature and the ratio of internal to external circulation, a large heating load can easily lead to a mismatch between power and load due to simple speed control, resulting in overload operation, a surge in energy consumption, and mechanical wear.
[0065] Figure 3 This is a flowchart illustrating a compressor control method according to an exemplary embodiment. The method is executed by a computer device, which may be installed in a target vehicle, for controlling the air conditioning module in the target vehicle. Figure 2 As shown, the method includes:
[0066] Step 301: Obtain the target temperature and the current temperature of the target vehicle.
[0067] In this embodiment of the application, the target temperature can be the desired interior temperature set by the user, or a set temperature automatically generated based on the vehicle's historical usage habits or ambient temperature.
[0068] The current temperature is the real-time temperature value inside the vehicle collected by a temperature sensor. In this embodiment, when the target temperature and the current temperature are obtained, the two can reflect the deviation between the current in-vehicle environment and the expected state, thereby providing basic parameters for subsequent power calculations.
[0069] Step 302: Obtain the initial power based on the target temperature and the current temperature.
[0070] In this embodiment of the application, the initial power can be calculated based on the difference between the target temperature and the current temperature to reflect the theoretical power output required by the compressor to achieve temperature regulation under the current operating conditions.
[0071] Optionally, the initial power can be obtained through methods such as table lookup, linear interpolation, or neural network models to accurately represent the changing characteristics of the vehicle's thermal load.
[0072] Step 303: Based on the initial power and the current power of the compressor of the target vehicle, obtain the power correction value through proportional-integral-derivative (PID) calculation.
[0073] In this embodiment of the application, considering factors such as system response lag and external disturbances in actual compressor operation, directly using the initial power may lead to a decrease in control accuracy.
[0074] Therefore, a proportional-integral-derivative (PID) controller is introduced in this step to adjust the power based on the difference between the initial power and the current power, thereby obtaining a power correction value. This power correction value can dynamically reflect the system's feedback adjustment capability to the current temperature control state, thus improving the stability and accuracy of the temperature control response.
[0075] Step 304: Control the speed of the compressor of the target vehicle according to the power correction value.
[0076] In this embodiment, based on the obtained power correction value, the compressor speed can be adjusted to match the actual cooling or heating capacity required. Optionally, the compressor can be a variable frequency compressor, and the variable frequency control module dynamically adjusts the speed according to the set correction value, so that the actual power output of the compressor is closer to the theoretical requirement, thereby improving the efficiency and comfort of in-vehicle temperature control.
[0077] In summary, when controlling the temperature of a target vehicle under extreme temperature conditions, the system can obtain the target temperature and the current temperature of the vehicle. Then, based on these conditions, an initial power is calculated. Next, using the initial power and the current power of the vehicle's compressor, a power correction value is obtained through proportional-integral-derivative (PI) calculations. This power correction value is then used to control the compressor speed, thereby achieving temperature control within the vehicle. In this scheme, power is directly used as the control target for PID control. Even if the relationship between compressor speed and power is non-linear under extreme conditions, controlling the compressor speed can ensure that the compressor power meets the requirements, thus improving the air conditioning's temperature control capability under extreme temperatures.
[0078] Figure 4 This is a flowchart illustrating a compressor control method according to an exemplary embodiment. The method is executed by a computer device, which may be installed in a target vehicle. Figure 4 As shown, the method includes:
[0079] Step 401: Obtain the target temperature and the current temperature of the target vehicle.
[0080] In this embodiment of the application, the target temperature can be set by the user or automatically generated when the target vehicle is set to automatic mode.
[0081] Specifically, if the driver inputs the desired target temperature (e.g., "22℃") on the in-car central touchscreen, physical knob, or steering wheel shortcut buttons, or when the "automatic air conditioning" mode is activated, the system combines information from external temperature sensors (e.g., -5℃), vehicle speed, and the number of people in the vehicle, and uses a pre-set experience model or learning algorithm to generate a recommended temperature (e.g., "21.5℃").
[0082] The current temperature is obtained in real time by a temperature sensor (such as an NTC thermistor or a digital temperature module) placed at the target location (such as the center of the dashboard).
[0083] Alternatively, the current temperature can be the average of the temperature sensors located at multiple candidate points in the target vehicle. For example, temperature sensors are located in the rear headrests and footwell areas, as well as the front headrests and footwell areas. The target vehicle uses the average of the temperatures collected by each temperature sensor as the current temperature of the target vehicle.
[0084] Step 402: Obtain the initial power based on the target temperature and the current temperature.
[0085] In this embodiment, the initial power is the feedforward power, which is used to provide a compressor output value that matches the temperature deviation in the early stage of control, so as to reduce the response lag caused by pure feedback control.
[0086] Optionally, in this embodiment, the target temperature and the initial power corresponding to the current temperature can be obtained by looking up a table. Specifically, during the calibration phase of the target vehicle, a large amount of data such as external temperature, vehicle speed, and temperature difference can be collected under various operating conditions to form a table corresponding to the temperature and the initial power. Therefore, after obtaining the target temperature and the current temperature, the target vehicle can directly obtain the initial power by looking up the table and interpolation.
[0087] Optionally, in this embodiment of the application, a power prediction model can be set in the target vehicle to directly predict the feedforward power of the compressor of the target vehicle when the target temperature and the current temperature are both predicted.
[0088] Step 403: Based on the initial power and the current power of the compressor of the target vehicle, obtain the power correction value through proportional-integral-derivative (PID) calculation.
[0089] In this embodiment of the application, in order to improve steady-state accuracy and dynamic response speed, a PID feedback loop needs to be introduced to compare the actual output power of the compressor with the feedforward power, thereby dynamically correcting the error.
[0090] Specifically, the compressor motor control unit of the target vehicle integrates voltage, current, and temperature sensors. By collecting the current and voltage data from the current and voltage sensors, the input power of the motor can be calculated. Then, based on a preset compressor efficiency mapping table, the current efficiency value is calculated. Based on the efficiency and input power, the current output heating power (i.e., the current power) can be obtained.
[0091] After obtaining the current output heating power, the current input heating power is compared with the target power to calculate the current power error. Then, the power correction value can be obtained based on the power error.
[0092] For example, the power correction value can be calculated using the following formula:
[0093] Where, k p k i k d These are the proportional, integral, and derivative gains, respectively; Δt is the control period; e p (k) represents the power error at the kth sampling.
[0094] Step 404: Obtain the target power based on the power correction value and the current power.
[0095] In this embodiment of the application, in order to prevent the compressor from causing system instability due to excessive or insufficient power commands, two power thresholds are set to determine the different numerical ranges of the target power. When the target power is in different numerical ranges, different strategies can be used to determine the target power.
[0096] Optionally, if the current power is less than the first power threshold, the sum of the power correction value and the current power is determined as the target power.
[0097] If the current power is less than the first power threshold, it indicates that the compressor has not yet reached the preset low load level. The system can apply full PID correction to quickly increase the output and allow the compressor to enter the high-efficiency operating range as soon as possible.
[0098] Optionally, if the current power is greater than or equal to the first power threshold and less than the second power threshold, then the sum of the current power and the power correction value of the first ratio is determined as the target power.
[0099] Once the current power is greater than or equal to the first power threshold and less than the second power threshold, it indicates that the current power is already large. When increasing the power, it is necessary to consider whether the air conditioning system of the target vehicle can handle the power load. Therefore, the power correction value can be reduced by the first ratio, and the reduced value can be added to the current power to obtain the target power.
[0100] If the current power is greater than or equal to the second power threshold, then the second power threshold is determined as the target power. At this time, the compressor has approached or reached the system's preset maximum safe output power. Continuing to increase the power may lead to overload or excessive energy consumption. Therefore, the second power threshold is directly used as the target power to ensure the safety boundary.
[0101] Step 405: Determine the target speed of the compressor of the target vehicle based on the target power.
[0102] In this embodiment of the application, the target power needs to be converted into the compressor target speed, and condition judgment and limit are performed in combination with the current compressor speed and the preset speed threshold to ensure the smoothness and safety of speed adjustment.
[0103] Generally, the relationship between compressor power and speed can be approximated as power being directly proportional to the cube of the speed. Therefore, the following relationship can be derived:
[0104] Where n new For the new rotational speed, that is, the target rotational speed, n current To adjust the previous speed, p current To adjust the previous power; p target The target power is the compressor speed. According to the formula above, as long as the current compressor power has not reached the target power, the compressor speed will continue to increase. Even in extreme environments where the compressor speed and power have a non-linear relationship, the compressor speed and power are still generally positively correlated. Therefore, as long as the speed is increased sufficiently, it is easier to break through the non-linear region, thereby increasing the compressor's heating power.
[0105] Optionally, if both the target speed and the speed of the compressor of the target vehicle are less than the speed threshold, the speed of the compressor of the target vehicle shall be controlled to the target speed.
[0106] Both the target speed and the current speed are within a safe range, and no special limiting is required. The compressor speed can be smoothly transitioned from the current state to the target state.
[0107] Optionally, if the target speed is greater than or equal to a speed threshold and the speed of the compressor of the target vehicle is less than the speed threshold, then a first speed difference between the target speed and the speed of the compressor of the target vehicle, and a second speed difference between the speed of the compressor and the speed threshold are obtained.
[0108] The second ratio is obtained based on the first speed difference, and the product of the second ratio and the second speed difference is used as the first control quantity to increase the speed of the compressor of the target vehicle.
[0109] In other words, if the target speed is greater than or equal to the speed threshold, and the compressor speed of the target vehicle is less than the speed threshold, it indicates that the target speed is relatively high, but has not yet exceeded the compressor's tolerance. In this case, the increased speed needs to be limited to a certain extent. Specifically, a second ratio can be used to measure the proportion of the speed from the current speed to the threshold relative to the speed from the current speed to the target speed. Then, the speed is limited using the second ratio; that is, the product of the second ratio and the second speed difference is used as the first control variable.
[0110] Optionally, if the target speed and the speed of the compressor of the target vehicle are both greater than or equal to the speed threshold, then a second control quantity is determined based on the difference between the target speed and the speed threshold, so as to reduce the speed of the compressor of the target vehicle.
[0111] If the target speed causes the current speed of the compressor in the target vehicle to exceed the speed threshold due to current and voltage fluctuations, it indicates that the compressor is working under overload and needs to be reduced. The specific speed reduction can be determined by how much the target speed exceeds the speed threshold, thereby keeping the speed of the compressor in the target vehicle at a safe threshold.
[0112] Step 406: Control the speed of the compressor of the target vehicle based on the target speed.
[0113] In one possible implementation of this application embodiment, the target vehicle is further provided with a PTC module; if the PTC module is detected to be in working state and the difference between the target temperature and the current temperature of the target vehicle is greater than the temperature difference threshold, the speed of the compressor of the target vehicle is controlled according to the power correction value.
[0114] In other words, the solution shown in the embodiments of this application can be applied to target vehicles that do not have a PTC module (i.e., a PTC heater). On the other hand, if the target vehicle has a PTC module, and heating through the PTC module still cannot raise the temperature of the target vehicle to the target temperature, then the solution shown in the embodiments of this application can be used to control the compressor. The compressor is controlled to heat by using a PID control method with power as the control target, thereby improving the temperature control capability of the target vehicle in extreme environments.
[0115] Please refer to Figure 5 This illustrates a logic flowchart of a compressor with closed-loop power control according to an embodiment of this application. Figure 5 As shown, when the target vehicle is heating via the compressor, the heating load needs to be calculated based on the current temperature and the target temperature of the target vehicle. Then, the feedforward power of the compressor is derived from the calculated heating load. Simultaneously, the target vehicle also needs to deduce the actual power of the compressor based on its current control state. Finally, based on the error between the actual power and the feedforward power of the compressor, a PID algorithm is used to calculate the feedback power of the compressor.
[0116] Then, the target power can be determined by the feedback power of the compressor and the current power of the compressor. At this point, it is determined whether the target power meets the power limit. If it does, the speed at which the compressor should operate is directly calculated based on the target power. At this point, it is also necessary to determine whether the speed limit is met when controlling the speed of the compressor. If it is met, the speed can be used as the control target of the final output of the single PID control to control the compressor to operate at that speed.
[0117] In summary, when controlling the temperature of a target vehicle under extreme temperature conditions, the system can obtain the target temperature and the current temperature of the vehicle. Then, based on these conditions, an initial power is calculated. Next, using the initial power and the current power of the vehicle's compressor, a power correction value is obtained through proportional-integral-derivative (PI) calculations. This power correction value is then used to control the compressor speed, thereby achieving temperature control within the vehicle. In this scheme, power is directly used as the control target for PID control. Even if the relationship between compressor speed and power is non-linear under extreme conditions, controlling the compressor speed can ensure that the compressor power meets the requirements, thus improving the air conditioning's temperature control capability under extreme temperatures.
[0118] This application also provides a compressor control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0119] This application provides a compressor control device. Figure 6 This is a schematic diagram of a compressor control device provided in an embodiment of this application. The device is installed in a target vehicle and includes:
[0120] Temperature acquisition module 601 is used to acquire the target temperature and the current temperature of the target vehicle;
[0121] The power acquisition module 602 is used to acquire initial power based on the target temperature and the current temperature;
[0122] The power correction module 603 is used to obtain a power correction value by proportional-integral-derivative (PID) based on the initial power and the current power of the compressor of the target vehicle.
[0123] The speed control module 604 is used to control the speed of the compressor of the target vehicle according to the power correction value.
[0124] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0125] In this embodiment, the compressor control device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0126] This invention also provides a computer device, which is installed in a target vehicle, or the computer device is implemented as a cloud server corresponding to the target vehicle, and the computer device has the above-mentioned features. Figure 6 The compressor control unit shown.
[0127] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 7 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information in a graphical user interface on an external input / output device (such as a display device coupled to the interface). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take a processor 10 as an example.
[0128] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0129] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0130] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 620 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0131] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0132] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0133] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0134] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0135] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A compressor control method, characterized in that, The method is applied to a target vehicle, which is equipped with a PTC module, and the method includes: Obtain the target temperature and the current temperature of the target vehicle; Based on the target temperature and the current temperature, an initial power is obtained, wherein the initial power is the compressor feedforward power that matches the temperature deviation between the target temperature and the current temperature; The voltage and current of the compressor motor are collected by voltage and current sensors, and the input power of the motor is determined based on the voltage and current. The current efficiency of the compressor is determined according to a preset compressor efficiency mapping table; The current output heating power of the compressor is determined based on the current efficiency and the input power, and the heating power is determined as the current power of the compressor of the target vehicle. Based on the initial power and the current power of the compressor of the target vehicle, a power correction value is obtained through proportional-integral-derivative (PID) calculation. If the PTC module is detected to be in working condition, and the difference between the target temperature and the current temperature of the target vehicle is greater than the temperature difference threshold, then the target power is obtained based on the power correction value and the current power. The target rotational speed of the compressor of the target vehicle is determined based on the target power. The compressor speed of the target vehicle is controlled based on the target rotational speed.
2. The method according to claim 1, characterized in that, The step of obtaining the target power based on the power correction value and the current power includes: If the current power is less than the first power threshold, the sum of the power correction value and the current power is determined as the target power.
3. The method according to claim 2, characterized in that, The method further includes: If the current power is greater than or equal to the first power threshold and less than the second power threshold, then the sum of the current power and the power correction value of the first ratio is determined as the target power; If the current power is greater than or equal to the second power threshold, then the second power threshold is determined as the target power.
4. The method according to claim 1, characterized in that, The control of the compressor speed of the target vehicle based on the target speed includes: If both the target speed and the speed of the compressor of the target vehicle are less than the speed threshold, the speed of the compressor of the target vehicle will be controlled to the target speed.
5. The method according to claim 1, characterized in that, The control of the compressor speed of the target vehicle based on the target speed includes: If the target speed is greater than or equal to a speed threshold, and the speed of the compressor of the target vehicle is less than the speed threshold, then a first speed difference between the target speed and the speed of the compressor of the target vehicle, and a second speed difference between the speed of the compressor and the speed threshold are obtained. The second ratio is obtained based on the first speed difference, and the product of the second ratio and the second speed difference is used as the first control quantity to increase the speed of the compressor of the target vehicle.
6. The method according to claim 1, characterized in that, The control of the compressor speed of the target vehicle based on the target speed includes: If both the target rotational speed and the rotational speed of the compressor of the target vehicle are greater than or equal to the rotational speed threshold, then a second control quantity is determined based on the difference between the target rotational speed and the rotational speed threshold, so as to reduce the rotational speed of the compressor of the target vehicle.
7. A compressor control device, characterized in that, The device is applied to a target vehicle, which is equipped with a PTC module, and the device includes: A temperature acquisition module is used to acquire the target temperature and the current temperature of the target vehicle; A power acquisition module is used to acquire an initial power based on the target temperature and the current temperature, wherein the initial power is a compressor feedforward power that matches the temperature deviation between the target temperature and the current temperature; The voltage and current of the compressor motor are collected by voltage and current sensors, and the input power of the motor is determined based on the voltage and current. The current efficiency of the compressor is determined according to a preset compressor efficiency mapping table; The current output heating power of the compressor is determined based on the current efficiency and the input power, and the heating power is determined as the current power of the compressor of the target vehicle. A power correction module is used to obtain a power correction value based on the initial power and the current power of the compressor of the target vehicle through proportional-integral-derivative (PID) calculation. The speed control module is used to obtain the target power based on the power correction value and the current power if it detects that the PTC module is in working state and the difference between the target temperature and the current temperature of the target vehicle is greater than the temperature difference threshold. The target rotational speed of the compressor of the target vehicle is determined based on the target power. The compressor speed of the target vehicle is controlled based on the target rotational speed.
8. A vehicle, characterized in that, The system includes a vehicle controller, which includes a memory and a processor. The memory and the processor are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the compressor control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the compressor control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle cooling control method and system and vehicle
CN112902471A
Heat management system and method of pure electric vehicle
CN113942362A
Automobile compressor rotating speed control method and device, computer equipment and storage medium
CN115653884A
Control method and control device for power generation of range extender and vehicle
CN117507862A