Temperature detection method and device, temperature controller, computer storage medium and product
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GD MIDEA AIR CONDITIONING EQUIP CO LTD
- Filing Date
- 2024-12-26
- Publication Date
- 2026-06-26
AI Technical Summary
The heat generated during operation of embedded and non-embedded temperature controllers can cause inaccurate temperature detection, affecting the accuracy of temperature measurement.
Based on the measured temperature data detected by the target thermostat during a preset period of operation, temperature compensation parameters are determined, and the temperature to be compensated is corrected using these parameters to obtain a corrected temperature that is closer to the actual room temperature.
This reduces the error between the temperature detected by the thermostat and the actual temperature in the space, thus improving the accuracy of temperature detection.
Smart Images

Figure CN122282148A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of temperature control technology, and in particular to a temperature detection method, device, temperature controller, computer storage medium, and product. Background Technology
[0002] In the field of temperature control, thermostats, as important devices for regulating ambient temperature, are mainly divided into two categories: embedded thermostats (i.e., wall-mounted thermostats) and non-embedded thermostats. Embedded thermostats are embedded in the wall, saving space, while non-embedded thermostats are exposed to the air, making them easier to install and maintain.
[0003] However, in practical applications, the more features a multi-functional thermostat has and the higher its integration, the greater the heat it generates during operation. Therefore, both embedded and non-embedded thermostats are susceptible to interference from their own heat generation when measuring temperature, causing a deviation between the detected temperature and the actual room temperature, thus affecting the accuracy of the thermostat's temperature measurement of the current space.
[0004] Therefore, improving the accuracy of temperature detection is an urgent problem that needs to be solved. Summary of the Invention
[0005] The main purpose of this application is to provide a temperature detection method, device, temperature controller, computer storage medium and product, which aims to improve the accuracy of temperature detection.
[0006] To achieve the above objectives, this application provides a temperature detection method, the temperature detection method comprising:
[0007] Based on the measured temperature data detected by the target temperature controller during a preset period of operation, the temperature compensation parameters of the target temperature controller when performing temperature detection are determined.
[0008] Obtain the temperature to be compensated detected by the target temperature controller;
[0009] Based on the temperature compensation parameters, temperature compensation is performed on the temperature to be compensated to obtain the corrected temperature.
[0010] In one embodiment, the target temperature controller includes an embedded temperature controller, and the start time of the preset time period is the moment when the embedded temperature controller first enters the full-power operation state;
[0011] The step of determining the temperature compensation parameters of the target temperature controller during temperature detection based on the measured temperature data detected by the target temperature controller within a preset time period during operation includes:
[0012] Based on the measured temperature data detected by the embedded temperature controller during a preset period of operation, the measured temperature rise curve of the space where the embedded temperature controller is located during the preset period is determined.
[0013] The target temperature rise curve with the highest similarity to the measured temperature rise curve among the preset standard temperature rise curves is determined, and the target temperature rise curve is used as the temperature compensation parameter of the embedded temperature controller when performing temperature detection.
[0014] In one embodiment, the corrected temperature includes a first corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes:
[0015] Determine the time difference between the first sampling time of the temperature to be compensated and the current turn-on time of the embedded temperature controller;
[0016] The target temperature rise corresponding to the time difference is determined on the target temperature rise curve, and the target temperature rise is subtracted from the temperature to be compensated to obtain the first correction temperature.
[0017] In one embodiment, the target temperature controller includes a non-embedded temperature controller, and the step of determining the temperature compensation parameters of the target temperature controller during temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation includes:
[0018] Based on the measured temperature data detected by the non-embedded temperature controller during a preset period of operation, the actual temperature rise of the space where the non-embedded temperature controller is located during the preset period is determined.
[0019] Determine whether the measured temperature rise is less than the preset standard temperature rise;
[0020] If the measured temperature rise is greater than or equal to the preset standard temperature rise, then the thermal conductivity coefficient of the air in the space where the non-embedded temperature controller is located is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0021] If the measured temperature rise is less than the preset standard temperature rise, the convective heat transfer coefficient of the air in the space where the non-embedded temperature controller is located is determined, and the convective heat transfer coefficient is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0022] In one embodiment, the step of obtaining the temperature to be compensated detected by the target thermostat includes:
[0023] The measured temperature data detected by the non-embedded temperature controller within the preset time period is determined to be the temperature to be compensated.
[0024] In one embodiment, the corrected temperature includes a second corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes:
[0025] Obtain the thermal conductivity coefficient corresponding to the second sampling time of the temperature to be compensated, and determine the preset first temperature difference value corresponding to the thermal conductivity coefficient;
[0026] The second corrected temperature is obtained by subtracting the first temperature difference from the temperature to be compensated.
[0027] In one embodiment, the step of determining the convective heat transfer coefficient of the air in the space where the target thermostat is located includes:
[0028] Determine the Reynolds number of the air in the space where the non-embedded thermostat is located;
[0029] The convective heat transfer coefficient within the space where the non-embedded temperature controller is located is determined based on the order of magnitude of the Reynolds number.
[0030] In one embodiment, the corrected temperature includes a third corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes:
[0031] Obtain the convective heat transfer coefficient of the non-embedded temperature controller at each sampling time within the preset time period;
[0032] Determine the preset air convection velocity corresponding to each of the aforementioned convective heat transfer coefficients, and calculate the average convective velocity of each of the aforementioned air convection velocities;
[0033] The average convection velocity is determined to correspond to a preset second temperature difference. The second temperature difference is then subtracted from the temperature to be compensated to obtain a third correction temperature.
[0034] Furthermore, to achieve the above objectives, this application also provides a temperature detection device, the temperature detection device comprising:
[0035] The determination module is used to determine the temperature compensation parameters of the target temperature controller when performing temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation.
[0036] The acquisition module is used to acquire the temperature to be compensated detected by the target temperature controller;
[0037] The temperature compensation module is used to perform temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature.
[0038] In addition, to achieve the above objectives, this application also provides a temperature controller, which includes a memory, a processor, and a temperature detection program stored in the memory and executable on the processor. When the automatic control program is executed by the processor, it implements the steps of the temperature detection method described above.
[0039] In addition, to achieve the above objectives, this application also provides a computer storage medium storing a temperature detection program that can run on a processor, the program being invoked by the processor to implement the steps of the temperature detection method described above.
[0040] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the temperature detection method described above.
[0041] This application provides a temperature detection method. First, based on the measured temperature data detected by the target temperature controller during a preset period of operation, the application determines the temperature compensation parameters of the target temperature controller when performing temperature detection, obtains the temperature to be compensated detected by the target temperature controller, and then performs temperature compensation based on the temperature compensation parameters to obtain the corrected temperature.
[0042] In summary, this application determines the temperature compensation parameter of the target thermostat when it performs temperature detection based on the measured temperature data detected by the target thermostat, and then performs temperature compensation on the temperature to be compensated detected by the target thermostat based on the temperature compensation parameter to obtain a corrected temperature that is closer to the actual room temperature, thereby reducing the error between the temperature detected by the thermostat and the actual temperature in the space, that is, improving the accuracy of the thermostat in temperature detection. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic flowchart of the temperature detection method according to an embodiment of this application;
[0046] Figure 2 This is a schematic diagram of the temperature rise curve of the temperature detection method in the embodiments of this application;
[0047] Figure 3 This is a schematic diagram of the temperature detection process of the temperature detection method in the embodiments of this application;
[0048] Figure 4 This is a schematic diagram of the module structure of the temperature detection device according to an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of the hardware operating environment involved in the embodiments of this application.
[0050] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0051] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0052] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0053] In the field of temperature control, thermostats, as important devices for regulating ambient temperature, are mainly divided into two categories: embedded thermostats (i.e., wall-mounted thermostats) and non-embedded thermostats. Embedded thermostats are embedded in the wall, saving space, while non-embedded thermostats are exposed to the air, making them easier to install and maintain.
[0054] However, in practical applications, the more features a multi-functional thermostat has and the higher its integration, the greater the heat it generates during operation. Therefore, both embedded and non-embedded thermostats are susceptible to interference from their own heat generation when measuring temperature, causing a deviation between the detected temperature and the actual room temperature, thus affecting the accuracy of the thermostat's temperature measurement of the current space.
[0055] Therefore, improving the accuracy of temperature detection is an urgent problem that needs to be solved.
[0056] The main solution of this application is: based on the measured temperature data detected by the target temperature controller during a preset period of operation, determine the temperature compensation parameters of the target temperature controller when performing temperature detection; obtain the temperature to be compensated detected by the target temperature controller; and perform temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature.
[0057] This application determines the temperature compensation parameter of the target thermostat when it performs temperature detection based on the measured temperature data detected by the target thermostat, and then performs temperature compensation on the temperature to be compensated detected by the target thermostat based on the temperature compensation parameter to obtain a corrected temperature that is closer to the actual room temperature, thereby reducing the error between the temperature detected by the thermostat and the actual temperature in the space, that is, improving the accuracy of the thermostat in temperature detection.
[0058] In this embodiment, the executing entity is a thermostat. A thermostat is a device or system used to control temperature; its core function is to maintain the temperature of a space within a preset range to ensure temperature stability and accuracy. The following description uses a thermostat as the executing entity to illustrate this embodiment and the subsequent embodiments.
[0059] Based on this, this application proposes a temperature detection method according to the first embodiment, please refer to... Figure 1 The temperature detection method includes steps S10 to S30:
[0060] Step S10: Based on the measured temperature data detected by the target temperature controller during a preset period of operation, determine the temperature compensation parameters of the target temperature controller when performing temperature detection.
[0061] It should be noted that thermostats are mainly divided into recessed thermostats (i.e., wall-mounted thermostats) and non-recessed thermostats. Recessed thermostats are installed inside the wall, integrated with the building structure, and typically only the control panel is visible. Non-recessed thermostats do not need to be installed in the wall and can be placed or installed independently. The aforementioned target thermostat refers to the thermostat for which temperature measurement compensation is currently required.
[0062] Based on the temperature data detected by the target thermostat during a preset operating period (hereinafter referred to as measured temperature data for distinction), the temperature compensation parameters required for the target thermostat to perform temperature detection are determined. It should be understood that the temperature compensation parameters are used to guide the temperature compensation processing of the temperature detected by the thermostat to obtain a more accurate temperature.
[0063] Step S20: Obtain the temperature to be compensated detected by the target temperature controller;
[0064] It should be noted that the temperature to be compensated mentioned above refers to the measured temperature detected by the target temperature controller, that is, the temperature detected by the temperature sensor on the target temperature controller.
[0065] Step S30: Perform temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature.
[0066] After obtaining the temperature to be compensated detected by the target thermostat, temperature compensation processing is performed on the temperature to be compensated based on the temperature compensation parameters to obtain the processed temperature (hereinafter referred to as the corrected temperature for distinction). It should be understood that the above-mentioned corrected temperature is a value that is closer to the true temperature than the temperature to be compensated, and the true temperature refers to the actual temperature in the space where the target thermostat is located.
[0067] Thus, in this embodiment of the application, the temperature compensation parameter of the target thermostat is determined based on the measured temperature data detected by the target thermostat. Then, the temperature compensation parameter is used to compensate the temperature to be compensated detected by the target thermostat to obtain a corrected temperature that is closer to the actual room temperature, thereby reducing the error between the temperature detected by the thermostat and the actual temperature in the space, that is, improving the accuracy of the thermostat in temperature detection.
[0068] Based on the first embodiment described above, a second embodiment of the temperature detection method of this application is proposed. In the second embodiment, the target temperature controller includes an embedded temperature controller, and the start time of the preset time period is the moment when the embedded temperature controller first enters the full-power operation state. Step S10 may include steps A10 to A20:
[0069] Step A10: Based on the measured temperature data detected by the embedded temperature controller during a preset period of operation, determine the measured temperature rise curve of the space where the embedded temperature controller is located during the preset period.
[0070] It should be noted that when the target temperature controller is an embedded temperature controller, the preset time period is a time interval starting from the moment the embedded temperature controller first enters full-power operation and lasting for a preset duration. Here, the full-power operation of the embedded temperature controller refers to the state where all hardware of the embedded temperature controller operates at full power, maximizing heat generation. This embodiment does not limit the specific length of the preset time period; for example, in this embodiment, the preset time period is set to 2 minutes, meaning the preset time period is 2 minutes long.
[0071] Based on the measured temperature data detected by the embedded temperature controller within a preset operating time, a temperature rise curve (hereinafter referred to as the measured temperature rise curve) is determined for the space where the embedded temperature controller is located within a preset time period. It should be understood that the temperature rise curve is a curve with time as the horizontal axis and temperature rise as the vertical axis, recording the change of temperature rise in the space where the embedded temperature controller is located over time; that is, each time point corresponds to a temperature rise.
[0072] For example, after the embedded temperature controller is installed, a calibration program is first run to calibrate the temperature controller. Specifically, during the calibration program, the base temperature in the space where the embedded temperature controller is located (hereinafter referred to as the target space) is first recorded. Then, all hardware of the embedded temperature controller is controlled to operate at full power to maximize heat generation. The temperature rise over 2 minutes is then recorded. The temperature rise at each time point within these 2 minutes refers to the difference between the measured temperature at that time point and the base temperature. The temperature rise curve of the target space over these 2 minutes is then obtained, which is the measured temperature rise curve.
[0073] Step A20: Determine the target temperature rise curve that has the highest similarity to the measured temperature rise curve among the preset standard temperature rise curves, and use the target temperature rise curve as the temperature compensation parameter of the embedded temperature controller when performing temperature detection.
[0074] It should be noted that since the heat output of an embedded thermostat is essentially fixed at full power after it leaves the factory, the heat transferred from the embedded thermostat to the target space is significantly related to the wall in which it is embedded. Therefore, given the pre-determined temperature rise curves (hereinafter referred to as standard temperature rise curves for distinction) of the embedded thermostat in walls of different materials, the wall material and thermal conductivity of the current installation environment can be inferred based on the measured temperature rise curve determined during the calibration process of the embedded thermostat, thus inferring the heat dissipation of the embedded thermostat in the target space. The pre-determined standard temperature rise curves are stored in the standard temperature rise library within the embedded thermostat. Thermal conduction refers to the process of heat transfer through direct contact and molecular collisions between objects. The rate of heat conduction depends on factors such as the temperature difference between objects, the thermal conductivity of the material, and the size of the objects. Thermal conductivity is a physical quantity describing the thermal conductivity of a material; the higher the thermal conductivity, the better the thermal conductivity of the material, and the faster the heat conduction rate.
[0075] The temperature rise curve with the highest similarity to the measured temperature rise curve is determined from the preset standard temperature rise curves (hereinafter referred to as the target temperature rise curve for distinction), and the target temperature rise curve is used as the temperature compensation parameter used by the embedded temperature controller when performing temperature detection.
[0076] For example, such as Figure 2 The diagram shows a temperature rise curve, which includes four curves: standard temperature rise curve a, standard temperature rise curve b, standard temperature rise curve c, and measured temperature rise curve. The similarity between the measured temperature rise curve and each standard temperature rise curve is calculated, and the standard temperature rise curve with the highest similarity to the measured temperature rise curve is taken as the target temperature rise curve.
[0077] In this embodiment, the correction temperature includes a first correction temperature, and step S30 may include steps A30 to A40:
[0078] Step A30: Determine the time difference between the first sampling time of the temperature to be compensated and the current start time of the embedded temperature controller;
[0079] The sampling time of the temperature to be compensated (hereinafter referred to as the first sampling time for distinction) and the current turn-on time of the embedded temperature controller are determined. The current turn-on time of the embedded temperature controller refers to the time when the embedded temperature controller is turned on during this use process of detecting the temperature to be compensated. Then, the time difference between the first sampling time and the current turn-on time is calculated, that is, the first sampling time is subtracted from the current turn-on time to obtain the time difference.
[0080] Step A40: Determine the target temperature rise corresponding to the time difference on the target temperature rise curve, and subtract the target temperature rise from the temperature to be compensated to obtain the first correction temperature.
[0081] Since the target temperature rise curve is distributed on a coordinate system with time as the abscissa and temperature rise as the ordinate, after determining the time difference, we can use the time difference as the abscissa to find the point on the target temperature rise curve corresponding to that abscissa, and determine the ordinate of this point, i.e., the temperature rise corresponding to the time difference on the target temperature rise curve (hereinafter referred to as the target temperature rise for distinction). Then, we subtract this target temperature rise from the temperature to be compensated to obtain the correction temperature (hereinafter referred to as the first correction temperature for distinction). Thus, it can be understood that the first correction temperature is the temperature value after eliminating the interference of the embedded temperature controller's own heat generation on the measured temperature value, and is closer to the actual temperature in the target space.
[0082] For example, if the first sampling time of the temperature to be compensated is determined to be 12:00 on a certain day, and the current start time of the embedded temperature controller is 11:50 on the same day, then the time difference between the first sampling time and the current start time is determined to be 10 minutes. Then, the point with a horizontal axis of 10 minutes is found on the target temperature rise curve, and the target temperature rise corresponding to this point is determined to be 4 degrees Celsius. The temperature to be compensated is then subtracted by 4 to obtain the first corrected temperature. After obtaining the first corrected temperature, it is sent to the air conditioning equipment so that the air conditioning equipment can adjust the temperature based on the first corrected temperature to ensure that user needs are met.
[0083] Thus, in this embodiment of the application, the high-precision in-wall thermostat is calibrated to obtain a measured temperature rise curve. Then, based on the measured temperature rise curve, the most suitable target temperature rise curve is found from the preset standard temperature rise curves to compensate for the temperature detected by the embedded thermostat. This results in a corrected temperature that eliminates the interference of the embedded thermostat's own heat generation on the measured temperature value, thereby improving the accuracy of temperature detection by the embedded thermostat.
[0084] Based on the first and / or second embodiments described above, a third embodiment of the temperature detection method of this application is proposed. In the third embodiment, the target temperature controller includes a non-embedded temperature controller, and step S10 may include steps B10 to B40:
[0085] Step B10: Based on the measured temperature data detected by the non-embedded thermostat during a preset period of operation, determine the actual temperature rise of the space where the non-embedded thermostat is located during the preset period.
[0086] It should be noted that when the target thermostat is a non-embedded thermostat, the preset time period refers to any one of the various time periods with a preset time window as the duration, starting from the moment the non-embedded thermostat is turned on. However, this embodiment does not limit the specific size of the preset time window.
[0087] Based on the measured temperature data detected by the non-embedded thermostat during a preset period of operation, the temperature rise of the space where the non-embedded thermostat is located during the preset period is determined (hereinafter referred to as the measured temperature rise for distinction).
[0088] Step B20: Determine whether the measured temperature rise is less than the preset standard temperature rise;
[0089] It should be noted that since the heat output of a non-embedded thermostat is known after it leaves the factory, the temperature rise caused by its own heat output can be determined based on the heat output and the operating time. The heat output and corresponding temperature rise of the non-embedded thermostat under different operating conditions without air convection are preset. Therefore, when the non-embedded thermostat is working, the corresponding temperature rise can be queried based on the heat output under the current operating condition and the preset time period. The preset temperature rise corresponding to the current preset time period is then multiplied by a preset multiple to obtain the preset standard temperature rise. In this embodiment, the preset multiple is less than 1, for example, it can be set to 0.6, or it can be set to any value less than 1 according to actual needs. This application embodiment does not limit this. Understandably, when the measured temperature rise is greater than or equal to the preset standard temperature rise, it indicates that the heat conduction mode in the current target space is air heat conduction, meaning air convection is relatively small and its impact on the temperature rise is minimal. Conversely, when the measured temperature rise is less than the preset standard temperature rise, it indicates that the primary heat conduction mode in the current target space is air convection heat transfer, meaning air convection is relatively large and its impact on the temperature rise is significant. Therefore, it is necessary to estimate the current convective heat transfer coefficient to account for the influence of air convection during temperature compensation. Furthermore, it should be understood that for high-precision non-embedded thermostats, since the heat dissipation rate is closely related to the indoor airflow velocity, the heat dissipation of non-embedded thermostats is primarily through air heat conduction and air convection heat transfer.
[0090] Step B30: If the measured temperature rise is greater than or equal to the preset standard temperature rise, then the thermal conductivity coefficient of the air in the space where the non-embedded temperature controller is located is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0091] In one feasible implementation, if the measured temperature rise is greater than or equal to the preset standard temperature rise, it indicates that the main heat conduction mode in the target space is air heat conduction. Therefore, the heat conduction coefficient of the air in the space where the non-embedded temperature controller is located is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0092] In this embodiment, step S20 may include step S201:
[0093] Step S201: Determine that the measured temperature data detected by the non-embedded temperature controller within the preset time period is the temperature to be compensated.
[0094] It should be noted that when performing temperature compensation for the temperature detected by a non-embedded temperature controller, the temperature detected within the preset time period needs to be compensated based on the temperature compensation coefficient corresponding to each preset time period. Therefore, after determining the temperature compensation coefficient corresponding to the preset time period, the corresponding temperature to be compensated is the measured temperature data detected within the current preset time period.
[0095] In this embodiment, the corrected temperature includes a second corrected temperature, and step S30 may include steps C10 to C20:
[0096] Step C10: Obtain the thermal conductivity coefficient corresponding to the second sampling time of the temperature to be compensated, and determine the preset first temperature difference value corresponding to the thermal conductivity coefficient;
[0097] It should be noted that when the primary heat conduction method within the target space is air heat conduction, the thermal conductivity coefficient of the air within the target space is used as the temperature compensation parameter. The thermal conductivity coefficient of air is approximately 0.025 W / (m·K) at room temperature (around 20℃). Within the range of 0 to 40℃, this value varies slightly, but overall the change is small, typically between 0.024 and 0.027 W / (m·K), with very little variation. A pre-set mapping table between various temperatures and the air thermal conductivity coefficient is provided. This means that the air thermal conductivity coefficient can be determined based on the temperature within the target space, and each thermal conductivity coefficient corresponds to a temperature rise (hereinafter referred to as air thermal conductivity temperature rise for distinction). This air thermal conductivity temperature rise refers to the impact of air heat conduction on the temperature detected by the non-embedded temperature controller.
[0098] The thermal conductivity coefficient corresponding to the sampling time of the temperature to be compensated (hereinafter referred to as the second sampling time for distinction) is obtained. That is, the temperature collected by the non-embedded temperature controller at the second sampling time (i.e., the temperature to be compensated) is determined. Based on a preset mapping table between room temperature and air thermal conductivity coefficient, the air thermal conductivity coefficient corresponding to this temperature to be compensated is determined. Then, based on the preset mapping relationship between temperature and air thermal conductivity temperature rise, a preset temperature rise corresponding to the thermal conductivity coefficient is determined (hereinafter referred to as the first temperature difference for distinction). It is understood that the aforementioned second sampling time is within a preset time period.
[0099] Step C20: Subtract the first temperature difference from the temperature to be compensated to obtain the second corrected temperature.
[0100] Subtracting the first temperature difference from the temperature to be compensated yields the corrected temperature (hereinafter referred to as the second corrected temperature for distinction). It can be understood that the second corrected temperature is the temperature value after eliminating the interference caused by the heat generated by the non-embedded temperature controller itself on the detected temperature under conditions of no air convection.
[0101] Thus, this embodiment of the application compares the measured temperature rise within a preset time period detected by the non-embedded thermostat with the preset standard temperature rise to determine the main heat conduction mode in the space where the non-embedded thermostat is located. When it is determined that the main heat conduction mode in the space where the non-embedded thermostat is located is air heat conduction, the air heat conduction coefficient corresponding to the second sampling time of the temperature to be compensated is used as the temperature compensation parameter. Based on this temperature compensation parameter, temperature compensation processing is performed on the temperature to be compensated. This achieves temperature compensation by using the air heat conduction coefficient as the temperature compensation parameter when air convection is small, thereby improving the accuracy of temperature detection by the non-embedded thermostat.
[0102] Step B40: If the measured temperature rise is less than the preset standard temperature rise, then determine the convective heat transfer coefficient of the air in the space where the non-embedded temperature controller is located, and use the convective heat transfer coefficient as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0103] In another feasible implementation, if the measured temperature rise is less than the preset standard temperature rise, it indicates that the main heat conduction mode in the target space is air convection heat transfer. Therefore, the convective heat transfer coefficient of the air in the space where the non-embedded temperature controller is located is determined, and this convective heat transfer coefficient is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection. It should be noted that the convective heat transfer coefficient (also called the convective heat transfer factor) refers to the amount of heat that a 1m*1m wall area can transfer per second when the temperature difference between the fluid and the solid surface is 1K. The magnitude of the convective heat transfer coefficient reflects the strength of convective heat transfer. Its value is closely related to the physical properties of the fluid during the heat transfer process, the shape and location of the heat transfer surface, and the fluid velocity. The greater the fluid velocity near the surface of an object, the greater its surface convective heat transfer coefficient.
[0104] In this embodiment, step B40 may include steps B401 to B402:
[0105] Step B401: Determine the Reynolds number of the air in the space where the non-embedded thermostat is located;
[0106] It should be noted that the Reynolds number of air is denoted as Re, and the formula for calculating the Reynolds number can be expressed as:
[0107] Re= U×L
[0108] γ
[0109] Where U is the air velocity around the non-embedded thermostat, L is the length of the heat dissipation channel inside the non-embedded thermostat (e.g., the inner diameter of the pipe, the outer diameter of the pipe, or the length in the flow direction), and γ is the kinematic viscosity coefficient of air, which is usually taken as 2.
[0110] The Reynolds number of the air in the space where the non-embedded thermostat is located is determined based on the heat dissipation channel length of the non-embedded thermostat, the air velocity around the non-embedded thermostat, and the air kinematic viscosity coefficient.
[0111] Step B402: Determine the convective heat transfer coefficient in the space where the non-embedded thermostat is located based on the order of magnitude of the Reynolds number.
[0112] It should be noted that the order of magnitude of the Reynolds number can characterize different air flow states. Generally, fluids with Reynolds numbers less than 2000 are considered laminar flow, while fluids with Reynolds numbers greater than 4000 are considered turbulent flow. Different values for the convective heat transfer coefficient are pre-set for different flow states. For example, when the air flow is laminar, the corresponding convective heat transfer coefficient is 8 to 10. In other words, each Reynolds number corresponds to a specific value for the convective heat transfer coefficient.
[0113] In this embodiment, step S30 may include steps D10 to D30:
[0114] Step D10: Obtain the convective heat transfer coefficient of the non-embedded temperature controller at each sampling time within the preset time period;
[0115] Determine the sampling time of the non-embedded temperature controller within a preset time period. The sampling time refers to the time when temperature is collected. Then obtain the convective heat transfer coefficient corresponding to each sampling time, which is the convective heat transfer coefficient determined based on the air Reynolds number corresponding to each sampling time.
[0116] Step D20: Determine the preset air convection velocity corresponding to each of the convective heat transfer coefficients, and calculate the average convective velocity of each of the air convection velocities;
[0117] It should be noted that different mapping relationships between convective heat transfer coefficients and air convection velocities are preset, with each convective heat transfer coefficient corresponding to an air convection velocity.
[0118] Determine the preset air convection velocity corresponding to each convective heat transfer coefficient, and then calculate the average value of each air convection velocity (hereinafter referred to as the average convection velocity for distinction).
[0119] Step D30: Determine the preset second temperature difference value corresponding to the average convection velocity, and subtract the second temperature difference value from the temperature to be compensated to obtain the third correction temperature.
[0120] It should be noted that a mapping relationship between different average convection velocities and temperature rise (hereinafter referred to as convective heat transfer temperature rise) is preset. Here, convective heat transfer temperature rise refers to the influence of the heat generated by the non-embedded temperature controller itself on the detected temperature when the main heat conduction mode in the target space is air convection heat transfer. Each average convection velocity corresponds to one convective heat transfer temperature rise.
[0121] A preset convective heat transfer temperature rise corresponding to the average convection velocity is determined (hereinafter referred to as the second temperature difference for distinction). Then, the temperature to be compensated is subtracted from the second temperature difference to obtain the corrected temperature (hereinafter referred to as the third corrected temperature for distinction). The temperature to be compensated within the preset time period includes measured temperature data collected from multiple temperature acquisition points. Therefore, the specific steps for temperature compensation based on the temperature compensation parameters corresponding to the preset time period are as follows: The measured temperature collected from each temperature acquisition point within the preset time period is subtracted from the second temperature difference to obtain the corrected temperature corresponding to each temperature acquisition point. It should be understood that the third corrected temperature is the temperature value obtained after eliminating the interference of the non-embedded temperature controller's own heat generation on the measured temperature in the presence of air convection.
[0122] Thus, in this embodiment, when the primary heat conduction mode in the space where the non-embedded temperature controller is located is determined to be air convection heat transfer, the air Reynolds number corresponding to each sampling point within a preset time period is first determined. Then, the preset convective heat transfer coefficient corresponding to each Reynolds number and the preset air convection velocity corresponding to each convective heat transfer coefficient are determined. The average value of each air convection velocity within the preset time period is then calculated. This average value is subtracted from each temperature to be compensated within the preset time period to obtain the corrected temperature. This allows for temperature compensation of the measured temperature using the air convection heat transfer coefficient as the temperature compensation parameter when air convection is significant, thereby improving the accuracy of temperature detection by the non-embedded temperature controller. Furthermore, this embodiment also achieves temperature compensation under air convection conditions with the addition of a new sensor, resulting in cost savings in hardware.
[0123] In one feasible implementation, such as Figure 3 The diagram illustrates the temperature detection process. First, the device type of the target temperature controller is determined. If the device type is an embedded temperature controller, the measured temperature data detected by the embedded temperature controller during a preset operating period is used to determine the measured temperature rise curve. The curve with the highest similarity to the measured temperature rise curve from among the standard temperature rise curves is selected as the target temperature rise curve. This target temperature rise curve is then used as the temperature compensation parameter to process the temperature to be compensated, resulting in the corrected temperature. If the device type is a non-embedded temperature controller, the measured temperature data detected by the non-embedded temperature controller during a preset operating period is used to determine the measured temperature rise of the space where the non-embedded temperature controller is located during that preset period. It is then determined whether the measured temperature rise is less than the preset standard temperature rise. If so, the air thermal conductivity coefficient in the space where the non-embedded temperature controller is located is determined as the temperature compensation parameter; otherwise, the air convection heat transfer coefficient in the space where the non-embedded temperature controller is located is determined as the temperature compensation parameter. Finally, the temperature to be compensated is processed based on the temperature compensation parameter to obtain the corrected temperature.
[0124] This application also provides a temperature detection device; please refer to... Figure 4 The temperature detection device includes:
[0125] The determining module 10 is used to determine the temperature compensation parameters of the target temperature controller when performing temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation.
[0126] The acquisition module 20 is used to acquire the temperature to be compensated detected by the target temperature controller;
[0127] Temperature compensation module 30 is used to perform temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain a corrected temperature.
[0128] Optionally, the target temperature controller includes an embedded temperature controller, and the start time of the preset time period is the moment when the embedded temperature controller first enters full-power operation. The determining module 10 is further configured to:
[0129] Based on the measured temperature data detected by the embedded temperature controller during a preset period of operation, the measured temperature rise curve of the space where the embedded temperature controller is located during the preset period is determined.
[0130] The target temperature rise curve with the highest similarity to the measured temperature rise curve among the preset standard temperature rise curves is determined, and the target temperature rise curve is used as the temperature compensation parameter of the embedded temperature controller when performing temperature detection.
[0131] Optionally, the corrected temperature includes a first corrected temperature, and the temperature compensation module 30 is further configured to:
[0132] Determine the time difference between the first sampling time of the temperature to be compensated and the current turn-on time of the embedded temperature controller;
[0133] The target temperature rise corresponding to the time difference is determined on the target temperature rise curve, and the target temperature rise is subtracted from the temperature to be compensated to obtain the first correction temperature.
[0134] Optionally, the target temperature controller includes a non-embedded temperature controller, and the determining module 10 is further configured to:
[0135] Based on the measured temperature data detected by the non-embedded temperature controller during a preset period of operation, the actual temperature rise of the space where the non-embedded temperature controller is located during the preset period is determined.
[0136] Determine whether the measured temperature rise is less than the preset standard temperature rise;
[0137] If the measured temperature rise is greater than or equal to the preset standard temperature rise, then the thermal conductivity coefficient of the air in the space where the non-embedded temperature controller is located is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0138] If the measured temperature rise is less than the preset standard temperature rise, the convective heat transfer coefficient of the air in the space where the non-embedded temperature controller is located is determined, and the convective heat transfer coefficient is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
[0139] Optionally, the acquisition module 20 is further configured to:
[0140] The measured temperature data detected by the non-embedded temperature controller within the preset time period is determined to be the temperature to be compensated.
[0141] Optionally, the corrected temperature includes a second corrected temperature, and the temperature compensation module 30 is further configured to:
[0142] Obtain the thermal conductivity coefficient corresponding to the second sampling time of the temperature to be compensated, and determine the preset first temperature difference value corresponding to the thermal conductivity coefficient;
[0143] The second corrected temperature is obtained by subtracting the first temperature difference from the temperature to be compensated.
[0144] Optionally, the determining module 10 is further configured to:
[0145] Determine the Reynolds number of the air in the space where the non-embedded thermostat is located;
[0146] The convective heat transfer coefficient within the space where the non-embedded temperature controller is located is determined based on the order of magnitude of the Reynolds number.
[0147] Optionally, the corrected temperature includes a third corrected temperature, and the temperature compensation module 30 is further configured to:
[0148] Obtain the convective heat transfer coefficient of the non-embedded temperature controller at each sampling time within the preset time period;
[0149] Determine the preset air convection velocity corresponding to each of the aforementioned convective heat transfer coefficients, and calculate the average convective velocity of each of the aforementioned air convection velocities;
[0150] The average convection velocity is determined to correspond to a preset second temperature difference. The second temperature difference is then subtracted from the temperature to be compensated to obtain a third correction temperature.
[0151] The temperature detection device provided in this application, employing the temperature detection method described in the above embodiments, can improve the accuracy of temperature detection. Compared with the prior art, the beneficial effects of the temperature detection device provided in this application are the same as those of the temperature detection method described in the above embodiments, and other technical features of the temperature detection device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0152] This application also provides a temperature controller, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the temperature detection method described above.
[0153] The following is for reference. Figure 5 It shows a schematic diagram of a temperature controller suitable for implementing the embodiments of this application. Figure 5 The thermostat shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0154] like Figure 5 As shown, the thermostat may include a processing unit 101 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 102 or a program loaded from storage device 103 into random access memory (RAM) 104. RAM 104 also stores various programs and data required for thermostat operation. The processing unit 101, ROM 102, and RAM 104 are interconnected via bus 105. Input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems can be connected to I / O interface 106: input devices 107 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 108 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 103 including, for example, magnetic tapes, hard disks, etc.; and communication devices 109. Communication device 109 allows the thermostat to communicate wirelessly or wiredly with other devices to exchange data. While the figures show thermostats with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0155] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 103, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of the embodiments of this application.
[0156] The temperature controller provided in this application uses the temperature detection method described in the above embodiments, which can improve the accuracy of temperature detection. Compared with the prior art, the beneficial effects of the temperature controller provided in this application are the same as those of the temperature detection method described in the above embodiments, and other technical features of the temperature controller are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0157] It should be understood that various parts of the embodiments of this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0158] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
[0159] This application also provides a computer storage medium storing a program for a smart home system that can run on a processor. The computer-readable program instructions are used to execute the temperature detection method described in the above embodiments.
[0160] The computer storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0161] The aforementioned computer storage medium may be included in the thermostat or may exist independently without being assembled into the thermostat.
[0162] The aforementioned computer storage medium carries one or more programs. When the aforementioned one or more programs are executed by the temperature controller, the temperature controller: determines the temperature compensation parameters of the target temperature controller when performing temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation; obtains the temperature to be compensated detected by the target temperature controller; and performs temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature.
[0163] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0165] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0166] The readable storage medium provided in this application embodiment is a computer storage medium, which stores computer-readable program instructions for executing the above-described temperature detection method, thereby improving the accuracy of temperature detection. Compared with the prior art, the beneficial effects of the computer storage medium provided in this application embodiment are the same as the beneficial effects of the temperature detection method provided in the above embodiments, and will not be repeated here.
[0167] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the temperature detection method described above.
[0168] The computer program product provided in this application can improve the accuracy of temperature detection. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the temperature detection method provided in the above embodiments, and will not be repeated here.
[0169] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A temperature detection method characterized by, The temperature detection method includes: Based on the measured temperature data detected by the target temperature controller during a preset period of operation, the temperature compensation parameters of the target temperature controller when performing temperature detection are determined. Obtain the temperature to be compensated detected by the target temperature controller; Based on the temperature compensation parameters, temperature compensation is performed on the temperature to be compensated to obtain the corrected temperature.
2. The method as described in claim 1, characterized in that, The target temperature controller includes an embedded temperature controller, and the start time of the preset time period is the moment when the embedded temperature controller first enters the full power operation state; The step of determining the temperature compensation parameters of the target temperature controller during temperature detection based on the measured temperature data detected by the target temperature controller within a preset time period during operation includes: Based on the measured temperature data detected by the embedded temperature controller during a preset period of operation, the measured temperature rise curve of the space where the embedded temperature controller is located during the preset period is determined. The target temperature rise curve with the highest similarity to the measured temperature rise curve among the preset standard temperature rise curves is determined, and the target temperature rise curve is used as the temperature compensation parameter of the embedded temperature controller when performing temperature detection.
3. The method as described in claim 2, characterized in that, The corrected temperature includes a first corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes: Determine the time difference between the first sampling time of the temperature to be compensated and the current turn-on time of the embedded temperature controller; The target temperature rise corresponding to the time difference is determined on the target temperature rise curve, and the target temperature rise is subtracted from the temperature to be compensated to obtain the first correction temperature.
4. The method of claim 1, wherein, The target temperature controller includes a non-embedded temperature controller. The step of determining the temperature compensation parameters of the target temperature controller during temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation includes: Based on the measured temperature data detected by the non-embedded temperature controller during a preset period of operation, the actual temperature rise of the space where the non-embedded temperature controller is located during the preset period is determined. Determine whether the measured temperature rise is less than the preset standard temperature rise; If the measured temperature rise is greater than or equal to the preset standard temperature rise, then the thermal conductivity coefficient of the air in the space where the non-embedded temperature controller is located is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection. If the measured temperature rise is less than the preset standard temperature rise, the convective heat transfer coefficient of the air in the space where the non-embedded temperature controller is located is determined, and the convective heat transfer coefficient is used as the temperature compensation parameter when the non-embedded temperature controller performs temperature detection.
5. The method of claim 4, wherein, The step of obtaining the temperature to be compensated detected by the target temperature controller includes: The measured temperature data detected by the non-embedded temperature controller within the preset time period is determined to be the temperature to be compensated.
6. The method of claim 5, wherein, The corrected temperature includes a second corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes: Obtain the thermal conductivity coefficient corresponding to the second sampling time of the temperature to be compensated, and determine the preset first temperature difference value corresponding to the thermal conductivity coefficient; The second corrected temperature is obtained by subtracting the first temperature difference from the temperature to be compensated.
7. The method of claim 5, wherein, The step of determining the convective heat transfer coefficient of the air in the space where the target thermostat is located includes: Determine the Reynolds number of the air in the space where the non-embedded thermostat is located; The convective heat transfer coefficient within the space where the non-embedded temperature controller is located is determined based on the order of magnitude of the Reynolds number.
8. The method of claim 7, wherein, The corrected temperature includes a third corrected temperature, and the step of performing temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature includes: Obtain the convective heat transfer coefficient of the non-embedded temperature controller at each sampling time within the preset time period; Determine the preset air convection velocity corresponding to each of the aforementioned convective heat transfer coefficients, and calculate the average convective velocity of each of the aforementioned air convection velocities; The average convection velocity is determined to correspond to a preset second temperature difference. The second temperature difference is then subtracted from the temperature to be compensated to obtain a third correction temperature.
9. A temperature detection device, characterized in that, The temperature detection device includes: The determination module is used to determine the temperature compensation parameters of the target temperature controller when performing temperature detection based on the measured temperature data detected by the target temperature controller during a preset period of operation. The acquisition module is used to acquire the temperature to be compensated detected by the target temperature controller; The temperature compensation module is used to perform temperature compensation on the temperature to be compensated based on the temperature compensation parameters to obtain the corrected temperature.
10. A thermostat, characterized by The device includes a memory, a processor, and a temperature detection program stored in the memory and executable on the processor, wherein the temperature detection program, when executed by the processor, implements the steps of the temperature detection method as described in any one of claims 1 to 8.
11. A computer storage medium, characterized in that, The device stores a temperature detection program that can run on a processor, the temperature detection program being invoked by the processor to implement the steps of the temperature detection method according to any one of claims 1 to 8.
12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the temperature detection method as described in any one of claims 1 to 8.