Compressor control method and device, vehicle and storage medium

By adopting power closed-loop control in the electric vehicle air conditioning system and adjusting the compressor speed using proportional integral differential, the problem of the air conditioning system not being able to effectively heat up under low temperature conditions is solved, and efficient temperature control is achieved at extreme temperatures.

CN120481561APending Publication Date: 2025-08-15GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510912873.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-02
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

Under low temperature conditions, the traditional PID control of electric vehicle air conditioning systems cannot effectively increase the vehicle temperature, resulting in the air conditioning being unable to heat normally, and the energy consumption and mechanical wear increase.

Method used

By obtaining the target temperature and current temperature, calculating the initial power, and using the proportional integral differential controller to obtain the power correction value, adjust the compressor speed to match the actual demand, and realize power closed-loop control.

Benefits of technology

Improve the temperature control capability of the air conditioner at extreme temperatures, ensuring that the compressor power meets the needs and reduces energy consumption and mechanical wear.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120481561A_ABST
    Figure CN120481561A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, and discloses a compressor control method and device, a vehicle and a storage medium. The method comprises the steps that the target temperature and the current temperature of the target vehicle are obtained; acquiring initial power according to the target temperature and the current temperature; based on the initial power and the current power of a compressor of the target vehicle, a power correction value is obtained through proportional integral differential; and according to the power correction value, the rotating speed of a compressor of the target vehicle is controlled. By means of the scheme, even if the rotating speed and the compressor power are in a nonlinear relation under the extreme condition, the compressor power can meet the requirement by controlling the rotating speed of the compressor, and therefore the temperature control capacity of the air conditioner under the extreme temperature is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle control, and in particular to a compressor control method, device, vehicle and storage medium. Background Art

[0002] The current range of electric vehicles is limited by the battery energy storage density. The air-conditioning system is the second largest subsystem of the vehicle's energy consumption, and its energy efficiency optimization directly affects the actual range of electric vehicles.

[0003] Currently, most electric vehicle air conditioning algorithms use PID control. PID control is based on speed control, affecting the control target by changing the compressor speed. For example, the temperature of the air outlet air is affected by changes in the compressor speed, and the difference between the target outlet air temperature and the actual outlet air temperature is used as feedback to control the compressor speed. However, in low-temperature conditions, if the compressor is directly used as the system heat source, the speed-heating amount transfer relationship changes, and the traditional control variable closed-loop speed is delayed and distorted. At this time, the system heat is completely dependent on the work of the compressor, and the ambient heat source buffer is lost. The matching relationship between the speed and conventional control variables (such as air temperature) changes. As a result, although the air conditioner speed is increased through PID, the actual vehicle temperature does not increase, resulting in the air conditioner being unable to heat normally at low temperatures. Summary of the Invention

[0004] In view of this, the present application provides a compressor control method, device, vehicle and storage medium, which improve the temperature control capability of the air conditioner 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] Obtaining a target temperature and a current temperature of the target vehicle;

[0007] Obtaining initial power according to the target temperature and the current temperature;

[0008] Obtaining a power correction value through proportional-integral-differential (PID) based on the initial power and the current power of the compressor of the target vehicle;

[0009] The rotational speed of the compressor of the target vehicle is controlled according to the power correction value.

[0010] In an optional embodiment, controlling the speed of the compressor of the target vehicle according to the power correction value includes:

[0011] Obtaining a target power according to the power correction value and the current power;

[0012] determining a target speed of a compressor of the target vehicle according to the target power;

[0013] The rotation speed of the compressor of the target vehicle is controlled based on the target rotation speed.

[0014] In an optional implementation manner, obtaining the target power according to 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 embodiment, 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, 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 a second power threshold, the second power threshold is determined as the target power.

[0019] In an optional embodiment, controlling the speed of the compressor of the target vehicle based on the target speed includes:

[0020] If the target speed and the speed of the compressor of the target vehicle are both less than a speed threshold, the speed of the compressor of the target vehicle is controlled to be the target speed.

[0021] In an optional embodiment, controlling the speed of the compressor of the target vehicle based on the target 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, obtaining 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;

[0023] A second ratio is obtained according to the first speed difference, and a product of the second ratio and the second speed difference is used as a first control variable to increase the speed of the compressor of the target vehicle.

[0024] In an optional embodiment, controlling the speed of the compressor of the target vehicle based on the target speed includes:

[0025] If the target speed and the speed of the compressor of the target vehicle are both greater than or equal to a speed threshold, a second control amount is determined according to a difference between the target speed and the speed threshold to reduce the speed of the compressor of the target vehicle.

[0026] In an optional embodiment, the target vehicle is further provided with a PTC module;

[0027] The method controls the rotation speed of the compressor of the target vehicle according to the power correction value, including:

[0028] If it is detected that the PTC module is in an operating state and the difference between the target temperature and the current temperature of the target vehicle is greater than a temperature difference threshold, the speed of the compressor of the target vehicle is controlled according to the power correction value.

[0029] In a second aspect, a compressor control device is provided, the device being disposed on a target vehicle, the device comprising:

[0030] A temperature acquisition module, used to acquire a target temperature and a current temperature of the target vehicle;

[0031] A power acquisition module, configured to acquire initial power according to the target temperature and the current temperature;

[0032] a power correction module, configured to obtain a power correction value through proportional-integral-differential (PID) based on the initial power and the current power of the compressor of the target vehicle;

[0033] A speed control module is used to control the speed of the compressor of the target vehicle according to the power correction value.

[0034] In a third aspect, a vehicle is provided, comprising a vehicle controller, wherein the vehicle controller comprises a memory and a processor, wherein the memory and the processor are communicatively connected to each other, wherein computer instructions are stored in the memory, and the processor executes the compressor control method of the first aspect by executing the computer instructions.

[0035] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the above-mentioned compressor control method.

[0036] In a fifth aspect, a computer program product or a computer program is provided, comprising computer instructions for causing a computer to execute the above-mentioned compressor control method.

[0037] The technical solution provided by this application may have the following beneficial effects:

[0038] When a target vehicle is temperature-controlled in an extreme temperature environment, the target temperature to be adjusted and the current temperature of the target vehicle can be obtained. The initial power is then calculated based on the target temperature and the current temperature. A power correction value is then obtained using proportional-integral-differential (PID) based on the initial power and the current power of the target vehicle's compressor. The speed of the target vehicle's compressor is then controlled using the power correction value, thereby achieving temperature control in the target vehicle. In the above scheme, power is directly used as the control target for PID control. Even in extreme cases where the speed and compressor power have a nonlinear relationship, the compressor power can be controlled to meet the required power by controlling the compressor speed, thereby improving the air conditioner's temperature control capabilities in extreme temperatures. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 A schematic diagram of the architecture of a vehicle involved in an embodiment of the present application is shown.

[0041] Figure 2 A flow chart of a compressor control target quantity according to an embodiment of the present application is shown.

[0042] Figure 3 The figure is a flow chart of a compressor control method according to an exemplary embodiment.

[0043] Figure 4 The figure is a flow chart of a compressor control method according to an exemplary embodiment.

[0044] Figure 5 A logic flow chart of a compressor with closed-loop power control according to an embodiment of the present application is shown.

[0045] Figure 6 It is a structural schematic diagram of a compressor control device provided in an embodiment of the present application.

[0046] Figure 7 It is a structural diagram of a computer device provided by an optional embodiment of the present invention. DETAILED DESCRIPTION

[0047] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.

[0048] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.

[0049] Figure 1 FIG. 1 shows a schematic diagram of the structure of a vehicle involved in an embodiment of the present application. 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. The modules cooperate with each other to jointly ensure the safety, comfort and energy management of the vehicle.

[0050] The driving module is mainly responsible for converting the driver's intention into vehicle movement instructions and 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-computer interaction unit is used to collect the driver's operating instructions through input devices such as the steering wheel, accelerator pedal, and brake pedal; on the other hand, it can feedback the vehicle's current speed, gear position, 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] The electronic power steering unit is used for electronic power steering (EPS) and electronic brake assist (EBA). It provides appropriate power assistance or braking gain through the electronic control unit (ECU) when the driver turns the steering wheel or steps on the brake pedal, making driving easier and safer.

[0053] The chassis control unit is used to integrate the anti-lock braking system (ABS), vehicle stability control (VSC), traction control system (TCS), etc. By real-time collection and processing of information such as wheel speed, yaw rate, and roll angle, it actively intervenes in braking or driving force distribution under conditions such as emergency braking or high-speed cornering to maintain vehicle dynamic stability.

[0054] The sensing and perception interface unit works in conjunction with the vehicle's aforementioned image sensors, millimeter-wave radars, lidars, etc. to continuously monitor the vehicle's surrounding environment and road conditions, and transmits the perception results to the driving control ECU to assist the driver in driving safely or achieve high-level assisted driving functions.

[0055] The optional energy module is responsible for providing power to the vehicle's electronics, powertrain, and air conditioning modules, and intelligently manages energy flow. Depending on the vehicle type, the energy module may include a high-voltage battery pack and battery management system (BMS), a motor, and an inverter unit.

[0056] Among them, BMS is used to ensure that the battery is in the optimal working range by collecting the real-time voltage, current and temperature of the battery cells; at the same time, it uses the SOC (State of Charge) and SOH (State of Health) algorithms to predict the remaining capacity and life of the battery, providing a decision-making basis for subsequent energy distribution and regenerative braking.

[0057] The motor and inverter unit are the driving force of the vehicle. The power motor in the vehicle relies on the inverter to convert DC power into three-phase AC power. The inverter uses pulse-width modulation technology to precisely control the motor's speed and torque. When the vehicle brakes or drives downhill, the motor switches to power generation mode, feeding mechanical energy back to the battery for energy recovery.

[0058] The air conditioning module is used to maintain the temperature, humidity, and air quality of the vehicle interior to enhance passenger comfort. The air conditioning module may include the following main components:

[0059] Sensor array: This includes in-cabin temperature sensors, humidity sensors, solar radiation sensors, and air quality sensors (such as PM2.5 detectors). By collecting real-time environmental parameters inside and outside the cabin, the control system can accurately determine the current cooling, heating, or ventilation status required.

[0060] Temperature Control Unit: This unit coordinates with the evaporator and condenser to regulate the air temperature entering and leaving the cabin by throttling and expanding the high-pressure refrigerant from the compressor (in cooling mode) or exchanging heat (in heating mode). This unit is also equipped with an electronically controlled compressor or electronic expansion valve to precisely adjust the refrigerant flow, improving air conditioning efficiency and reducing energy consumption.

[0061] Air circulation and duct system: including a 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-touch automatic or zoned control requirements set by the occupants; it also has an internal and external circulation switching function, so that it can switch to internal circulation first in environments such as urban exhaust or tunnels to protect the air quality in 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 (typically a specially formulated ceramic). It has a low electrical resistance at low temperatures and rapidly heats up when powered; as the temperature rises, the material's electrical resistance increases significantly. In pure electric or hybrid (HEV / PHEV) vehicles, which cannot rely on "engine waste heat" for heating, PTC heaters are the primary means of heating the interior of the vehicle.

[0063] Due to energy consumption or vehicle production cost considerations, some vehicles do not have a PTC heater in the air conditioning module. In such cases, in low-temperature conditions without a PTC, the compressor serves as the system heat source, but the system heat is completely dependent on the work of the compressor. Figure 2 FIG. 1 shows a flow chart of a compressor control target quantity according to an embodiment of the present application. Figure 2 As shown in the figure, when the compressor speed is controlled by the PID algorithm, in order to simplify the calculation process, the compressor speed can be directly used as the target quantity for control. Specifically, first, after the compressor is started, the target vehicle can be controlled according to the compressor feedforward speed. The compressor feedforward speed is generally set according to the actual situation. The system matches the appropriate value according to the current working conditions and responds quickly to the load demand. After the compressor is started, the system obtains the actual signal value (such as the actual air temperature) through the sensor, compares it with the target (such as the 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 links, the compressor combines the feedforward speed and the feedback speed, and changes the speed under the filter limit. The filter limit refers to the limit on the speed that the compressor can change per second. The purpose is to eliminate the noise in the speed signal, prevent the speed from changing suddenly, and ensure the stability of the control.

[0064] However, the aforementioned low-temperature heating process without PTC assistance still has certain drawbacks. For example, in extremely low ambient temperatures (e.g., -20°C), where the compressor must independently bear the heating load, the matching relationship between compressor speed and heating load becomes complex, and the relationship between speed and compressor power is not linear. Due to factors such as ambient temperature and the ratio of internal and external circulation, the heating load is large, and simple speed control can easily lead to a mismatch between power and load, causing overload operation, increased energy consumption, and mechanical wear.

[0065] Figure 3 This is a flow chart of a compressor control method according to an exemplary embodiment. The method is executed by a computer device, which can be set in a target vehicle to control the air conditioning module in the target vehicle. Figure 2 As shown, the method includes:

[0066] Step 301: Acquire the target temperature and the current temperature of the target vehicle.

[0067] In the embodiment of the present application, the target temperature may be a desired temperature in the vehicle set by the user, or may be 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 the temperature sensor. In the embodiment of the present application, when the target temperature and the current temperature are obtained, the deviation between the current vehicle interior environment and the expected state can be reflected by the two, thereby providing basic parameters for subsequent power calculation.

[0069] Step 302: Obtain initial power according to the target temperature and the current temperature.

[0070] In an embodiment of the present application, the initial power can be calculated based on the difference between the target temperature and the current temperature to reflect the theoretical power value that the compressor needs to output to achieve temperature regulation under the current operating conditions.

[0071] Optionally, the initial power can be obtained by table lookup, linear interpolation, or a neural network model, so as to accurately express 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, a power correction value is obtained through proportional-integral-differential.

[0073] In the embodiment of the present 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 ability to the current temperature control state, thereby 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 of the present application, based on the power correction value obtained, the compressor speed can be adjusted to match the actual cooling or heating capacity required. Optionally, the compressor can be a variable frequency compressor, with the variable frequency control module dynamically adjusting the speed based on the set correction value, thereby bringing the compressor's actual power output closer to the theoretical requirement, improving the efficiency and comfort of in-vehicle temperature control.

[0077] In summary, when the target vehicle is temperature-controlled in an extreme temperature environment, the target temperature to be adjusted and the current temperature of the target vehicle can be obtained. The initial power is then calculated based on the target temperature and the current temperature. The power correction value is then obtained through proportional integral differentiation based on the initial power and the current power of the compressor of the target vehicle. The speed of the compressor of the target vehicle is then controlled by the power correction value, thereby achieving temperature control in the target vehicle. In the above scheme, power is directly used as the control target of PID control. Even if the speed and compressor power have a nonlinear relationship in extreme cases, the compressor power can be controlled to meet the demand by controlling the compressor speed, thereby improving the temperature control capability of the air conditioner under extreme temperatures.

[0078] Figure 4 FIG. 1 is a flow chart of a method for controlling a compressor according to an exemplary embodiment. The method is executed by a computer device, which may be provided in a target vehicle. Figure 4 As shown, the method includes:

[0079] Step 401: Acquire the target temperature and the current temperature of the target vehicle.

[0080] In the embodiment of the present application, the target temperature may be set by the user or automatically generated when the target vehicle is set to automatic mode.

[0081] Specifically, if the driver enters the desired target temperature (e.g., "22°C") on the central control touchscreen, physical knob, or steering wheel shortcut button, or when "automatic air conditioning" mode is turned on, the system combines information such as the external temperature sensor (e.g., -5°C), vehicle speed, and the number of people in the car, using a pre-set empirical model or learning algorithm to generate a recommended temperature (e.g., "21.5°C").

[0082] The current temperature is acquired 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 instrument panel).

[0083] Alternatively, the current temperature can be the average of temperature sensors arranged at multiple candidate points in the target vehicle. For example, there are temperature sensors in the rear headrest and foot area, front headrest and front foot area of the target vehicle. 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 initial power according to the target temperature and the current temperature.

[0085] In the embodiment of the present application, the initial power is the feedforward power, which is used to provide a compressor output value that matches the temperature deviation at the initial stage of control to reduce the response lag caused by pure feedback control.

[0086] Optionally, in an embodiment of the present application, the initial power corresponding to the target temperature and the current temperature can be obtained by table lookup. Specifically, during the calibration phase of the target vehicle, data such as external temperature, vehicle speed, and temperature difference can be collected through a large number of operating conditions to form a table corresponding to temperature and initial power. Therefore, after obtaining the target temperature and current temperature, the target vehicle can directly obtain the initial power by table lookup and interpolation.

[0087] Optionally, in an embodiment of the present application, a power prediction model may be provided in the target vehicle to directly predict the feedforward power of the compressor of the target vehicle at the target temperature and the current temperature through the power prediction model.

[0088] Step 403 : 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-differential.

[0089] In the embodiment of the present application, in order to improve the steady-state accuracy and dynamic response speed, it is necessary to introduce a PID feedback link to compare the current actual output power of the compressor with the feedforward power, so as to dynamically correct the error.

[0090] Specifically, the target vehicle's compressor motor control unit integrates a voltage sensor, a current sensor, and a temperature sensor. The current and voltage collected by the current and voltage sensors are used to calculate the motor's input power. The current efficiency value is then calculated by looking up a preset compressor efficiency mapping table. Based on the efficiency and input power, the current heating power output (i.e., current power) is 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, and 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] Among them, k p 、k i 、k d are proportional, integral, and differential gains respectively; Δt is the control period; e p (k) is the power error at the kth sampling time.

[0094] Step 404: Obtain target power according to the power correction value and the current power.

[0095] In an embodiment of the present application, in order to prevent the compressor from causing system instability due to excessively large or small power instructions, two power thresholds are set to judge 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 a 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 lower load level. The system can apply full PID correction to quickly increase the output and allow the compressor to enter the high-efficiency working range as soon as possible.

[0098] Optionally, if the current power is greater than or equal to a first power threshold and less than a second power threshold, 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 means that the current power is already large. When increasing the power, it is necessary to properly consider whether the air-conditioning system of the target vehicle can bear the power load. Therefore, the power correction value can be reduced by the first ratio, and the reduced value is 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, the second power threshold is set as the target power. At this point, the compressor has approached or reached the system's preset maximum safe output power. Further increasing the power may cause overload or excessive energy consumption. Therefore, the second power threshold is directly used as the target power to ensure a safe margin.

[0101] Step 405 : Determine a target speed of the compressor of the target vehicle according to the target power.

[0102] In the embodiment of the present application, the target power needs to be converted into the target speed of the compressor, and the condition judgment and limiting are performed in combination with the current compressor speed and the preset speed threshold to ensure smooth and safe speed adjustment.

[0103] Generally speaking, the relationship between compressor power and speed can be approximated as power being proportional to the cube of speed. Therefore, the following relationship can be derived:

[0104] where n new is the new speed, that is, the target speed, n current To adjust the speed before, p current is the power before adjustment; p target is the target power. According to the above formula, as long as the current compressor power does not reach the target power, the compressor speed will continue to increase. Even in extreme environments where the relationship between compressor speed and power is nonlinear, the overall correlation between compressor speed and power is still positive. Therefore, as long as the speed is increased sufficiently, it is easier to break through the nonlinear region and increase the compressor's heating power.

[0105] Optionally, if the target speed and the speed of the compressor of the target vehicle are both less than a speed threshold, the speed of the compressor of the target vehicle is controlled to be the target speed.

[0106] The target speed and the current speed are both within the safe range, and no special limiting is required. The compressor speed can be directly and 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, 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] A second ratio is obtained according to the first speed difference, and a product of the second ratio and the second speed difference is used as a first control variable 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 target vehicle's compressor speed is less than the speed threshold, this indicates that the target speed is high but within the compressor's tolerance range. Therefore, the increased speed needs to be limited to a certain extent. Specifically, a second ratio can be used to measure the ratio of the current speed to the threshold to the target speed. The speed is then limited based on the second ratio. Specifically, 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 a speed threshold, a second control amount is determined based on the difference between the target speed and the speed threshold to reduce the speed of the compressor of the target vehicle.

[0111] If the target speed is greater than the speed threshold due to current and voltage jitter or other reasons, it means that the compressor is overloaded and needs to be slowed down. The specific speed reduction can be determined by the second control amount based on how much the target speed exceeds the speed threshold, so as to keep the speed of the compressor of 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 a possible implementation of an embodiment of the present application, a PTC module is also provided in the target vehicle; at this time, if it is detected that the PTC module is in a 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] That is to say, the solution shown in the embodiment of the present application can, on the one hand, be applied to a target vehicle that is not equipped with a PTC module (that is, a PTC heater); on the other hand, if the target vehicle is equipped with a PTC module, if heating by the PTC module still cannot raise the temperature of the target vehicle to the target temperature, then at this time the compressor can be controlled by the solution shown in the embodiment of the present application, and the compressor can be controlled to heat by 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 , which shows a logic flow chart of a compressor with closed-loop power control according to an embodiment of the present application. Figure 5 As shown in the figure, when the target vehicle is heating through the compressor, the heating load must first be calculated based on the current temperature of the target vehicle and the target temperature. The compressor feedforward power is then inferred from the calculated heating load. While calculating the compressor feedforward power, the target vehicle also needs to infer the actual compressor power based on the current state of the compressor control. The compressor feedback power is calculated using the PID algorithm based on the error between the actual compressor power and the compressor feedforward power.

[0116] The target power is then determined based on the compressor's feedback power and current power. The target power is then determined to see if it meets the power limit. If so, the compressor's speed is calculated directly based on the target power. The speed control required to achieve the compressor also needs to determine if it meets the speed limit. If so, that speed can be used as the final output target for a single PID control, controlling the compressor to operate at that speed.

[0117] In summary, when the target vehicle is temperature-controlled in an extreme temperature environment, the target temperature to be adjusted and the current temperature of the target vehicle can be obtained. The initial power is then calculated based on the target temperature and the current temperature. The power correction value is then obtained through proportional integral differentiation based on the initial power and the current power of the compressor of the target vehicle. The speed of the compressor of the target vehicle is then controlled by the power correction value, thereby achieving temperature control in the target vehicle. In the above scheme, power is directly used as the control target of PID control. Even if the speed and compressor power have a nonlinear relationship in extreme cases, the compressor power can be controlled to meet the demand by controlling the compressor speed, thereby improving the temperature control capability of the air conditioner under extreme temperatures.

[0118] The present application also provides a compressor control device for implementing the aforementioned embodiments and preferred implementations. Details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0119] The embodiment of the present application provides a compressor control device, Figure 6 : is a schematic structural diagram of a compressor control device provided in an embodiment of the present application, the device is provided in a target vehicle, and the device includes:

[0120] The temperature acquisition module 601 is used to acquire the target temperature and the current temperature of the target vehicle;

[0121] A power acquisition module 602 is configured to acquire initial power according to the target temperature and the current temperature;

[0122] A power correction module 603 is configured to obtain a power correction value through proportional-integral-differential (PID) based on the initial power and the current power of the compressor of the target vehicle;

[0123] The speed control module 604 is configured to control the speed of the compressor of the target vehicle according to the power correction value.

[0124] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0125] The compressor control device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0126] The embodiment of the present invention further provides a computer device, which is arranged 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 Figure 6 Compressor controls shown.

[0127] See also Figure 7 , Figure 7 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information in the graphical user interface on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0128] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0129] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0130] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 620 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0131] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0132] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0133] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0134] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by the computer.

[0135] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all 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, and the method comprises: Obtaining a target temperature and a current temperature of the target vehicle; Obtaining initial power according to the target temperature and the current temperature; Obtaining a power correction value through proportional-integral-differential (PID) based on the initial power and the current power of the compressor of the target vehicle; The rotational speed of the compressor of the target vehicle is controlled according to the power correction value.

2. The method according to claim 1, characterized in that The controlling the rotational speed of the compressor of the target vehicle according to the power correction value includes: Obtaining a target power according to the power correction value and the current power; determining a target speed of a compressor of the target vehicle according to the target power; The rotation speed of the compressor of the target vehicle is controlled based on the target rotation speed.

3. The method according to claim 2, characterized in that The acquiring the target power according to 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.

4. The method according to claim 3, characterized in that The method further comprises: If the current power is greater than or equal to the first power threshold and less than the second power threshold, 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 a second power threshold, the second power threshold is determined as the target power.

5. The method according to claim 2, characterized in that The controlling the rotational speed of the compressor of the target vehicle based on the target rotational speed includes: If the target speed and the speed of the compressor of the target vehicle are both less than the speed threshold, the speed of the compressor of the target vehicle is controlled to be the target speed.

6. The method according to claim 2, characterized in that The controlling the rotational speed of the compressor of the target vehicle based on the target rotational 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, obtaining 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; A second ratio is obtained according to the first speed difference, and a product of the second ratio and the second speed difference is used as a first control variable to increase the speed of the compressor of the target vehicle.

7. The method according to claim 2, characterized in that The controlling the rotational speed of the compressor of the target vehicle based on the target rotational speed includes: If the target speed and the speed of the compressor of the target vehicle are both greater than or equal to a speed threshold, a second control amount is determined according to a difference between the target speed and the speed threshold to reduce the speed of the compressor of the target vehicle.

8. The method according to any one of claims 1 to 7, characterized in that: The target vehicle is also provided with a PTC module; The method controls the rotation speed of the compressor of the target vehicle according to the power correction value, including: If it is detected that the PTC module is in an operating state and the difference between the target temperature and the current temperature of the target vehicle is greater than a temperature difference threshold, the speed of the compressor of the target vehicle is controlled according to the power correction value.

9. A compressor control device, characterized in that: The device is applied to a target vehicle, and the method includes: A temperature acquisition module, used to acquire a target temperature and a current temperature of the target vehicle; A power acquisition module, configured to acquire initial power according to the target temperature and the current temperature; a power correction module, configured to obtain a power correction value through proportional-integral-differential (PID) based on the initial power and the current power of the compressor of the target vehicle; A speed control module is used to control the speed of the compressor of the target vehicle according to the power correction value.

10. A vehicle, characterized in that: The vehicle controller 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 compressor control method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the compressor control method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Compressor control method and control device and refrigerator

    CN106642979A

  • Environmental process air conditioner control method, system and device, equipment and medium

    CN112303835A

  • Vehicle cooling control method and system and vehicle

    CN112902471A

  • Control method, device and system of air conditioner compressor, air conditioner controller and vehicle

    CN113263890A

  • Heat management system and method of pure electric vehicle

    CN113942362A