Temperature control method, device, temperature controller and storage medium
By calculating the temperature change rate and variance of the transformer, the opening time of the heater or cooler is accurately controlled, which solves the problem of temperature control delay of the temperature controller in the dry-type transformer and achieves stable control of the temperature within the target range.
Patent Information
- Application Number
- CN202411173197.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2044-08-26
AI Technical Summary
Existing temperature controllers have a temperature control delay problem in dry-type transformers, resulting in the temperature being unable to be accurately maintained within the target temperature range.
By obtaining the historical temperature sequence and current temperature of the target transformer, calculating the temperature change rate and variance, and combining it with the target temperature range, the device startup time is accurately calculated and the on/off of the heater or cooler is controlled to achieve stable temperature control.
It achieves stable and accurate temperature control within the target temperature range, reduces temperature fluctuations, and improves the accuracy and response speed of temperature control.
Smart Images

Figure CN118939038B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic digital data processing technology, and in particular relates to a temperature control method, device, temperature controller and storage medium. Background Art
[0002] The operating principle of a temperature controller is primarily based on the automatic sampling and real-time monitoring of ambient temperature by a temperature sensor. The device then uses electrical signals to control the heating or cooling device to maintain a set temperature range. The core function of a temperature controller is to achieve automatic temperature control, and it has a wide range of applications, such as dry-type transformers and industrial production process control.
[0003] Currently, for example, in the scenario of dry-type transformers, a temperature controller is required to maintain a constant temperature of the dry-type transformer. Although a temperature controller is added, in reality, when the temperature falls below the target temperature range, turning on the heating device will not immediately raise the temperature to the target temperature. The same is true when turning on the cooling device. There will be a certain degree of delay, resulting in the temperature not being within the target temperature range. Summary of the Invention
[0004] In order to overcome the problem of delay in the temperature control process in the related art, which causes the temperature to be out of the target temperature range, the embodiments of the present application provide a temperature control method, device, temperature controller and storage medium.
[0005] This application is achieved through the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a temperature control method, comprising:
[0007] Obtain the historical temperature sequence of the target transformer and the current temperature of the target transformer.
[0008] Based on the historical temperature series, the temperature change rate and temperature variance are obtained.
[0009] Calculates the device power-on time based on the temperature change rate, current temperature, and target temperature range.
[0010] Based on the temperature variance, device on-time and temperature change rate, the heater or cooler is controlled on and off to control the temperature of the target transformer.
[0011] In conjunction with the first aspect, in some possible implementations, calculating the device startup time based on the temperature change rate, the current temperature, and the target temperature range includes:
[0012] Based on the temperature change rate, the current temperature and the target temperature interval, a first time is obtained; wherein the first time represents the time from the current temperature to the target temperature interval edge condition according to the temperature change rate.
[0013] The difference between the heater or cooler startup delay and the first time is calculated to obtain the device startup time.
[0014] In conjunction with the first aspect, in some possible implementations, obtaining the first time based on the temperature change rate, the current temperature, and the target temperature range includes:
[0015] When the temperature change rate is greater than 0, the first time is obtained based on the temperature change rate, the current temperature, and the upper limit of the target temperature range in combination with the first formula.
[0016] When the temperature change rate is less than or equal to 0, the first time is obtained based on the temperature change rate, the current temperature, and the lower limit of the target temperature range in combination with the second formula.
[0017] The first formula is:
[0018]
[0019] Wherein, t1 represents the first time, C1 represents the upper limit of the target temperature range, T represents the current temperature, and ν represents the temperature change rate.
[0020] The second formula is:
[0021]
[0022] Wherein, C2 represents the lower limit of the target temperature range.
[0023] In conjunction with the first aspect, in some possible implementations, controlling the on / off of a heater or a cooler to control the temperature of a target transformer based on temperature variance, device on-time, and temperature change rate includes:
[0024] If the temperature variance is less than the preset threshold, the heater or cooler is not activated.
[0025] If the temperature variance is greater than or equal to the preset threshold, it is determined whether the temperature change rate is greater than 0. If the temperature change rate is greater than 0, the cooler is turned on and the heater is turned off according to the device startup time to control the temperature of the target transformer.
[0026] If the temperature change rate is less than or equal to 0, the heater is turned on and the cooler is turned off according to the device start time to control the temperature of the target transformer.
[0027] In conjunction with the first aspect, in some possible implementations, obtaining a historical temperature sequence of a target transformer and a current temperature of the target transformer includes:
[0028] Obtain the historical temperature sequence of the target transformer and the temperature acquisition value of the target transformer.
[0029] Based on the historical temperature sequence, multiple historical temperatures are obtained;.
[0030] Based on the plurality of historical temperatures and a preset normal temperature, an average value of the historical abnormal temperatures and an average value of the historical normal temperatures are determined.
[0031] The difference between the mean of historical abnormal temperatures and the mean of historical normal temperatures is calculated to obtain the corrected temperature.
[0032] If the difference between the temperature collection value and the average of the historical abnormal temperatures is less than or equal to the average of the temperature collection value and the historical normal temperatures, the current temperature is obtained based on the temperature collection value and the corrected temperature.
[0033] If the difference between the temperature collection value and the average of the historical abnormal temperatures is greater than the average of the temperature collection value and the historical normal temperatures, the temperature collection value is used as the current temperature.
[0034] In conjunction with the first aspect, in some possible implementations, obtaining the temperature change rate based on the historical temperature sequence includes:
[0035] Get the time interval between two adjacent temperatures in the historical temperature series.
[0036] For any set of two adjacent temperatures in the historical temperature sequence, a first rate is calculated based on the two adjacent temperatures and the time interval in combination with the third formula.
[0037] Calculate the average of all first rates and record it as the temperature change rate.
[0038] The third formula is:
[0039]
[0040] Wherein, ν represents the first rate, T1 represents the temperature obtained earlier than the other two adjacent temperatures, T2 represents the temperature obtained later than the other two adjacent temperatures, and s represents the time interval.
[0041] In conjunction with the first aspect, in some possible implementations, obtaining the temperature variance based on the historical temperature sequence includes:
[0042] Based on the historical temperature sequence, multiple historical temperatures are obtained.
[0043] Calculate the variance of multiple historical temperatures to obtain the temperature variance.
[0044] In a second aspect, an embodiment of the present application provides a temperature control device, comprising:
[0045] The data acquisition module is used to obtain the historical temperature sequence of the target transformer and the current temperature of the target transformer.
[0046] The first calculation module is used to obtain the temperature change rate and temperature variance based on the historical temperature sequence.
[0047] The second calculation module is used to calculate the device startup time based on the temperature change rate, the current temperature and the target temperature range.
[0048] The device control module is used to control the on and off of the heater or cooler to control the temperature of the target transformer based on the temperature variance, device on time and temperature change rate.
[0049] In a third aspect, an embodiment of the present application provides a temperature controller, comprising: a processor and a memory, the memory being used to store a computer program, and the processor implementing the temperature control method as described in any one of the first aspects when executing the computer program.
[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the temperature control method as described in any one of the first aspects is implemented.
[0051] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0052] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0053] This application calculates the temperature change rate and temperature variance through the historical temperature sequence of the target transformer, accurately determines whether to start the heater or cooler through the temperature variance, determines whether to start the heater or cooler through the temperature change rate, and calculates the device startup time through the temperature change rate, the current temperature, and the target temperature range. By calculating the accurate device startup time, the heater or cooler can be activated when the temperature drops to the boundary of the target temperature range, so that the temperature is maintained within the target temperature range, thereby achieving the purpose of stably and accurately controlling the temperature within the target temperature range.
[0054] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0056] Figure 1 1 is a flow chart of a temperature control method provided in one embodiment of the present application;
[0057] Figure 2 1 is a schematic structural diagram of a temperature control device provided in one embodiment of the present application;
[0058] Figure 3 It is a structural diagram of a temperature controller provided in one embodiment of the present application. DETAILED DESCRIPTION
[0059] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0060] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0061] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0062] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0063] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0064] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0065] The embodiment of the present application provides a temperature control method, Figure 1 This is a schematic diagram of the temperature control method provided in one embodiment of the present application, with reference to Figure 1 , the temperature control method is described in detail as follows:
[0066] Step 101: Acquire a historical temperature sequence of a target transformer and a current temperature of the target transformer.
[0067] Exemplarily, step 101 may include:
[0068] Obtain the historical temperature sequence of the target transformer and the temperature acquisition value of the target transformer.
[0069] Based on the historical temperature sequence, multiple historical temperatures are obtained;.
[0070] Based on the plurality of historical temperatures and a preset normal temperature, an average value of the historical abnormal temperatures and an average value of the historical normal temperatures are determined.
[0071] The difference between the mean of historical abnormal temperatures and the mean of historical normal temperatures is calculated to obtain the corrected temperature.
[0072] If the difference between the temperature collection value and the average of the historical abnormal temperatures is less than or equal to the average of the temperature collection value and the historical normal temperatures, the current temperature is obtained based on the temperature collection value and the corrected temperature.
[0073] If the difference between the temperature collection value and the average of the historical abnormal temperatures is greater than the average of the temperature collection value and the historical normal temperatures, the temperature collection value is used as the current temperature.
[0074] In some specific embodiments, the operation of the temperature controller may be subject to various interferences, which may cause errors in the acquired temperature. These abnormal values need to be processed to obtain the true and closest value of the current temperature. This makes the acquired data more accurate, allowing the temperature controller to control the temperature according to the accurate data and ensure the accuracy of temperature control.
[0075] Step 102: Based on the historical temperature sequence, obtain the temperature change rate and temperature variance.
[0076] Exemplarily, based on the historical temperature sequence, the temperature change rate is obtained, including:
[0077] Get the time interval between two adjacent temperatures in the historical temperature series.
[0078] For any set of two adjacent temperatures in the historical temperature sequence, a first rate is calculated based on the two adjacent temperatures and the time interval in combination with the third formula.
[0079] Calculate the average of all first rates and record it as the temperature change rate.
[0080] The third formula can be:
[0081]
[0082] Wherein, ν represents the first rate, T1 represents the temperature obtained earlier than the other two adjacent temperatures, T2 represents the temperature obtained later than the other two adjacent temperatures, and s represents the time interval.
[0083] In some specific embodiments, the magnitude of the first rate is positive or negative, and the values are added when calculating the average. When the calculated average is positive, it indicates that the trend of temperature change is warming. Similarly, when the calculated average is negative, it indicates that the trend of temperature change is cooling.
[0084] For example, obtaining the temperature variance based on the historical temperature series may include:
[0085] Based on the historical temperature sequence, multiple historical temperatures are obtained.
[0086] Calculate the variance of multiple historical temperatures to obtain the temperature variance.
[0087] Step 103 : Calculate the device startup time based on the temperature change rate, the current temperature, and the target temperature range.
[0088] Exemplarily, step 103 may include:
[0089] Based on the temperature change rate, the current temperature and the target temperature interval, a first time is obtained; wherein the first time represents the time from the current temperature to the target temperature interval edge condition according to the temperature change rate.
[0090] The difference between the heater or cooler startup delay and the first time is calculated to obtain the device startup time.
[0091] In some specific embodiments, when the heater and cooler are first started, they cannot immediately increase or decrease the temperature of the target transformer. Therefore, it is necessary to take this time difference into account in the startup time. The startup delay of the heater or cooler can be calculated based on historical data and then the average value is obtained.
[0092] Exemplarily, obtaining the first time based on the temperature change rate, the current temperature, and the target temperature range may include:
[0093] When the temperature change rate is greater than 0, the first time is obtained based on the temperature change rate, the current temperature, and the upper limit of the target temperature range in combination with the first formula.
[0094] When the temperature change rate is less than or equal to 0, the first time is obtained based on the temperature change rate, the current temperature, and the lower limit of the target temperature range in combination with the second formula.
[0095] The first formula can be:
[0096]
[0097] Wherein, t1 represents the first time, C1 represents the upper limit of the target temperature range, T represents the current temperature, and ν represents the temperature change rate.
[0098] The second formula can be:
[0099]
[0100] Wherein, C2 represents the lower limit of the target temperature range.
[0101] Step 104 : Based on the temperature variance, the device on-time, and the temperature change rate, the heater or the cooler is controlled to be on or off to control the temperature of the target transformer.
[0102] Exemplarily, step 104 may include:
[0103] If the temperature variance is less than the preset threshold, the heater or cooler is not activated.
[0104] If the temperature variance is greater than or equal to the preset threshold, it is determined whether the temperature change rate is greater than 0. If the temperature change rate is greater than 0, the cooler is turned on and the heater is turned off according to the device startup time to control the temperature of the target transformer.
[0105] If the temperature change rate is less than or equal to 0, the heater is turned on and the cooler is turned off according to the device start time to control the temperature of the target transformer.
[0106] In some specific embodiments, the temperature variance is calculated using a conventional calculation method. The temperature variance is used to determine whether the temperature change is a normal small fluctuation or a change that may fall outside the target temperature range, thereby facilitating control of the heater or cooler according to the device startup time.
[0107] The above temperature control method calculates the temperature change rate and temperature variance based on the historical temperature sequence of the target transformer, accurately determines whether to start the heater or cooler based on the temperature variance, and determines whether to start the heater or cooler based on the temperature change rate. The device startup time is calculated based on the temperature change rate, the current temperature, and the target temperature range. By calculating the accurate device startup time, the heater or cooler can be activated when the temperature drops to the boundary of the target temperature range, so that the temperature is maintained within the target temperature range, thereby achieving the purpose of stably and accurately controlling the temperature within the target temperature range.
[0108] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0109] Corresponding to the temperature control method described in the above embodiment, Figure 2 A structural block diagram of a temperature control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0110] See also Figure 2 , the temperature control device in the embodiment of the present application may include:
[0111] The data acquisition module 201 is used to acquire the historical temperature sequence of the target transformer and the current temperature of the target transformer.
[0112] The first calculation module 202 is configured to obtain a temperature change rate and a temperature variance based on a historical temperature sequence.
[0113] The second calculation module 203 is configured to calculate the device startup time based on the temperature change rate, the current temperature, and the target temperature range.
[0114] The device control module 204 is used to control the on and off of the heater or the cooler to control the temperature of the target transformer based on the temperature variance, the device on time and the temperature change rate.
[0115] Exemplarily, the second calculation module 203 may be configured to:
[0116] Based on the temperature change rate, the current temperature and the target temperature interval, a first time is obtained; wherein the first time represents the time from the current temperature to the target temperature interval edge condition according to the temperature change rate.
[0117] The difference between the heater or cooler startup delay and the first time is calculated to obtain the device startup time.
[0118] Exemplarily, the second calculation module 203 may be configured to:
[0119] When the temperature change rate is greater than 0, the first time is obtained based on the temperature change rate, the current temperature, and the upper limit of the target temperature range in combination with the first formula.
[0120] When the temperature change rate is less than or equal to 0, the first time is obtained based on the temperature change rate, the current temperature, and the lower limit of the target temperature range in combination with the second formula.
[0121] The first formula can be:
[0122]
[0123] Wherein, t1 represents the first time, C1 represents the upper limit of the target temperature range, T represents the current temperature, and ν represents the temperature change rate.
[0124] The second formula can be:
[0125]
[0126] Wherein, C2 represents the lower limit of the target temperature range.
[0127] Exemplarily, the device control module 204 may be configured to:
[0128] If the temperature variance is less than the preset threshold, the heater or cooler is not activated.
[0129] If the temperature variance is greater than or equal to the preset threshold, it is determined whether the temperature change rate is greater than 0. If the temperature change rate is greater than 0, the cooler is turned on and the heater is turned off according to the device startup time to control the temperature of the target transformer.
[0130] If the temperature change rate is less than or equal to 0, the heater is turned on and the cooler is turned off according to the device start time to control the temperature of the target transformer.
[0131] Exemplarily, the data acquisition module 201 may be used to:
[0132] Obtain the historical temperature sequence of the target transformer and the temperature acquisition value of the target transformer.
[0133] Based on the historical temperature sequence, multiple historical temperatures are obtained;.
[0134] Based on the plurality of historical temperatures and a preset normal temperature, an average value of the historical abnormal temperatures and an average value of the historical normal temperatures are determined.
[0135] The difference between the mean of historical abnormal temperatures and the mean of historical normal temperatures is calculated to obtain the corrected temperature.
[0136] If the difference between the temperature collection value and the average of the historical abnormal temperatures is less than or equal to the average of the temperature collection value and the historical normal temperatures, the current temperature is obtained based on the temperature collection value and the corrected temperature.
[0137] If the difference between the temperature collection value and the average of the historical abnormal temperatures is greater than the average of the temperature collection value and the historical normal temperatures, the temperature collection value is used as the current temperature.
[0138] Exemplarily, the first calculation module 202 may be configured to:
[0139] Get the time interval between two adjacent temperatures in the historical temperature series.
[0140] For any set of two adjacent temperatures in the historical temperature sequence, a first rate is calculated based on the two adjacent temperatures and the time interval in combination with the third formula.
[0141] Calculate the average of all first rates and record it as the temperature change rate.
[0142] The third formula can be:
[0143]
[0144] Wherein, ν represents the first rate, T1 represents the temperature obtained earlier than the other two adjacent temperatures, T2 represents the temperature obtained later than the other two adjacent temperatures, and s represents the time interval.
[0145] Exemplarily, the first calculation module 202 may be configured to:
[0146] Based on the historical temperature sequence, multiple historical temperatures are obtained.
[0147] Calculate the variance of multiple historical temperatures to obtain the temperature variance.
[0148] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0150] The present application also provides a temperature controller. Figure 3 The temperature controller 300 may include: at least one processor 310, a memory 320, the memory 320 is used to store a computer program 321, the processor 310 is used to call and run the computer program 321 stored in the memory 320 to implement the steps of any of the above-mentioned method embodiments, for example Figure 1 Steps 101 to 104 in the embodiment shown. Alternatively, when the processor 310 executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, for example Figure 2 The functions of each module are shown.
[0151] For example, the computer program 321 can be divided into one or more modules / units, one or more of which are stored in the memory 320 and executed by the processor 310 to complete the present application. The one or more modules / units can be a series of computer program segments that can perform specific functions, and the program segments are used to describe the execution process of the computer program in the temperature controller 300.
[0152] Those skilled in the art will understand that Figure 3 This is only an example of a temperature controller and does not constitute a limitation on the temperature controller. The temperature controller may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.
[0153] The processor 310 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0154] The memory 320 can be an internal storage unit of the temperature controller or an external storage device, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, or a flash memory card. The memory 320 is used to store the computer program and other programs and data required by the temperature controller. The memory 320 can also be used to temporarily store data that has been output or is about to be output.
[0155] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified into address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0156] The temperature control method provided in the embodiments of the present application can be applied to terminal devices such as computers, wearable devices, vehicle-mounted devices, tablet computers, laptop computers, netbooks, etc. The embodiments of the present application do not impose any restrictions on the specific type of terminal devices.
[0157] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each embodiment of the above-mentioned temperature control method can be implemented.
[0158] An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in each embodiment of the above-mentioned temperature control method when executing the computer program product.
[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device that can carry the computer program code to the camera / temperature controller, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0160] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0161] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0162] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0164] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A temperature control method, characterized in that: include: Obtaining a historical temperature sequence of a target transformer and a current temperature of the target transformer; Based on the historical temperature sequence, obtaining a temperature change rate and a temperature variance; Calculating a device startup time based on the temperature change rate, the current temperature, and a target temperature range; Based on the temperature variance, the device on time, and the temperature change rate, controlling the on and off of a heater or a cooler to control the temperature of a target transformer; The calculating the device startup time based on the temperature change rate, the current temperature, and the target temperature range includes: Obtaining a first time based on the temperature change rate, the current temperature, and the target temperature interval; wherein the first time represents the time it takes for the current temperature to reach the target temperature interval edge condition according to the temperature change rate; Calculating the difference between the startup delay of the heater or the refrigerator and the first time to obtain the device startup time; The obtaining of the first time based on the temperature change rate, the current temperature, and the target temperature range includes: When the temperature change rate is greater than 0, the first time is obtained based on the temperature change rate, the current temperature, and the upper limit of the target temperature range in combination with a first formula; When the temperature change rate is less than or equal to 0, a first time is obtained based on the temperature change rate, the current temperature, and the lower limit of the target temperature range in combination with a second formula; The first formula is: Wherein, t1 represents the first time, C1 represents the upper limit of the target temperature range, T represents the current temperature, and ν represents the temperature change rate; The second formula is: Wherein, C2 represents the lower limit of the target temperature range.
2. The temperature control method according to claim 1, wherein: The controlling of the on / off of a heater or a cooler to control the temperature of a target transformer based on the temperature variance, the device on time, and the temperature change rate includes: If the temperature variance is less than a preset threshold, the heater or the cooler is not started; If the temperature variance is greater than or equal to the preset threshold, determining whether the temperature change rate is greater than 0; if the temperature change rate is greater than 0, turning on the refrigerator and turning off the heater according to the device start time to perform temperature control on the target transformer; If the temperature change rate is less than or equal to 0, the heater is turned on and the refrigerator is turned off according to the device start time to perform temperature control on the target transformer.
3. The temperature control method according to claim 1, wherein: The acquiring of the historical temperature sequence of the target transformer and the current temperature of the target transformer includes: Obtaining a historical temperature sequence of a target transformer and a temperature acquisition value of the target transformer; Based on the historical temperature sequence, a plurality of historical temperatures are obtained; Determining an average of historical abnormal temperatures and an average of historical normal temperatures based on the multiple historical temperatures and a preset normal temperature; Calculating the difference between the average of the historical abnormal temperatures and the average of the historical normal temperatures to obtain a corrected temperature; If the difference between the temperature collection value and the average of the historical abnormal temperatures is less than or equal to the average of the temperature collection value and the historical normal temperatures, the current temperature is obtained based on the temperature collection value and the corrected temperature; If the difference between the temperature collection value and the average of the historical abnormal temperatures is greater than the average of the temperature collection value and the historical normal temperatures, the temperature collection value is used as the current temperature.
4. The temperature control method according to claim 1, wherein: The obtaining of the temperature change rate based on the historical temperature sequence includes: Obtaining the time interval between two adjacent temperatures in the historical temperature sequence; For any set of two adjacent temperatures in the historical temperature sequence, a first rate is calculated based on the two adjacent temperatures and the time interval in combination with a third formula; Calculate the average of all first rates and record it as the temperature change rate; The third formula is: Here, ν represents the first rate, T1 represents the temperature obtained earlier than the other two adjacent temperatures, T2 represents the temperature obtained later than the other two adjacent temperatures, and s represents the time interval.
5. The temperature control method according to claim 1, wherein: The obtaining of temperature variance based on the historical temperature sequence includes: Based on the historical temperature sequence, a plurality of historical temperatures are obtained; The variance of the multiple historical temperatures is calculated to obtain the temperature variance.
6. A temperature control device, characterized in that: include: A data acquisition module is used to obtain a historical temperature sequence of a target transformer and a current temperature of the target transformer; A first calculation module is used to obtain a temperature change rate and a temperature variance based on the historical temperature sequence; a second calculation module, configured to calculate a device startup time based on the temperature change rate, the current temperature, and a target temperature range; A device control module, configured to control the on / off of a heater or a cooler to control the temperature of a target transformer based on the temperature variance, the device on time, and the temperature change rate; The second computing module is further configured to: Obtaining a first time based on the temperature change rate, the current temperature, and the target temperature interval; wherein the first time represents the time it takes for the current temperature to reach the target temperature interval edge condition according to the temperature change rate; Calculating the difference between the startup delay of the heater or the refrigerator and the first time to obtain the device startup time; The second computing module is further configured to: When the temperature change rate is greater than 0, the first time is obtained based on the temperature change rate, the current temperature, and the upper limit of the target temperature range in combination with a first formula; When the temperature change rate is less than or equal to 0, a first time is obtained based on the temperature change rate, the current temperature, and the lower limit of the target temperature range in combination with a second formula; The first formula is: Wherein, t1 represents the first time, C1 represents the upper limit of the target temperature range, T represents the current temperature, and ν represents the temperature change rate; The second formula is: Wherein, C2 represents the lower limit of the target temperature range.
7. A temperature controller comprising: A processor and a memory, wherein the memory stores a computer program that can be run on the processor, and is characterized in that when the processor executes the computer program, it implements the temperature control method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the temperature control method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Extruder barrel temperature control method and device, electronic device and storage medium
CN113799369A