CN-116278623-B - Air conditioner controller external temperature updating method and system
Abstract
The invention relates to the technical field of vehicle-mounted air conditioner control, and provides an air conditioner controller external temperature updating method and system, wherein a state detection mechanism is arranged to detect two time nodes of power-down and power-up of a vehicle in a targeted manner, and whether the vehicle is in a preset state of being repeatedly started in a short time under an idle working condition or not is determined by comparing the size relation between the power-off time length and the set time length, so that when the vehicle is normally powered-up and started, an environment temperature value at the current moment is obtained, and accurate acquisition of environment temperature data outside the vehicle is realized; when the vehicle is repeatedly started in a short time, the acquired temperature value stored in the previous time is directly acquired, the acquisition of the external environment temperature is ensured not to be influenced by the water temperature and the heat radiation of the engine, and further, the accurate temperature regulation in the vehicle is realized by improving the accuracy of the temperature data, and the driving experience of a user is optimized.
Inventors
- ZHONG XIANBO
Assignees
- 惠州华阳通用电子有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230420
Claims (9)
- 1. An external temperature updating method for an air conditioner controller is characterized by comprising the following steps: S1, when a flameout power-off instruction of a vehicle is detected, acquiring a current acquisition temperature value of an external temperature sensor and storing a corresponding acquisition time stamp; S2, when the re-electrifying of the vehicle is detected, calculating the power-off time length according to the acquisition time stamp; S3, judging whether the vehicle state is a preset state or not according to the power-off duration and the preset duration; s4, performing environment temperature detection updating according to the vehicle state; S0, setting a test sensor, synchronously acquiring test calibration, acquiring current temperature acquisition values of the external temperature sensor after the vehicle is powered off and restarted under different power-off time periods, simultaneously acquiring test temperature values of the test sensor, calculating test difference values of the temperature acquisition values and the test temperature values, and acquiring the power-off time period with the test difference values smaller than a preset threshold value as corresponding preset time period.
- 2. The method for updating the external temperature of an air conditioner controller according to claim 1, wherein the step S3 is specifically: Judging whether the power-off Time length is longer than a preset Time length, if so, setting a judging mark Time_Flag to be effective, and determining that the vehicle state is not a preset state, otherwise, setting the judging mark Time_Flag to be ineffective, and determining that the vehicle state is the preset state; the preset state is that the vehicle is repeatedly started in a short time under the idle working condition.
- 3. The method for updating the external temperature of an air conditioner controller according to claim 2, wherein said step S4 comprises the steps of: S41, acquiring the state of the judging mark Time_Flag, and if the judging mark Time_Flag is in an effective state, directly reading the environmental temperature value at the current moment from an external temperature sensor and updating the environmental temperature value into an external temperature detection value; S42, acquiring the state of the judging mark Time_Flag, and if the judging mark Time_Flag is in an invalid state, directly acquiring the acquired temperature value and updating the acquired temperature value into an external temperature detection value.
- 4. The method for updating the external temperature of an air conditioner controller as set forth in claim 3, wherein said step S2 comprises the steps of: s21, when the re-electrifying of the vehicle is detected, acquiring the current system time as an electrifying node; S22, calculating the difference value between the acquisition time stamp and the power-on node, and acquiring the absolute value of the difference value as the power-off duration.
- 5. The method for updating the external temperature of an air conditioner controller according to claim 1, wherein said step S1 comprises the steps of: S11, when a flameout power-down instruction of a vehicle is detected, acquiring a current acquisition temperature value of an external temperature sensor, and acquiring the current system time as an acquisition time stamp; and S12, storing the acquisition temperature value and the acquisition time stamp in an EEPROM.
- 6. An air conditioner controller external temperature updating system, which is used for realizing the air conditioner controller external temperature updating method according to any one of claims 1-5, is characterized by comprising a control module, an external temperature sensor module, a system time acquisition module, a power supply monitoring module, a storage module, a judging module and an updating module which are connected with the control module; The power supply monitoring module is used for detecting a flameout power-off instruction of the vehicle; the system time acquisition module is used for acquiring system time and further determining an acquisition time stamp when the vehicle is powered down; The external temperature sensor module is used for acquiring a temperature value of the external environment of the vehicle in real time, and taking the temperature value at the moment corresponding to the acquisition time stamp as an acquisition temperature value; the storage module is used for storing the acquired temperature value and the corresponding acquisition time stamp; The power supply monitoring module is used for detecting whether the vehicle is electrified again; The system time acquisition module is used for acquiring system time and further determining a power-on node of the vehicle; The judging module is used for judging whether the vehicle is in a preset state or not according to the acquisition time stamp and the power-on node, and further driving the updating module to execute environment temperature detection and updating; the control module is used for controlling each module to work according to the steps S0-S4.
- 7. The system for updating the external temperature of an air conditioner controller according to claim 6, wherein the preset state is a state in which the vehicle is repeatedly started in a short time under an idle condition.
- 8. The system for updating the external temperature of the air conditioner controller according to claim 7, wherein the judging module judges whether the vehicle is in a preset state or not, specifically, the judging module calculates a power-off Time length according to the acquisition Time stamp and the power-on node, judges whether the power-off Time length is longer than the preset Time length, if so, sets a judging Flag Time_flag to be effective, and otherwise sets the judging Flag Time_flag to be ineffective; And when the judging mark Time_Flag is invalid, determining that the vehicle is in a preset state.
- 9. The air conditioner controller external temperature updating system according to claim 8, wherein the updating module performs the ambient temperature detection updating specifically as follows: When the updating module recognizes that the judging mark Time_Flag is in an effective state, the updating module directly reads the environmental temperature value at the current moment from the external temperature sensor module and updates the environmental temperature value into an external temperature detection value; And when the updating module recognizes that the judging mark Time_Flag is in an invalid state, the acquired temperature value is directly acquired from the storage module and updated into an external temperature detection value.
Description
Air conditioner controller external temperature updating method and system Technical Field The invention relates to the technical field of vehicle-mounted air conditioner control, in particular to an air conditioner controller external temperature updating method and system. Background The vehicle-mounted automatic air conditioner controller mainly controls the temperature control through controlling the mixing air door and controls the voltage of the blower to control the air quantity. The vehicle-mounted automatic air conditioner controller automatically starts the heating and refrigerating device according to signals such as ambient temperature, temperature in the vehicle, sunlight intensity and the like, so that the temperature and air quantity in the compartment of the vehicle are maintained at comfortable levels, and the climate environment in the vehicle, which is comfortable to human bodies, is regulated. The automatic air conditioner controller of the automobile is used for controlling the air quantity and the refrigerating and heating, and the automatic air conditioner controller of the automobile is used for controlling the air quantity and the refrigerating and heating by relying on a temperature sensor as a feedback link, wherein the ambient temperature and the temperature in the automobile are respectively detected by an external temperature sensor and an internal temperature sensor. Under an idle working condition, if a user starts the vehicle for many times, after the water temperature and the temperature of the whole vehicle rise, the heat radiation of the head of the vehicle can influence the external temperature sensor to acquire the actual ambient temperature value error, and the existing air conditioner automatic algorithm can not recognize the situation, so that the external temperature and the actual ambient temperature are excessively different under the situation, other modules such as an automatic parking system are influenced to acquire the external temperature, and the riding comfort of the vehicle is influenced. Disclosure of Invention The invention provides an external temperature updating method and system for an air conditioner controller, which solve the technical problem that the distortion of an on-vehicle external temperature sensor cannot be identified by the existing automatic algorithm of an air conditioner, and the poor body feeling of a user is caused by a large error in-vehicle temperature adjustment. In order to solve the technical problems, the invention provides an external temperature updating method of an air conditioner controller, comprising the following steps: S1, when a flameout power-off instruction of a vehicle is detected, acquiring a current acquisition temperature value of an external temperature sensor and storing a corresponding acquisition time stamp; S2, when the re-electrifying of the vehicle is detected, calculating the power-off time length according to the acquisition time stamp; S3, judging whether the vehicle state is a preset state or not according to the power-off duration and the preset duration; s4, performing environment temperature detection updating according to the vehicle state. In a further embodiment, the step S3 specifically includes: Judging whether the power-off Time length is longer than a preset Time length, if so, setting a judging mark Time_Flag to be effective, and determining that the vehicle state is not a preset state, otherwise, setting the judging mark Time_Flag to be ineffective, and determining that the vehicle state is the preset state; the preset state is that the vehicle is repeatedly started in a short time under the idle working condition. The scheme is used for setting the judging mark Time_Flag to intuitively display whether the ambient temperature value acquired at the current moment of the external temperature sensor is effective or not, namely judging the state of the vehicle to be a preset state, and has high data identification efficiency. In a further embodiment, the step S4 includes the steps of: S41, acquiring the state of the judging mark Time_Flag, and if the judging mark Time_Flag is in an effective state, directly reading the environmental temperature value at the current moment from an external temperature sensor and updating the environmental temperature value into an external temperature detection value; S42, acquiring the state of the judging mark Time_Flag, and if the judging mark Time_Flag is in an invalid state, directly acquiring the acquired temperature value and updating the acquired temperature value into an external temperature detection value. In a further embodiment, the step S2 includes the steps of: s21, when the re-electrifying of the vehicle is detected, acquiring the current system time as an electrifying node; S22, calculating the difference value between the acquisition time stamp and the power-on node, and acquiring the absolute value of the difference value as the power-off