Environment temperature self-adaptive compensation control method of heat pump and related device

By adaptively selecting the ambient temperature value and combining it with multi-point piecewise linear interpolation, the problem of unstable heating caused by sensor malfunctions and changes in the operating stage in the heat pump system is solved, and the efficient and reliable operation of the heat pump system under different operating conditions is achieved.

CN123134644APending Publication Date: 2026-11-20GUANGDONG PHNIX ECO ENERGY SOLUTION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611143313.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing heat pump systems lack adaptive processing mechanisms for abnormal sensor states and different operating stages of the system, resulting in unreliable ambient temperature compensation values, leading to unstable heating output, reduced energy efficiency, and frequent malfunctions.

Method used

By acquiring curve selection parameters, the sensor status and system operation stage are determined, and the ambient temperature value after real-time or smoothing is adaptively selected. The compensation target temperature is calculated by combining multi-point piecewise linear interpolation method, so as to realize the shielding compensation function when the sensor fails and output the default value, ensuring the stable operation of the system at different stages.

Benefits of technology

It improves the heating efficiency and operational reliability of the heat pump system under all operating conditions, reduces the risk of compressor frequency fluctuations and malfunctions, and enhances the system's maintenance convenience and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123134644A_ABST
    Figure CN123134644A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of heat pump control, and discloses a kind of environmental temperature self-adapting compensation control method of heat pump and related equipment.The method comprises: obtaining curve selection parameter, whether to enable new ring temperature compensation curve is determined according to its configuration value, and when enabling, state flag signal is sent to host equipment;Temperature signal and fault state signal of environmental temperature sensor are collected, and whether the sensor is in normal working state is judged accordingly;The running stage that the system is currently in is judged;When sensor is not normal, shield compensation function and output preset fault default temperature value;When sensor is normal, real-time temperature value or temperature value after smoothing processing is selected as effective environmental temperature value according to running stage;The target temperature of basic ring temperature compensation is calculated by multi-point piecewise linear interpolation method, and it is used as final heating target temperature output to control compressor operation, so that the heating energy efficiency and operation reliability of heat pump system under all working conditions are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of heat pump control technology, and in particular to a heat pump ambient temperature adaptive compensation control method and related equipment. Background Technology

[0002] Existing heat pump systems typically employ a single, fixed ambient temperature compensation curve for ambient temperature compensation control. This involves a pre-set table mapping ambient temperature to the target heating temperature. The controller collects data from the ambient temperature sensor, directly looks up the table, or calculates the target compensation temperature through linear interpolation, and then controls the compressor frequency accordingly. This approach has significant shortcomings in practical applications: ambient temperature sensors are susceptible to factors such as installation location, wind and rain, and aging wiring, resulting in momentary jumps, drift, or even short-term malfunctions. Existing control methods fail to effectively distinguish between actual temperature changes and abnormal disturbances from the sensor, leading to frequent fluctuations in the target compensation temperature. This causes severe oscillations in the compressor's operating frequency, ultimately resulting in unstable heating output, reduced energy efficiency, and in severe cases, triggering low-pressure protection or high-temperature exhaust protection malfunctions. The most critical technical problem is the lack of an adaptive processing mechanism for abnormal sensor states and different system operating stages, making it impossible to provide reliable ambient temperature compensation values ​​during sensor signal anomalies or dynamic system transitions. Summary of the Invention

[0003] This invention provides an adaptive ambient temperature compensation control method and related equipment for heat pumps, in order to solve the problem in the prior art that the lack of an adaptive processing mechanism for abnormal sensor states and different operating stages of the system leads to the inability to provide reliable ambient temperature compensation values ​​during abnormal sensor signals or dynamic transitions of the system.

[0004] The first aspect of this invention provides an adaptive ambient temperature compensation control method for a heat pump, comprising: acquiring curve selection parameters; determining whether to enable a new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and sending a status flag signal indicating that the current mainboard has enabled the new ambient temperature compensation curve when enabled; acquiring ambient temperature signals and fault status signals from an ambient temperature sensor; determining whether the ambient temperature sensor is in normal working condition based on the ambient temperature signals and the fault status signals; determining the current operating stage of the system, wherein the operating stage is a power-on start-up stage, a sensor fault recovery stage, a defrosting operation stage, or a steady-state operation stage; when the ambient temperature sensor is in an abnormal operating state, disabling the ambient temperature compensation function and outputting a preset fault default temperature value as the basic compensation target temperature; when the ambient temperature sensor is in normal working condition, adaptively selecting a real-time ambient temperature value or a smoothed ambient temperature value as the effective ambient temperature value for the current period based on the current operating stage of the system; calculating the basic ambient temperature compensation target temperature using a multi-point piecewise linear interpolation method based on the effective ambient temperature value; and outputting the basic ambient temperature compensation target temperature as the final heating target temperature of the heat pump system to control the compressor operation.

[0005] In one feasible implementation, determining whether to enable a new ambient temperature compensation curve based on the configuration value of the curve selection parameter includes: determining whether the configuration value of the curve selection parameter is a first configuration value, a second configuration value, or a third configuration value; when the configuration value of the curve selection parameter is the second configuration value, determining that the new ambient temperature compensation curve is enabled, and setting the status flag signal used to notify the upper device to an active state; when the configuration value of the curve selection parameter is the first configuration value or the third configuration value, determining that the new ambient temperature compensation curve is not enabled, and controlling the status flag signal to remain in an inactive state.

[0006] In one feasible implementation, determining whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal includes: acquiring the temperature value corresponding to the ambient temperature signal of the ambient temperature sensor; determining whether the temperature value is within a preset effective range; when the temperature value is within the preset effective range and the fault status signal is invalid, determining that the ambient temperature sensor is in normal working condition; otherwise, determining that the ambient temperature sensor is in abnormal working condition.

[0007] In one feasible implementation, the step of adaptively selecting the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period based on the current operating stage of the system includes: determining whether the current operating stage of the system belongs to a first type of stage or a second type of stage; when the system is currently in the first type of stage, directly using the real-time ambient temperature value of the ambient temperature sensor as the effective ambient temperature value for the current period, wherein the first type of stage includes the power-on startup stage and the sensor fault recovery stage; when the system is currently in the second type of stage, performing smoothing filtering on multiple real-time sampled values ​​of the ambient temperature sensor within a preset time window, and using the ambient temperature value obtained after smoothing filtering as the effective ambient temperature value for the current period, wherein the second type of stage includes the defrosting operation stage and the steady-state operation stage.

[0008] In one feasible implementation, the step of calculating the base ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method includes: obtaining a preset plurality of ambient temperature-compensation temperature calibration points, wherein the plurality of calibration points are arranged in ascending order along the ambient temperature dimension; selecting a first calibration point and a second calibration point adjacent to the temperature range in which the effective ambient temperature value is located among the plurality of calibration points, based on the temperature range in which the effective ambient temperature value is located; and calculating the base ambient temperature compensation target temperature corresponding to the effective ambient temperature value using a linear interpolation formula based on the coordinate values ​​of the first calibration point and the second calibration point.

[0009] In one feasible implementation, selecting a first calibration point and a second calibration point adjacent to the temperature range of the effective ambient temperature value among the plurality of calibration points includes: sequentially comparing the effective ambient temperature value with the ambient temperature value corresponding to each of the plurality of calibration points; determining a target temperature range of the effective ambient temperature value among the plurality of calibration points, wherein the target temperature range is a temperature range defined by two adjacent calibration points, and the effective ambient temperature value is greater than or equal to the lower limit of the target temperature range and less than the upper limit of the target temperature range; and selecting the calibration point with the smaller ambient temperature value among the two calibration points defining the target temperature range as the first calibration point and the calibration point with the larger ambient temperature value as the second calibration point.

[0010] In one feasible implementation, the step of calculating the base ambient temperature compensation target temperature corresponding to the effective ambient temperature value using a linear interpolation formula based on the coordinate values ​​of the first calibration point and the second calibration point includes: obtaining the first ambient temperature value of the first calibration point and its corresponding first compensation temperature value, and the second ambient temperature value of the second calibration point and its corresponding second compensation temperature value; calculating the linear interpolation slope and linear interpolation intercept of the temperature interval in which the effective ambient temperature value is located based on the first ambient temperature value, the first compensation temperature value, the second ambient temperature value, and the second compensation temperature value; and calculating the base ambient temperature compensation target temperature based on the linear interpolation slope, the linear interpolation intercept, and the effective ambient temperature value.

[0011] A second aspect of the present invention provides an ambient temperature adaptive compensation control device for a heat pump, comprising: a first determining module, configured to acquire curve selection parameters, determine whether to enable a new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal indicating that the new ambient temperature compensation curve is currently enabled on the host device when enabled; a acquiring module, configured to acquire ambient temperature signals and fault status signals from an ambient temperature sensor; a first judging module, configured to judge whether the ambient temperature sensor is in normal working condition based on the ambient temperature signals and the fault status signals; and a second determining module, configured to determine the current operating stage of the system, wherein the operating stage is a power-on startup stage, a sensor fault recovery stage, or a defrosting operation stage. The system is divided into several phases: a phased or steady-state operation phase; an output module, used to disable the ambient temperature compensation function and output a preset fault default temperature value as the basic compensation target temperature when the ambient temperature sensor is in an abnormal operating state; a selection module, used to adaptively select the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period according to the current operating phase of the system when the ambient temperature sensor is in a normal operating state; a calculation module, used to calculate the basic ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method; and a control module, used to output the basic ambient temperature compensation target temperature as the final heating target temperature of the heat pump system to control the compressor operation.

[0012] A third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the electronic device to execute the above-described adaptive ambient temperature compensation control method for a heat pump.

[0013] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the above-described adaptive ambient temperature compensation control method for a heat pump.

[0014] In this embodiment of the invention, by introducing curve selection parameters and interacting with the status flags of the host device, flexible switching between old and new compensation curves and remote visual management of the motherboard status are achieved, improving the system's maintenance convenience and compatibility. Simultaneously, dual diagnosis is performed based on the signal and fault status of the ambient temperature sensor. When the sensor malfunctions, the compensation function is actively disabled and a preset default value is output, effectively avoiding control failures caused by sensor short circuits, open circuits, or data jumps. Based on the differences in temperature response speed and stability requirements at different stages of the system, such as power-on startup, fault recovery, defrosting, and steady-state operation, the system adaptively selects real-time temperature or smoothed temperature for calculation, and combines multi-point piecewise linear interpolation to generate the basic compensation target temperature. This ensures rapid response of heating output during dynamic processes such as startup and defrosting exit, and significantly suppresses environmental noise disturbances during steady-state operation, thereby greatly reducing compressor frequency fluctuations and the risk of malfunction, and improving the heating efficiency and operational reliability of the heat pump system under all operating conditions. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of an embodiment of the adaptive compensation control method for ambient temperature of a heat pump according to the present invention; Figure 2 This is a schematic diagram of another embodiment of the adaptive compensation control method for ambient temperature of a heat pump according to the present invention; Figure 3 This is a schematic diagram of an embodiment of the ambient temperature adaptive compensation control device for a heat pump according to the present invention; Figure 4 This is a schematic diagram of another embodiment of the ambient temperature adaptive compensation control device for the heat pump in this invention. Figure 5 This is a schematic diagram of one embodiment of the electronic device in this invention. Detailed Implementation

[0016] This invention provides a heat pump ambient temperature adaptive compensation control method and related equipment. By adaptively selecting a temperature processing strategy based on the sensor's working status and the system's operating stage, and combining it with multi-point piecewise linear interpolation to calculate the compensation target temperature, the heating efficiency and operational reliability of the heat pump system under all operating conditions are improved.

[0017] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0018] It is understood that the executing entity of this invention can be an ambient temperature adaptive compensation control device for a heat pump, or it can be a terminal or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0019] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the adaptive ambient temperature compensation control method for heat pumps in this invention includes: 101. Obtain the curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal to the host device that the new ambient temperature compensation curve has been enabled on the current motherboard when enabled. By reading the configuration value of the curve selection parameter corresponding to the preset ambient temperature compensation curve, the ambient temperature compensation curve includes the old ambient temperature compensation curve and the new ambient temperature compensation curve. The old ambient temperature compensation curve is a factory-preset single linear or fixed two-segment compensation curve, while the new ambient temperature compensation curve is a multi-point broken line formed by selecting multiple key temperature inflection points and calibrating the actual heating output characteristics of the heat pump under different ambient temperatures. The configuration value is compared with the activation threshold (e.g., "1" represents enabling the new curve, and "0" represents keeping the old curve). To avoid frequent policy oscillations caused by electromagnetic interference or operational jitter, an anti-jitter confirmation mechanism is introduced. The final decision result is locked only after the same valid value is read for multiple consecutive control cycles. Once the activation is confirmed, the controller immediately switches the internal software flag to "new curve mode" and redirects the interpolation table pointer of the compensation calculation module to call the feature point dataset of the new curve, thereby completing the synchronous switching of logic and data resources. Subsequently, the motherboard actively sends a status flag signal to the upper-level device (e.g., the centralized controller) to clearly inform that the new ambient temperature compensation curve has been enabled, ensuring that the monitoring layer and the control layer policies are consistent. This solution not only meets the operation and maintenance needs of flexibly selecting compensation strategies in different scenarios, but also provides a clear version identifier for subsequent data recording, energy efficiency analysis, and fault tracing, effectively avoiding monitoring blind spots or misjudgments by upper and lower-level machines due to policy changes.

[0020] 102. Collect ambient temperature signals and fault status signals from the ambient temperature sensor; The temperature signal is converted from the resistance value (e.g., NTC thermistor) or current value by the sensor into an analog voltage quantity, which is then sampled and filtered by the analog-to-digital converter to obtain a digital temperature value. The fault status signal is generated by an independent hardware comparator or sensor self-diagnostic chip, which continuously monitors whether there are abnormalities such as open circuit, short circuit or exceeding the measurement range in the sensor circuit, and sends it directly to the general-purpose input / output port of the main control CPU in digital level (e.g., high level indicates normal and low level indicates fault).

[0021] 103. Determine whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and fault status signal; Check whether the fault status signal is at a valid "fault-free" level or value. If the signal indicates a hardware abnormality such as open circuit, short circuit, or over-range, it is directly determined to be in an abnormal working state without further checking the temperature value. Under the premise that the fault status signal is normal, further verify the rationality of the collected ambient temperature value to determine whether it falls within the preset physical feasible range (such as covering the upper and lower limits of local climate extremes). At the same time, check whether the difference between the current reading and the value of the previous cycle exceeds the maximum allowable rate of change to eliminate abrupt spurious values ​​caused by electromagnetic interference or sensor aging. Only when both of the above checks pass will the system finally confirm that the sensor is currently in a true normal working state.

[0022] 104. Determine the current operating stage of the system, which may be the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage; The system is determined to be in the power-on startup phase by detecting the initialization completion flag after the main control chip is powered on and whether the first round of temperature sampling is ready. The system is also in the recovery and stabilization phase by continuously monitoring the moment when the sensor fault flag switches from "abnormal" to "normal" and starting a preset recovery and stabilization timer. The system is considered to be in the sensor fault recovery phase before the timer is completed. The system is in the defrost operation phase by reading the defrost activation status signal in the heat pump main control logic (usually from the defrost command triggered by low pressure or fin temperature). When none of the above three special flags are true and the system has been running stably for more than a certain time threshold, it is automatically classified into the steady-state operation phase. This multi-flag joint judgment mechanism ensures the accuracy of phase division and the ability to resist disturbances.

[0023] 105. When the ambient temperature sensor is in an abnormal working state, the ambient temperature compensation function is disabled, and the preset fault default temperature value is output as the basic compensation target temperature. The ambient temperature compensation function is bypassed entirely through software logic, prohibiting any interpolation calculations based on the current erroneous temperature value. This prevents abnormal readings from causing drastic fluctuations in the compressor's target temperature or causing it to operate beyond its limits. Subsequently, a fixed default temperature value is directly retrieved from the preset fault parameter table. This value is usually set based on the empirical safety boundary of the heat pump under typical operating conditions, and it is used as the base compensation target temperature for the current cycle and directly output to subsequent control links. The entire switching process simultaneously triggers fault log recording and sends alarm signals to the upper-level equipment so that maintenance personnel can intervene in a timely manner. Heating operation is maintained based on this default value until the sensor status returns to normal, at which point it automatically switches back to normal compensation mode. This ensures equipment safety while minimizing unplanned downtime.

[0024] 106. When the ambient temperature sensor is in normal working condition, the system adaptively selects the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, depending on the current operating stage of the system. During the power-on startup and sensor fault recovery phases, because sensor readings are not yet stable or have residual transient errors, temperature values ​​processed by smoothing filtering (such as first-order hysteresis filtering or moving average) are selected to suppress startup shocks and recovery period fluctuations. During the defrosting operation phase, because defrosting causes irregular and drastic temperature changes near the outdoor heat exchanger, smoothed values ​​are also prioritized to maintain the stability of the control output and avoid frequent jumps in compressor frequency due to temperature spikes. In the steady-state operation phase, the system directly uses real-time sampled temperature values ​​to quickly sense the slow natural drift of ambient temperature and make timely adjustments. This differentiated selection strategy achieves an optimal balance between dynamic response sensitivity and noise immunity robustness, ensuring that compressor control commands under all operating conditions are based on the most reasonable temperature reference.

[0025] 107. Based on the effective ambient temperature value, calculate the base ambient temperature compensation target temperature using the multi-point piecewise linear interpolation method; The currently obtained reliable and effective temperature value is used as the input variable. Then, the range between the two adjacent feature nodes where the input value is located is found in the feature temperature point array stored in the controller. After the range is determined, interpolation calculation is performed according to the linear proportional relationship based on the x-coordinate and y-coordinate of the two nodes (i.e., the known ambient temperature and its corresponding ideal compensation target value) to obtain the compensation target temperature that accurately corresponds to the input value. If the input value falls exactly on a certain feature node, the target value of that node is directly used. If it falls outside the overall range, the target value of the nearest end node is used as the limiting output. The entire calculation process is executed quickly once in each control cycle, which not only ensures the continuous smoothness of the compensation curve, but also avoids the computational overhead caused by complex functions.

[0026] 108. Use the base ambient temperature compensation target temperature as the final heating target temperature output of the heat pump system to control the operation of the compressor.

[0027] The base ambient temperature compensation target temperature is directly assigned to the final target temperature register in the heat pump heating mode, and sent to the compressor drive module via the control output channel. The compressor then uses this target temperature as the control benchmark and adjusts its operating frequency or on / off ratio through frequency conversion or start / stop methods to make the actual evaporation temperature or outlet water temperature approach the target value. At the same time, the final target temperature is also used in conjunction with auxiliary links such as electronic expansion valve opening adjustment and fan speed control to achieve system-level coordinated response. The entire output process belongs to the setpoint update link in closed-loop control and is executed once in each control cycle, thereby ensuring that the target temperature can be dynamically adjusted according to environmental changes and stage logic, maintaining the heat pump's high efficiency and stable heating under changing operating conditions.

[0028] In this embodiment of the invention, by introducing curve selection parameters and interacting with the status flags of the host device, flexible switching between old and new compensation curves and remote visual management of the motherboard status are achieved, improving the system's maintenance convenience and compatibility. Simultaneously, dual diagnosis is performed based on the signal and fault status of the ambient temperature sensor. When the sensor malfunctions, the compensation function is actively disabled and a preset default value is output, effectively avoiding control failures caused by sensor short circuits, open circuits, or data jumps. Based on the differences in temperature response speed and stability requirements at different stages of the system, such as power-on startup, fault recovery, defrosting, and steady-state operation, the system adaptively selects real-time temperature or smoothed temperature for calculation, and combines multi-point piecewise linear interpolation to generate the basic compensation target temperature. This ensures rapid response of heating output during dynamic processes such as startup and defrosting exit, and significantly suppresses environmental noise disturbances during steady-state operation, thereby greatly reducing compressor frequency fluctuations and the risk of malfunction, and improving the heating efficiency and operational reliability of the heat pump system under all operating conditions.

[0029] Please see Figure 2 Another embodiment of the adaptive ambient temperature compensation control method for heat pumps in this invention includes: 201. Obtain the curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal to the host device that the new ambient temperature compensation curve has been enabled on the current motherboard when enabled. Determine whether the configuration value of the curve selection parameter is the first, second, or third configuration value; when the configuration value of the curve selection parameter is the second configuration value, determine that the new ambient temperature compensation curve is enabled and set the status flag signal used to notify the upper device to the valid state; when the configuration value of the curve selection parameter is the first or third configuration value, determine that the new ambient temperature compensation curve is not enabled and keep the status flag signal in the invalid state.

[0030] If the read value equals the preset first configuration value (usually defined as 0x00, representing forced use of the old curve), it is directly determined to be the first type of configuration and the corresponding flag bit is set to "00"; if the read value is not equal to the first configuration value, it is compared with the preset second configuration value (usually defined as 0x01, representing enabling the new curve). If they are equal, it is determined to be the second type of configuration and the flag bit is set to "01". At the same time, the host computer status flag signal to be sent is set to logically valid (e.g., the dedicated flag bit in the communication protocol is written to 1); if the read value is neither equal to the first configuration value nor equal to the second configuration value, it is classified as the third configuration value (usually defined as...). 0x02 or other values ​​represent a disabled or unconfigured state), which is determined to be disabled and the status flag signal is kept invalid (written as 0); to avoid misjudgment caused by unexpected values ​​(such as illegal values ​​such as 0x03 caused by bus noise), the comparator module also includes a "valid value verification" sub-logic - if the read value is not among the three preset legal configuration values, it will be automatically processed as the third configuration value, and an "illegal configuration parameter" warning log will be recorded for maintenance personnel to check; the entire judgment process is accompanied by a debouncing mechanism, that is, only after the configuration values ​​read in three consecutive control cycles all point to the same category will the final judgment result be locked and the corresponding policy switching action be executed.

[0031] 202. Collect ambient temperature signals and fault status signals from the ambient temperature sensor; 203. Determine whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal; The system acquires the temperature value corresponding to the ambient temperature signal from the ambient temperature sensor; determines whether the temperature value is within the preset effective range; when the temperature value is within the preset effective range and the fault status signal is invalid, the ambient temperature sensor is determined to be in normal working condition; otherwise, the ambient temperature sensor is determined to be in abnormal working condition.

[0032] The system reads the raw digital value of the current cycle's completed conversion from the analog-to-digital converter's sampling result register and converts it into the actual temperature value using a pre-calibrated voltage-temperature conversion function (based on a lookup table of the resistance-temperature characteristic curve of the sensor's voltage divider circuit). This conversion process employs linear interpolation lookup table method to improve conversion accuracy. Simultaneously, the system directly reads the logic level of the fault status signal through general-purpose input / output pins. This signal is generated by the sensor's hardware self-diagnostic circuit; a low level indicates a fault. After completing these two data preparation steps, the system enters the comprehensive judgment logic: first, it verifies the fault status signal; if the signal is a valid low level, the sensor is directly determined to be in an abnormal operating state, and subsequent judgments are terminated without further temperature value checks; only when the fault signal is an invalid high level is the calculated temperature value compared with the preset effective range upper and lower limits. These upper and lower limits correspond to the maximum and minimum linearity guaranteed in the sensor's specifications, respectively. The temperature range is narrowed (usually further narrowed based on the extreme climate conditions of the actual heat pump application scenario, such as -40℃ to +60℃). If the temperature value is strictly within this range (including boundary values), then the adjacent cycle change rate verification is further performed. The absolute difference between the current temperature value and the historical temperature value of the previous control cycle is calculated. If the difference does not exceed the preset maximum allowable change rate threshold (this threshold is determined based on the sensor thermal time constant and the maximum change rate of the actual ambient temperature), then all three conditions (fault invalid, within range, change rate compliant) are met, and the system finally determines that the sensor is in normal working condition. The determination result is stored in the system status register in Boolean flag form for subsequent logic calls. If any of the above verifications fails, it is immediately determined to be in an abnormal working condition. At the same time, according to the reason for failure (fault signal valid, out of range, or sudden over-limit), the corresponding abnormal code is recorded in the fault log buffer to distinguish the fault type and guide subsequent maintenance.

[0033] 204. Determine the current operating stage of the system, which may be the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage; The system checks the power-on reset flag of the main control chip. If the flag is valid and the system has not yet completed all peripheral initialization and the first round of complete sensor sampling and self-test, it is determined that the system is currently in the power-on startup phase, and the phase code register is written with "00". If the power-on reset flag is invalid, the system proceeds to determine the sensor fault recovery phase, continuously monitoring the sensor status determination result. When the rising edge of the status changing from "abnormal operation" to "normal operation" is detected, the transition event is immediately captured, and a recovery stabilization timer of a preset duration (e.g., 30 seconds) is started. During the operation of this timer (i.e., before the timer value returns to zero), the fault recovery phase flag remains valid, and the phase code is written with "01". If the above... If neither of the two phases is valid, the defrost activation status signal in the heat pump main control logic is read (this signal is triggered by the outdoor heat exchanger fin temperature sensor falling below the frosting set threshold or by the low-pressure switch, and is sent to the CPU after hardware debouncing). If the signal is active, it is determined that the current stage is the defrost operation stage, and the stage code is written to "10". If all the above special flags are invalid, and the system has been running continuously without interruption for more than a preset steady-state determination time threshold (e.g., 60 seconds) since the last stage switch or reset, the current stage is automatically classified into the steady-state operation stage, and the stage code is written to "11". The entire determination process is executed once per control cycle, and the determination result is updated in real time and latched in the stage code register.

[0034] 205. When the ambient temperature sensor is in an abnormal working state, the ambient temperature compensation function is disabled, and the preset fault default temperature value is output as the basic compensation target temperature. Determine whether the system is currently in the first or second stage of operation. When the system is in the first stage, the real-time ambient temperature value of the ambient temperature sensor is directly used as the valid ambient temperature value for the current period. The first stage includes the power-on startup stage and the sensor fault recovery stage. When the system is in the second stage, multiple real-time sampled values ​​of the ambient temperature sensor within a preset time window are smoothed and filtered, and the ambient temperature value obtained after smoothing and filtering is used as the valid ambient temperature value for the current period. The second stage includes the defrosting operation stage and the steady-state operation stage.

[0035] The compensation enable flag is forcibly cleared to shield all interpolation compensation calculations that rely on real-time temperature values. Simultaneously, the preset default fault temperature value is read from the fault parameter storage area and directly output as the basic compensation target temperature to subsequent control stages. However, to further optimize the temperature response characteristics of different transition stages based on this default fault output, the latest updated stage code register value is read, and the current stage is divided into two categories according to this code. The first category includes the power-on startup stage (code "00") and the sensor fault recovery stage (code "01"). When the first category is detected, the instantaneous sampled value of the ambient temperature sensor is still directly read from the analog-to-digital converter sampling buffer as the effective ambient temperature value for the current cycle (although this value is only used for auxiliary monitoring and no longer participates in compensation calculations, it can provide a reference trend for the main control logic), while maintaining the default fault temperature value as the basic compensation target temperature output. When the second category is detected, the fault enable flag is cleared. During the frost operation phase (code "10") or steady-state operation phase (code "11"), the system initiates a smoothing filtering process: maintaining a fixed-length time window cyclic buffer (e.g., containing sampled values ​​from the most recent 10 cycles), first removing the maximum and minimum values ​​from all valid sampled values ​​within the window to suppress spike interference, then calculating the arithmetic mean of the remaining values, and storing this average as the valid ambient temperature value for the current cycle in the system variable (also only used for monitoring and logging), while the base compensation target temperature remains unchanged at the fault default temperature value; this differentiated processing ensures that even during sensor failure, the system can still obtain relatively reasonable ambient temperature reference information based on the characteristics of the phase for auxiliary diagnosis, while driving the compressor to operate stably with a constant default target temperature, avoiding unnecessary control disturbances caused by misusing abrupt sampled values ​​during the fault phase, and automatically exiting this branch and switching back to normal compensation mode after the sensor recovers.

[0036] 206. When the ambient temperature sensor is in normal working condition, the system adaptively selects the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, depending on the current operating stage of the system. The system reads the coded value of the current operating phase and executes a differentiated temperature value selection strategy based on the phase category corresponding to that code. The system divides the operating phases into two categories: the first category includes the power-on startup phase and the sensor fault recovery phase; the second category includes the defrosting operation phase and the steady-state operation phase. If the current phase belongs to the first category, the system directly reads the latest completed instantaneous temperature conversion value from the analog-to-digital converter's sampling result register. This value undergoes only hardware denoising processing by the analog-to-digital converter itself, without any software-level smoothing or filtering operations. The system directly assigns this value to the valid ambient temperature variable for the current cycle. This strategy is adopted because during the transition between power-on startup and fault recovery, the system needs to perceive the real-time trend of ambient temperature changes as quickly as possible to establish a correct control baseline as early as possible and shorten the dynamic adjustment time. If the current stage belongs to the second category, the system initiates a composite smoothing filtering process: First, a fixed-length circular sampling buffer is maintained, the length of which is preset in the firmware to an adaptively determined value based on the control cycle. In each control cycle, the latest temperature sampling value is pushed to the end of the buffer, and the oldest historical value is automatically removed. Then, all the currently stored sampling values ​​in the buffer are sorted, and the maximum and minimum values ​​are removed to eliminate spikes that may be caused by electromagnetic interference or transient noise. The arithmetic mean of the remaining sampling values ​​is then calculated as the first smoothing result. Next, the first smoothing result is sent to a first-order low-pass digital filter for a second smoothing process. The filtering recursion is that the effective temperature value of the current cycle is equal to a preset filter coefficient multiplied by the above first smoothing value, plus the difference between the filter coefficient and the effective temperature value of the previous cycle. The filter coefficient is preset to different values ​​in the defrosting operation stage and the steady-state operation stage. A smaller value is used in the defrosting stage to enhance the suppression of temperature fluctuations, and a larger value is used in the steady-state stage to take into account the tracking response to slow drift of ambient temperature. The value obtained after the second smoothing is finally written into the effective ambient temperature variable of the current cycle. The entire adaptive selection process is automatically repeated in each control cycle, and the filter's state variables have a memory retention function, ensuring that the effective temperature value can transition continuously during stage switching without abrupt changes due to strategy switching.

[0037] 207. Obtain multiple preset ambient temperature-compensation temperature calibration points, which are arranged in ascending order along the ambient temperature dimension; The mapping relationship between ambient temperature and target compensation temperature is stored in the microcontroller's read-only memory as a calibration point array. Each calibration point is a structure variable containing two single-precision floating-point members, storing the ambient temperature value (as the x-axis) and its corresponding ideal compensation temperature value (as the y-axis). The length of the entire array is pre-set based on the ambient temperature range covered by the heat pump product and the requirements for nonlinear compensation accuracy, typically between 8 and 16 points. To ensure the correctness and efficiency of subsequent interval lookup logic, all calibration points are strictly arranged in ascending order according to the ambient temperature values ​​during code writing. During firmware compilation, a dedicated pre-compilation script automatically verifies whether the x-coordinates of adjacent calibration points are strictly monotonically increasing. If any reverse or duplicate points are detected, an error is immediately reported and compilation is terminated, ensuring the data's orderliness from the source. In the actual storage layout of the calibration point data, an additional verification structure is appended to the end of the array, in which... It includes a checksum value obtained after performing cyclic redundancy checks on all calibration point data. This checksum is used to verify the integrity of the calibration point data in the read-only storage area during the system power-on self-test phase. Once data corruption or verification failure is detected, the factory-preset default calibration point array is automatically loaded from the backup storage area, and the "use backup calibration point" event is recorded in the system log for maintenance personnel to review. When the curve selection parameter is determined to enable the new ambient temperature compensation curve, no calibration point data is copied or moved. Instead, the data pointer inside the interpolation calculation module is directly switched from the starting address of the default old curve calibration point array to the starting address of the new curve calibration point array. This pointer switching operation is designed as an atomic operation, completed within a single instruction cycle, thereby achieving near-instantaneous switching between the old and new compensation curves. At the same time, the new curve calibration point array also follows the same ascending order and integrity check specifications, ensuring the correctness, continuity, and reliability of the entire interpolation calculation process on the new curve data.

[0038] 208. Based on the temperature range of the effective ambient temperature value among multiple calibration points, select the first and second calibration points adjacent to the temperature range; The effective ambient temperature value is compared sequentially with the ambient temperature value corresponding to each of the multiple calibration points. The target temperature range in which the effective ambient temperature value is located among the multiple calibration points is defined by two adjacent calibration points. The effective ambient temperature value is greater than or equal to the lower limit of the target temperature range and less than the upper limit of the target temperature range. The calibration point with the smaller ambient temperature value among the two calibration points that define the target temperature range is designated as the first calibration point, and the calibration point with the larger ambient temperature value is designated as the second calibration point.

[0039] After obtaining the valid ambient temperature value for the current period, it is used as the search target. Starting from the first element of the calibration point array, the ambient temperature value stored at each calibration point is read sequentially in ascending order. The read temperature value is compared with the target value one by one. During the comparison, two temporary index variables are used to record the current traversal position and the last position that met the condition. Specifically, the system adopts a linear scanning method, traversing from the first element of the array to the last. When the ambient temperature value of a calibration point is found to be strictly greater than the current valid ambient temperature value for the first time, the traversal stops immediately. At this time, the calibration point is determined as the second calibration point, and the calibration point at the previous position is determined as the first calibration point. The two together define the target temperature range. If the ambient temperature value of a calibration point is exactly equal to the valid ambient temperature value during the traversal, the calibration point itself is regarded as both the lower limit and the upper limit of the range. At this time, the calibration point and the next calibration point are selected. If both exist, they are used as the first and second calibration points to ensure the continuity of interpolation calculations. If the effective ambient temperature value is less than the ambient temperature value of the first calibration point in the array, the first and second calibration points are directly selected as the first and second calibration points respectively, and the effective ambient temperature value is forced to be considered as being within the minimum interval. If the effective ambient temperature value is greater than or equal to the ambient temperature value of the last calibration point in the array, the second-to-last calibration point and the last calibration point are directly selected as the first and second calibration points, and the effective ambient temperature value is limited to the maximum interval for subsequent calculations. The entire comparison and positioning process is executed once in each control cycle. To accelerate the search efficiency, sequential traversal is used when the number of calibration points is small, and a binary search algorithm is switched when the number is large. After the search is completed, the array index values ​​of the first and second calibration points, the upper and lower limits of the target temperature interval, and the relative position information of the effective ambient temperature value in the interval are stored in a temporary variable. 209. Based on the coordinate values ​​of the first calibration point and the second calibration point, the basic ambient temperature compensation target temperature corresponding to the effective ambient temperature value is calculated using a linear interpolation formula; Obtain the first ambient temperature value and its corresponding first compensation temperature value at the first calibration point, and the second ambient temperature value and its corresponding second compensation temperature value at the second calibration point; calculate the linear interpolation slope and linear interpolation intercept of the temperature range in which the effective ambient temperature value is located based on the first ambient temperature value, the first compensation temperature value, the second ambient temperature value, and the second compensation temperature value; calculate the base ambient temperature compensation target temperature based on the linear interpolation slope, the linear interpolation intercept, and the effective ambient temperature value.

[0040] After locating the target temperature range and determining the first and second calibration points, the complete coordinate information of these two calibration points is extracted from the calibration point array. The coordinates of the first calibration point consist of the first ambient temperature value and its corresponding first compensation temperature value, while the coordinates of the second calibration point consist of the second ambient temperature value and its corresponding second compensation temperature value. These four values ​​together define the linear mapping relationship between the compensation temperature and the ambient temperature within this temperature range. Subsequently, the linear interpolation slope of this range is calculated based on these two sets of coordinate values. The calculation method is to divide the difference between the second and first compensation temperature values ​​by the difference between the second and first ambient temperature values. This slope geometrically represents the inclination of the straight line within this range, reflecting the sensitivity of the compensation target temperature to changes in ambient temperature. Before calculating the slope, it is determined whether the temperature difference is less than the minimum precision constant defined by the system. If it is less, the first compensation temperature value is directly used as the minimum compensation temperature value. The interpolation results are used to avoid the risk of division by zero. After obtaining the slope, the linear interpolation intercept is calculated using the coordinates of the first calibration point. The intercept is calculated by subtracting the product of the slope and the first ambient temperature from the first compensation temperature value. Geometrically, the intercept represents the offset of the straight line on the compensation temperature axis, and together with the slope, it completely describes the linear equation within the interval. Finally, the effective ambient temperature value of the current period is substituted into the linear equation determined by the slope and the intercept as the independent variable. The corresponding base ambient temperature compensation target temperature is calculated through multiplication and addition operations. Essentially, this calculation process involves solving for the precise interpolation point on the vertical axis based on the effective ambient temperature value on the straight line determined by the coordinates of the two calibration points. This achieves continuous and smooth output of the compensation temperature under any effective ambient temperature input. All variables participate in the calculation as single-precision floating-point numbers throughout the entire calculation process, and the calculation results are clamped with upper and lower limits before the final output to prevent numerical overflow.

[0041] 210. Use the base ambient temperature compensation target temperature as the final heating target temperature output of the heat pump system to control the operation of the compressor.

[0042] In this embodiment of the invention, the interaction mechanism between curve selection parameters and upper-level device status flags enables flexible switching between old and new ambient temperature compensation curves and remote visual management, greatly improving the convenience of system upgrades and maintenance and adaptability to multiple scenarios. Based on dual diagnosis of sensor signals and fault status, compensation is actively shielded and a preset default value is output when the sensor is abnormal, effectively avoiding control disturbances caused by sensor failure. Depending on the different operating stages of the system, such as power-on startup, fault recovery, defrosting, or steady state, the real-time temperature or smoothing temperature is adaptively selected as the effective value, ensuring rapid response in dynamic processes and effectively filtering out noise disturbances in steady state. On this basis, piecewise linear interpolation is used to calculate the compensation target temperature using incrementally arranged multi-point calibration points. Compared with a single fixed curve or high-order fitting, this method is simple to implement, has low computational load, flexible calibration, and sufficient approximation accuracy in each temperature range. It can output smooth and accurate compensation values ​​across the entire operating range, ultimately significantly reducing compressor frequency oscillation and improving the heating efficiency and operational reliability of the heat pump system.

[0043] The above describes the adaptive ambient temperature compensation control method for the heat pump in the embodiments of the present invention. The following describes the adaptive ambient temperature compensation control device for the heat pump in the embodiments of the present invention. Please refer to [link / reference]. Figure 3 One embodiment of the ambient temperature adaptive compensation control device for the heat pump in this invention includes: The first determining module 301 is used to obtain curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal that the current motherboard has enabled the new ambient temperature compensation curve to the host device when it is enabled. The acquisition module 302 is used to acquire the ambient temperature signal and fault status signal from the ambient temperature sensor. The judgment module 303 is used to determine whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal. The second determining module 304 is used to determine the current operating stage of the system, which is the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage. The output module 305 is used to disable the ambient temperature compensation function and output a preset fault default temperature value as the basic compensation target temperature when the ambient temperature sensor is in an abnormal working state. The selection module 306 is used to adaptively select the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, based on the current operating stage of the system when the ambient temperature sensor is in normal working condition. Calculation module 307 is used to calculate the base ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method; The control module 308 is used to output the base ambient temperature compensation target temperature as the final heating target temperature of the heat pump system in order to control the operation of the compressor.

[0044] Please see Figure 4 Another embodiment of the ambient temperature adaptive compensation control device for the heat pump in this invention includes: The first determining module 301 is used to obtain curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal that the current motherboard has enabled the new ambient temperature compensation curve to the host device when it is enabled. The acquisition module 302 is used to acquire the ambient temperature signal and fault status signal from the ambient temperature sensor. The first judgment module 303 is used to determine whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal. The second determining module 304 is used to determine the current operating stage of the system, which is the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage. The output module 305 is used to disable the ambient temperature compensation function and output a preset fault default temperature value as the basic compensation target temperature when the ambient temperature sensor is in an abnormal working state. The selection module 306 is used to adaptively select the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, based on the current operating stage of the system when the ambient temperature sensor is in normal working condition. Calculation module 307 is used to calculate the base ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method; The control module 308 is used to output the base ambient temperature compensation target temperature as the final heating target temperature of the heat pump system in order to control the operation of the compressor.

[0045] Optionally, the first determining module 301 can be specifically used for: Determine whether the configuration value of the curve selection parameter is the first, second, or third configuration value; when the configuration value of the curve selection parameter is the second configuration value, determine that the new ambient temperature compensation curve is enabled and set the status flag signal used to notify the upper device to the valid state; when the configuration value of the curve selection parameter is the first or third configuration value, determine that the new ambient temperature compensation curve is not enabled and keep the status flag signal in the invalid state.

[0046] Optionally, the first judgment module 303 can be specifically used for: The system acquires the temperature value corresponding to the ambient temperature signal from the ambient temperature sensor; determines whether the temperature value is within the preset effective range; when the temperature value is within the preset effective range and the fault status signal is invalid, the ambient temperature sensor is determined to be in normal working condition; otherwise, the ambient temperature sensor is determined to be in abnormal working condition.

[0047] Optionally, selection module 306 can be specifically used for: Determine whether the system is currently in the first or second stage of operation. When the system is in the first stage, the real-time ambient temperature value of the ambient temperature sensor is directly used as the valid ambient temperature value for the current period. The first stage includes the power-on startup stage and the sensor fault recovery stage. When the system is in the second stage, multiple real-time sampled values ​​of the ambient temperature sensor within a preset time window are smoothed and filtered, and the ambient temperature value obtained after smoothing and filtering is used as the valid ambient temperature value for the current period. The second stage includes the defrosting operation stage and the steady-state operation stage.

[0048] Optionally, the computing module 307 includes: The acquisition unit 3071 is used to acquire multiple preset ambient temperature-compensated temperature calibration points, which are arranged in ascending order in the ambient temperature dimension. The selection unit 3072 is used to select the first calibration point and the second calibration point adjacent to the temperature range based on the temperature range in which the effective ambient temperature value is located among multiple calibration points; The calculation unit 3073 is used to calculate the base ambient temperature compensation target temperature corresponding to the effective ambient temperature value based on the coordinate values ​​of the first calibration point and the second calibration point using a linear interpolation formula.

[0049] Optionally, selection unit 3072 can be specifically used for: The effective ambient temperature value is compared sequentially with the ambient temperature value corresponding to each of the multiple calibration points; the target temperature range in which the effective ambient temperature value is located among the multiple calibration points is determined. The target temperature range is the temperature range defined by two adjacent calibration points, and the effective ambient temperature value is greater than or equal to the lower limit of the target temperature range and less than the upper limit of the target temperature range; the calibration point with the smaller ambient temperature value among the two calibration points that define the target temperature range is designated as the first calibration point, and the calibration point with the larger ambient temperature value is designated as the second calibration point.

[0050] Optionally, the computing unit 3073 can be specifically used for: Obtain the first ambient temperature value and its corresponding first compensation temperature value at the first calibration point, and the second ambient temperature value and its corresponding second compensation temperature value at the second calibration point; calculate the linear interpolation slope and linear interpolation intercept of the temperature range in which the effective ambient temperature value is located based on the first ambient temperature value, the first compensation temperature value, the second ambient temperature value, and the second compensation temperature value; calculate the base ambient temperature compensation target temperature based on the linear interpolation slope, the linear interpolation intercept, and the effective ambient temperature value.

[0051] above Figure 3 and Figure 4 The ambient temperature adaptive compensation control device of the heat pump in the embodiments of the present invention will be described in detail from the perspective of modular functional entities. The electronic devices in the embodiments of the present invention will be described in detail from the perspective of hardware processing.

[0052] See Figure 5 As shown, the electronic device includes a processor 500 and a memory 501. The memory 501 stores machine-executable instructions that can be executed by the processor 500. The processor 500 executes the machine-executable instructions to implement the above-described adaptive ambient temperature compensation control method for the heat pump.

[0053] Furthermore, Figure 5 The electronic device shown also includes a bus 502 and a communication interface 503. The processor 500, the communication interface 503 and the memory 501 are connected via the bus 502.

[0054] The memory 501 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 503 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 502 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0055] The processor 500 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 500 or by instructions in software form. The processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 501. The processor 500 reads the information in memory 501 and, in conjunction with its hardware, completes the method steps of the aforementioned embodiment.

[0056] The present invention also provides an electronic device, the computer device including a memory and a processor, the memory storing computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the heat pump ambient temperature adaptive compensation control method in the above embodiments.

[0057] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the heat pump's ambient temperature adaptive compensation control method.

[0058] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0059] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0060] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for adaptive compensation control of ambient temperature in a heat pump, characterized in that... The method includes: Obtain the curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal indicating that the current motherboard has enabled the new ambient temperature compensation curve to the host device when it is enabled. Collect ambient temperature signals and fault status signals from the ambient temperature sensor; Based on the ambient temperature signal and the fault status signal, determine whether the ambient temperature sensor is in normal working condition; Determine the current operating stage of the system, which may be the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage. When the ambient temperature sensor is in an abnormal operating state, the ambient temperature compensation function is disabled, and a preset fault default temperature value is output as the basic compensation target temperature. When the ambient temperature sensor is in normal working condition, it adaptively selects the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, depending on the current operating stage of the system. Based on the effective ambient temperature value, the base ambient temperature compensation target temperature is calculated using a multi-point piecewise linear interpolation method. The base ambient temperature compensation target temperature is used as the final heating target temperature output of the heat pump system to control the operation of the compressor.

2. The adaptive ambient temperature compensation control method for a heat pump according to claim 1, characterized in that, The step of determining whether to enable the new ambient temperature compensation curve based on the configuration value of the parameter selected according to the curve includes: Determine whether the configuration value of the curve selection parameter is the first configuration value, the second configuration value, or the third configuration value; When the configuration value of the curve selection parameter is the second configuration value, it is determined that the new ambient temperature compensation curve is enabled, and the status flag signal used to notify the host device is set to the valid state. When the configuration value of the curve selection parameter is the first configuration value or the third configuration value, it is determined that the new ambient temperature compensation curve is not enabled, and the status flag signal is kept in an invalid state.

3. The adaptive ambient temperature compensation control method for a heat pump according to claim 1, characterized in that, The step of determining whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal includes: Obtain the temperature value corresponding to the ambient temperature signal from the ambient temperature sensor; Determine whether the temperature value is within the preset effective range; When the temperature value is within the preset effective range and the fault status signal is invalid, the ambient temperature sensor is determined to be in normal working condition; otherwise, the ambient temperature sensor is determined to be in abnormal working condition.

4. The adaptive ambient temperature compensation control method for a heat pump according to claim 1, characterized in that, The step of adaptively selecting either a real-time ambient temperature value or a smoothed ambient temperature value as the effective ambient temperature value for the current period, based on the current operating stage of the system, includes: Determine whether the current operating stage of the system belongs to the first or second stage; When the system is currently in the first type of stage, the real-time ambient temperature value of the ambient temperature sensor is directly used as the effective ambient temperature value for the current period. The first type of stage includes the power-on startup stage and the sensor fault recovery stage. When the system is currently in the second type of stage, the multiple real-time sampled values ​​of the ambient temperature sensor within a preset time window are smoothed and filtered, and the ambient temperature value obtained after smoothing and filtering is used as the effective ambient temperature value of the current period. The second type of stage includes the defrosting operation stage and the steady-state operation stage.

5. The adaptive ambient temperature compensation control method for a heat pump according to claim 1, characterized in that, The step of calculating the base ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method includes: Multiple preset ambient temperature-compensation temperature calibration points are obtained, and the multiple calibration points are arranged in ascending order in the ambient temperature dimension; Based on the temperature range in which the effective ambient temperature value is located among the multiple calibration points, select the first calibration point and the second calibration point that are adjacent to the temperature range; Based on the coordinate values ​​of the first calibration point and the second calibration point, the base ambient temperature compensation target temperature corresponding to the effective ambient temperature value is calculated using a linear interpolation formula.

6. The adaptive ambient temperature compensation control method for a heat pump according to claim 5, characterized in that, The step of selecting a first calibration point and a second calibration point adjacent to the temperature range of the multiple calibration points based on the effective ambient temperature value includes: The effective ambient temperature value is compared sequentially with the ambient temperature value corresponding to each of the plurality of calibration points; The target temperature range in which the effective ambient temperature value is located among the plurality of calibration points is determined. The target temperature range is a temperature range defined by two adjacent calibration points, and the effective ambient temperature value is greater than or equal to the lower limit of the target temperature range and less than the upper limit of the target temperature range. Of the two calibration points defining the target temperature range, the one with the smaller ambient temperature value is designated as the first calibration point, and the one with the larger ambient temperature value is designated as the second calibration point.

7. The adaptive ambient temperature compensation control method for a heat pump according to claim 5, characterized in that, The calculation of the base ambient temperature compensation target temperature corresponding to the effective ambient temperature value using a linear interpolation formula based on the coordinate values ​​of the first calibration point and the second calibration point includes: Obtain the first ambient temperature value of the first calibration point and its corresponding first compensation temperature value, and the second ambient temperature value of the second calibration point and its corresponding second compensation temperature value. Based on the first ambient temperature value, the first compensated temperature value, the second ambient temperature value, and the second compensated temperature value, calculate the linear interpolation slope and linear interpolation intercept of the temperature range in which the effective ambient temperature value is located; The base ambient temperature compensation target temperature is calculated based on the linear interpolation slope, the linear interpolation intercept, and the effective ambient temperature value.

8. An ambient temperature adaptive compensation control device for a heat pump, characterized in that, The ambient temperature adaptive compensation control device for the heat pump includes: The first determining module is used to obtain curve selection parameters, determine whether to enable the new ambient temperature compensation curve based on the configuration value of the curve selection parameters, and send a status flag signal that the current motherboard has enabled the new ambient temperature compensation curve to the host device when it is enabled. The data acquisition module is used to acquire ambient temperature signals and fault status signals from the ambient temperature sensor. The judgment module is used to determine whether the ambient temperature sensor is in normal working condition based on the ambient temperature signal and the fault status signal. The second determining module is used to determine the current operating stage of the system, which is the power-on startup stage, sensor fault recovery stage, defrosting operation stage, or steady-state operation stage. The output module is used to disable the ambient temperature compensation function and output a preset fault default temperature value as the basic compensation target temperature when the ambient temperature sensor is in an abnormal working state. The selection module is used to adaptively select the real-time ambient temperature value or the smoothed ambient temperature value as the effective ambient temperature value for the current period, based on the current operating stage of the system when the ambient temperature sensor is in normal working condition. The calculation module is used to calculate the base ambient temperature compensation target temperature based on the effective ambient temperature value using a multi-point piecewise linear interpolation method. The control module is used to output the base ambient temperature compensation target temperature as the final heating target temperature of the heat pump system in order to control the operation of the compressor.

9. An electronic device, characterized in that, The electronic device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the electronic device to execute the ambient temperature adaptive compensation control method for the heat pump as described in any one of claims 1-7.

10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the adaptive compensation control method for ambient temperature of the heat pump as described in any one of claims 1-7.