A temperature detection method, device, equipment and storage medium of a wire controller
By using both a temperature sensor and a thermistor in the line controller, the problem of inaccurate temperature detection caused by sensor coverage or corrosion during the decoration process is solved, ensuring the accuracy of the ambient temperature and the normal operation of the equipment.
Patent Information
- Application Number
- CN202410831598.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The temperature sensor of the wired controller is easily covered or corroded during the decoration process, resulting in inaccurate or failed temperature detection and affecting the normal operation of the air conditioner.
A temperature sensor and a thermistor are installed in the wire controller at the same time. The temperature sensor is close to the temperature detection hole and the thermistor is far away. Compensation calculation is performed by detecting the temperature of the sensor and the thermistor to ensure the accuracy of the ambient temperature.
Even if the sensor is covered or corroded, the thermistor can continue to detect the ambient temperature, ensuring the temperature detection accuracy of the wired controller, extending the reliability and life of the equipment, and reducing the frequency of maintenance.
Smart Images

Figure CN118392350B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a temperature detection method for a wire controller, a temperature detection device for a wire controller, a corresponding electronic device, and a corresponding computer-readable storage medium. Background Art
[0002] A wired controller or panel controller is an electronic device that is usually used to control other electronic devices or systems. Taking a multi-split air conditioner wired controller as an example, a multi-split air conditioner wired controller has a temperature sensor for detecting the indoor ambient temperature. However, since the wired controller usually also has MCU (Microcontroller Unit), power conversion chip, display screen and other heat-generating devices, when detecting the indoor ambient temperature, in order to ensure the accuracy of the detected temperature, it is necessary to reduce the impact of device heating on temperature detection.
[0003] In order to reduce the impact of device heating on temperature detection, the temperature sensor of the wire controller is connected to the wire controller mainboard through a lead, and the temperature sensor is fixed at a position close to the temperature detection hole. However, in real life, the wire controller may be installed first and then the wall may be painted. In this case, the material used for painting the wall (such as white paint, etc.) will penetrate into the temperature detection hole and adhere to the area around the temperature sensor, causing the sensor to detect inaccurate temperature, or corrode the temperature sensor and cause the sensor to fail, thereby affecting the normal operation of the air conditioner. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a temperature detection method of a wire controller, a temperature detection device of a wire controller, a corresponding electronic device and a corresponding computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0005] An embodiment of the present invention discloses a temperature detection method for a wire controller, wherein the wire controller has a temperature sensor and a thermistor, wherein the temperature sensor is installed close to a temperature detection hole, and the thermistor is installed away from the temperature detection hole. The method includes:
[0006] After the wire controller is powered on, if the wire controller detects that the temperature sensor communicates normally and the first temperature detected by the temperature sensor is normal, determining the first temperature as the ambient temperature;
[0007] and / or, if the wire controller detects that the temperature sensor has abnormal communication or the wire controller determines that the temperature detected by the temperature sensor is abnormal, obtaining a second temperature detected by the thermistor, performing compensation calculation on the second temperature to obtain a compensated third temperature, and determining the compensated third temperature as the ambient temperature;
[0008] The wire controller is used to control the electronic device, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the electronic device; when the wire controller detects that the temperature sensor is communicating normally, the method further includes:
[0009] Acquire a first temperature detected by the temperature sensor and a second temperature detected by the thermistor, and perform compensation calculation on the second temperature to obtain a compensated third temperature;
[0010] Acquire a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit;
[0011] determining whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature;
[0012] When the indoor unit is not turned on, the fourth temperature detected by the return air outlet temperature sensor is used as the ambient reference temperature; judging whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature, comprises:
[0013] When the indoor unit is not turned on, calculating a first absolute value of a difference between the first temperature and the ambient reference temperature, and calculating a second absolute value of a difference between the third temperature and the ambient reference temperature;
[0014] If the absolute value of the first difference is greater than the absolute value of the second difference, determining that the first temperature detected by the temperature sensor is abnormal;
[0015] And / or, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is normal.
[0016] Optionally, the first temperature includes a plurality of first temperatures detected by the temperature sensor at a preset time interval, the second temperature includes a plurality of second temperatures detected by the thermistor at the preset time interval, the third temperature includes a plurality of third temperatures after compensation calculation is performed on the plurality of second temperatures, and the fourth temperature includes a plurality of fourth temperatures detected by the return air outlet temperature sensor at the time interval;
[0017] The determining, based on the first temperature, the third temperature, and the fourth temperature, whether the first temperature detected by the temperature sensor is normal includes:
[0018] When the indoor unit is turned on, calculating, according to the preset time interval, a third absolute value of a difference between the current fourth temperature and the fourth temperature before the preset time interval;
[0019] Calculating a fourth absolute value of a difference between a current first temperature and a first temperature before the preset time interval according to the preset time interval, and calculating a fifth absolute value of a difference between a current third temperature and a third temperature before the preset time interval according to the preset time interval;
[0020] The first difference change degree is calculated by using the third difference absolute value and the fourth difference absolute value, and the second difference change degree is calculated by using the third difference absolute value and the fifth difference absolute value;
[0021] Whether the first temperature detected by the temperature sensor is normal is determined according to the first difference change degree and the second difference change degree.
[0022] Optionally, judging whether the first temperature detected by the temperature sensor is normal according to the first difference change degree and the second difference change degree includes:
[0023] If the first difference change degree is greater than the second difference change degree, determining that the first temperature detected by the temperature sensor is abnormal;
[0024] And / or, if the first difference change degree is less than or equal to the second difference change degree, it is determined that the first temperature detected by the temperature sensor is normal.
[0025] Optionally, the compensating calculation for the second temperature to obtain a compensated third temperature includes:
[0026] Obtaining a compensation value of the thermistor;
[0027] The third temperature is calculated according to the second temperature and the compensation value.
[0028] Optionally, obtaining the compensation value of the thermistor includes:
[0029] Obtaining the power-on time and preset value of the wire controller;
[0030] The product of the power-on time of the wire controller and the preset value is used as the compensation value of the thermistor.
[0031] Optionally, calculating the third temperature according to the second temperature and the compensation value includes:
[0032] A difference between the second temperature and the compensation value is used as the compensated third temperature.
[0033] Optionally, after determining the ambient temperature, the method further includes:
[0034] In response to a temperature control instruction of the electronic device from the wire controller, the temperature of the electronic device is controlled based on the ambient temperature.
[0035] The embodiment of the present invention further discloses a temperature detection device for a wire controller, wherein the wire controller has a temperature sensor and a thermistor, wherein the temperature sensor is installed close to a temperature detection hole, and the thermistor is installed away from the temperature detection hole, and the device comprises:
[0036] an ambient temperature detection module, for, after the wire controller is powered on, when the wire controller detects that the temperature sensor communicates normally and the first temperature detected by the temperature sensor is normal, determining the first temperature as the ambient temperature; and / or, when the wire controller detects that the temperature sensor communicates abnormally or the wire controller determines that the temperature detected by the temperature sensor is abnormal, obtaining the second temperature detected by the thermistor, performing compensation calculation on the second temperature to obtain a compensated third temperature, and determining the compensated third temperature as the ambient temperature;
[0037] The wire controller is used to control the electronic device, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the electronic device; when the wire controller detects that the temperature sensor is communicating normally, the device further includes:
[0038] a temperature judgment module, configured to obtain a first temperature detected by the temperature sensor and a second temperature detected by the thermistor, and to perform compensation calculation on the second temperature to obtain a compensated third temperature; to obtain a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit; and to judge whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature;
[0039] When the indoor unit is not turned on, the fourth temperature detected by the return air temperature sensor is used as the ambient reference temperature; the temperature judgment module includes:
[0040] The first temperature judgment submodule is used to calculate the first absolute value of the difference between the first temperature and the ambient reference temperature, and calculate the second absolute value of the difference between the third temperature and the ambient reference temperature when the indoor unit is not turned on; if the absolute value of the first difference is greater than the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is abnormal; and / or, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is normal.
[0041] Optionally, the first temperature includes a plurality of first temperatures detected by the temperature sensor at a preset time interval, the second temperature includes a plurality of second temperatures detected by the thermistor at the preset time interval, the third temperature includes a plurality of third temperatures after compensation calculation is performed on the plurality of second temperatures, and the fourth temperature includes a plurality of fourth temperatures detected by the return air outlet temperature sensor at the time interval;
[0042] The temperature judgment module comprises:
[0043] The second temperature judgment submodule is used to calculate, when the indoor unit is turned on, the third absolute value of the difference between the current fourth temperature and the fourth temperature before the preset time interval according to the preset time interval; calculate the fourth absolute value of the difference between the current first temperature and the first temperature before the preset time interval according to the preset time interval, and calculate the fifth absolute value of the difference between the current third temperature and the third temperature before the preset time interval according to the preset time interval; use the third absolute value of the difference and the fourth absolute value of the difference to calculate the first difference change degree, and use the third absolute value of the difference and the fifth absolute value of the difference to calculate the second difference change degree; and judge whether the first temperature detected by the temperature sensor is normal based on the first difference change degree and the second difference change degree.
[0044] Optionally, the second temperature judgment submodule includes:
[0045] A temperature judgment unit is used to determine that the first temperature detected by the temperature sensor is abnormal when the first difference change degree is greater than the second difference change degree; and / or, when the first difference change degree is less than or equal to the second difference change degree, determine that the first temperature detected by the temperature sensor is normal.
[0046] Optionally, the temperature judgment module includes:
[0047] The compensation calculation submodule is used to obtain a compensation value of the thermistor; and calculate the third temperature according to the second temperature and the compensation value.
[0048] Optionally, the compensation calculation submodule includes:
[0049] A compensation calculation unit is used to obtain the power-on time of the wire controller and a preset value; use the product of the power-on time of the wire controller and the preset value as the compensation value of the thermistor; and use the difference between the second temperature and the compensation value as the compensated third temperature.
[0050] Optionally, after determining the ambient temperature, the device further includes:
[0051] The temperature control module is used to respond to the temperature control instruction of the electronic device via the wire controller and perform temperature control on the electronic device based on the ambient temperature.
[0052] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements any one of the temperature detection methods for the wire controller when executed by the processor.
[0053] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the temperature detection methods for a wire controller is implemented.
[0054] The embodiments of the present invention include the following advantages:
[0055] In an embodiment of the present invention, the wire controller may have both a temperature sensor and a thermistor, wherein the temperature sensor may be installed close to the temperature detection hole, and the thermistor may be installed away from the temperature detection hole. When the wire controller detects that the temperature sensor close to the temperature detection hole is communicating normally and the detected temperature is accurate, the temperature detected by the temperature sensor is used as the ambient temperature. Or, when the wire controller detects that the temperature sensor close to the temperature detection hole is damaged or the detected temperature is inaccurate, the temperature detected by the compensated thermistor may be used as the ambient temperature. This allows the temperature sensor installed close to the temperature detection hole to detect the ambient temperature through the thermistor installed away from the temperature detection hole after being covered or corroded by decoration materials, thereby ensuring that the temperature detected by the wire controller is effective and accurate, thereby ensuring the normal operation of the electronic equipment controlled by the wire controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flow chart of steps of an embodiment of a temperature detection method of a wire controller of the present invention;
[0057] Figure 2 is a schematic diagram of the layout of the temperature sensor and thermistor of the wire controller provided by an embodiment of the present invention;
[0058] Figure 3 is a flowchart of another embodiment of a temperature detection method of a wire controller of the present invention;
[0059] Figure 4 It is a schematic diagram of the process of temperature detection of a wire controller provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] The wire controller or panel controller has a temperature sensor and a heating device. In order to ensure the accuracy of the temperature detected by the temperature sensor, it is necessary to reduce the effect of device heating on temperature detection. However, in the case where the temperature sensor is covered by a material, even if the temperature sensor of the wire controller is connected to the wire controller motherboard through a lead and the temperature sensor is fixed at a position close to the temperature detection hole, it is difficult to ensure the accuracy of the temperature detected by the temperature sensor.
[0062] In order to solve the problem that the temperature sensor of the wire controller is covered or corroded by decoration materials, resulting in inaccurate or failed temperature detection, the wire controller provided by the embodiment of the present invention installs a temperature sensor near the temperature detection hole and a thermistor away from the temperature detection hole, so that after the temperature sensor of the wire controller is covered or corroded by decoration materials, the temperature can still be detected by the thermistor, thereby ensuring the normal operation of the electronic equipment controlled by the wire controller. In addition, a low-cost solution can be used to allow the wire controller to still detect the ambient temperature through the thermistor when the temperature sensor fails, and the frequency of repair and replacement of components can be reduced, thereby improving the reliability and life of the wire controller.
[0063] Reference Figure 1 , shows a flow chart of a temperature detection method of a wire controller according to an embodiment of the present invention, which may specifically include the following steps:
[0064] Step 101, after the online controller is powered on, a first temperature detected by the temperature sensor and a second temperature detected by the thermistor are obtained, a compensation calculation is performed on the second temperature to obtain a compensated third temperature, a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit is obtained, and whether the first temperature detected by the temperature sensor is normal is determined based on the first temperature, the third temperature and the fourth temperature;
[0065] Step 102, if the wire controller detects that the temperature sensor communication is normal and the first temperature detected by the temperature sensor is normal, the first temperature is determined as the ambient temperature;
[0066] In order to reduce the influence of the temperature detected by the temperature sensor on the heating of the device in the wire controller, the temperature sensor can be connected to the wire controller mainboard through a lead and installed close to the temperature detection hole. However, the temperature sensor installed close to the temperature detection hole is at risk of being covered or corroded by the decoration material; in order to make the temperature detection element easily covered or corroded by the decoration material, the thermistor can be installed away from the temperature detection hole, but the thermistor installed away from the temperature detection hole is greatly affected by the heating of the device. Therefore, the wire controller used to control the electronic device in the embodiment of the present invention can have both a temperature sensor and a thermistor, so that after the temperature sensor installed close to the temperature detection hole is covered or corroded by the decoration material, the ambient temperature can also be detected by the thermistor installed away from the temperature detection hole.
[0067] Specifically, after the wire controller is powered on, the temperature sensor installed inside the wire controller is usually in a working state, and the wire controller MCU can obtain the temperature value detected by the temperature sensor through IIC (Inter-Integrated Circuit, a serial communication protocol). At this time, if the wire controller detects that the communication with the temperature sensor is normal, for example, the IIC communication is normal, and the temperature sensor is working normally, since the temperature sensor is connected to the wire controller mainboard through a lead, the temperature sensor close to the temperature detection hole is less affected by the heat of the device, and the first temperature detected by the temperature sensor is usually normal. Assuming that the first temperature detected by the temperature sensor is normal, that is, the first temperature detected by the temperature sensor is accurate, the temperature detected by the temperature sensor can be used as the ambient temperature.
[0068] Although the temperature sensor is connected to the wire controller mainboard through leads, the temperature sensor close to the temperature detection hole is less affected by the heat of the device and the first temperature detected by the temperature sensor is usually normal, it is also possible that the first temperature detected by the temperature sensor is abnormal, that is, the detected temperature is inaccurate.
[0069] Step 103, if the wire controller detects that the temperature sensor communication is abnormal or the wire controller determines that the temperature detected by the temperature sensor is abnormal, the second temperature detected by the thermistor is obtained, the second temperature is compensated and calculated to obtain a compensated third temperature, and the compensated third temperature is determined as the ambient temperature.
[0070] After the wire controller is powered on, the temperature sensor installed inside the wire controller is usually in working state. The wire controller MCU can obtain the temperature value detected by the temperature sensor through IIC communication. At this time, if the wire controller detects that the communication between the wire controller and the temperature sensor is abnormal, such as IIC communication abnormality, it can be said that the temperature sensor may be damaged due to corrosion by decoration materials or other reasons. At this time, the temperature sensor does not work and the first temperature detected by the temperature sensor cannot be obtained. In order to ensure that the temperature detected by the wire controller is effective and accurate, the ambient temperature can be detected by a thermistor installed away from the temperature detection hole.
[0071] Also, after the wire controller is powered on, although the temperature sensor is connected to the wire controller mainboard through leads, the temperature sensor close to the temperature detection hole is less affected by the heat of the device, and the first temperature detected by the temperature sensor is usually normal, it is also possible that the first temperature detected by the temperature sensor is abnormal, that is, the detected temperature is inaccurate; assuming that the first temperature detected by the temperature sensor is determined to be abnormal, that is, the first temperature detected by the temperature sensor is determined to be inaccurate, in order to ensure that the temperature detected by the wire controller is effective and accurate, the ambient temperature can be detected by a thermistor installed away from the temperature detection hole.
[0072] In actual applications, after the wire controller is powered on, the MCU, power conversion chip, display screen and other heating devices inside the wire controller will heat up, which will cause the mainboard of the wire controller to heat up. As time goes by, the temperature of the mainboard will also increase until the heating is in a relatively stable state after a certain period of time. Since the thermistor installed away from the temperature detection hole is directly welded on the mainboard of the wire controller, the heating of the mainboard of the wire controller will affect the detection temperature of the thermistor. In one embodiment of the present invention, in order to ensure that the temperature detected by the wire controller is effective and accurate, when the ambient temperature is detected by the thermistor installed away from the temperature detection hole, the second temperature directly detected by the thermistor can be compensated and calculated to correct the second temperature directly detected by the thermistor to obtain a compensated third temperature, and the compensated third temperature is used as the ambient temperature.
[0073] In a preferred embodiment of the present invention, the method for judging whether the first temperature detected by the temperature sensor is normal can be performed by obtaining the first temperature detected by the temperature sensor and the second temperature detected by the thermistor, performing compensation calculation on the second temperature to obtain a compensated third temperature, and then obtaining the fourth temperature detected by the return air outlet temperature sensor located at the indoor unit, and judging whether the first temperature detected by the temperature sensor is normal based on the first temperature, the third temperature and the fourth temperature. It should be noted that the embodiment of the present invention does not limit the specific process of judging whether the temperature is normal or not.
[0074] In a preferred embodiment of the present invention, after determining the ambient temperature, for example, the wire controller uses the temperature detected by the temperature sensor as the ambient temperature, or uses the temperature detected by the compensated thermistor as the ambient temperature, it can also respond to the temperature control instruction of the electronic device by the wire controller and perform temperature control on the electronic device based on the ambient temperature.
[0075] In an embodiment of the present invention, the wire controller may have both a temperature sensor and a thermistor, wherein the temperature sensor may be installed close to the temperature detection hole, and the thermistor may be installed away from the temperature detection hole. When the wire controller detects that the temperature sensor close to the temperature detection hole is communicating normally and the detected temperature is accurate, the temperature detected by the temperature sensor is used as the ambient temperature. Or, when the wire controller detects that the temperature sensor close to the temperature detection hole is damaged or the detected temperature is inaccurate, the temperature detected by the compensated thermistor may be used as the ambient temperature. This allows the temperature sensor installed close to the temperature detection hole to detect the ambient temperature through the thermistor installed away from the temperature detection hole after being covered or corroded by decoration materials, thereby ensuring that the temperature detected by the wire controller is effective and accurate, thereby ensuring the normal operation of the electronic equipment controlled by the wire controller.
[0076] Reference Figure 2 , shows a schematic layout diagram of the temperature sensor and thermistor of the wire controller provided in an embodiment of the present invention.
[0077] In the embodiment of the present invention, the wire controller can have both a temperature sensor and a thermistor. Figure 2 In the hardware layout shown, the outer frame may refer to the frame of the entire wire controller. In the entire wire controller, the baffle 21 (shown in the form of lines) may be used to separate the temperature detection area A from other areas B to minimize the impact of the heat energy of the mainboard on the temperature detection area; the thermistor 23 may be welded on the wire controller mainboard 22 and installed away from the temperature detection hole 26; the temperature sensor 25 may be connected to the wire controller mainboard 22 through the lead 24 and installed close to the temperature detection hole 26. The temperature detection hole 26 may be used for air circulation in the temperature detection area A.
[0078] Reference Figure 3 , shows a flow chart of steps of another embodiment of a temperature detection method of a wire controller of the present invention, involving Figure 2 The hardware layout shown may include the following steps:
[0079] Step 301, after the wire controller is powered on, the wire controller detects whether the communication with the temperature sensor is normal;
[0080] After the line controller is powered on, the line controller MCU can usually obtain the temperature value detected by the temperature sensor through IIC communication, such as Figure 4As shown, at this time, the wire controller can detect whether the communication with the temperature sensor is normal. In one case, if the wire controller detects that the communication with the temperature sensor is normal, it can be said that the temperature sensor is working normally, and the first temperature detected by the temperature sensor can be obtained at this time; in another case, if the wire controller detects that the communication with the temperature sensor is abnormal, it can be said that the temperature sensor may be damaged due to corrosion by decoration materials or other reasons. At this time, the temperature sensor does not work, and the first temperature detected by the temperature sensor cannot be obtained, that is, the temperature value detected by the temperature sensor is not obtained at this time.
[0081] Step 302, if the wired controller detects that the temperature sensor communication is normal, obtain a first temperature detected by the temperature sensor and a second temperature detected by the thermistor, and obtain a fourth temperature detected by the return air outlet temperature sensor located at the indoor unit, and perform compensation calculation on the second temperature to obtain a compensated third temperature;
[0082] When the communication between the wire controller and the temperature sensor is normal, although the temperature sensor is connected to the wire controller mainboard through a lead wire, the temperature sensor near the temperature detection hole is less affected by the heating of the device, and the first temperature detected by the temperature sensor is usually normal, it is also possible that the first temperature detected by the temperature sensor is abnormal, that is, the detected temperature is inaccurate. In one embodiment of the present invention, it can be judged whether the first temperature detected by the temperature sensor is normal, that is, whether it is accurate.
[0083] In practical applications, the wire controller is used to control the electronic equipment, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the electronic equipment.
[0084] Specifically, it can be determined by obtaining the first temperature detected by the temperature sensor and the second temperature detected by the thermistor, and obtaining the fourth temperature detected by the return air outlet temperature sensor located at the indoor unit. After the wire controller is powered on, the heating device inside the wire controller will heat up and cause the mainboard of the wire controller to heat up, thereby affecting the temperature detected by the thermistor directly welded on the mainboard of the wire controller. In order to ensure that the temperature detected by the wire controller is effective and accurate, it can be specifically manifested as firstly performing compensation calculation on the second temperature directly detected by the thermistor to correct the second temperature directly detected by the thermistor and obtain the compensated third temperature, thereby judging whether the first temperature detected by the temperature sensor is normal based on the first temperature, the third temperature and the fourth temperature.
[0085] The compensation calculation for the second temperature detected by the thermistor can be expressed as obtaining the compensation value of the thermistor, and then calculating the compensated third temperature according to the second temperature and the compensation value. The compensation value of the thermistor can be obtained by obtaining the power-on time of the wire controller and the preset value, and then using the product of the power-on time of the wire controller and the preset value as the compensation value of the thermistor; when calculating the compensated third temperature, the difference between the second temperature and the compensation value can be used as the compensated third temperature.
[0086] For example, Figure 4 As shown, it is assumed that Try is the original temperature value detected by the thermistor, that is, the second temperature detected by the thermistor; t is the power-on time of the wire controller, in minutes; Ty is a preset value, for example, the preset value is 0.1°C when t is less than 30 minutes or equal to 30 minutes. At this time, the product Ty of the power-on time t of the wire controller and the preset value after power-on can be used, that is, t*Ty to obtain the correction value of the temperature detected by the thermistor caused by the heating of the wire controller after power-on, that is, the compensation value of the thermistor; then the difference between the second temperature Try and the compensation value t*Ty can be used to obtain the temperature value detected by the thermistor after compensation, that is, the third temperature Tr=Try-t*Ty. Among them, after t is greater than 30 minutes, a fixed preset value can be set so that the maximum compensation of t*Ty is 3°C, and the preset value can be determined according to the experimental test in the development stage, which is not limited by the embodiment of the present invention.
[0087] Step 303, judging whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature;
[0088] In one embodiment of the present invention, a wire controller is used to control an electronic device, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the electronic device. Assuming that the wire controller and the indoor unit of the electronic device are in a powered-on state, the indoor unit of the electronic device can be in a running or stopped state. For the aforementioned two states, different judgment strategies can be adopted when judging whether the first temperature detected by the temperature sensor is normal based on the first temperature, the third temperature and the fourth temperature.
[0089] Specifically, under one judgment strategy, assuming that the electronic device, such as the air conditioner, is not turned on and is in a stopped state, the temperature of the return air outlet of the indoor unit when the indoor unit is not turned on tends to the indoor ambient temperature, that is, the fourth temperature detected by the return air outlet temperature sensor of the indoor unit when the indoor unit is not turned on can be used as the ambient reference temperature to judge the accuracy of the temperature detected by the temperature sensor.
[0090] In practical applications, the accuracy of the temperature sensor detection can be determined by detecting the temperature difference. Specifically, when the indoor unit is not turned on, the absolute value of the first difference between the first temperature and the ambient reference temperature is calculated, and the absolute value of the second difference between the third temperature and the ambient reference temperature is calculated. In one case, if the absolute value of the first difference is greater than the absolute value of the second difference, it can be said that the temperature value detected by the thermistor is close to the temperature value detected by the return air outlet temperature sensor. At this time, it can be determined that the first temperature detected by the temperature sensor is abnormal, that is, the temperature value detected by the temperature sensor is inaccurate; in another case, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it can be said that the temperature value detected by the wire controller temperature sensor is close to the temperature value detected by the return air outlet temperature sensor. At this time, it can be determined that the first temperature detected by the temperature sensor is normal, that is, the temperature value detected by the wire controller temperature sensor is accurate.
[0091] For example, it is assumed that the first temperature detected by the wire controller through the temperature sensor is Tw, the third temperature detected by the wire controller through the thermistor is Tr (Tr is the compensated temperature), and the fourth temperature detected by the return air outlet temperature sensor of the indoor unit obtained through communication between the indoor unit and the wire controller is Th. Figure 4 As shown, when the indoor unit is not turned on, the first absolute value of the difference between the temperature detected by the return air outlet temperature sensor and the wire controller temperature sensor, ΔT1, can be calculated, that is, ΔT1=|Th-Tw|, and the second absolute value of the difference between the temperature detected by the return air outlet temperature sensor and the wire controller thermistor, ΔT2, can be calculated, that is, ΔT2=|Th-Tr|, and then the accuracy of the first temperature detected by the temperature sensor can be determined based on the comparison result of ΔT1 and ΔT2. If ΔT1>ΔT2, it means that the first temperature detected by the temperature sensor is Tw, which is inaccurate, and the wire controller can subsequently use the temperature value Tr detected by the compensated thermistor as the indoor ambient temperature; if ΔT1≦ΔT2, it means that the first temperature detected by the temperature sensor is Tw, which is accurate, and the wire controller can subsequently use the temperature value Tw detected by the temperature sensor as the indoor ambient temperature.
[0092] Under another judgment strategy, suppose an electronic device, such as an air conditioner, is turned on. At this time, the air conditioner is in operation. When the indoor unit is turned on and running, the temperature of the indoor unit's return air outlet will be affected by the operation of the indoor unit. The fourth temperature detected by the indoor unit's return air outlet temperature sensor when the indoor unit is turned on and running cannot be directly used as the ambient reference temperature. At this time, the accuracy of the temperature sensor detection can be determined by detecting the degree of change in the temperature difference.
[0093] Specifically, it can be expressed as follows: the first temperature detected by the wire controller through the temperature sensor may include multiple first temperatures detected by the temperature sensor at a preset time interval, such as one minute; the second temperature detected by the wire controller through the thermistor may include multiple second temperatures detected by the thermistor at a preset time interval, such as one minute, then, after compensation calculation for the multiple second temperatures, multiple compensated third temperatures can be obtained accordingly; the fourth temperature detected by the return air outlet temperature sensor of the indoor unit may also include multiple fourth temperatures detected by the return air outlet temperature sensor at a time interval, such as one minute.
[0094] At this time, when the indoor unit is turned on and running, the third absolute value of the difference between the current fourth temperature and the fourth temperature before the preset time interval can be calculated according to a preset time interval, such as one minute, and then the fourth absolute value of the difference between the current first temperature and the first temperature before the preset time interval (for example, the previous minute) can be calculated according to the preset time interval, and the fifth absolute value of the difference between the current third temperature and the third temperature before the preset time interval can be calculated according to the preset time interval, such as one minute; then the third absolute value of the difference and the fourth absolute value of the difference can be used to calculate the first difference change degree, and the third absolute value of the difference and the fifth absolute value of the difference can be used to calculate the second difference change degree, so as to judge whether the first temperature detected by the temperature sensor is normal based on the first difference change degree and the second difference change degree.
[0095] In one case, if the first difference change degree is greater than the second difference change degree, it can be explained that the temperature value detected by the thermistor is close to the temperature value detected by the return air outlet temperature sensor. At this time, it can be determined that the first temperature detected by the temperature sensor is abnormal, that is, the temperature value detected by the temperature sensor is inaccurate; in another case, if the first difference change degree is less than or equal to the second difference change degree, it can be explained that the temperature value detected by the wire controller temperature sensor is close to the temperature value detected by the return air outlet temperature sensor. At this time, it can be determined that the first temperature detected by the temperature sensor is normal, that is, the temperature value detected by the wire controller temperature sensor is accurate.
[0096] For example, it is assumed that the first temperature detected by the wire controller through the temperature sensor is Tw, the third temperature detected by the wire controller through the thermistor is Tr (Tr is the compensated temperature), and the fourth temperature detected by the return air outlet temperature sensor of the indoor unit obtained through communication between the indoor unit and the wire controller is Th. When the indoor unit is turned on and running, it can be determined whether the temperature value detected by the temperature sensor or the temperature value detected by the thermistor is used in the subsequent operation according to the change value of the detected temperature value, such as Figure 4As shown, the wire controller can calculate the third absolute value of the difference ΔTh between the temperature detected by the return air outlet temperature sensor at present and the previous minute, that is, ΔTh=|Th2-Th1|, and calculate the fourth absolute value of the difference ΔTw between the temperature detected by the wire controller temperature sensor at present and the previous minute, that is, ΔTw=|Tw2-Tw1|, and calculate the fifth absolute value of the difference ΔTr between the temperature detected by the wire controller thermistor at present and the previous minute, that is, ΔTr=|Tr2-Tr1|; then the first difference change degree ΔT3=|ΔTh-ΔTw| and the second difference change degree ΔT4=|ΔTh-ΔTr| can be calculated. Among them, if ΔT3>ΔT4, it means that the first temperature Tw detected by the temperature sensor is inaccurate, and the wire controller can subsequently use the temperature value Tr detected by the thermistor after compensation as the indoor ambient temperature; if ΔT3≦ΔT4, it means that the first temperature Tw detected by the temperature sensor is accurate, and the wire controller can subsequently use the temperature value Tw detected by the temperature sensor as the indoor ambient temperature.
[0097] In a preferred embodiment of the present invention, if the wire controller detects that the temperature sensor communication is abnormal, that is, the temperature sensor may be damaged due to corrosion by decoration materials or other reasons, the temperature sensor does not work at this time, and the first temperature detected by the temperature sensor cannot be obtained, then there is no need to obtain the first temperature detected by the temperature sensor, but directly obtain the second temperature detected by the thermistor, perform compensation calculation on the second temperature to obtain the compensated third temperature, and determine the compensated third temperature as the ambient temperature. Figure 4 As shown, it can be calculated by adopting the above formula Tr=Try-t*Ty.
[0098] Step 304, if the first temperature detected by the temperature sensor is normal, determine the first temperature as the ambient temperature;
[0099] When the online controller detects that the temperature sensor communication is normal, if the first temperature detected by the temperature sensor is normal, that is, it is determined that the first temperature detected by the temperature sensor is accurate, then the first temperature detected by the temperature sensor can be used as the ambient temperature. Figure 4 As shown, the temperature value Tw detected by the temperature sensor can be used as the indoor environment temperature.
[0100] Step 305, if the first temperature detected by the temperature sensor is abnormal, the compensated third temperature is determined as the ambient temperature;
[0101] When the online controller detects that the temperature sensor communication is normal, if the first temperature detected by the temperature sensor is abnormal, that is, it is determined that the first temperature detected by the temperature sensor is inaccurate, the third temperature after thermistor compensation can be used as the ambient temperature. Figure 4As shown, the temperature value Tr detected by the thermistor after compensation can be used as the indoor ambient temperature.
[0102] It should be noted that the above step 304 and step 305 are parallel solutions.
[0103] Step 306 , responding to the temperature control instruction of the electronic device from the wire controller, and performing temperature control on the electronic device based on the ambient temperature.
[0104] After determining the ambient temperature, for example, the wire controller uses the temperature detected by the temperature sensor as the ambient temperature, or uses the temperature detected by the compensated thermistor as the ambient temperature, it can also respond to the temperature control instructions of the electronic device from the wire controller and perform temperature control on the electronic device based on the ambient temperature.
[0105] Exemplarily, the electronic device can be any electronic device with a temperature control function. Taking the electronic device as an air conditioner as an example, the air conditioner wire controller or panel controller can control the temperature of the air conditioner. The wire controller can mainly compare the detected ambient temperature with a preset temperature threshold. If the ambient temperature is lower than or higher than the preset temperature threshold, the controller will make a decision according to the preset control logic. Through the temperature detection of the wire controller provided by the embodiment of the present invention, the air conditioner wire controller can detect the ambient temperature through the thermistor after the temperature sensor fails, thereby ensuring the normal operation of the air conditioner.
[0106] Optionally, the wire controller may be equipped with a user interface, and the preset temperature threshold can allow the user to set it through the aforementioned user interface, and the aforementioned user interface can also provide the user with functions such as viewing the current temperature status or adjusting control parameters, etc., which is not limited by the embodiments of the present invention.
[0107] In an embodiment of the present invention, the wire controller may have both a temperature sensor and a thermistor, wherein the temperature sensor may be installed close to the temperature detection hole, and the thermistor may be installed away from the temperature detection hole. When the wire controller detects that the temperature sensor close to the temperature detection hole is communicating normally and the detected temperature is accurate, the temperature detected by the temperature sensor is used as the ambient temperature. Or, when the wire controller detects that the temperature sensor close to the temperature detection hole is damaged or the detected temperature is inaccurate, the temperature detected by the compensated thermistor may be used as the ambient temperature. This allows the temperature sensor installed close to the temperature detection hole to detect the ambient temperature through the thermistor installed away from the temperature detection hole after being covered or corroded by decoration materials, thereby ensuring that the temperature detected by the wire controller is effective and accurate, thereby ensuring the normal operation of the electronic equipment controlled by the wire controller.
[0108] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0109] The present invention also provides a temperature detection device for a wire controller, the wire controller having a temperature sensor and a thermistor, the temperature sensor being installed close to a temperature detection hole, and the thermistor being installed away from the temperature detection hole, and specifically comprising the following modules:
[0110] an ambient temperature detection module, for, after the wire controller is powered on, when the wire controller detects that the temperature sensor communicates normally and the first temperature detected by the temperature sensor is normal, determining the first temperature as the ambient temperature; and / or, when the wire controller detects that the temperature sensor communicates abnormally or the wire controller determines that the temperature detected by the temperature sensor is abnormal, obtaining the second temperature detected by the thermistor, performing compensation calculation on the second temperature to obtain a compensated third temperature, and determining the compensated third temperature as the ambient temperature;
[0111] In one embodiment of the present invention, the wire controller is used to control an electronic device, and a return air outlet temperature sensor is installed near the return air outlet of an indoor unit of the electronic device; when the wire controller detects that the temperature sensor communicates normally, the device provided by the embodiment of the present invention may further include the following modules:
[0112] The temperature judgment module is used to obtain a first temperature detected by the temperature sensor and a second temperature detected by the thermistor, and to perform compensation calculation on the second temperature to obtain a compensated third temperature; to obtain a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit; and to judge whether the first temperature detected by the temperature sensor is normal based on the first temperature, the third temperature and the fourth temperature.
[0113] In one embodiment of the present invention, the fourth temperature detected by the return air outlet temperature sensor when the indoor unit is not turned on is used as the ambient reference temperature; the temperature judgment module may include the following submodules:
[0114] The first temperature judgment submodule is used to calculate the first absolute value of the difference between the first temperature and the ambient reference temperature, and calculate the second absolute value of the difference between the third temperature and the ambient reference temperature when the indoor unit is not turned on; if the absolute value of the first difference is greater than the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is abnormal; and / or, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is normal.
[0115] In an embodiment of the present invention, the first temperature includes a plurality of first temperatures detected by the temperature sensor at a preset time interval, the second temperature includes a plurality of second temperatures detected by the thermistor at the preset time interval, the third temperature includes a plurality of third temperatures after compensation calculation is performed on the plurality of second temperatures, and the fourth temperature includes a plurality of fourth temperatures detected by the return air outlet temperature sensor at the time interval;
[0116] The temperature judgment module may include the following submodules:
[0117] The second temperature judgment submodule is used to calculate, when the indoor unit is turned on, the third absolute value of the difference between the current fourth temperature and the fourth temperature before the preset time interval according to the preset time interval; calculate the fourth absolute value of the difference between the current first temperature and the first temperature before the preset time interval according to the preset time interval, and calculate the fifth absolute value of the difference between the current third temperature and the third temperature before the preset time interval according to the preset time interval; use the third absolute value of the difference and the fourth absolute value of the difference to calculate the first difference change degree, and use the third absolute value of the difference and the fifth absolute value of the difference to calculate the second difference change degree; and judge whether the first temperature detected by the temperature sensor is normal based on the first difference change degree and the second difference change degree.
[0118] In one embodiment of the present invention, the second temperature determination submodule may include the following units:
[0119] A temperature judgment unit is used to determine that the first temperature detected by the temperature sensor is abnormal when the first difference change degree is greater than the second difference change degree; and / or, when the first difference change degree is less than or equal to the second difference change degree, determine that the first temperature detected by the temperature sensor is normal.
[0120] In one embodiment of the present invention, the temperature determination module may include the following submodules:
[0121] The compensation calculation submodule is used to obtain a compensation value of the thermistor; and calculate the third temperature according to the second temperature and the compensation value.
[0122] In one embodiment of the present invention, the compensation calculation submodule may include the following units:
[0123] A compensation calculation unit is used to obtain the power-on time of the wire controller and a preset value; use the product of the power-on time of the wire controller and the preset value as the compensation value of the thermistor; and use the difference between the second temperature and the compensation value as the compensated third temperature.
[0124] In an embodiment of the present invention, after determining the ambient temperature, the device provided by the embodiment of the present invention may further include the following modules:
[0125] The temperature control module is used to respond to the temperature control instruction of the electronic device via the wire controller and perform temperature control on the electronic device based on the ambient temperature.
[0126] In an embodiment of the present invention, the temperature detection device of the wire controller provided by the embodiment of the present invention adopts the temperature detected by the temperature sensor as the ambient temperature when the wire controller detects that the temperature sensor near the temperature detection hole communicates normally and the detected temperature is accurate, or adopts the temperature detected by the compensated thermistor as the ambient temperature when the wire controller detects that the temperature sensor near the temperature detection hole is damaged or the detected temperature is inaccurate, so that after the temperature sensor installed near the temperature detection hole is covered or corroded by decoration materials, the ambient temperature can still be detected by the thermistor installed away from the temperature detection hole, thereby ensuring that the temperature detected by the wire controller is effective and accurate, thereby ensuring the normal operation of the electronic device controlled by the wire controller.
[0127] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] An embodiment of the present invention further provides an electronic device, including:
[0129] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each process of the temperature detection method embodiment of the above-mentioned wire controller is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the temperature detection method embodiment of the above-mentioned wire controller are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0131] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0132] It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0133] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0137] Finally, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0138] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0139] The temperature detection method of a wire controller, a temperature detection device of a wire controller, a corresponding electronic device and a corresponding computer-readable storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A temperature detection method for a wire controller, characterized in that: The wire controller has a temperature sensor and a thermistor, the temperature sensor is installed close to the temperature detection hole, and the thermistor is installed away from the temperature detection hole. The method includes: After the wire controller is powered on, if the wire controller detects that the temperature sensor communicates normally and the first temperature detected by the temperature sensor is normal, determining the first temperature as the ambient temperature; If the wire controller detects that the temperature sensor has abnormal communication or determines that the temperature detected by the temperature sensor is abnormal, the second temperature detected by the thermistor is acquired, the second temperature is compensated and calculated to obtain a compensated third temperature, and the compensated third temperature is determined as the ambient temperature; Wherein, the wire controller is used to control the air conditioning equipment, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the air conditioning equipment; the method further includes: Acquire a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit; determine whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature; When the indoor unit is not turned on, the fourth temperature detected by the return air outlet temperature sensor is used as the ambient reference temperature; judging whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature, comprises: When the indoor unit is not turned on, a first absolute value of a difference between the first temperature and the ambient reference temperature is calculated, and a second absolute value of a difference between the third temperature and the ambient reference temperature is calculated; if the absolute value of the first difference is greater than the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is abnormal; and / or, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is normal.
2. The method according to claim 1, characterized in that The first temperature includes a plurality of first temperatures detected by the temperature sensor at a preset time interval, the second temperature includes a plurality of second temperatures detected by the thermistor at the preset time interval, the third temperature includes a plurality of third temperatures after compensation calculation is performed on the plurality of second temperatures, and the fourth temperature includes a plurality of fourth temperatures detected by the return air outlet temperature sensor at the time interval; The determining, based on the first temperature, the third temperature, and the fourth temperature, whether the first temperature detected by the temperature sensor is normal includes: When the indoor unit is turned on, calculating, according to the preset time interval, a third absolute value of a difference between the current fourth temperature and the fourth temperature before the preset time interval; Calculating a fourth absolute value of a difference between a current first temperature and a first temperature before the preset time interval according to the preset time interval, and calculating a fifth absolute value of a difference between a current third temperature and a third temperature before the preset time interval according to the preset time interval; The first difference change degree is calculated by using the third difference absolute value and the fourth difference absolute value, and the second difference change degree is calculated by using the third difference absolute value and the fifth difference absolute value; Whether the first temperature detected by the temperature sensor is normal is determined according to the first difference change degree and the second difference change degree.
3. The method according to claim 2, characterized in that The determining whether the first temperature detected by the temperature sensor is normal according to the first difference change degree and the second difference change degree includes: If the first difference change degree is greater than the second difference change degree, determining that the first temperature detected by the temperature sensor is abnormal; And / or, if the first difference change degree is less than or equal to the second difference change degree, it is determined that the first temperature detected by the temperature sensor is normal.
4. The method according to claim 1, characterized in that The compensating calculation for the second temperature to obtain a compensated third temperature includes: Obtaining a compensation value of the thermistor; The third temperature is calculated according to the second temperature and the compensation value.
5. The method according to claim 4, characterized in that The obtaining of the compensation value of the thermistor comprises: Obtaining the power-on time and preset value of the wire controller; The product of the power-on time of the wire controller and the preset value is used as the compensation value of the thermistor.
6. The method according to claim 4, characterized in that The calculating the third temperature according to the second temperature and the compensation value comprises: A difference between the second temperature and the compensation value is used as the compensated third temperature.
7. The method according to claim 1, characterized in that After determining the ambient temperature, the method further comprises: In response to a temperature control instruction of the air conditioner from the wire controller, the temperature of the air conditioner is controlled based on the ambient temperature.
8. A temperature detection device for a wire controller, characterized in that: The wire controller has a temperature sensor and a thermistor, wherein the temperature sensor is installed close to the temperature detection hole and the thermistor is installed away from the temperature detection hole. The device comprises: an ambient temperature detection module, for, after the wire controller is powered on, when the wire controller detects that the temperature sensor communicates normally and the first temperature detected by the temperature sensor is normal, determining the first temperature as the ambient temperature; when the wire controller detects that the temperature sensor communicates abnormally or the wire controller determines that the temperature detected by the temperature sensor is abnormal, obtaining the second temperature detected by the thermistor, performing compensation calculation on the second temperature to obtain a compensated third temperature, and determining the compensated third temperature as the ambient temperature; Wherein, the wire controller is used to control the air conditioning equipment, and a return air outlet temperature sensor is installed near the return air outlet of the indoor unit of the air conditioning equipment; when the wire controller detects that the temperature sensor communicates normally, the device further includes: a temperature judgment module, configured to obtain a first temperature detected by the temperature sensor and a second temperature detected by the thermistor, and to perform compensation calculation on the second temperature to obtain a compensated third temperature; to obtain a fourth temperature detected by a return air outlet temperature sensor located at the indoor unit; and to judge whether the first temperature detected by the temperature sensor is normal according to the first temperature, the third temperature and the fourth temperature; When the indoor unit is not turned on, the fourth temperature detected by the return air temperature sensor is used as the ambient reference temperature; the temperature judgment module includes: The first temperature judgment submodule is used to calculate the first absolute value of the difference between the first temperature and the ambient reference temperature, and calculate the second absolute value of the difference between the third temperature and the ambient reference temperature when the indoor unit is not turned on; if the absolute value of the first difference is greater than the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is abnormal; and / or, if the absolute value of the first difference is less than or equal to the absolute value of the second difference, it is determined that the first temperature detected by the temperature sensor is normal.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the temperature detection method of the wire controller according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the temperature detection method of the wire controller according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Air conditioner environment temperature compensation method, electronic equipment, storage medium and air conditioner
CN114279065A
Control method and device of fresh air conditioner and fresh air conditioner
CN115218415A
