Temperature control method, controller, medium and temperature control system using temperature control system
By dynamically adjusting the temperature and frequency compensation value of the first constant temperature tank, the problems of temperature control accuracy and high current energy consumption of the constant temperature tank in the prior art are solved, and efficient temperature control and frequency stability are achieved.
Patent Information
- Application Number
- CN202410923267.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The existing constant temperature control method of constant temperature tank cannot ensure the temperature control performance of the system while reducing current energy consumption, especially due to the high power consumption and low temperature control accuracy caused by the design of the double-layer constant temperature tank.
A temperature control system is adopted, including an external first constant temperature tank and an internal second constant temperature tank. Through the correspondence between the preset temperature value and the frequency compensation value, the temperature and frequency compensation value of the first constant temperature tank are dynamically adjusted to Adapt to the temperature changes of the external environment, ensure the frequency stability of the temperature control object, and at the same time reduce the temperature control current value of the first constant temperature tank.
It realizes precisely controlling the frequency of the temperature control object while reducing current power consumption, reducing the temperature difference between the first constant temperature tank and the external environment, and improving the temperature control accuracy and frequency stability.
Smart Images

Figure CN118655937B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and specifically provides a temperature control method, a controller, a medium and a temperature control system using a temperature control system. Background Art
[0002] Precision temperature control technology is very important for typical high-stability clocks such as atomic clocks and constant-temperature crystal oscillators. Since the core parameters of the core physical components of high-stability clocks are often very sensitive to temperature, these physical components generally need to be placed in a high-temperature and stable constant-temperature bath to work. The temperature control accuracy of the constant-temperature bath is one of the key factors that determine the frequency stability of these physical components.
[0003] However, the temperature control accuracy of the existing thermostatic bath cannot meet the actual requirements of the frequency stability of physical components. For example, by placing the physical component in a double-layer thermostatic bath and controlling the temperature of the double-layer thermostatic bath, the temperature control accuracy can be increased exponentially through the temperature control gain of the second-layer thermostatic bath, thereby improving the frequency stability of the physical component. However, since the second-layer thermostatic bath, i.e., the outer thermostatic bath, needs to completely wrap the first-layer thermostatic bath inside, and an insulating space must be left in the middle, the surface area of the second-layer thermostatic bath is significantly larger than that of the first-layer thermostatic bath, resulting in significantly faster heat dissipation. This results in the double-layer thermostatic bath using a double-layer thermostatic bath. The required power consumption is significantly greater than that of a single-layer thermostatic bath.
[0004] The method of placing physical components in a single-layer thermostatic bath uses a single-layer thermostatic system, and the temperature coefficient of the single-layer thermostatic system is measured and saved by electronic means. When the physical components are working, the measured temperature coefficient is used to calculate the frequency compensation amount at the current temperature of the single-layer thermostatic bath, and the frequency stability of the physical components is maintained in combination with the frequency compensation system. Since the function curve fitting the temperature coefficient and the frequency compensation amount is not accurate, and the heat dissipation conditions will also introduce error values, it is difficult to accurately implement compensation on temperature or frequency, and the temperature control accuracy is not high.
[0005] Accordingly, a new solution is needed in the art to solve the above problems. Summary of the invention
[0006] In order to overcome the above-mentioned defects, the present application is proposed to provide a solution or at least partially solve the problem that the existing constant temperature system is difficult to reduce the current energy consumption while ensuring the temperature control performance of the system.
[0007] In a first aspect, the present application provides a temperature control method using a temperature control system,
[0008] The temperature control system comprises a first thermostatic bath, a temperature control circuit, a frequency control component, and a second thermostatic bath disposed in the first thermostatic bath, wherein the first thermostatic bath is placed in an external environment, and a temperature-controlled object is placed in the second thermostatic bath, and the method comprises:
[0009] S10, in response to detecting that the temperature control system is started, determining a first temperature value and a corresponding first frequency compensation value from a correspondence between a preset temperature value and a frequency compensation value, wherein the preset temperature value is a discrete value;
[0010] S20, setting the temperature of the first thermostatic bath to the first temperature value through the temperature control circuit, and compensating the first frequency compensation value to the temperature control object through the frequency control component;
[0011] S30, in response to detecting a change in the external environment temperature, determining whether it is appropriate to switch to a second temperature value adjacent to the first temperature value in the corresponding relationship;
[0012] S40: If yes, determine the second temperature value from the corresponding relationship;
[0013] S50: changing the temperature of the first thermostatic bath to the second temperature value through the temperature control circuit, and compensating the temperature-controlled object with a second frequency compensation value corresponding to the second temperature value through the frequency control component.
[0014] In a technical solution of the temperature control method using the temperature control system, the determining of the first temperature value from the correspondence between the preset temperature value and the frequency compensation value includes:
[0015] S100, arbitrarily selecting an initial temperature value from the corresponding relationship;
[0016] S105, setting the temperature of the first thermostatic bath to the initial temperature value through the temperature control circuit;
[0017] S110, after the temperature control current of the first thermostatic bath is stable, obtaining a stable temperature control current value of the first thermostatic bath as a first current value;
[0018] S115, determining whether the first current value meets a preset standard;
[0019] S120. If the first current value does not meet the preset standard, reselect an initial temperature value from the corresponding relationship, and return to step S105 until the first current value meets the preset standard. If so, determine the initial temperature value as the first temperature value.
[0020] In a technical solution of the temperature control method using the temperature control system, in step S115, the method further includes:
[0021] It is determined whether the first current value is within a preset range, wherein the preset range is from 0 to a preset current value, and the preset current value is a preset temperature control current upper limit value.
[0022] In a technical solution of the temperature control method using the temperature control system, the determining whether the first current value meets a preset standard includes:
[0023] saving a difference between the first current value and a reference current value as a first difference value, wherein the reference current value is half of the preset current value;
[0024] Setting a reference current range according to the reference current value;
[0025] Determining whether the first current value is within the reference current range, and if so, determining that the first current meets a preset standard;
[0026] If not and the first current value is less than the reference current value, selecting an adjacent temperature value that is adjacent to the initial temperature value and greater than the initial temperature value from the corresponding relationship;
[0027] If not and the first current value is greater than the reference current value, selecting an adjacent temperature value that is adjacent to the initial temperature value and less than the initial temperature value from the corresponding relationship;
[0028] Setting the temperature of the first thermostatic bath to the adjacent temperature value through the temperature control circuit, and obtaining a stable current value of the first thermostatic bath as a second current value;
[0029] taking the difference between the second current value and the reference current value as a second difference, and determining whether the first difference is greater than the second difference;
[0030] If it is less than or equal to, determining that the first current meets the preset standard;
[0031] If it is greater than, it is determined that the first current does not meet the preset standard.
[0032] In a technical solution of the temperature control method using the temperature control system, in response to detecting a change in the external environment temperature, determining whether it is appropriate to switch to a second temperature value adjacent to the first temperature value in the corresponding relationship includes:
[0033] In response to a change in the temperature control current, detecting whether a change value of the temperature control current exceeds a preset change range;
[0034] If it exceeds the preset variation range, it is determined to be suitable for switching to the second temperature value.
[0035] In a technical solution of the temperature control method using the temperature control system, the determining the second temperature value from the corresponding relationship includes:
[0036] If the temperature control current is less than the first current, a temperature value adjacent to the first temperature value and greater than the first temperature value is selected from the corresponding relationship as the second temperature value;
[0037] If the temperature control current is greater than the first current, a temperature value adjacent to the first temperature value and less than the first temperature value is selected from the corresponding relationship as the second temperature value,
[0038] The temperature values in the corresponding relationship are temperature values sorted according to size.
[0039] In a technical solution of the temperature control method using the temperature control system, before step S10, the method further includes:
[0040] Based on a preset number of discrete temperature values, respectively setting the temperature of the first thermostatic bath to each of the discrete temperature values through the temperature control circuit;
[0041] For each of the discrete temperature values, determining the frequency of the temperature-controlled object;
[0042] Determine the frequency compensation value required by the temperature-controlled object corresponding to each discrete temperature value according to the measurement result;
[0043] The corresponding relationship is obtained based on the discrete temperature values and the corresponding frequency compensation values.
[0044] In a second aspect, a controller is provided, which includes at least one processor and at least one memory, wherein the memory is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the temperature control method using a temperature control system described in any one of the technical solutions of the temperature control method using a temperature control system.
[0045] In a third aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the temperature control method using a temperature control system as described in any one of the technical solutions of the temperature control method using a temperature control system.
[0046] In a fourth aspect, a temperature control system is provided, comprising the controller according to the second aspect; and
[0047] A first thermostatic bath, wherein the first thermostatic bath is placed in an external environment;
[0048] A second thermostatic bath disposed in the first thermostatic bath, wherein a temperature-controlled object is placed in the second thermostatic bath;
[0049] a temperature control circuit, controlled by the controller to set the temperature of the first constant temperature bath; and
[0050] A frequency control component is controlled by the controller to perform frequency compensation for the temperature controlled object.
[0051] The above one or more technical solutions of this application have at least one or more of the following
[0052] Beneficial effects:
[0053] In the technical solution for implementing the present application, after detecting that the temperature control system is started, the present application determines the first temperature value and the corresponding first frequency compensation value from the correspondence between the preset temperature value and the frequency compensation value, sets the temperature of the first thermostatic bath to the first temperature value through the temperature control circuit, and compensates the first frequency compensation value to the temperature control object through the frequency control component, and when the external environment temperature changes, determines whether it is suitable to switch to the second temperature value adjacent to the first temperature value in the correspondence, and if so, determines the second temperature value from the correspondence, changes the temperature of the first thermostatic bath to the second temperature value through the temperature control circuit, and compensates the second frequency compensation value corresponding to the second temperature value to the temperature control object through the frequency control component. Through the above configuration, the present application stores the preset temperature value in the form of discrete values and the measured corresponding frequency compensation value in the corresponding relationship, and controls the temperature of the first thermostatic bath to always be at the preset temperature value, so as to perform frequency compensation on the temperature control object using the corresponding frequency compensation value. In this way, the temperature value of the first thermostatic bath only needs to be switched between preset temperature values, and the ambient temperature for the second thermostatic bath is also a predictable temperature value, so the frequency of the temperature-controlled object can be accurately controlled at the preset frequency value. At the same time, a small temperature difference can be created between the first thermostatic bath and the external environment, thereby reducing the temperature control current value required by the first thermostatic bath, and further reducing the current power consumption required by the temperature control system. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The disclosure of the present application will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. In addition, similar numbers in the drawings are used to represent similar components, among which:
[0055] Figure 1 is a schematic diagram of the main structural block diagram of a temperature control system according to an embodiment of the present application;
[0056] Figure 2 is a flow chart of main steps of a temperature control method using a temperature control system according to an embodiment of the present application;
[0057] Figure 3 It is a flow chart of the main steps of an implementation of a temperature control method using a temperature control system according to the present application.
[0058] Reference numerals list :
[0059] 11: controller; 12: temperature control circuit; 13: frequency control component; 14: first constant temperature bath; 15: second constant temperature bath. DETAILED DESCRIPTION
[0060] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.
[0061] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.
[0062] See attached Figure 1 , Figure 1 FIG. 1 is a schematic diagram of the main structural block diagram of a temperature control system using a temperature control system according to an embodiment of the present application. Figure 1 As shown, the present application provides a temperature control system. The temperature control system may include: a controller 11 for executing the temperature control method using the temperature control system in the present application, a first thermostatic bath 14, a second thermostatic bath 15 disposed in the first thermostatic bath, a temperature control circuit 12 and a frequency control component 13.
[0063] Among them, the first constant temperature bath 14 is placed in the external environment; the second constant temperature bath 15 is used to place the temperature control object; the temperature control circuit 12 is controlled by the controller 11 to set the temperature of the first constant temperature bath 14; the frequency control component 13 is controlled by the controller 11 to perform frequency compensation on the temperature control object.
[0064] In one embodiment, a heat transfer material may be provided between the first thermostatic bath 14 and the second thermostatic bath 15 so that a temperature gradient exists between the first thermostatic bath 14 and the second thermostatic bath 15. In some other embodiments, air may also be filled between the first thermostatic bath 14 and the second thermostatic bath 15, which does not affect the normal implementation of the embodiments of the present application.
[0065] In one embodiment, a temperature sensor may be provided on the first thermostatic bath 14 or the second thermostatic bath 15 to feed back the current temperature value of the first thermostatic bath 14 or the second thermostatic bath 15 to the controller 11 so that the controller 11 may stabilize the temperature of the first thermostatic bath 14 at a certain temperature value through the temperature control circuit 12 .
[0066] In one embodiment, the frequency control component 13 can be an interface for controlling the frequency of a temperature-controlled object in a high-stability clock in an actual application scenario, and is connected to the temperature-controlled object placed in the second constant temperature bath 15 to control the operating frequency of the temperature-controlled object.
[0067] As an example, when the temperature-controlled object is a crystal oscillator in a constant temperature crystal oscillator, the frequency control component 13 can be a control component for controlling the voltage-controlled voltage of the crystal oscillator; when the temperature-controlled object is an atomic oscillator in an atomic clock, the frequency control component 13 can be a control component for controlling the magnetic field current of the atomic oscillator.
[0068] In one embodiment, the controller 11 may include a microcontroller unit (MCU) and a storage device. The microcontroller unit is used to control the temperature control circuit and the frequency control component; the storage device may store codes for executing the temperature control method and the corresponding relationship between the temperature value and the frequency compensation value.
[0069] See attached Figure 2 , Figure 2 FIG. 1 is a flow chart of the main steps of a temperature control method using a temperature control system according to an embodiment of the present application. Figure 2 As shown, the temperature control method using the temperature control system in the embodiment of the present application mainly includes the following steps S10 to S50.
[0070] Step S10: in response to detecting that the temperature control system is started, determining a first temperature value and a corresponding first frequency compensation value from a correspondence relationship between preset temperature values and frequency compensation values.
[0071] In this embodiment, the temperature control system can be used to control the temperature of the temperature control object. The temperature control system may include a first thermostatic bath, a second thermostatic bath disposed in the first thermostatic bath, a temperature control circuit, and a frequency control component. The first thermostatic bath is placed in an external environment, and the temperature control object is placed in the second thermostatic bath.
[0072] In this embodiment, the second thermostatic bath maintains a constant temperature, and the temperature control circuit is only used to control the temperature of the first thermostatic bath. This application does not discuss the temperature control of the second thermostatic bath separately.
[0073] In this embodiment, the temperature control object may be a core physical component of a high-stability clock. In particular, when the operating frequency of the core physical component is greatly affected by the working environment temperature, these core physical components may be placed in the second constant temperature bath as the temperature control object. For example, if the high-stability clock is an atomic clock, the temperature control object may be an atomic oscillator; if the high-temperature clock is a constant temperature crystal oscillator, the temperature control object may be a crystal oscillator in the constant temperature crystal oscillator.
[0074] The preset temperature value is a discrete value, that is, the preset temperature value can be saved in a corresponding relationship with the frequency compensation value in a discrete form.
[0075] In one embodiment, the corresponding relationship can be saved in a non-volatile memory in the controller. For example, it can be stored in an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory) or a flash memory (Flash Memory) in the controller. In other embodiments, it can also be saved in other storage devices, and the controller is controlled to transmit the temperature value and the corresponding frequency compensation value to the controller when the temperature control system is started or the temperature in the first constant temperature bath needs to be switched.
[0076] In one embodiment, before step S10, the corresponding relationship between the frequency of the temperature-controlled object and the temperature of the first constant temperature bath may be measured.
[0077] Specifically, before step S10, the method may further include steps S201 to S204:
[0078] Step S201: Based on a preset number of discrete temperature values, the temperature of the first constant temperature bath is set to each discrete temperature value through a temperature control circuit.
[0079] Step S202: For each discrete temperature value, measure the frequency of the temperature-controlled object.
[0080] Step S203: determining the frequency compensation value required by the temperature control object corresponding to each discrete temperature value according to the measurement result.
[0081] Step S204: Obtaining a corresponding relationship based on the discrete temperature values and the corresponding frequency compensation values.
[0082] In this embodiment, the discrete temperature value is a temperature value in a preset discrete form.
[0083] In an example of an application scenario of this embodiment, the temperature of the first thermostatic bath can be set to a preset temperature value in sequence, and the frequency of the temperature-controlled object at this time can be recorded and saved accordingly. Then, a minimum value can be selected from the preset temperature values as the reference temperature value, and the frequency corresponding to the minimum value can be used as the reference frequency. Thus, the frequency compensation value corresponding to each of the remaining temperature values can be determined based on the difference between the reference frequency and each frequency value corresponding to the remaining temperature values.
[0084] For example, the temperature values can be set to 0 degrees, 10 degrees, 20 degrees, and 30 degrees. When the temperature of the first thermostatic bath is at these temperature values, the corresponding frequencies of the temperature-controlled objects can be F1, F2, F3, and F4, respectively. At this time, 0 degrees can be set as the reference temperature value, and F1 is the reference frequency value. The frequency compensation value corresponding to 0 degrees is 0, the frequency compensation value corresponding to 10 degrees is the difference between F2 and F1, the frequency compensation value corresponding to 20 degrees is the difference between F3 and F1, and the frequency compensation value corresponding to 30 degrees is the difference between F4 and F1.
[0085] In some embodiments, the temperature values may be sorted and stored, and for each temperature value, the difference between the frequency corresponding to the temperature value and the frequency corresponding to an adjacent temperature value smaller than the temperature value may be used as the corresponding frequency compensation value.
[0086] For example, the temperature values can be set to 0 degrees, 10 degrees, 20 degrees, and 30 degrees. When the temperature of the first thermostatic bath is at these temperature values, the corresponding frequencies of the temperature-controlled objects can be F1, F2, F3, and F4, respectively. At this time, 0 degrees can be set as the reference temperature value, and F1 is the reference frequency value. The frequency compensation value corresponding to 0 degrees is 0, the frequency compensation value corresponding to 10 degrees is the difference between F2 and F1, the frequency compensation value corresponding to 20 degrees is the difference between F3 and F2, and the frequency compensation value corresponding to 30 degrees is the difference between F4 and F3.
[0087] In this embodiment, the temperature value needs to be set according to the temperature control object and the maximum temperature control current value set for the temperature control system.
[0088] In the application scenario, the ambient temperature of the first thermostatic bath is usually within the range of greater than -55°C and less than 95°C (°C is the unit of the temperature scale, degrees Celsius), and the temperature of the first thermostatic bath needs to be greater than or equal to the ambient temperature, and the temperature value also needs to be selected within the range of greater than -55°C and less than 95°C. Therefore, if the maximum temperature control current value is set to a larger value, the numerical range of the temperature control current corresponding to each required temperature value is also larger, and the number of temperature values that need to be set is smaller; if the maximum temperature control current value is set to a smaller value, the numerical range of the temperature control current corresponding to each required temperature value is also smaller, and the number of temperature values that need to be set is larger.
[0089] In one implementation, the first temperature value may be determined by the following steps, including steps S100 to S120:
[0090] S100, arbitrarily select an initial temperature value from the corresponding relationship.
[0091] S105 , setting the temperature of the first constant temperature bath to an initial temperature value through a temperature control circuit.
[0092] S110. After the temperature control current of the first thermostatic bath is stabilized, a stable temperature control current value of the first thermostatic bath is obtained as a first current value.
[0093] S115: Determine whether the first current value meets a preset standard.
[0094] S120: If the first current value does not meet the preset standard, reselect the initial temperature value from the corresponding relationship, and return to step S105 until the first current value meets the preset standard. If so, determine the initial temperature value as the first temperature value.
[0095] In one implementation, at step S115, the method may further include:
[0096] Determine whether the first current value is within a preset range, wherein the preset range is from 0 to a preset current value, and the preset current value is a preset temperature control current upper limit value.
[0097] In an example of an application scenario of this embodiment, when the temperature control system is turned on, a temperature value can be arbitrarily selected from the corresponding relationship, and the temperature control circuit can be controlled to apply current to the first thermostatic bath, so that the temperature of the first thermostatic bath begins to rise and approaches the temperature value. When it is detected that the temperature feedback from the temperature sensor of the first thermostatic bath is close to the temperature value, the current is slowly reduced so that the temperature of the first thermostatic bath reaches a heat dissipation balance at the temperature value.
[0098] In an example of an application scenario of the present embodiment, the preset current value can be set equal to 0.4 amperes, and the preset temperature values can include 0°C, 10°C, 20°C, 30°C, 40°C and 50°C. When the ambient temperature at startup is equal to -10°C, a temperature value of 30°C can be selected. First, the temperature control current applied by the temperature control circuit to the first thermostatic bath can be controlled. When the temperature of the first thermostatic bath has not reached 30°C and the temperature control current has reached or exceeded 0.4 amperes, the selected temperature value 20°C can be switched. If the temperature of the first thermostatic bath reaches 30°C and the temperature control current is stable at 0.3 amperes, if the external temperature drops to -20°C at this time, in order to maintain the temperature of the first thermostatic bath unchanged, the temperature control current needs to be increased to 0.4 amperes. Therefore, it can be seen that if the first current value is equal to 0.3 amperes, there is a 10°C cooling space in the temperature control range of the temperature control system. Similarly, it can be seen that there is a 30°C heating space in the temperature control range of the temperature control system. The probability of the ambient temperature rising or falling is the same. At this time, the temperature rise space in the temperature control range is much larger than the temperature drop space. The temperature control range of the temperature control system is not suitable for the actual ambient temperature change. Therefore, in order to maximize the temperature control range of the temperature control system, that is, to balance the temperature rise space and the temperature drop space in the temperature control range of the temperature control system, the optimal solution of the first current value should be close to half of the preset current value.
[0099] In this implementation, the preset current value can be specifically set according to the actual power consumption requirement of the user, which will not be elaborated here.
[0100] In one embodiment, see the attached Figure 3 , Figure 3 1 is a flow chart of the main steps of an embodiment of a temperature control method using a temperature control system according to the present application. Figure 3 As shown, determining whether the first current value meets the preset standard may further include steps S1001 to S1009:
[0101] Step S1001: save the difference between the first current and the reference current value as a first difference.
[0102] Step S1002: setting a reference current range according to the reference current value.
[0103] Step S1003: Determine whether the first current value is within the reference current range. If so, proceed to step S1008; if not and the first current value is less than the reference current value, proceed to step S1004; if not and the first current value is greater than the reference current value, proceed to step S1005.
[0104] Step S1004: selecting an adjacent temperature value that is adjacent to the initial temperature value and greater than the initial temperature value from the corresponding relationship.
[0105] Step S1005: selecting an adjacent temperature value that is adjacent to the initial temperature value and smaller than the initial temperature value from the corresponding relationship.
[0106] Step S1006: setting the temperature of the first thermostatic bath to an adjacent temperature value through the temperature control circuit, and obtaining a stable current value of the first thermostatic bath as a second current value.
[0107] Step S1007: taking the difference between the second current value and the reference current value as the second difference, and determining whether the first difference is greater than the second difference; if less than or equal to the second difference, proceed to step S1008; if greater than the second difference, proceed to step S1009.
[0108] Step S1008: determining whether the first current meets a preset standard.
[0109] Step S1009: determining that the first current does not meet a preset standard.
[0110] In this embodiment, the reference current value may be equal to half of the preset current value.
[0111] In this embodiment, since the first current value is generally not exactly equal to the reference current value in a specific application scenario, a numerical range centered on the reference current value can be set as the reference current range to determine the relationship between the first current value and the reference current value. For example, when the reference current value is equal to 0.2 amperes, the reference current range can be set to 0.1 amperes to 0.3 amperes, or can be set to 0.15 amperes to 0.25 amperes, which does not affect the normal implementation of the embodiment of the present application.
[0112] Step S20: setting the temperature of the first thermostatic bath to a first temperature value through the temperature control circuit, and compensating the first frequency compensation value to the temperature control object through the frequency control component.
[0113] In one implementation, the temperature control circuit may stabilize the temperature of the first thermostatic bath at a first temperature value by applying a temperature control current to a resistor on the first thermostatic bath.
[0114] In an application scenario example of the present embodiment, after obtaining the first temperature value, the current temperature of the first thermostatic bath can be detected by the temperature sensor of the first thermostatic bath. If the current temperature is less than the first temperature value, the temperature control current applied to the first thermostatic bath can be increased to increase the temperature of the first thermostatic bath. When the temperature of the first thermostatic bath is close to the first temperature value, the increase rate of the temperature control current can be reduced so that the temperature of the first thermostatic bath slowly approaches and eventually stabilizes at the first temperature value; if the current temperature is greater than the first temperature value, the temperature control current applied to the first thermostatic bath can be reduced to cool the first thermostatic bath. When the temperature of the first thermostatic bath is close to the first temperature value, the decrease rate of the temperature control current can be slowed down so that the temperature of the first thermostatic bath slowly approaches and eventually stabilizes at the first temperature value.
[0115] Step S30: In response to detecting a change in the external environment temperature, determining whether it is appropriate to switch to a second temperature value adjacent to the first temperature value in the corresponding relationship.
[0116] In this embodiment, when the external temperature changes, in order to keep the temperature of the first thermostatic bath unchanged, the temperature control current in the temperature control circuit will also change accordingly to compensate for the temperature loss of the first thermostatic bath or avoid the temperature rise of the first thermostatic bath.
[0117] In one implementation, step S30 may further include:
[0118] In response to a change in the temperature control current, it is detected whether the change value of the temperature control current exceeds a preset change range. If it exceeds the preset change range, it is determined that it is suitable to switch to a second temperature value.
[0119] In one embodiment, the preset variation range may be set according to the preset current value. For example, when the preset current value is equal to 2 amperes, the preset variation range may be 0 to 1 ampere.
[0120] Step S40: If yes, determine the second temperature value from the corresponding relationship.
[0121] In this embodiment, the temperature values in the corresponding relationship may be sorted according to the temperature magnitude, and the second temperature value is an adjacent temperature value of the first temperature value in the corresponding relationship.
[0122] In one implementation, step S40 may further include steps S401 to S402:
[0123] Step S401: if the temperature control current is less than the first current, a temperature value adjacent to the first temperature value and greater than the first temperature value is selected from the corresponding relationship as the second temperature value.
[0124] Step S402: if the temperature control current is greater than the first current, a temperature value adjacent to the first temperature value and less than the first temperature value is selected from the corresponding relationship as the second temperature value.
[0125] In this embodiment, the temperature values in the corresponding relationship are temperature values sorted according to size.
[0126] As an example, the preset temperature values may include 0°C, 10°C, 20°C, 30°C, 40°C and 50°C, and the preset current value is equal to 1 ampere. At this time, the first temperature value is equal to 30°C, and the corresponding temperature control current is about 0.5 amperes, then the second temperature value can be selected from 20°C and 40°C. When the ambient temperature rises, the temperature control current required by the first thermostatic bath decreases. In order to increase the reduced temperature control current so that the temperature control current is maintained at about 0.5 amperes, the temperature value of the first thermostatic bath needs to be increased. Therefore, 40°C is selected as the second temperature value. Similarly, when the ambient temperature decreases, 20°C is selected as the second temperature value.
[0127] In some application scenarios, in order to make the temperature control current as close to half of the preset current as possible, after the temperature value of the first thermostatic bath is adjusted to the second temperature value, it can be determined whether the temperature control current corresponding to the adjacent temperature value of the second temperature is closer to half of the preset current. For example, after adjusting the temperature of the first thermostatic bath to 40°C, you can try to adjust the temperature of the first thermostatic bath to 50°C again. If the temperature control current is closer to 0.5 amperes at this time, set the temperature value of the first thermostatic bath to 50°C; if the temperature control current at this time does not meet the preset standard or the temperature control current corresponding to 40°C is closer to 0.5 amperes, switch the temperature of the first thermostatic bath back to 40°C.
[0128] Step S50: changing the temperature of the first thermostatic bath to a second temperature value through the temperature control circuit, and compensating the temperature-controlled object with a second frequency compensation value corresponding to the second temperature value through the frequency control component.
[0129] Based on the above steps S101-S103, the present application can actually measure each preset temperature value and the corresponding frequency compensation value in advance, so that the temperature value of the first thermostatic bath only needs to be switched between the preset temperature values, and the ambient temperature for the second thermostatic bath can also be a predictable temperature value, so the frequency of the temperature-controlled object can be accurately controlled at the required frequency value. At the same time, there can also be a temperature difference between the first thermostatic bath and the external environment, which limits the temperature control current required by the first thermostatic bath to a certain range, thereby reducing the current power consumption required by the entire temperature control system.
[0130] It is pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.
[0131] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.
[0132] Furthermore, the present application also provides a controller. In a controller embodiment according to the present application, the controller includes a processor and a memory, the memory can be configured to store a program for executing the temperature control method using the temperature control system of the above method embodiment, and the processor can be configured to execute the program in the memory, which includes but is not limited to the program for executing the temperature control method using the temperature control system of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The controller can be a controller device formed by various electronic devices.
[0133] In the embodiment of the present application, the controller may be a controller device formed by various electronic devices. In some possible implementations, the controller may include multiple memories and multiple processors. The program for executing the temperature control method using the temperature control system of the above method embodiment can be divided into multiple subprograms, and each subprogram can be loaded and run by the processor to execute different steps of the temperature control method using the temperature control system of the above method embodiment. Specifically, each subprogram can be stored in different memories, and each processor can be configured to execute programs in one or more memories to jointly implement the temperature control method using the temperature control system of the above method embodiment, that is, each processor executes different steps of the temperature control method using the temperature control system of the above method embodiment, to jointly implement the temperature control method using the temperature control system of the above method embodiment.
[0134] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned controller may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned controller may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.
[0135] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the temperature control method using the temperature control system of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned temperature control method using the temperature control system. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a memory device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
[0136] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A temperature control method using a temperature control system, It is characterized in that The temperature control system comprises a first thermostatic bath, a temperature control circuit, a frequency control component, and a second thermostatic bath disposed in the first thermostatic bath, wherein the first thermostatic bath is placed in an external environment, and a temperature-controlled object is placed in the second thermostatic bath, and the method comprises: S10, in response to detecting that the temperature control system is started, determining a first temperature value and a corresponding first frequency compensation value from a correspondence between a preset temperature value and a frequency compensation value, wherein the preset temperature value is a discrete value; S20, setting the temperature of the first thermostatic bath to the first temperature value through the temperature control circuit, and compensating the first frequency compensation value to the temperature control object through the frequency control component; S30, in response to detecting a change in the external environment temperature, determining whether it is appropriate to switch to a second temperature value adjacent to the first temperature value in the corresponding relationship; S40: If yes, determine the second temperature value from the corresponding relationship; S50: changing the temperature of the first thermostatic bath to the second temperature value through the temperature control circuit, and compensating the temperature-controlled object with a second frequency compensation value corresponding to the second temperature value through the frequency control component.
2. The method according to claim 1, It is characterized in that The determining the first temperature value from the correspondence between the preset temperature value and the frequency compensation value includes: S100, arbitrarily selecting an initial temperature value from the corresponding relationship; S105, setting the temperature of the first thermostatic bath to the initial temperature value through the temperature control circuit; S110, after the temperature control current of the first thermostatic bath is stable, obtaining a stable temperature control current value of the first thermostatic bath as a first current value; S115, determining whether the first current value meets a preset standard; S120. If the first current value does not meet the preset standard, reselect an initial temperature value from the corresponding relationship, and return to step S105 until the first current value meets the preset standard. If so, determine the initial temperature value as the first temperature value.
3. The method according to claim 2, It is characterized in that In step S115, the method further includes: It is determined whether the first current value is within a preset range, wherein the preset range is from 0 to a preset current value, and the preset current value is a preset temperature control current upper limit value.
4. The method according to claim 3, It is characterized in that The determining whether the first current value meets a preset standard includes: saving a difference between the first current value and a reference current value as a first difference value, wherein the reference current value is half of the preset current value; Setting a reference current range according to the reference current value; Determining whether the first current value is within the reference current range, and if so, determining that the first current value meets a preset standard; If not and the first current value is less than the reference current value, selecting an adjacent temperature value that is adjacent to the initial temperature value and greater than the initial temperature value from the corresponding relationship; If not and the first current value is greater than the reference current value, selecting an adjacent temperature value that is adjacent to the initial temperature value and less than the initial temperature value from the corresponding relationship; Setting the temperature of the first thermostatic bath to the adjacent temperature value through the temperature control circuit, and obtaining a stable current value of the first thermostatic bath as a second current value; taking the difference between the second current value and the reference current value as a second difference, and determining whether the first difference is greater than the second difference; If it is less than or equal to, it is determined that the first current value meets the preset standard; If it is greater than, it is determined that the first current value does not meet the preset standard.
5. The method according to claim 2, It is characterized in that In response to detecting a change in the external environment temperature, determining whether it is appropriate to switch to a second temperature value adjacent to the first temperature value in the corresponding relationship includes: In response to a change in the temperature control current, detecting whether a change value of the temperature control current exceeds a preset change range; If it exceeds the preset variation range, it is determined to be suitable for switching to the second temperature value.
6. The method according to claim 5, It is characterized in that The determining the second temperature value from the corresponding relationship includes: If the temperature control current is less than the first current value, a temperature value adjacent to the first temperature value and greater than the first temperature value is selected from the corresponding relationship as the second temperature value; If the temperature control current is greater than the first current value, a temperature value adjacent to the first temperature value and less than the first temperature value is selected from the corresponding relationship as the second temperature value, The temperature values in the corresponding relationship are temperature values sorted according to size.
7. The method according to any one of claims 1 to 6, It is characterized in that Before step S10, the method further includes: Based on a preset number of discrete temperature values, respectively setting the temperature of the first thermostatic bath to each of the discrete temperature values through the temperature control circuit; For each of the discrete temperature values, determining the frequency of the temperature-controlled object; Determine the frequency compensation value required by the temperature-controlled object corresponding to each discrete temperature value according to the measurement result; The corresponding relationship is obtained based on the discrete temperature values and the corresponding frequency compensation values.
8. A controller comprising at least one processor and at least one memory, wherein the memory is adapted to store a plurality of program codes, It is characterized in that The program code is suitable for being loaded and executed by the processor to perform the method of any one of claims 1 to 7.
9. A computer-readable storage medium having a plurality of program codes stored therein, It is characterized in that The program code is suitable for being loaded and executed by a processor to execute the method according to any one of claims 1 to 7.
10. A temperature control system, It is characterized in that include The controller of claim 8; and A first thermostatic bath, wherein the first thermostatic bath is placed in an external environment; A second thermostatic bath disposed in the first thermostatic bath, wherein a temperature-controlled object is placed in the second thermostatic bath; a temperature control circuit, controlled by the controller to set the temperature of the first constant temperature bath; as well as A frequency control component is controlled by the controller to perform frequency compensation for the temperature controlled object.
