Temperature detection circuit and electronic equipment

By designing a temperature detection circuit in an electronic device and using a temperature sensor and charging time to calculate the temperature value, the problems of high temperature detection cost and low accuracy in the existing technology are solved, and efficient and low-cost temperature detection is achieved.

CN221859760UActive Publication Date: 2024-10-18TP-LINK
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202323165098.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2024-10-18
Estimated Expiration
2033-11-21

AI Technical Summary

Technical Problem

Existing temperature detection solutions for electronic equipment are high in cost and low in accuracy. Especially when multiple threshold confirmations are required, they occupy a large amount of GPIO ports and software resources, making it difficult to achieve real-time temperature detection.

Method used

A temperature detection circuit is designed. Through the combination of detection unit, acquisition unit and integration unit, the sensing voltage output by the temperature sensor is used for periodic charging, and the temperature detection signal is calculated according to the charging time to achieve accurate measurement of the temperature value.

Benefits of technology

This solution is simple, low-cost and high-precision. It can obtain different temperature values ​​according to different charging times, reduce the occupation of GPIO ports and software resources, and achieve real-time temperature detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221859760U_ABST
    Figure CN221859760U_ABST
Patent Text Reader

Abstract

The utility model relates to a temperature detection circuit and electronic equipment, and the temperature detection circuit comprises a detection unit which is thermally coupled with a temperature protection object and is used for sensing the temperature of the temperature protection object and outputting a sensing voltage; the acquisition unit is connected with the detection unit and is used for periodically charging by utilizing the sensing voltage and outputting an acquisition voltage; and the integration unit is connected with the acquisition unit, and is used for carrying out charging at a preset target voltage based on the acquired voltage and outputting the temperature detection signal related to the charging time. According to the temperature detection circuit, the temperature detection signal is associated with the charging time, so that different temperature values can be obtained according to different charging times, and therefore, the temperature detection circuit is simple in scheme, low in cost and high in precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic circuits, and in particular, relates to a temperature detection circuit and an electronic device. Background Art

[0002] Common temperature protection measures for electronic devices all rely on temperature detection. In many solutions, the main control chip has its own temperature sensor, which can obtain accurate temperature indication and execute temperature protection algorithms according to the temperature conditions. However, not all chips have temperature sensors. In this case, it is necessary to add temperature devices such as thermistors for temperature detection. After obtaining the voltage signal converted by the thermistor, it is necessary to compare it with the pre-set voltage and output the temperature warning signal. In actual application, if there are multiple thresholds to be confirmed, it is necessary to add multiple comparators for temperature threshold determination. The quantization step size depends on the number of comparators. Often due to cost issues, the quantization points are small, resulting in the inability to accurately obtain the temperature value of the current cycle in real time. When the temperature detection requires a large quantization density, the comparator output determination needs to occupy a large number of general purpose input and output (GPIO) ports, and the software also has a large overhead because it needs to compare multiple values. If real-time performance is required, it is necessary to add an analog-to-digital conversion chip (ADC) to quantize the temperature value, but this method is less innovative, costly, and occupies a large area of ​​the printed circuit board (PCB). Utility Model Content

[0003] The purpose of the present application is to provide a temperature detection circuit and an electronic device, aiming to solve the problems of high cost and low detection accuracy of conventional temperature detection.

[0004] In a first aspect, an embodiment of the present application provides a temperature detection circuit, wherein the temperature detection circuit comprises:

[0005] a detection unit, thermally coupled to the temperature protection object, for sensing the temperature of the temperature protection object and outputting a sensing voltage;

[0006] A collection unit, connected to the detection unit, for periodically charging with the sensing voltage and outputting a collection voltage;

[0007] The integration unit is connected to the acquisition unit and is used for charging with a preset target voltage based on the acquired voltage and outputting a temperature detection signal related to the charging time.

[0008] In one embodiment, the detection unit includes a first resistor and a temperature sensor, the first resistor and the temperature sensor are connected in series between an operating voltage and a ground, and the sensing voltage is output at a series node of the first resistor and the temperature sensor.

[0009] In one embodiment, the acquisition unit includes a first switching element, a first capacitor and a follower circuit connected in sequence, the first switching element is also connected to the detection unit, and the follower circuit is also connected to the integration unit. The first switching element is controlled to turn on and off by a periodic first switching signal. When the first switching element is turned on, the first switching element transmits the sensing voltage to charge the first capacitor. When the first switching element is turned off, the first capacitor outputs the acquisition voltage through the follower circuit.

[0010] In one embodiment, the follower circuit includes a first operational amplifier, a second resistor and a third resistor, wherein:

[0011] The non-inverting input terminal of the first operational amplifier is connected to the first switching element, the inverting input terminal of the first operational amplifier is connected to the first end of the second resistor and the first end of the third resistor, the second end of the second resistor is grounded, the second end of the third resistor is connected to the output terminal of the first operational amplifier, and the output terminal of the first operational amplifier constitutes the output terminal of the follower circuit.

[0012] In one embodiment, the integration unit includes a second switching element and an integration circuit connected in sequence, the second switching element is also connected to the collection unit, the second switching element is controlled to be turned on by a second switching signal to transmit the collection voltage, and the integration circuit is used to output the temperature detection signal after charging the collection voltage to a preset target voltage.

[0013] In one embodiment, the integration circuit includes a second operational amplifier, a fourth resistor, a fifth resistor, a sixth resistor, a second capacitor and a third capacitor;

[0014] The non-inverting input terminal of the second operational amplifier is connected to the second switching element and the first end of the fourth resistor through the fifth resistor, the second end of the fourth resistor is grounded, the non-inverting input terminal of the second operational amplifier is also grounded through the second capacitor, the inverting input terminal of the second operational amplifier is grounded through the sixth resistor and connected to the output terminal through the third capacitor, and the output terminal of the second operational amplifier constitutes the output terminal of the integration circuit.

[0015] In one embodiment, the second capacitor and the third capacitor have the same capacitance, and the fifth resistor and the sixth resistor have the same resistance.

[0016] In one of the embodiments, a main control unit is further included, the input end of which is connected to the integration unit, for receiving the temperature detection signal related to the charging time, and determining the temperature value corresponding to the temperature detection signal according to the charging time.

[0017] In one embodiment, the first control end of the main control unit is connected to the first switch element for controlling the first switch element to be turned on and off, and the second control end of the main control unit is connected to the second switch element for controlling the second switch element to be turned on and off;

[0018] The charging time corresponds to the time from when the second switch element is turned on to when the temperature detection signal reaches the preset target voltage.

[0019] In a second aspect, an embodiment of the present application further provides an electronic device, including a temperature protection object and the temperature detection circuit as described above.

[0020] Compared with the related art, the embodiment of the present application has the beneficial effect of associating the temperature detection signal with the charging time, so that different temperature values ​​can be obtained according to different charging times. It can be seen that the solution of the temperature detection circuit is simple, low in cost and high in accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of the structure of a temperature detection circuit provided in one embodiment of the present application;

[0022] Figure 2 An exemplary circuit diagram of a temperature detection circuit provided in an embodiment of the present application;

[0023] Figure 3 A flow chart of a temperature protection method provided in one embodiment of the present application;

[0024] Figure 4 A mapping curve diagram of time difference and temperature value provided in an embodiment of the present application;

[0025] Figure 5 A mapping curve diagram of time difference and temperature value provided in an embodiment of the present application;

[0026] Figure 6 A mapping curve diagram of time difference and temperature value provided in an embodiment of the present application;

[0027] Figure 7 A mapping curve diagram of time difference and temperature value provided in an embodiment of the present application;

[0028] Figure 8 A flow chart of a temperature protection method provided in one embodiment of the present application;

[0029] Fig. 9 A flow chart of a temperature protection mechanism provided in one embodiment of the present application;

[0030] Fig.10A flow chart of a temperature protection method provided in one embodiment of the present application;

[0031] Fig.11 A flow chart of a temperature protection method provided in one embodiment of the present application;

[0032] Fig.12 Comparison of the implementation scheme of the temperature protection method provided in one embodiment of the present application with other solutions Figure 1 ;

[0033] Fig.13 Comparison of the implementation scheme of the temperature protection method provided in one embodiment of the present application with other solutions Figure 2 ;

[0034] Fig.14 Comparison of the implementation scheme of the temperature protection method provided in one embodiment of the present application with other solutions Figure 3 ;

[0035] Fig.15 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0038] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0039] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0040] The embodiment of the present application provides a temperature protection method based on a temperature detection circuit, wherein the temperature detection circuit is used to detect the temperature of a temperature protection object and output a corresponding temperature detection signal. The temperature detection circuit can be a temperature detection circuit based on a conventional temperature sensor; the temperature sensor is, for example, a temperature sensor inside the temperature protection object, or a temperature sensor outside the temperature protection object, or a chip with a temperature sensor near the temperature protection object. The temperature protection object may be, for example, a main control chip of an electronic device, a power switch or other chip with a large heat generation. If the electronic device is, for example, a wireless router, a lighting fixture, a power supply device, etc., then the temperature protection object may be a main control chip or MOS tube of a wireless router, a dimming chip, a constant current / constant voltage chip or MOS tube of a lighting fixture, or a voltage conversion control chip or MOS tube of a power supply device.

[0041] See also Figure 1 In one embodiment, the temperature detection circuit includes a detection unit 110 , a collection unit 120 and an integration unit 130 .

[0042] The detection unit 110 is thermally coupled to the temperature protection object, and is used to sense the temperature of the temperature protection object and output a sensing voltage; the acquisition unit 120 is connected to the detection unit 110, and is used to periodically charge using the sensing voltage, and discharge to output a collection voltage; the integration unit 130 is connected to the acquisition unit 120, and is used to charge to a preset target voltage based on the collection voltage, and output a temperature detection signal related to the charging time to the main control unit 200.

[0043] As described above, the detection unit 110 includes, for example, a temperature sensor inside the temperature protection object, or a temperature sensor outside the temperature protection object, or a chip with a temperature sensor near the temperature protection object, which is thermally coupled with the temperature protection object and can transfer heat, so as to sense the temperature of the temperature protection object. The acquisition unit 120 periodically acquires the sensing voltage, and the integration unit 130 accumulates the temperature detection signal related to the temperature value by integration.

[0044] See also Figure 2In one embodiment, the detection unit 110 includes a first resistor R1 and a temperature sensor RT1, the first resistor R1 and the temperature sensor RT1 are connected in series between the working voltage VDD and the ground, and a sensing voltage V is output at a series node of the first resistor R1 and the temperature sensor RT1. c .

[0045] The temperature sensor RT1 is, for example, a thermistor, and a semiconductor device such as a transistor in a circuit of an electronic device may also be selected as a temperature sensor. The thermistor is placed near the temperature protection object so that the temperature can effectively represent the actual temperature of the temperature protection object. As the temperature of the thermistor increases, the resistance value increases, thereby obtaining a corresponding relationship between temperature and voltage. For the detection unit 110, the following corresponding relationship exists:

[0046]

[0047] See also Figure 2 In one embodiment, the acquisition unit 120 includes a first switch element Q1, a first capacitor C1 and a follower circuit connected in sequence. The first switch element Q1 is also connected to the detection unit 110, and the follower circuit is also connected to the integration unit 130. The first switch element Q1 is turned on and off by a periodic first switch signal. When the first switch element Q1 is turned on, the sensing voltage is transmitted to charge the first capacitor C1. When the first switch element Q1 is turned off, the first capacitor C1 is discharged through the follower circuit to output the acquisition voltage.

[0048] The acquisition unit 120 is mainly used to acquire and maintain the sensing voltage V c , so that the integration unit 130 can obtain a stable sensing voltage V within the processing cycle c Optionally, the first switch element Q1 is, for example, a PMOS tube, which is controlled by the (first control terminal) GPIO1 of the main control unit 200 and is responsible for turning on and off the first switch element Q1. When GPIO1 outputs a low level, the first switch element Q1 is turned on, and the sensing voltage V c The first capacitor C1 is charged so that the first capacitor C1 collects and stores the sensing voltage V c After the charging time in a collection cycle is over, GPIO1 outputs a high level, the first switch element Q1 is disconnected, and the first capacitor C1 acts as a voltage source to store charge.

[0049] In one embodiment, the operational amplifier U1, the resistor R2 and the resistor R3 form a voltage follower amplifier (i.e., a follower circuit) design, which provides a large input impedance. Since the operational amplifier U1 has a large load on the front stage, the input current is substantially zero, and the voltage drop of the first switch element Q1 can be ignored. At the same time, the voltage of the first capacitor C1 is maintained and is not affected by the rear stage of the operational amplifier U1. The voltage Vi1 Through the operational amplifier feedback in-phase amplification, the collection voltage V o1 The output relationship is as follows:

[0050]

[0051] In one embodiment, the non-inverting input terminal of the first operational amplifier U1 is connected to the first switching element Q1, the inverting input terminal of the first operational amplifier U1 is connected to the first end of the resistor R2 and the first end of the third resistor R3, the second end of the second resistor R2 is grounded, the second end of the third resistor R3 is connected to the output terminal of the first operational amplifier U1, and the output terminal of the first operational amplifier U1 constitutes the output terminal of the follower circuit.

[0052] See also Figure 2 In one embodiment, the integration unit 130 includes a second switch element Q2 and an integration circuit connected in sequence, the second switch element Q2 is also connected to the collection unit 120, and the second switch element Q2 is controlled by the second switch signal to conduct to transmit the collection voltage V o1 The integration circuit is used to collect the voltage V o1 Perform charging accumulation of the preset target voltage and output a temperature detection signal V related to the charging time t o2 .

[0053] The integration unit 130 converts the collected voltage V output by the collection unit 120 into o1 The signal is processed. Optionally, the second switch element Q2 is, for example, a PMOS tube. The on-off of the second switch element Q2 is controlled by the (second control terminal) GPIO2 of the main control unit 200. When GPIO2 outputs a low level, the second switch element Q2 is turned on. Similarly, due to the high input resistance of the operational amplifier U2, the voltage drop of the second switch element Q2 can be ignored. The collection voltage V output by the collection unit 120 is o1 The input signal V is connected as the integrator circuit i2 The operational amplifier U2, the resistor R5, the second capacitor C2, the resistor R6 and the third capacitor C3 form an integration circuit to convert the input signal V i2 The signal is accumulated and a preset target voltage is obtained, and the preset target voltage related to the charging time t is used as the temperature detection signal V o2 Output. In design, R5=R6, C2=C3, when the second switch element Q2 is turned on, the input constant power supply V i2 When V i2 The second capacitor C2 is charged, and the charging time t of the temperature detection signal has the following relationship:

[0054]

[0055] Solving the above formula, we can get:

[0056]

[0057] Right now:

[0058]

[0059] The above completes the input signal V i2 The integral process, due to V i2 is a constant. After the design of the integration circuit, the input signal V i2 and the temperature detection signal V o2 The relationship between the two forms a linear mapping relationship of time t.

[0060] See also Figure 2 In one embodiment, the integration circuit includes a second operational amplifier U2, a resistor R4, a resistor R5, a resistor R6, a capacitor C2 and a capacitor C3; the non-inverting input terminal of the second operational amplifier U2 is connected to the second switch element Q2 and the first end of the resistor R4 through the resistor R5, the second end of the resistor R4 is grounded, the non-inverting input terminal of the second operational amplifier U2 is also grounded through the capacitor C2, the inverting input terminal of the second operational amplifier U2 is grounded through the resistor R6, and is connected to the output terminal through the capacitor C3, and the output terminal of the second operational amplifier U2 constitutes the output terminal of the integration circuit.

[0061] See also Figure 2 In one embodiment, for the temperature detection circuit, within the cycle period T, the entire process and the control logic of the GPIO port are described as follows:

[0062] (1) At time t=0, GPIO1 of the main control unit 200 outputs a low level, the first switch element Q1 is turned on, GPIO2 of the main control unit 200 outputs a high level, the second switch element Q2 is turned off, and GPIO3 (input end) of the main control unit 200 is pulled down to ground through resistor R7, and the input is 0 (low level).

[0063] (2) After the first switch element Q1 is turned on, the first capacitor C1 collects the sensing voltage V at the current temperature. c Before t=t1, the voltage of the first capacitor C1 is stable, the acquisition is completed, GPIO1 outputs a high level, the first switch element Q1 is disconnected, and the first capacitor C1 maintains and maintains the acquisition voltage V o1 , and outputs the voltage to the integration unit 130 through the operational amplifier U1.

[0064] (3) At t=t2, the main control unit 200 records the current timestamp t2, GPIO1 maintains a high level, GPIO2 outputs a low level, the second switch element Q2 is turned on, and the follower circuit outputs the collected voltage V o1 As the input V of the next stage integration unit 130i2 , the voltage is linearly integrated into the temperature detection signal V through the operational amplifier U2 o2 , when the temperature detection signal V o2 When the high level threshold VIH (ie, the preset target voltage) is reached, the main control unit 200 records the timestamp t3, thereby obtaining the time difference (ie, charging time) t=t3-t2 for accumulating the preset target voltage.

[0065] (4) After recording, the main control unit 200 immediately configures GPIO1 to a high level, GPIO2 to a high level, the first switch element Q1 and the second switch element Q2 are both turned off, and the capacitor C2 and the capacitor C3 discharge the charge through the resistor R4 and the resistor R6 respectively. V i2 and V o2 Return to zero, GPIO3 input is 0, the main control unit 200 confirms the current temperature value through the mapping relationship, and executes the temperature protection mechanism as needed.

[0066] (5) Return to the initial state and enter the next cycle.

[0067] The main control unit 200 confirms the current temperature value through the mapping relationship, and the following example can be referred to. Use VDD = 3.3V, R1 = 7.5KΩ, RT1 = 10KΩ, R2 = R3 = R4 = R7 = 1KΩ, R5 = R6 = 1KΩ, C2 = C3 = 100μF, VIH = 2.7V. The following mapping table of time difference and temperature value can be obtained by testing:

[0068]

[0069] See also Figure 3 Based on the temperature detection circuit in any of the above embodiments, the temperature protection method includes the following steps:

[0070] Step S110, periodically collecting temperature detection signals, and obtaining corresponding temperature values ​​according to the temperature detection signals.

[0071] In one example, a microprocessor is used as the main control unit 200 to be responsible for GPIO scheduling and signal level reception. GPIO1 and GPIO2 of the main control unit 200 are used as output ports to control the first and second switch elements Q1 and Q2 of the temperature detection circuit, and GPIO3 of the main control unit 200 is in a receiving state to identify the temperature detection signal V o2 Reach the high level threshold VIH (corresponding to the over-temperature protection threshold TH) and the low level threshold VIL (corresponding to the safety temperature threshold TL), where the over-temperature protection threshold TL represents the minimum value that should enter the temperature protection, and TH represents the maximum temperature value that the temperature protection object can withstand. In the temperature detection circuit, the temperature detection signal V o2Based on the initial voltage of 0, the linear growth reaches the high level threshold VIH of GPIO3. The main control unit 200 obtains the linear growth time difference (i.e., charging time) t by recording the timestamp of recognizing the high level state, so:

[0072]

[0073] The input signal V of the integrator circuit i2 The mapping quantization of the time difference t is established, and the time difference t can be identified and corresponded by the main control unit 200, and the input signal V i2 The corresponding relationship with the previous voltages can be directly mapped to the temperature value, thereby establishing a mapping relationship between the temperature value and the time difference t. This is a complete signal acquisition, processing and quantification process. In the experimental stage, basic mapping tables and curves can be obtained. After obtaining the time difference t index, the main control unit 200 can obtain the temperature value of the current cycle by looking up the mapping table of the time difference and the temperature value internally.

[0074] Step S120, when the temperature value of the previous cycle is greater than the safety temperature threshold, the temperature value of the current cycle is compared with the temperature value of the previous cycle to determine whether the temperature value has changed.

[0075] Comparing the temperature value of the previous cycle (obtained) with the safety temperature threshold TL is the minimum value used to determine whether the temperature protection object enters the temperature protection. If the temperature value of the previous cycle is greater than the safety temperature threshold TL, the trigger state of entering the temperature protection is performed, and the temperature value of the current cycle is compared with the temperature value of the previous cycle (obtained); otherwise, it is not necessary to enter the trigger state of temperature protection, and the temperature value of the current cycle is not compared with the temperature value of the previous cycle.

[0076] In one example, comparing the temperature value of the current cycle with the temperature value of the previous cycle is used to determine whether the temperature of the temperature protection object has changed, such as being in a heating state or a cooling state.

[0077] Step S130, when the temperature value changes, output a power adjustment signal until the temperature value no longer changes; wherein the power adjustment signal is used to control the temperature protection object to adjust the preset power, and the preset power is configured to be proportional to the rate of change of the temperature value.

[0078] Since the temperature value of the previous cycle is greater than the safety temperature threshold TL, it is necessary to enter the trigger state of temperature protection, and the temperature value is in a heating state or a cooling state. Therefore, whether the temperature of the protected object is in a heating state or a cooling state will determine whether the power adjustment signal controls the temperature protection object to adjust the power to reduce or increase the power, so that the temperature value does not change. It can be understood that the temperature value of the current cycle does not change, and it runs at the adjusted maximum allowable power between the safety temperature threshold TL and the over-temperature protection threshold TH.

[0079] The embodiment of the present application evaluates the temperature change based on the interval between the over-temperature protection threshold and the safety temperature threshold TL, and when the acquired temperature value is greater than the safety temperature threshold TL and the temperature value is changing, the power of the temperature protection object is adaptively adjusted, and the power to be adjusted is configured to be proportional to the rate of change of the temperature value, so that the adjusted power can be smoothly controlled. When the temperature value no longer changes, the temperature protection object maintains the adjusted power operation, which solves the problem that when the temperature of the temperature protection object only reaches the critical value, it will repeatedly trigger and exit the protection mechanism, affecting the life of the electronic device and also affecting the user experience.

[0080] In step S110, since the simple table lookup mapping method needs to compare the time differences one by one, the software overhead will increase as the recognition accuracy increases. Therefore, in an optional embodiment, a local linear regression method is also proposed to reduce the pressure of the main control unit 200.

[0081] The focus of temperature protection is to identify high temperature scenarios. For the temperature range that requires temperature protection, such as 100℃-120℃, which can cover the high temperature usage scenarios of the temperature protection object, the results of the above temperature detection circuit design can meet the local linear characteristics.

[0082] Refer to the above time difference and temperature value mapping table and Figure 4 , linear regression fitting of the mapping relationship covering the interval of 100℃-120℃ can obtain the following formula. Assuming that the temperature is T(y) and the time difference is t(x), then:

[0083] T=0.0813t+69.207(t≥388ms)

[0084] And the correlation coefficient R 2 It is close to 1, which can basically fully characterize the relationship between temperature and time difference.

[0085] Therefore, for the scenario with t<388ms, the risk can be considered low and there is no need to confirm the temperature value. Only mapping confirmation is required for the scenario with t≥388ms. Moreover, it does not need to be executed through complex table lookup and comparison. It can be calculated through the regression function above, which greatly reduces the software workload.

[0086] Note that the above is just an example, using linear regression to characterize the mapping relationship between temperature values ​​and time differences in a specific interval. When more detailed mapping is required and includes temperature quantification below 100°C, segmented linear regression can be used for mapping. Using a similar method, the temperature can be segmented and linearly regressed as follows:

[0087] For example, see 5:

[0088] T=0.5935t-17.342(106≥t≥73ms)

[0089] For example, see 6:

[0090] T=0.2885t+16.625(187≥t≥118ms)

[0091] For example, see 7:

[0092] T=0.1494t+44.188(344≥t≥211ms)

[0093] It can be seen that each segment has a high degree of linearity, so the central processor only needs to confirm the interval where the time difference is located to align the temperature, and then use the corresponding linear function for conversion. This has a high degree of optimization for the software algorithm and avoids the time overhead of looking up the table for each ratio one by one.

[0094] See also Figure 8 In one embodiment, step S130 includes:

[0095] Step S131, when the temperature value increases, output a power reduction signal until the temperature value no longer changes.

[0096] Step S132, when the temperature value decreases, output a power increase signal until the temperature value no longer changes or full power is output.

[0097] Among them, the power reduction signal is used to control the temperature protection object to reduce the first preset power, and the power increase signal is used to control the temperature protection object to increase the second preset power. The first preset power and the second preset power are configured to be proportional to the rate of change of the temperature value.

[0098] See also Fig. 9 In one example, the main control unit 200 generates a p= 2s performs the GPIO allocation required by the hardware and obtains the corresponding temperature value T. For the temperature value T obtained in the nth time (i.e., the previous cycle) n , if T n < TL, no temperature protection is triggered and polling continues. If T n ≥ TL, it enters the pre-judgment stage and does not immediately trigger temperature protection instantly, avoiding the triggering problem at the critical value.

[0099] Record T n Perform pre-judgment and wait for the temperature value reading T obtained in the (n + 1)th time (i.e., the current cycle) n+1 , if T n+1 >T n , it enters the process of increasing temperature and reducing power, and adopts a protection mechanism to output a power reduction signal.

[0100] To the next cycle, if still T n+1 >T n , continue to adopt the protection mechanism to output a power reduction signal. This will enable the power reduction to be adjusted in a memory-based manner according to the increasing trend of the current temperature value, which depends on the actual effect of power reduction in the previous cycle, rather than adopting a constant power adjustment step regardless of the actual temperature reduction situation, reducing the user's perception of the impact on performance.

[0101] If T n+1 =T n , no power adjustment signal is output.

[0102] If T n+1 <T n , it enters the process of increasing power. Similarly, the degree of power increase depends on the current cycle's temperature value and the temperature value drop degree in the previous cycle during the temperature value drop process.

[0103] To the next cycle, if still if T n+1 <T n , continue to execute the process of increasing power, such as restoring to the maximum operating power. This will enable the power adjustment to be adjusted in a memory-based manner according to the decreasing trend of the current temperature value, without waiting for the threshold of the next stepped temperature value, with stronger real-time performance, and users can obtain more timely performance improvement.

[0104] If T n+1 =T n , no power adjustment signal is output.

[0105] If T n+1 >T n , it enters the process of increasing temperature and reducing power again.

[0106] The embodiment of the present application evaluates the change in temperature value based on the interval between the over-temperature protection threshold TH and the safety temperature threshold TL. When the temperature value is increasing, the power of the temperature protection object is adaptively reduced. When the temperature value is decreasing, the power of the temperature protection object is adaptively increased. The power to be reduced / increased is configured to be proportional to the rate of change of the temperature value, so that the adjusted power can be smoothly controlled. When the temperature value of the current cycle no longer changes, or the power is increased to operate at maximum power, the temperature protection object maintains the current power operation, which solves the problem that when the temperature value of the temperature protection object only reaches the critical value, it will repeatedly trigger and exit the protection mechanism, affecting the life of the electronic device and also affecting the user experience.

[0107] See also Fig.10 In one embodiment, when the temperature value increases, the first preset power is configured to be proportional to the rate of change of the temperature value, including:

[0108] Step S210, obtaining a first difference between the temperature value of the current cycle and the temperature value of the previous cycle, and a second difference between the temperature value of the current cycle and an over-temperature protection threshold, wherein the over-temperature protection threshold is greater than the safety temperature threshold TL.

[0109] Step S220, determining a first preset power according to a first ratio of the second difference to the first difference, wherein the first preset power is inversely proportional to the first ratio.

[0110] The size of the first ratio can present the rate of change of the temperature value, that is, the larger the value of the first ratio, the smaller the rate of change, and the smaller the first preset power is set, so that the power adjustment is smooth. The power adjustment can be adjusted with memory according to the current trend of temperature increase, which depends on the actual effect of power reduction in the previous cycle, rather than ignoring the actual temperature reduction situation and taking a constant power adjustment ladder, thereby reducing the actual user's perception of the impact on performance.

[0111] In one example, the main control unit 200 performs power regulation by adjusting the duty cycle of sending packets to a temperature protection object (such as a switch tube or other control chip with high heat generation) to achieve temperature regulation.

[0112] A protection margin N can be set n+1 To evaluate if temperature protection is not taken, the temperature value of the temperature protection object will be at most n+1 The over-temperature protection threshold TH is reached in the read cycle. It can be understood that the protection margin N n+1 That is the first ratio mentioned above.

[0113] (Round down)

[0114] The duty cycle of the n+1th cycle is D n+1 , then set to reduce the packet transmission duty cycle (corresponding to the first preset power) DF n+1 for:

[0115]

[0116] The packet sending duty cycle of the next cycle is:

[0117] D n+2 =D n+1 -DF n+1

[0118] See also Fig.11 In one embodiment, when the temperature value decreases, the second preset power is configured to be proportional to the rate of change of the temperature value, including:

[0119] Step S310, obtaining a third difference between the temperature value of the current cycle and the temperature value of the previous cycle, and a fourth difference between the temperature value of the current cycle and the safety temperature threshold;

[0120] Step S320: determining a second preset power according to a second ratio of the fourth difference to the third difference, wherein the second preset power is inversely proportional to the second ratio.

[0121] The size of the second ratio can present the rate of change of the decreasing temperature value, that is, the larger the value of the second ratio, the smaller the rate of change, and the smaller the second preset power is set, so that the power adjustment is smooth. The power adjustment can be adjusted with memory according to the current temperature increase trend, which depends on the actual effect of the power increase in the previous cycle, rather than ignoring the actual temperature increase and taking a constant power adjustment ladder, thereby reducing the actual user's perception of the impact on performance.

[0122] In one example, the main control unit 200 performs power regulation by adjusting the duty cycle of sending packets to a temperature protection object (such as a switch tube or other control chip with high heat generation) to achieve temperature regulation.

[0123] A protection margin N can be set n+1 , to evaluate if the power is not increased, the temperature value of the temperature protection object will be at most n+1 The temperature falls below the safety temperature threshold TL. It can be understood that the protection margin N n+1 That is the second ratio mentioned above.

[0124] (Round down)

[0125] For the n+1th cycle, the wireless duty cycle is D n+1 , then set to increase the packet duty cycle DF n+1(corresponding to the second preset power) is:

[0126]

[0127] The packet sending duty cycle in the next stage is:

[0128] D n+2 =D n+1 +DF n+1

[0129] Continuing with the above example, through the above mechanism optimization, the packet duty cycle can automatically find an adaptive duty cycle under a specific load, rather than being passively limited to a few fixed duty cycle levels. Compared with some temperature protection mechanisms with multiple duty cycle levels, this mechanism avoids jumping back and forth and optimizes the user experience. For example, for some solutions (here is only an example comparison, the actual mechanism of other solutions is not the focus), there are 4 levels of temperature protection:

[0130] Level 1: Duty cycle 100%, over-temperature protection threshold TH is 100℃, above 100℃ enter the next level.

[0131] Level 2: Duty cycle 40%, over-temperature protection threshold TH is 106°C, safety temperature threshold TL is 94°C. If it is higher than 106°C, it will enter the next level, and if it is lower than 94°C, it will return to the previous level.

[0132] Level 3: Duty cycle 20%, over-temperature protection threshold TH is 112℃, safety temperature threshold TL is 100℃, above 112℃ enter the next level, below 100℃ return to the previous level.

[0133] Level 4: Duty cycle 10%, over-temperature protection threshold TH is 118℃, safety temperature threshold TL is 106℃, if it is higher than 118℃, the electronic equipment will be shut down, if it is lower than 106℃, it will go back to the previous level.

[0134] The optimization is more obvious in the following scenarios. These solutions have obvious performance improvement advantages. Figure 12-14 It can also be seen that the new mechanism can find the appropriate duty cycle stability performance in the corresponding time transient, avoiding the duty cycle jump and obvious performance degradation of other mechanisms.

[0135] (1) See Fig.12 , critical temperature protection. For example, if a load scenario requires a duty cycle of 95%, the embodiment of the present application can find a suitable gear to avoid jumping back and forth between 100% duty cycle and 60% duty cycle. Fig.12 The contrast effect can be seen as shown.

[0136] (2) See Fig.13 , the number of gears is limited. This solution does not actually have the concept of gears. It is a solution that gradually adjusts the duty cycle, so it will always stabilize at a suitable gear to maintain the power consumption and temperature range, and also avoid the problem of frequent fluctuations in traffic speed in user experience.

[0137] (3) See Fig.14 , the temperature is lowered to restore the duty cycle. To restore the duty cycle, there is no need to wait for the temperature to drop below the low value of a specific temperature range. As long as the temperature starts to drop, the duty cycle can be gradually restored to ensure the wireless throughput experience of multiple users.

[0138] See also Fig.15 The embodiment of the present application also provides an electronic device 10, which includes a temperature protection object 101, a temperature detection circuit 100, a memory 102, a processor 103, and a computer program 104 stored in the memory 102 and executable on the processor 103. The temperature detection circuit 100 and the temperature protection object 101 are connected to the processor 103. When the processor 103 executes the computer program 104, the steps of the temperature protection method based on the temperature detection circuit are implemented.

[0139] The electronic device 10 is, for example, a network device such as a wireless router. Those skilled in the art will appreciate that Fig.15 It is only an example of the electronic device 10 and does not constitute a limitation on the electronic device. It 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, etc.

[0140] The processor 103 may be a central processing unit (CPU), or may be other general controllers, 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 controller may be a microcontroller or any conventional controller.

[0141] In some embodiments, the memory 102 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10. In other embodiments, the memory 102 may also be an external storage device of the electronic device 10, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 10. Further, the memory 102 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 102 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs. The memory 102 may also be used to temporarily store data that has been output or is to be output.

[0142] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program 104 . When the computer program 104 is executed by the processor 103 , the steps in the above-mentioned method embodiments can be implemented.

[0143] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.

[0144] 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 method embodiments, which can be completed by instructing the relevant hardware through a computer program 104. The computer program 104 can be stored in a computer-readable storage medium. When the computer program 104 is executed by the processor 103, the steps of the above method embodiments can be implemented. Among them, the computer program 104 includes a computer program 104 code, and the computer program 104 code can be in source code form, object code form, executable file or some intermediate form. The computer readable medium may at least include: any entity or device that can carry the computer program 104 code to the camera device / terminal device, a recording medium, a computer memory 102, a ROM (Read-Only Memory, read-only memory 102), a RAM (Random Access Memory, random access memory 102), a CD-ROM (Compact Disc Read-Only Memory, read-only optical disc), a magnetic tape, a floppy disk and an optical data storage device. The computer-readable storage medium mentioned in the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0145] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program 104 product. The computer program 104 product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.

[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0147] Those of ordinary skill 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 to be beyond the scope of this application.

[0148] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A temperature detection circuit, characterized in that: The temperature detection circuit comprises: a detection unit, thermally coupled to the temperature protection object, for sensing the temperature of the temperature protection object and outputting a sensing voltage; A collection unit, connected to the detection unit, for periodically charging with the sensing voltage and outputting a collection voltage; The integration unit is connected to the acquisition unit and is used for charging with a preset target voltage based on the acquired voltage and outputting a temperature detection signal related to the charging time.

2. The temperature detection circuit according to claim 1, characterized in that: The detection unit includes a first resistor and a temperature sensor, wherein the first resistor and the temperature sensor are connected in series between an operating voltage and a ground, and outputs the sensing voltage at a series node of the first resistor and the temperature sensor.

3. The temperature detection circuit according to claim 1 or 2, characterized in that: The acquisition unit includes a first switching element, a first capacitor and a follower circuit connected in sequence, the first switching element is also connected to the detection unit, and the follower circuit is also connected to the integration unit. The first switching element is controlled to be turned on and off by a periodic first switching signal. When the first switching element is turned on, the first switching element transmits the sensing voltage to charge the first capacitor. When the first switching element is turned off, the first capacitor outputs the acquisition voltage through the follower circuit.

4. The temperature detection circuit according to claim 3, characterized in that: The follower circuit includes a first operational amplifier, a second resistor and a third resistor, wherein: The non-inverting input terminal of the first operational amplifier is connected to the first switching element, the inverting input terminal of the first operational amplifier is connected to the first end of the second resistor and the first end of the third resistor, the second end of the second resistor is grounded, the second end of the third resistor is connected to the output terminal of the first operational amplifier, and the output terminal of the first operational amplifier constitutes the output terminal of the follower circuit.

5. The temperature detection circuit according to claim 3, characterized in that: The integration unit includes a second switch element and an integration circuit connected in sequence, the second switch element is also connected to the collection unit, the second switch element is controlled to be turned on by a second switch signal to transmit the collection voltage, and the integration circuit is used to output the temperature detection signal after charging the collection voltage to a preset target voltage.

6. The temperature detection circuit according to claim 5, characterized in that: The integration circuit includes a second operational amplifier, a fourth resistor, a fifth resistor, a sixth resistor, a second capacitor and a third capacitor; The non-inverting input terminal of the second operational amplifier is connected to the second switching element and the first end of the fourth resistor through the fifth resistor, the second end of the fourth resistor is grounded, the non-inverting input terminal of the second operational amplifier is also grounded through the second capacitor, the inverting input terminal of the second operational amplifier is grounded through the sixth resistor and connected to the output terminal through the third capacitor, and the output terminal of the second operational amplifier constitutes the output terminal of the integration circuit.

7. The temperature detection circuit according to claim 6, characterized in that: The second capacitor and the third capacitor have the same capacitance, and the fifth resistor and the sixth resistor have the same resistance.

8. The temperature detection circuit according to claim 6, characterized in that: It also includes a main control unit, the input end of which is connected to the integration unit, and is used to receive the temperature detection signal related to the charging time, and determine the temperature value corresponding to the temperature detection signal according to the charging time.

9. The temperature detection circuit according to claim 8, characterized in that: The first control end of the main control unit is connected to the first switch element, and is used to control the first switch element to be turned on and off. The second control end of the main control unit is connected to the second switch element, and is used to control the second switch element to be turned on and off. The charging time corresponds to the time from when the second switch element is turned on to when the temperature detection signal reaches the preset target voltage.

10. An electronic device, characterized in that: The electronic device comprises a temperature protection object and a temperature detection circuit as claimed in any one of claims 1 to 9.

Citation Information

Cited By

  • Temperature sensing system of transparent flexible circuit board

    CN119043509A