Control method of air conditioner, air conditioner and storage medium

By comparing the lighting signals between the external and internal units, determining the lighting type and optimizing the power supply frequency, the air conditioner's low temperature adjustment rate and insufficient accuracy when the light changes, achieving more efficient temperature adjustment and energy consumption reduction.

CN120252144APending Publication Date: 2025-07-04QINGDAO HAIER AIR CONDITIONING ELECTRONICS CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510421801.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

When the lighting conditions of existing air conditioners change, the temperature adjustment rate is low and is susceptible to indoor lighting interference, resulting in a decrease in the temperature adjustment accuracy.

Method used

By comparing the light signal with the external light sensor and the internal light sensor, determining the light type, and adjusting the temperature based on the light signal under natural light conditions, combining with the fuzzy PID compensator for frequency correction, optimizing the air conditioner power supply frequency value.

Benefits of technology

It improves the temperature adjustment rate and accuracy of the air conditioner when the lighting conditions change, while reducing energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120252144A_ABST
    Figure CN120252144A_ABST
Patent Text Reader

Abstract

The invention discloses an air conditioner control method, an air conditioner and a storage medium, and relates to the field of air conditioner control, and the air conditioner control method comprises the following steps: comparing illumination signals sent by an outdoor unit illumination sensor with illumination signals sent by an indoor unit illumination sensor, determining an illumination type based on a comparison result, and controlling the indoor unit illumination sensor when the illumination type is natural illumination; and controlling the air conditioner to adjust the temperature at least based on the illumination signal. On the basis of the comparison result of the illumination signals sent by the outdoor unit illumination sensor and the indoor unit illumination sensor, the illumination type is determined, and then the illumination-based temperature adjustment precision of the air conditioner is improved. And under the condition that the illumination type is natural illumination, the air conditioner is controlled to conduct temperature adjustment at least based on illumination signals sent by the outdoor unit illumination sensor and the indoor unit illumination sensor, and the temperature adjustment rate of the air conditioner is increased. The temperature adjusting speed of the air conditioner is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of air conditioner control, and particularly to a control method for an air conditioner, an air conditioner, and a storage medium. Background Art

[0002] Since the rate of change of the user's perceived temperature caused by the change in light is much higher than the rate of change of the user's perceived temperature caused by the change in ambient temperature, when the light condition changes, the air conditioner that adjusts the temperature based on the ambient temperature has the problem of low temperature adjustment rate. Summary of the Invention

[0003] In view of the above problems, the present application provides a control method for an air conditioner, an air conditioner, and a storage medium to improve the temperature adjustment rate of the air conditioner when the light condition changes. The specific solutions are as follows:

[0004] The first aspect of the present application provides a control method for an air conditioner, including:

[0005] Comparing the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determining the light type based on the comparison result;

[0006] When the light type is natural light, controlling the air conditioner to adjust the temperature at least based on the light signal.

[0007] In a possible implementation, the comparing the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determining the light type based on the comparison result includes:

[0008] Calculating a first similarity between the light signal of the outdoor unit light sensor and the light signal of the indoor unit light sensor;

[0009] When the first similarity is not less than a preset threshold, determining the light type as the natural light;

[0010] When the first similarity is less than the preset threshold, respectively performing spectral identification on each light signal, and determining the light type based on each spectral identification result.

[0011] In a possible implementation, the controlling the air conditioner to adjust the temperature at least based on the light signal when the light type is natural light includes:

[0012] Respectively calculating a second similarity between a target light signal and each sample light signal, and extracting the sample light signal corresponding to the maximum second similarity, where the target light signal is the light signal sent by the outdoor unit light sensor or the light signal sent by the indoor unit light sensor;

[0013] Control the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal.

[0014] In a possible implementation, before controlling the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal, it further includes:

[0015] Extract the outdoor temperature and outdoor temperature rise rate at the moment when the light signal is received.

[0016] Find the frequency correction value corresponding to the light signal sent by the outdoor light sensor, the outdoor temperature, and the outdoor temperature rise rate, and correct the air conditioner power supply frequency value based on the frequency correction value.

[0017] In a possible implementation, controlling the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal includes:

[0018] Input the air conditioner power supply frequency value and the frequency correction value into a preset fuzzy PID compensator to obtain a corrected air conditioner power supply frequency value.

[0019] Control the air conditioner to perform temperature adjustment based on the corrected air conditioner power supply frequency value.

[0020] In a possible implementation, in the case where the first similarity is less than the preset threshold, perform spectral identification on each of the light signals, and determine the light type based on each spectral identification result, including:

[0021] Perform spectral identification on the light signal sent by the outdoor light sensor to obtain a first spectral identification result, and perform spectral identification on the light signal sent by the indoor light sensor to obtain a second spectral identification result.

[0022] In the case where the first spectral identification result represents natural light and the second spectral identification result represents non-natural light, determine the light type as the natural light.

[0023] In the case where both the first spectral identification result and the second spectral identification result represent non-natural light, determine the light type as non-natural light.

[0024] In a possible implementation, the control method of the air conditioner further includes:

[0025] In the case where the light type is non-natural light, control the air conditioner to perform temperature adjustment based on the indoor ambient temperature.

[0026] The second aspect of the present application provides an air conditioner, which includes:

[0027] An outdoor unit light sensor, an indoor unit light sensor, and a controller configured to execute the control method of the air conditioner provided in the first aspect of the present application and any of its possible implementations. The outdoor unit light sensor is communicatively connected to the controller, and the indoor unit light sensor is communicatively connected to the controller;

[0028] The outdoor unit light sensor and the indoor unit light sensor are configured to send the respective collected light signals to the controller;

[0029] The controller is configured to compare the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determine the light type based on the comparison result; when the light type is natural light, control the air conditioner to perform temperature adjustment at least based on the light signal.

[0030] In a possible implementation, when the controller compares the light signals sent by the outdoor unit light sensor and the indoor unit light sensor and determines the light type based on the comparison result, it is set to:

[0031] Calculate a first similarity between the light signal of the outdoor unit light sensor and the light signal of the indoor unit light sensor;

[0032] When the first similarity is not less than a preset threshold, determine the light type as the natural light;

[0033] When the first similarity is less than the preset threshold, perform spectral identification on each of the light signals, and determine the light type based on each spectral identification result.

[0034] In a possible implementation, when the light type is natural light and the controller controls the air conditioner to perform temperature adjustment at least based on the light signal, it is set to:

[0035] Calculate second similarities between a target light signal and each sample light signal respectively, and extract the sample light signal corresponding to the maximum second similarity. The target light signal is the light signal sent by the outdoor unit light sensor or the light signal sent by the indoor unit light sensor;

[0036] Control the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal.

[0037] In a possible implementation, the controller is further set to:

[0038] Before controlling the air conditioner to perform temperature adjustment based at least on the air conditioner power supply frequency value corresponding to the extracted sample light signal, extract the outdoor temperature and the outdoor temperature rise rate at the moment when the light signal is received;

[0039] Search for a frequency correction value corresponding to the light signal sent by the outdoor unit light sensor, the outdoor temperature, and the outdoor temperature rise rate, and correct the air conditioner power supply frequency value based on the frequency correction value.

[0040] In a possible implementation, when the controller controls the air conditioner to perform temperature adjustment based at least on the air conditioner power supply frequency value corresponding to the extracted sample light signal, it is set to:

[0041] Input the air conditioner power supply frequency value and the frequency correction value into a preset fuzzy PID compensator to obtain a corrected air conditioner power supply frequency value;

[0042] Control the air conditioner to perform temperature adjustment based on the corrected air conditioner power supply frequency value.

[0043] In a possible implementation, when the first similarity is less than the preset threshold, when the controller respectively performs spectral identification on each light signal and determines the light type based on each spectral identification result, it is set to:

[0044] Perform spectral identification on the light signal sent by the outdoor unit light sensor to obtain a first spectral identification result, and perform spectral identification on the light signal sent by the indoor unit light sensor to obtain a second spectral identification result;

[0045] When the first spectral identification result represents natural light and the second spectral identification result represents non-natural light, determine the light type as the natural light;

[0046] When both the first spectral identification result and the second spectral identification result represent non-natural light, determine the light type as non-natural light.

[0047] In a possible implementation, the controller of the air conditioner is further set to:

[0048] When the light type is non-natural light, control the air conditioner to perform temperature adjustment based on the indoor environmental temperature.

[0049] A third aspect of this application provides an air conditioner, including at least one processor and a memory connected to the processor, where:

[0050] The memory is used to store a computer program;

[0051] The processor is configured to execute the computer program so that the air conditioner can implement the control method of the air conditioner according to the first aspect or any implementation manner of the first aspect described above.

[0052] A fourth aspect of the present application provides a computer storage medium. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an air conditioner, the air conditioner can implement the control method of the air conditioner according to the first aspect or any implementation manner of the first aspect described above.

[0053] By means of the above technical solution, a control method, an air conditioner and a storage medium of an air conditioner provided by the present application determine the type of light by comparing the light signals sent by the outdoor light sensor and the indoor light sensor, avoiding the interference of indoor lighting on temperature adjustment based on light, and improving the accuracy of temperature adjustment of the air conditioner based on light. And when the type of light is natural light, the air conditioner is controlled to adjust the temperature at least based on the light signal, achieving the reduction of the energy consumption of the air conditioner while increasing the temperature adjustment rate. It can be seen that the present application improves the accuracy and rate of temperature adjustment based on light while reducing the energy consumption of the air conditioner. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and the original components and elements are not necessarily drawn to scale.

[0055] Figure 1 is a flowchart of a control method of an air conditioner provided by the present application;

[0056] Figure 2 is a schematic diagram of a system architecture provided by the present application;

[0057] Figure 3 is a schematic diagram of the structure of a server provided by the present application;

[0058] Figure 4 is a schematic diagram of the transmission process of a light signal provided by the present application;

[0059] Figure 5 is a schematic diagram of a process for obtaining a corrected air conditioner power supply frequency value provided by the present application;

[0060] Figure 6 is a flowchart of a control method of an air conditioner provided by a possible implementation of the present application;

[0061] Figure 7 is a schematic diagram of the structure of an air conditioner provided by the present application;

[0062] Figure 8 It is a schematic structural diagram of another air conditioner provided for this application. Specific embodiments

[0063] The embodiments of this application will be described below in conjunction with the accompanying drawings in the embodiments of this application. The terms used in the embodiments part of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0064] The embodiments of this application will be described below in conjunction with the accompanying drawings. Those of ordinary skill in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.

[0065] The terms "first", "second", etc. in the description and claims of this application and the above accompanying drawings are used to distinguish similar objects and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing objects with the same attributes when describing the embodiments of this application. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device including a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.

[0066] It should be noted that in actual application scenarios, compared with the prior art, the present application improves the temperature adjustment rate and accuracy of the air conditioner. Specifically: when the light condition changes, the change rate of the user's perceived temperature is much lower than that of the ambient temperature. For example, when the air conditioner is in the heating mode, a higher light intensity will cause a higher user's perceived temperature. At this time, the user will lower the air conditioner temperature to ensure comfort. When the light intensity suddenly decreases (such as cloudy or blocked by curtains), the user's perceived temperature will drop significantly, while the drop in the ambient temperature at this time is much lower than the user's perceived temperature, resulting in the air conditioner that adjusts the temperature based on the ambient temperature not immediately starting to adjust the temperature, thus making the user feel cold. To solve the above problems, the prior art has also proposed an air conditioner that adjusts the temperature based on the light intensity. However, existing air conditioners usually collect the indoor light intensity for temperature adjustment, and the indoor light can be either natural light or indoor lighting. Since indoor lighting cannot cause a rapid change in the user's perceived temperature, this results in the air conditioner that adjusts the temperature based on the light intensity being easily interfered by indoor lighting, leading to a decrease in temperature adjustment accuracy. The present application determines the light type based on the comparison result by configuring the comparison of the light signals sent by the outdoor light sensor and the indoor light sensor, thereby improving the accuracy of the air conditioner's temperature adjustment based on light. And it is configured to control the air conditioner to adjust the temperature based at least on the light signals sent by the outdoor light sensor and the indoor light sensor when the light type is natural light, improving the temperature adjustment rate of the air conditioner.

[0067] The first aspect of the present application provides a control method for an air conditioner, as Figure 1 shown. The control method of the air conditioner includes:

[0068] S101. Compare the light signals sent by the outdoor light sensor and the indoor light sensor, and determine the light type based on the comparison result.

[0069] Refer to Figure 2 , Figure 2 which shows a schematic diagram of a system architecture. The system may include an air conditioner 100 and a server 200. Among them, the server 200 may include one or more servers ( Figure 2 illustrated by taking one server as an example), and the server 200 may provide the method provided in the embodiments of the present application for one or more air conditioners.

[0070] Among them, an application program for implementing the control method of the air conditioner provided in the first aspect of the present application and any possible implementation thereof can be installed on the air conditioner 100. The air conditioner 100 installed with the above application program can send the light signal collected by the sensor to the server 200. The server 200 installed with the above application program can obtain the air conditioner power supply frequency value based on the received light signal and return the air conditioner power supply frequency value to the air conditioner 100.

[0071] In a possible implementation, the above air conditioner 100 can establish a communication connection with the server 200 through a built-in communication module and send the light signal and receive the air conditioner power supply frequency value. The above built-in communication module can be a Bluetooth communication module, a Wi-Fi hotspot module, a communication gateway module, etc.

[0072] It should be understood that in some alternative implementations, the air conditioner 100 can also complete the action of obtaining the processing result based on the received light signal by itself without the cooperation of the server, which is not limited in the embodiments of the present application.

[0073] Next, the product form of Figure 2 the server 200 will be described;

[0074] Figure 3 A schematic structural diagram of a server 200 is provided, as Figure 3 shown. The server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other through the bus 201.

[0075] The bus 201 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 3 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0076] The processor 202 can be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.

[0077] The memory 204 may include volatile memory, such as random access memory (RAM). The memory 204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0078] Among them, the memory 204 can be used to store software codes related to the control method of the air conditioner provided by the first aspect of the present application and any possible implementation thereof. The processor 202 can execute the steps of the control method of the air conditioner provided by the first aspect of the present application stored in the chip, or can also schedule other units to implement corresponding functions.

[0079] It should be understood that the above terminal 100 and server 200 can be centralized or distributed devices. The processors in the above terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with the function of executing instructions, such as CPU, DSP, etc., or a hardware system without the function of executing instructions, such as ASIC, FPGA, etc., or a combination of the above hardware system without the function of executing instructions and the hardware system with the function of executing instructions.

[0080] It should be noted that in the actual application scenario, the above light signal is a sensor acquisition signal representing light information. There can be various types of the above light information, including but not limited to illumination / illuminance, spectral response, color temperature, and light quality, etc. Among them, the above light quality characterizes the distribution ratio of different wavelength optical fibers in the total spectrum of light and reflects the spectral composition characteristics.

[0081] It should be noted that in the actual application scenario, the reason why the existing air conditioner that adjusts temperature based on light has the problem of low temperature adjustment accuracy is that there are significant differences in the spectral information between indoor lighting and natural light. In the absence of indoor lighting, the indoor light is mostly generated by the scattering of outdoor natural light, which makes the similarity between indoor light and outdoor natural light relatively high in the absence of indoor lighting. Therefore, in this application, by configuring the comparison of the light signals sent by the outdoor light sensor and the indoor light sensor, the determination of the light type is realized, and further the accuracy of the air conditioner in adjusting temperature based on light is improved.

[0082] It should be noted that in the actual application scenario, the above-mentioned outdoor light sensor can be a light sensor installed on the outer shell of the air conditioner outdoor unit, and the above-mentioned indoor light sensor can be a light sensor installed on the inner shell of the air conditioner indoor unit. Since there are various types of the above-mentioned light information, the above-mentioned light sensor can be an integrated system integrating multiple types of sensors. For example, the light sensor can include a multispectral sensor and a light probe to realize the collection of various types of light information, and the collected various types of light information can be processed through a built-in industrial-grade integrated system (such as LI-COR, LI-1500).

[0083] S102. When the light type is natural light, control the air conditioner to adjust the temperature at least based on the light signal.

[0084] It should be noted that in the actual application scenario, due to the sudden change of natural light (such as the natural light is strong and weak in cloudy weather), the user's perceived temperature will change significantly within a short time. However, the change in the daily solar radiation of light has a relatively small impact on the ambient temperature, so that the ambient temperature will not change rapidly with the sudden change of natural light. This results in that the traditional air conditioner based on ambient temperature or timing adjustment cannot adjust the temperature in a short time, and there are problems of increased energy consumption and reduced temperature adjustment rate. In this application, by configuring to control the air conditioner to adjust the temperature at least based on the light signal when the light type is natural light, the energy consumption of the air conditioner is reduced while the temperature adjustment rate is improved.

[0085] In this application, by configuring the comparison of the light signals sent by the outdoor light sensor and the indoor light sensor, the determination of the light type is realized, and further the accuracy of the air conditioner in adjusting temperature based on light is improved. And by configuring to control the air conditioner to adjust the temperature at least based on the light signal when the light type is natural light, the energy consumption of the air conditioner is reduced while the temperature adjustment rate is improved.

[0086] In a possible implementation, the comparison of the light signals sent by the outdoor light sensor and the indoor light sensor and the determination of the light type based on the comparison result include:

[0087] Calculate the first similarity between the light signals of the outdoor unit light sensor and the indoor unit light sensor;

[0088] When the first similarity is not less than the preset threshold, determine the light type as natural light;

[0089] When the first similarity is less than the preset threshold, perform spectral identification on each light signal respectively, and determine the light type based on each spectral identification result.

[0090] It should be noted that in the actual application scenario, since the above light signals can be analog signals collected by light sensors (including the outdoor unit light sensor and the indoor unit light sensor), they cannot be directly used to calculate the above first similarity. Therefore, before calculating the first similarity between the light signals of the outdoor unit light sensor and the indoor unit light sensor, the first aspect of this application and any one of its possible implementations may further include the following operation steps: perform analog-to-digital conversion on the light signals of the outdoor unit light sensor and the indoor unit light sensor. Among them, the above analog-to-digital conversion can be implemented by an analog-to-digital conversion chip (such as AD7685, ADS1256, HMCAD1511, etc.) built in the air conditioner, or can be implemented by an analog-to-digital conversion algorithm built in the air conditioner or the server, such as successive approximation ADC, Delta-Sigma Modulation, Dual-Slope algorithm, etc. This application does not limit and elaborate on the specific types and implementation processes of the above analog-to-digital conversion chip and analog-to-digital conversion algorithm.

[0091] In a possible implementation, the above calculation of the first similarity can be performed by the air conditioner or by the server 100. When executed by the server 100, the transmission process of the light signal can be as Figure 4 shown. The air conditioner converts the format of the collected light signal through the analog-to-digital conversion chip, and sends the light signal after format conversion to the server through the communication module.

[0092] It should be noted that in the actual application scenario, there are various calculation methods for the above first similarity. Here, an example is provided, and the specific operation steps include the following steps A1 to A3.

[0093] Step A1, perform normalization processing on each type of light information in each light signal. And trigger step A2.

[0094] Step A2, calculate the initial similarity of the same light information in each light signal respectively. And trigger step A3.

[0095] In a possible implementation, the specific implementation of the above step A2 may be as follows:

[0096] For the light information of the type of light intensity, using the Gaussian similarity function through the formula: Calculate the initial similarity S of the light intensity I , where σ I is the standard deviation of the light intensity, I1 is the light intensity collected by the outdoor unit light sensor, I2 is the light intensity collected by the indoor unit light sensor, and I represents that the type of light information is light intensity.

[0097] For the light information of the type of spectral response, since the spectral response is vector data, use the cosine similarity calculation formula: Calculate the initial similarity S of the spectral response R , where R1 is the spectral response vector collected by the outdoor unit light sensor and R2 is the spectral response vector collected by the indoor unit light sensor.

[0098] For the light information of the type of color temperature, using the Gaussian similarity function through the formula: Calculate the initial similarity S of the color temperature T , where σ T is the standard deviation of the color temperature, T1 is the color temperature collected by the outdoor unit light sensor, T2 is the color temperature collected by the indoor unit light sensor, and T represents that the type of light information is color temperature.

[0099] For the light information of the type of light quality, since the light quality is a continuous variable, through the formula: Calculate the initial similarity S of the light quality Q , where Q max is the maximum value in each light quality, Q min is the minimum value in each light quality, Q1 is the light quality collected by the outdoor unit light sensor, Q2 is the light quality collected by the indoor unit light sensor, and Q represents that the type of light information is light quality.

[0100] Step A3, perform a weighted sum of the initial similarities in step A2, and determine the weighted sum result as the above first similarity.

[0101] In a possible implementation, the weight values of the initial similarities used for weighted summation in the above step A3 can be set based on data analysis or empirical values.

[0102] It should be noted that in the actual application scenario, the above preset threshold is the lower limit of the similarity for determining that two light signals are of the same type after comparing and analyzing historical collected data. Since indoor light is scattered from outdoor natural light under the condition of outdoor lighting interference, the indoor light signal has a high similarity with the outdoor natural light signal. In this application, the first similarity is numerically compared with the preset threshold. When the first similarity is not less than the preset threshold, it characterizes the feature that indoor light is generated by scattering of outdoor natural light; when the first similarity is less than the preset threshold, it characterizes the feature that there is a large difference between indoor light and outdoor natural light. The determination of the light type is realized, thereby avoiding the risk of reduced adjustment accuracy caused by controlling the air conditioner to adjust the temperature based on the light signal under the condition of indoor lighting interference.

[0103] In a possible implementation, when the light type is natural light, controlling the air conditioner to adjust the temperature at least based on the light signal includes:

[0104] Calculate the second similarity between the target light signal and each sample light signal respectively, and extract the sample light signal corresponding to the maximum second similarity. The target light signal is the light signal sent by the outdoor light sensor or the indoor light sensor;

[0105] Control the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal.

[0106] It should be noted that in the actual application scenario, the above calculation method of the second similarity can adopt the same calculation method as the above first similarity. However, since the number of sample light signals is relatively large, in order to improve the extraction accuracy and efficiency of the sample light signal corresponding to the maximum second similarity, the Pearson Correlation Coefficient calculation method can also be used to implement the extraction of the above sample light signal. Specifically:

[0107] Through the formula: Calculate the second similarity ρ corresponding to each sample light signal i , where i is the identifier of the sample light signal, X T is the target light signal, n is the total number of sample light signals, and Y i is the sample light signal with the identifier i.

[0108] It should be noted that in the actual application scenario, the above sample light signal is associated with the installation area of the air conditioner and is a signal obtained through on-site calibration to represent the light signals at different times and moments in the installation area. For example, designers set up indoor scenarios in multiple collection areas in the target installation area and collect the indoor light signals and outdoor signals of each indoor scenario. Then, curve fitting calibration is performed on the collected signals to determine multiple sample light signals associated with the installation area.

[0109] It should be noted that in the actual application scenario, the above air conditioner power supply frequency value is the alternating current frequency input to the air conditioner. Since different alternating current frequencies can be used to adjust the rotation speed of the air conditioner compressor, thereby achieving temperature adjustment. Therefore, in this application, by obtaining the air conditioner power supply frequency value corresponding to the extracted sample light signal and controlling the air conditioner to perform temperature adjustment based on the obtained air conditioner power supply frequency value, the temperature adjustment rate and adjustment accuracy are improved when the light conditions change.

[0110] In a possible implementation, the correspondence between the above sample light signal and the air conditioner power supply frequency value can be stored in a preset light - frequency relationship table. The light - frequency relationship table stores the identifier of the sample light signal and the air conditioner power supply frequency value corresponding to the sample light signal.

[0111] In a possible implementation, to avoid the decrease in the accuracy of the target light signal caused by pulse interference (such as LED strobing), before calculating the second similarity between the target light signal and each sample light signal, a median filtering algorithm can be used to suppress pulse interference. The specific construction process of the above median filtering algorithm in this application is not overly limited and elaborated.

[0112] In a possible implementation, before controlling the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal, it further includes:

[0113] Extract the outdoor temperature and outdoor temperature rise rate at the moment when the light signal is received;

[0114] Search for the frequency correction value corresponding to the light signal sent by the outdoor light sensor, the outdoor temperature, and the outdoor temperature rise rate, and correct the air conditioner power supply frequency value based on the frequency correction value.

[0115] It should be noted that in actual application scenarios, affected by heat radiation and object heat conduction, the indoor environmental temperature is affected by the outdoor environmental temperature. Therefore, in this application, by configuring to extract the outdoor temperature and the outdoor temperature rise rate at the moment of receiving the light signal, searching for the frequency correction value corresponding to both the light signal sent by the outdoor unit light sensor and the outdoor temperature, and correcting the air conditioner power supply frequency value based on the frequency correction value, the accuracy of the air conditioner power supply frequency value for temperature regulation is improved, and further the temperature regulation accuracy of the air conditioner is improved.

[0116] To facilitate the understanding of the above process of correcting the air conditioner power supply frequency value, a possible implementation of this application is specifically described here:

[0117] The specific operation steps are as follows:

[0118] Step B1: Extract the outdoor temperature and the outdoor temperature rise rate at the moment of receiving the light signal, and trigger Step B2.

[0119] Step B2: Among the preset weather modes, search for the preset weather mode with the highest matching degree with the outdoor temperature extracted in Step B1 and the light intensity in the light signal sent by the outdoor unit light sensor, and extract the initial frequency correction value and the historical outdoor temperature rise rate of the found preset weather mode, and trigger Step B3.

[0120] In a possible implementation, the above preset weather mode may include a data group of light intensity, outdoor temperature, historical outdoor temperature rise rate, and initial frequency correction value determined by calibration. For example, assuming that the light intensity in the light signal sent by the outdoor unit light sensor is 80,000 Lux and the outdoor temperature is 45 °C, the corresponding preset weather mode may be "high temperature in summer - strong light", the historical outdoor temperature rise rate of this preset weather mode may be 1.5 °C / min, and the initial frequency correction value is +10%.

[0121] Step B3: Obtain the difference percentage between the outdoor temperature rise rate extracted in Step B1 and the historical outdoor temperature rise rate obtained in Step B2, and determine this difference percentage as the secondary correction value, and trigger Step B4.

[0122] In a possible implementation, the above secondary correction value may be an adjustment percentage. For example, assuming that the difference percentage between the outdoor temperature rise rate and the historical outdoor temperature rise rate is 20%, then this secondary correction value is -20%.

[0123] Step B4: Use the secondary correction value extracted in Step B3 to perform frequency correction on the initial frequency correction value obtained in Step B2, and output the frequency correction value, and trigger Step B5.

[0124] In a possible implementation, based on the possible implementation content of the above steps B2 and B3, the process of the above frequency correction can be: 10% × [1 + (-20%)] = 8%, that is, the output frequency correction value is 8%.

[0125] Step B5, use the frequency correction value output by step B4 to correct the air conditioner power supply frequency value.

[0126] In a possible implementation, controlling the air conditioner to perform temperature adjustment at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal includes:

[0127] Input the air conditioner power supply frequency value and the frequency correction value into a preset fuzzy PID compensator to obtain the corrected air conditioner power supply frequency value;

[0128] Control the air conditioner to perform temperature adjustment based on the corrected air conditioner power supply frequency value.

[0129] It should be noted that in the actual application scenario, the above preset fuzzy PID compensator is a proportional integral derivative (PID) compensator configured and encapsulated using fuzzy control (Fuzzy Control). Since the air conditioner power supply frequency value and the frequency correction value at different times have time-varying characteristics, and the traditional PID compensator cannot adapt to the parameter compensation under time-varying characteristics, therefore, in this application, by configuring the air conditioner power supply frequency value and the frequency correction value to be input into the preset fuzzy PID compensator, the accuracy of the obtained corrected air conditioner power supply frequency value is improved, and thus the subsequent temperature adjustment accuracy is improved.

[0130] In a possible implementation, the construction process of the above preset fuzzy PID compensator can be:

[0131] Step C1, determine the input / output variables. Among them, the input variables are the air conditioner power supply frequency value and the frequency correction value, and the output variable is the corrected air conditioner power supply frequency value. And trigger step C2.

[0132] Step C2, define the fuzzy sets and membership functions. Among them, the fuzzy sets include: negative large, negative medium, zero, positive medium, positive large. The membership function is used to determine the output result corresponding to the frequency correction value from the fuzzy combination according to the frequency correction value. And trigger step C3.

[0133] Step C3, establish a fuzzy rule base for storing fuzzy rules. And trigger step C4.

[0134] In a possible implementation, the fuzzy rule in the above step C3 can be: If the air conditioner power supply frequency value is positive large and the frequency correction value is positive large, then the corrected air conditioner power supply frequency value is positive large.

[0135] Step C4, define the defuzzification method.

[0136] It should be noted that in the actual application scenario, there are various types of defuzzification methods in the above Step C4, including but not limited to the Centroid Method (COG), the Maximum Membership Principle (MOM), the Mean of Maximum (MeOM), etc. This application does not make excessive limitations and elaborations on the types of the above defuzzification methods.

[0137] In a possible implementation, the flow schematic diagram of obtaining the corrected air conditioner power supply frequency value can be as Figure 5 shown. The server extracts the sample light signal with the second largest similarity to the target light signal from the light sample library. And determines the frequency correction value based on the preset weather pattern corresponding to the target light signal, the outdoor temperature, and the outdoor temperature rise rate in the weather pattern library. Subsequently, extracts the air conditioner power supply frequency value corresponding to the identifier of the obtained sample light signal from the light-frequency relationship table. Finally, corrects the air conditioner power supply frequency value using the frequency correction value and outputs the corrected air conditioner power supply frequency value.

[0138] In a possible implementation, when the first similarity is less than the preset threshold, perform spectral identification on each light signal respectively, and determine the light type based on each spectral identification result, including:

[0139] Perform spectral identification on the light signal sent by the outdoor unit light sensor to obtain the first spectral identification result, and perform spectral identification on the light signal sent by the indoor unit light sensor to obtain the second spectral identification result;

[0140] When the first spectral identification result represents natural light and the second spectral identification result represents non-natural light, determine the light type as natural light;

[0141] When both the first spectral identification result and the second spectral identification result represent non-natural light, determine the light type as non-natural light.

[0142] It should be noted that in the actual application scenario, since there are also lighting sources outdoors at night. Therefore, this application performs spectral identification on the two light signals respectively, so as to use the spectral identification results to represent the light type (including natural light and non-natural light), improving the determination accuracy of the light type.

[0143] In a possible implementation, the control method of the air conditioner provided by the first aspect of this application and any of its possible implementations further includes:

[0144] When the light type is non-natural light, control the air conditioner to adjust the temperature based on the indoor ambient temperature.

[0145] It should be noted that when the light type is non-natural light, it means that both the indoor and outdoor lights are generated by artificial light sources (such as lighting sources for non-heating purposes). Since artificial light sources do not cause significant changes in the perceived temperature and the indoor ambient temperature, therefore, in this application, by configuring to control the air conditioner to adjust the temperature based on the indoor ambient temperature when the light type is non-natural light, the applicable scenarios of this application are enriched.

[0146] To facilitate the understanding of the control method of the air conditioner provided by the first aspect of this application and any possible implementation thereof, a possible implementation of this application is specifically described herein:

[0147] As Figure 6 shown, it is a flowchart of the control method of the air conditioner provided by the first aspect of this application and any possible implementation thereof. The specific operation steps are as follows:

[0148] Step S601, obtain the light signals collected by the outdoor light sensor and the indoor light sensor, and trigger step S602.

[0149] Step S602, perform analog-to-digital conversion on each collected light signal, and trigger step S603.

[0150] Step S603, calculate the first similarity between the light signal of the outdoor light sensor after analog-to-digital conversion and the light signal of the indoor light sensor, and trigger step S604.

[0151] Step S604, determine whether the first similarity is less than the preset threshold. If not, trigger step S605. If so, trigger step S609.

[0152] Step S605, calculate the second similarity between the target light signal and each sample light signal respectively, and extract the sample light signal corresponding to the maximum second similarity, and trigger step S606.

[0153] Step S606, search for the frequency correction value corresponding to the light signal collected by the outdoor light sensor, the outdoor temperature, and the outdoor temperature rise rate, and trigger step S607.

[0154] Step S607, correct the air conditioner power supply frequency value based on the frequency correction value, and trigger step S608.

[0155] Step S608, control the air conditioner to adjust the temperature based on the corrected air conditioner power supply frequency value.

[0156] Step S609: Perform spectral recognition on the light signals sent by the outdoor unit light sensor to obtain a first spectral recognition result, and perform spectral recognition on the light signals sent by the indoor unit light sensor to obtain a second spectral recognition result. Then trigger Step S610.

[0157] Step S610: Determine whether the first spectral recognition result represents natural light. If so, trigger Step S611. If not, trigger Step S612.

[0158] Step S611: Determine whether the second spectral recognition result represents natural light. If so, trigger Step S605. If not, trigger Step S612.

[0159] Step S612: Control the air conditioner to adjust the temperature based on the indoor environmental temperature.

[0160] It should be noted that in the actual application scenario, the above Steps S601 to S604, and Steps S609 to S611 as Figure 6 shown are a possible implementation of Step S101 as Figure 1 shown, and the above Steps S605 to S608 as Figure 6 shown are a possible implementation of Step S102 as Figure 1 shown.

[0161] In the second aspect of the present application, an air conditioner is provided, as Figure 7 shown, which includes:

[0162] An outdoor unit light sensor 71, an indoor unit light sensor 72, and a controller 73 for executing the control method of the air conditioner provided in the first aspect of the present application and any of its possible implementations. The outdoor unit light sensor 71 is communicatively connected to the controller 73, and the indoor unit light sensor 72 is communicatively connected to the controller 73;

[0163] The outdoor unit light sensor 71 and the indoor unit light sensor 72 are used to send the light signals collected by them to the controller 73;

[0164] The controller 73 is used to compare the light signals sent by the outdoor unit light sensor 71 and the indoor unit light sensor 72, and determine the light type based on the comparison result; in the case where the light type is natural light, control the air conditioner to adjust the temperature at least based on the light signal.

[0165] In a possible implementation, when the controller 73 compares the light signals sent by the outdoor unit light sensor 71 and the indoor unit light sensor 72 and determines the light type based on the comparison result, it is set to:

[0166] Calculate the first similarity between the light signal of the outdoor unit light sensor 71 and the light signal of the indoor unit light sensor 72;

[0167] When the first similarity is not less than the preset threshold, determine the light type as natural light;

[0168] When the first similarity is less than the preset threshold, perform spectral identification on each light signal respectively, and determine the light type based on each spectral identification result.

[0169] In a possible implementation, when the light type is natural light, the controller 73 is set to control the air conditioner to adjust the temperature at least based on the light signal:

[0170] Calculate the second similarity between the target light signal and each sample light signal respectively, and extract the sample light signal corresponding to the maximum second similarity. The target light signal is the light signal sent by the outdoor unit light sensor 71 or the light signal sent by the indoor unit light sensor 72;

[0171] Control the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal.

[0172] In a possible implementation, the controller 73 is also set to:

[0173] Before controlling the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal, extract the outdoor temperature and the outdoor temperature rise rate at the moment when the light signal is received;

[0174] Search for the frequency correction value corresponding to the light signal sent by the outdoor unit light sensor 71, the outdoor temperature, and the outdoor temperature rise rate, and correct the air conditioner power supply frequency value based on the frequency correction value.

[0175] In a possible implementation, when the controller 73 controls the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal, it is set to:

[0176] Input the air conditioner power supply frequency value and the frequency correction value into the preset fuzzy PID compensator to obtain the corrected air conditioner power supply frequency value;

[0177] Control the air conditioner to adjust the temperature based on the corrected air conditioner power supply frequency value.

[0178] In a possible implementation, when the first similarity is less than the preset threshold, and the controller 73 performs spectral identification on each light signal respectively and determines the light type based on each spectral identification result, it is set to:

[0179] Perform spectral recognition on the light signals sent by the outdoor unit light sensor 71 to obtain a first spectral recognition result, and perform spectral recognition on the light signals sent by the indoor unit light sensor 72 to obtain a second spectral recognition result;

[0180] When the first spectral recognition result represents natural light and the second spectral recognition result represents non-natural light, determine the light type as natural light;

[0181] When both the first spectral recognition result and the second spectral recognition result represent non-natural light, determine the light type as non-natural light.

[0182] In a possible implementation, the controller 73 of the air conditioner is further configured to:

[0183] When the light type is non-natural light, control the air conditioner to perform temperature adjustment based on the indoor environmental temperature.

[0184] A third aspect of the present application provides an air conditioner, including at least one processor and a memory connected to the processor, wherein:

[0185] The memory is used to store computer programs;

[0186] The processor is used to execute the computer program so that the air conditioner can implement the control method of the air conditioner in the above first aspect or any implementation manner of the first aspect.

[0187] A fourth aspect of the present application provides a computer storage medium, and the storage medium carries one or more computer programs. When the one or more computer programs are executed by the air conditioner, the air conditioner can implement the control method of the air conditioner in the above first aspect or any implementation manner of the first aspect.

[0188] The structural schematic diagram of the air conditioner provided by the present application is as Figure 8 shown. Figure 8 The shown air conditioner is only an example and should not bring any restrictions to the functions and usage scopes of the embodiments of the present application.

[0189] As Figure 8 shown, the air conditioner may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage device 808 into the random access memory (RAM) 803. When the air conditioner is powered on, various programs and data required for the operation of the air conditioner are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.

[0190] Typically, the following devices can be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a memory card, a hard disk, etc.; and a communication device 809. The communication device 809 can allow the air conditioner to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 8 an air conditioner with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices can be implemented or had.

[0191] An embodiment of the present application also provides a computer program product including computer-readable instructions, which, when running on an air conditioner, cause the air conditioner to implement any one of the air conditioner control methods provided by the embodiments of the present application.

[0192] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationships between the modules indicate that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.

[0193] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by dedicated hardware including an application-specific integrated circuit, a dedicated CPU, a dedicated memory, dedicated components, etc. Generally, functions completed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be various, such as analog circuits, digital circuits or dedicated circuits, etc. However, for the present application, in more cases, software program implementation is a better implementation manner. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, such as a floppy disk, a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disc of a computer, etc., and includes several instructions for causing a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0194] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0195] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from a website, a computer, a training device, or a data center to another website, a computer, a training device, or a data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Claims

1. A control method for an air conditioner, characterized in that, Including: Comparing the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determining the light type based on the comparison result; When the light type is natural light, controlling the air conditioner to adjust the temperature at least based on the light signal.

2. The control method of the air conditioner according to claim 1, characterized in that, The comparing the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determining the light type based on the comparison result includes: Calculating a first similarity between the light signal of the outdoor unit light sensor and the light signal of the indoor unit light sensor; When the first similarity is not less than a preset threshold, determining the light type as the natural light; When the first similarity is less than the preset threshold, respectively performing spectral identification on each of the light signals, and determining the light type based on each spectral identification result.

3. The control method of the air conditioner according to claim 1 or 2, characterized in that, The when the light type is natural light, controlling the air conditioner to adjust the temperature at least based on the light signal includes: Respectively calculating a second similarity between the target light signal and each sample light signal, and extracting the sample light signal corresponding to the maximum second similarity, where the target light signal is the light signal sent by the outdoor unit light sensor or the light signal sent by the indoor unit light sensor; Controlling the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal.

4. The control method of the air conditioner according to claim 3, wherein, Before the controlling the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal, it further includes: Extracting the outdoor temperature and the outdoor temperature rise rate at the moment when the light signal is received; Searching for a frequency correction value corresponding to the light signal sent by the outdoor unit light sensor, the outdoor temperature, and the outdoor temperature rise rate, and correcting the air conditioner power supply frequency value based on the frequency correction value.

5. The control method of the air conditioner according to claim 4, wherein, The controlling the air conditioner to adjust the temperature at least based on the air conditioner power supply frequency value corresponding to the extracted sample light signal includes: Inputting the air conditioner power supply frequency value and the frequency correction value into a preset fuzzy PID compensator to obtain a corrected air conditioner power supply frequency value; Controlling the air conditioner to adjust the temperature based on the corrected air conditioner power supply frequency value.

6. The control method of the air conditioner according to claim 2, wherein The when the first similarity is less than the preset threshold, respectively performing spectral identification on each of the light signals, and determining the light type based on each spectral identification result includes: Performing spectral identification on the light signal sent by the outdoor unit light sensor to obtain a first spectral identification result, and performing spectral identification on the light signal sent by the indoor unit light sensor to obtain a second spectral identification result; When the first spectral identification result represents natural light and the second spectral identification result represents non-natural light, determining the light type as the natural light; When both the first spectral identification result and the second spectral identification result represent non-natural light, determining the light type as non-natural light.

7. The control method of the air conditioner according to claim 6, wherein, The control method of the air conditioner further includes: When the light type is the non-natural light, control the air conditioner to adjust the temperature based on the indoor ambient temperature.

8. An air conditioner, characterized in that, The air conditioner includes: an outdoor unit light sensor, an indoor unit light sensor, and a controller for executing the control method of the air conditioner according to any one of claims 1 to 7, the outdoor unit light sensor is communicatively connected to the controller, and the indoor unit light sensor is communicatively connected to the controller; the outdoor unit light sensor and the indoor unit light sensor are configured to send the respective collected light signals to the controller; the controller is configured to compare the light signals sent by the outdoor unit light sensor and the indoor unit light sensor, and determine the light type based on the comparison result; when the light type is natural light, control the air conditioner to adjust the temperature at least based on the light signal.

9. An air conditioner, characterized in that, including at least one processor and a memory connected to the processor, wherein: the memory is used to store a computer program; the processor is used to execute the computer program so that the air conditioner can implement the control method of the air conditioner according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, and when the one or more computer programs are executed by the air conditioner, the air conditioner can implement the control method of the air conditioner according to any one of claims 1 to 7.