CN107449521A - Method, terminal device and the computer-readable recording medium of temperature-compensating - Google Patents

Method, terminal device and the computer-readable recording medium of temperature-compensating Download PDF

Info

Publication number
CN107449521A
CN107449521A CN201710638691.1A CN201710638691A CN107449521A CN 107449521 A CN107449521 A CN 107449521A CN 201710638691 A CN201710638691 A CN 201710638691A CN 107449521 A CN107449521 A CN 107449521A
Authority
CN
China
Prior art keywords
temperature
compensating
current environmental
value
compensation
Prior art date
Application number
CN201710638691.1A
Other languages
Chinese (zh)
Other versions
CN107449521B (en
Inventor
宋佳城
陈宇弘
朱江华
Original Assignee
深圳市泰和安科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市泰和安科技有限公司 filed Critical 深圳市泰和安科技有限公司
Priority to CN201710638691.1A priority Critical patent/CN107449521B/en
Publication of CN107449521A publication Critical patent/CN107449521A/en
Application granted granted Critical
Publication of CN107449521B publication Critical patent/CN107449521B/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K1/00Details of thermometers not specially adapted for particular types of thermometer
    • G01K1/20Compensating for effects of temperature changes other than those to be measured, e.g. changes in ambient temperature
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply, e.g. by thermoelectric elements
    • G01K7/16Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply, e.g. by thermoelectric elements using resistive elements
    • G01K7/22Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply, e.g. by thermoelectric elements using resistive elements the element being a non-linear resistance, e.g. thermistor

Abstract

The invention provides a kind of method of temperature-compensating, terminal device and computer-readable recording medium, it is related to electrical fire detection technology field.This method includes:Current environmental temperature is obtained by thermistor;Determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;If so, then obtain current temperature compensation value according to based on the default temperature compensation table of Fibonacci sequence coefficient;In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If current environmental temperature drops below default temperature-compensating initial value, compensation is exited, shows current environmental temperature.Situation of change of the invention by obtaining current environmental temperature, to determine whether to carry out temperature-compensating using the thermometer of Fibonacci sequence coefficient formation, to reach the critical value of alarm temperature in advance, can timely and effectively it be alarmed, fire preventing occurs.

Description

Method, terminal device and the computer-readable recording medium of temperature-compensating

Technical field

The invention belongs to electrical fire detection technology field, more particularly to a kind of method of temperature-compensating, terminal device and Computer-readable recording medium.

Background technology

Touch sensor NTC (Negative Temperature Coefficient, with negative temperature coefficient at present Thermistor) Industry be the rigors for being limited to technique and use condition, the finished product sensor after encapsulation itself is general All over the requirement that can not meet to timely respond to the time.In the practical application of electrical fire combined type residual current-hygrosensor In order to reach two requirements of national standard alarm:1st, in 40s, 45 DEG C -140 DEG C are raised to by environment temperature environment are alarmed and (pressed It is more than needed higher than sample alarming value 20%, it is assumed that worst situation is that alarming value is set as 100 DEG C, the temperature of actual test instrument Degree should be set in 120 DEG C, the limitation of tester the defects of due to this province of temperature control device and in actual development, actually Not necessarily it disclosure satisfy that);2. the speed ramp case no more than 1 DEG C/min is not alarmed, if alarm, alarming value is recorded, error is not Must be more than 5% (test objective be accuracy of detection).It is event, in order to meet that touch sensor is wanted for above-mentioned two national standards Ask, the mode of software compensation can only be taken to solve the problem.

The content of the invention

The requirement for meeting two national standards simultaneously is needed when detecting fire for touch sensor, can only be by taking software The problem of mode of compensation is to meet, the present invention provide a kind of method of temperature-compensating, terminal device and computer-readable storage Medium.

The first aspect of the embodiment of the present invention provides a kind of method of temperature-compensating, including:

Current environmental temperature is obtained by thermistor;

Determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

If so, then obtain current temperature compensation value according to based on the default temperature compensation table of Fibonacci sequence coefficient;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

Further, determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature, method includes:

Obtain the average ambient temperature value of current environmental temperature;

Judge whether current average ambient temperature value continuously increases within the default testing time, and amplification is more than or equal to Default amplification temperature;

If so, and current environmental temperature be more than 40 DEG C, then carry out temperature-compensating.

Further, average ambient temperature value continuous increase within the default testing time is no more than default fiducial value, then after Continuation of insurance is held obtains current environmental temperature by thermistor.

Further, within the predesigned compensation time, if current environmental temperature is not up to temperature compensation value, keeping temperature is mended Value is repaid, method includes:

Judge in preset time, compare the temperature difference of current environmental temperature and temperature-compensating initial value;

According to the size amendment predesigned compensation time of temperature difference;

If current environmental temperature is not up to temperature compensation value, keeping temperature offset within the predesigned compensation time.

Further, included according to the size amendment predesigned compensation time of temperature difference, method:

If temperature difference is more than 10 DEG C, default supplement is compensated into brief 1 second of time;

If temperature difference is more than 14 DEG C, default supplement is compensated into brief 2 seconds of time;

If temperature difference is more than 18 DEG C, default supplement is compensated into brief 3 seconds of time;

If temperature difference is more than 20 DEG C, the default supplement compensation time is set as 29 seconds.

The second aspect of the embodiment of the present invention provides a kind of device of temperature-compensating, including:

First acquisition module, for obtaining current environmental temperature by thermistor;

First determination module, for being determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

Second acquisition module, for obtaining current temperature according to based on the default temperature compensation table of Fibonacci sequence coefficient Spend offset;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

Further, the first determination module includes:

First acquisition unit, for obtaining the average ambient temperature value of current environmental temperature;

First identifying unit, for judging whether current average ambient temperature value continuously increases within the default testing time, And amplification is more than or equal to default amplification temperature;

If so, and current environmental temperature be more than 40 DEG C, then carry out temperature-compensating.

Further, the second acquisition module includes:

Second identifying unit, for judging in preset time, compare current environmental temperature and temperature-compensating initial value Temperature difference;

Amending unit, for the size amendment predesigned compensation time according to temperature difference;

Holding unit, if being not up to temperature compensation value within the predesigned compensation time for current environmental temperature, keep temperature Spend offset.

The third aspect of the embodiment of the present invention provides a kind of terminal device of temperature-compensating, including memory, processor And storage is in memory and the computer program that can run on a processor, during computing device computer program realization with Lower step:

Current environmental temperature is obtained by thermistor;

Determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

If so, then obtain current temperature compensation value according to based on the default temperature compensation table of Fibonacci sequence coefficient;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium of temperature-compensating, and computer can Read storage medium and be stored with computer program, following steps are realized when computer program is executed by processor:

Current environmental temperature is obtained by thermistor;

Determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

If so, then obtain current temperature compensation value according to based on the default temperature compensation table of Fibonacci sequence coefficient;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

Existing beneficial effect is the embodiment of the present invention compared with prior art:The present invention is obtained current by thermistor The situation of change of environment temperature, determining whether to take temperature-compensating measure, to be reached in advance by way of temperature-compensating To the critical value of alarm temperature, on the one hand, alarmed in advance by way of temperature-compensating, can timely and effectively fire preventing Occur;On the other hand, the present invention is compensated according to using the temperature compensation table of Fibonacci number column-generation to temperature, can be made The speed for obtaining temperature change more refines, and the time so as to which fire alarm bell is alarmed more refines.

Brief description of the drawings

Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.

Fig. 1 is the implementation process schematic diagram of the method for temperature-compensating provided in an embodiment of the present invention;

Fig. 2 is the temperature-compensating schematic diagram obtained by using the method for Fig. 1 temperature-compensatings provided;

Fig. 3 is the Fibonacci sequence spiral figure that Fig. 1 is used in the embodiment of the present invention;

Fig. 4 is that Fig. 1 carries out the temperature value table after temperature-compensating by Fibonacci sequence in the embodiment of the present invention;

Fig. 5 is the schematic diagram of the device of temperature-compensating provided in an embodiment of the present invention;

Fig. 6 is the schematic diagram of the terminal device of temperature-compensating provided in an embodiment of the present invention.

Embodiment

In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.

In order to illustrate technical scheme, illustrated below by specific embodiment.

Fig. 1 is the implementation process schematic diagram of the method for temperature-compensating provided in an embodiment of the present invention;Fig. 2 is by using figure The temperature-compensating schematic diagram that the method for 1 temperature-compensating provided obtains;Fig. 3 is the striking Poona that Fig. 1 is used in the embodiment of the present invention Contract ordered series of numbers spiral figure;As shown in Figure 1 to Figure 3, the method for temperature-compensating provided by the invention, can include:

101st, current environmental temperature is obtained by thermistor;

Specifically, thermal resistor is one kind of sensing element, is divided into positive temperature coefficient temperature-sensitive according to temperature coefficient difference Resistor PTC and negative temperature coefficient thermistor NTC.The typical feature of thermal resistor is temperature sensitive, different temperature Different resistance values is shown under degree.Positive temperature coefficient thermistor PTC resistance values when temperature is higher are bigger, negative temperature system Number thermal resistor NTC resistance values when temperature is higher are lower, and they belong to semiconductor devices.The present embodiment is using negative Temperature coefficient thermistor device NTC.Temperature also respective change during NTC resistance change, according to NTC, this characteristic can be produced Temperature change table corresponding to resistance value.

Further, thermistor obtains current environmental temperature and included:ADC(Analog-to-Digital Converter, A/D converter) by the voltage conversion collected it is resistance value, look into temperature phasing meter further according to resistance value.Can The span of temperature phasing meter is arranged to 10 DEG C, diminution tables look-up scope as 10 DEG C, so as to reduce the time of tabling look-up, obtains in time current Environment temperature.The temperature value of continuous acquisition sampled point:Assuming that gathering 10 times, maximum and the thickening of minimum value class divided by 8 are removed, is obtained Average value to sampling is the average ambient temperature temperature value of current sampling point.Current average ambient temperature temperature value is set For T new, then a default variable T old, 31.0 DEG C of initial assignment.

102nd, determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

Specifically, step 102 includes:Obtain the average ambient temperature value of current environmental temperature;Judge current average environment Whether temperature value continuously increases within the default testing time, and amplification is more than or equal to default amplification temperature;If so, and work as Preceding environment temperature is more than 40 DEG C, then carries out temperature-compensating.Further, judge whether T new (are more than more than T old+0.2 DEG C 0.2 DEG C is then 0.3 DEG C), if such as continuous 7 satisfactions in 6s, more than 33.1 DEG C (31.0 DEG C of+0.3 DEG C of * 7=of temperature value arrival 33.1 DEG C) it is judged to meeting compensation condition, enter compensation if actual temperature is more than 40 DEG C, if actual temperature is less than 40 DEG C not Compensation, prevents false alarm.Yet further, average ambient temperature value continuous increase within the default testing time is no more than default ratio Compared with value, specifically, default fiducial value can be set as into per sampling period should rise 0.2 DEG C applied to the present embodiment, then continue to protect Hold and current environmental temperature is obtained by thermistor.

103rd, if so, then obtaining current temperature-compensating according to based on the default temperature compensation table of Fibonacci sequence coefficient Value;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

Specifically, Fibonacci sequence coefficient (helix) --- 101%, 103%, 105%, 108%, 113%, 121%, (using 134%, 155%, 189%) ... } in previous section penalty coefficient be difficult to the requirement that meets compensation duration.By its It is segmented and a temperature compensation table as shown in Figure 4 is multiplied and be fitted to actual temperature value:Predicted by relatively low actual value To the temperature of environment, so as to solve the problems, such as that the temperature sensor response time is long.Further, in preset time, if working as Preceding environment temperature is not up to temperature compensation value, then keeping temperature offset can include:Judge in preset time, it is relatively more current Environment temperature and the temperature difference of temperature-compensating initial value;According to the size amendment predesigned compensation time of temperature difference;If current environment Temperature is not up to temperature compensation value within the predesigned compensation time, then keeping temperature offset.

Yet further, if temperature difference is more than 10 DEG C, default supplement is compensated into brief 1 second of time;If temperature difference is more than 14 DEG C, then default supplement is compensated into brief 2 seconds of time;If temperature difference is more than 18 DEG C, default supplement is compensated into the time brief 3 Second;If temperature difference is more than 20 DEG C, the default supplement compensation time is set as 29 seconds.Because the environment set temperature of actual test Indefinite, section is between 45-140 DEG C, since environment temperature, is warming up to arbitrary temp (the being multiplied by 1.2) requirement in this section Alarmed in 40s, error is no more than 5%.And the value after compensating not should be greater than the environment temperature 5% of setting, otherwise just show Temperature is higher than environment temperature, is inaccurate.

Further, by control compensation duration so as to control compensation after temperature precision, initial compensation duration variable It is entered as 22 seconds, judges after meeting the compensation condition in 5, will be greater than 33.1 degree of first sampled value and be stored as initial value T0, And the timing since this sampled value, the value after 15s is stored as T1, is that this 15 seconds temperature difference is used as sampling by the use of T1-T0 Time scale modification foundation is compensated, its value is moved to right into one obtains correcting duration.On the basis of this amendment, then judge T1-T0 temperature Spend difference:Duration is corrected if more than 10 degree and shortens 1s;2s is then shortened more than 14 degree;3s is then shortened more than 18 degree, more than 20 degree Then it is set to 29s.

If the compensation time is finished, is no longer compensated before the value that actual value is reached after compensation, keep its value;If temperature Drop below T0 and then exit compensation, show actual value.It is as follows so as to solve the problems, such as wrong report caused by the difficult control of compensation result Shown in table:

It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.

The present invention obtains the temperature change of surrounding environment by thermistor it can be seen from the method provided by above example Change speed, determining whether to take temperature-compensating measure, to reach alarm temperature by way of temperature-compensating in advance Critical value, on the one hand, alarmed, timely and effectively fire preventing can occurred in advance by way of temperature-compensating;The opposing party Face, the present invention are compensated by using Fibonacci sequence to temperature, and the speed of temperature change can be caused more to refine, from And the time that fire alarm bell is alarmed can more be refined.The method test environment that the present embodiment proposes is baking box, due to water oil Heat conductivility Deng liquid is different with air, needs to adjust according to the compensation method and shortens compensation duration.

Fig. 5 shows a kind of structural representation of temperature compensation means provided in an embodiment of the present invention, for convenience of description, It illustrate only the part related to the embodiment of the present invention.

First acquisition module 51, for obtaining current environmental temperature by thermistor;

First determination module 52, for being determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;

Second acquisition module 53, for being obtained currently according to based on the default temperature compensation table of Fibonacci sequence coefficient Temperature compensation value;

In preset time, if current environmental temperature is not up to temperature compensation value, keeping temperature offset;If work as front ring Border temperature drops below default temperature-compensating initial value, then exits compensation, shows current environmental temperature.

The device provided by above example is again it can be seen that the present invention obtains the temperature of surrounding environment by thermistor Spend rate of change, to determine whether to take temperature-compensating measure, so as in advance by way of temperature-compensating come reach alarm temperature The critical value of degree, on the one hand, alarmed, timely and effectively fire preventing can occurred in advance by way of temperature-compensating;Separately On the one hand, the present invention compensates by using Fibonacci sequence to temperature, can make it that the speed of temperature change is more accurate Change, the time so as to which fire alarm bell is alarmed more refines.

It should be noted that modules in said system provided in an embodiment of the present invention, due to real with the inventive method Apply example and be based on same design, its technique effect brought is identical with the inventive method embodiment, and particular content can be found in the present invention Narration in embodiment of the method, here is omitted.

Fig. 6 is the schematic diagram of the terminal device for the temperature-compensating that one embodiment of the invention provides.As shown in fig. 6, the implementation The terminal device 6 of the temperature-compensating of example includes:Processor 60, memory 61 and it is stored in memory 61 and can be in processor The computer program 62 run on 60, such as the computer program of the method for realizing temperature-compensating.Processor 60 performs meter Realize the step in the embodiment of the method for above-mentioned each temperature-compensating during calculation machine program 62, for example, the step 101 shown in Fig. 1 to 103.Or the function of each module/unit in above-mentioned each device embodiment, example are realized during the execution computer program 62 of processor 60 The function of module 51 to 53 as shown in Figure 5.

The present invention proposes the computer program 62 of the method for realizing temperature-compensating, including:Obtained by thermistor Current environmental temperature;Determined whether to carry out temperature-compensating according to the situation of change of current environmental temperature;If so, then according to based on striking The default temperature compensation table of Fibonacci ordered series of numbers coefficient obtains current temperature compensation value;In preset time, if current environment temperature Degree is not up to temperature compensation value, then keeping temperature offset;At the beginning of if current environmental temperature drops below default temperature-compensating Initial value, then compensation is exited, show current environmental temperature.Computer program 62 can be divided into one or more module/units, One or more module/unit is stored in memory 61, and is performed by processor 60, to complete the present invention.One or Multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe Implementation procedure of the computer program 62 in the terminal device 6 of temperature-compensating.For example, computer program 62 can be divided into together Module, summarizing module, acquisition module, return module (module in virtual bench) are walked, each module concrete function is as follows:

The terminal device 6 of temperature-compensating can be the meter such as desktop PC, notebook, palm PC and cloud server Calculate equipment.The terminal device of temperature-compensating may include, but be not limited only to, processor 60, memory 61.Those skilled in the art can To understand, Fig. 6 is only the example of the terminal device 6 of temperature-compensating, does not form the limit to the terminal device 6 of temperature-compensating It is fixed, it can include than illustrating more or less parts, either combine some parts or different parts, such as temperature is mended The terminal device 6 repaid can also include input-output equipment, network access equipment, bus etc..

Alleged processor 60 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.

Memory 61 can be the internal storage unit of the terminal device 6 of temperature-compensating, such as the terminal of temperature-compensating is set Standby 6 hard disk or internal memory.Memory 61 can also be the External memory equipment of the terminal device 6 of temperature-compensating, such as temperature is mended The plug-in type hard disk being equipped with the terminal device 6 repaid, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, memory 61 can also both include temperature The internal storage unit of the terminal device 6 of compensation also includes External memory equipment.Memory 61 be used for store computer program with And other programs and data needed for the terminal device 6 of temperature-compensating.Memory 61 can be also used for temporarily storing defeated The data that goes out or will export.

It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of device are divided into different functional units or module, to complete above description All or part of function.Each functional unit, module in embodiment can be integrated in a processing unit or Unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated unit Both it can be realized, can also be realized in the form of SFU software functional unit in the form of hardware.In addition, each functional unit, mould The specific name of block is not limited to the protection domain of the application also only to facilitate mutually distinguish.It is single in said system Member, the specific work process of module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.

In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.

Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.

In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, can be with Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, mould The division of block or unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another Point, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device or The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.

The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.

In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.

If integrated module/unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-described embodiment side All or part of flow in method, by computer program the hardware of correlation can also be instructed to complete, computer program It can be stored in a computer-readable recording medium, above-mentioned each side can be achieved when being executed by processor in the computer program The step of method embodiment.Wherein, computer program includes computer program code, and computer program code can be source code shape Formula, object identification code form, executable file or some intermediate forms etc..Computer-readable medium can include:Meter can be carried Any entity or device of calculation machine program code, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electricity is read to carry Ripple signal, telecommunication signal and software distribution medium etc..It should be noted that the content that computer-readable medium includes can root Appropriate increase and decrease is carried out according to legislation in jurisdiction and the requirement of patent practice, such as in some jurisdictions, according to vertical Method and patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.

The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments The present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each implementation Technical scheme described in example is modified, or carries out equivalent substitution to which part technical characteristic;And these modification or Replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should include Within protection scope of the present invention.

Claims (10)

  1. A kind of 1. method of temperature-compensating, it is characterised in that including:
    Current environmental temperature is obtained by thermistor;
    Determined whether to carry out temperature-compensating according to the situation of change of the current environmental temperature;
    If so, then obtain current temperature compensation value according to based on the default temperature compensation table of Fibonacci sequence coefficient;
    In preset time, if the current environmental temperature is not up to the temperature compensation value, the temperature compensation value is kept; If the current environmental temperature drops below default temperature-compensating initial value, compensation is exited, shows the current environment Temperature.
  2. 2. the method for temperature-compensating as claimed in claim 1, it is characterised in that the change according to the current environmental temperature Change situation determines whether progress temperature-compensating, and methods described includes:
    Obtain the average ambient temperature value of the current environmental temperature;
    Judge whether presently described average ambient temperature value continuously increases within the default testing time, and amplification is more than or equal to Default amplification temperature;
    If so, and the current environmental temperature be more than 40 DEG C, then carry out temperature-compensating.
  3. 3. the method for temperature-compensating as claimed in claim 2, it is characterised in that the average ambient temperature value is in default test Continuous increase is no more than default fiducial value in time, then continues to keep obtaining current environmental temperature by thermistor.
  4. 4. the method for temperature-compensating as claimed in claim 1, it is characterised in that it is described within the predesigned compensation time, if described Current environmental temperature is not up to the temperature compensation value, then keeps the temperature compensation value, and methods described includes:
    Judge in the preset time, the current environmental temperature and the temperature difference of the temperature-compensating initial value;
    According to the predesigned compensation time described in the size amendment of the temperature difference;
    If the current environmental temperature is not up to the temperature compensation value within the predesigned compensation time, the temperature is kept Offset.
  5. 5. the method for temperature-compensating as claimed in claim 4, it is characterised in that the size amendment according to the temperature difference The predesigned compensation time, methods described include:
    If temperature difference is more than 10 DEG C, default supplement is compensated into brief 1 second of time;
    If temperature difference is more than 14 DEG C, default supplement is compensated into brief 2 seconds of time;
    If temperature difference is more than 18 DEG C, default supplement is compensated into brief 3 seconds of time;
    If temperature difference is more than 20 DEG C, the default supplement compensation time is set as 29 seconds.
  6. A kind of 6. device of temperature-compensating, it is characterised in that including:
    First acquisition module, for obtaining current environmental temperature by thermistor;
    First determination module, for being determined whether to carry out temperature-compensating according to the situation of change of the current environmental temperature;
    Second acquisition module, for being mended according to based on the current temperature of the default temperature compensation table acquisition of Fibonacci sequence coefficient Repay value;
    In preset time, if the current environmental temperature is not up to the temperature compensation value, the temperature compensation value is kept; If the current environmental temperature drops below default temperature-compensating initial value, compensation is exited, shows the current environment Temperature.
  7. 7. the device of temperature-compensating as claimed in claim 6, it is characterised in that first determination module includes:
    First acquisition unit, for obtaining the average ambient temperature value of the current environmental temperature;
    First identifying unit, for judging whether presently described average ambient temperature value continuously increases within the default testing time, And amplification is more than or equal to default amplification temperature;
    If so, and the current environmental temperature be more than 40 DEG C, then carry out temperature-compensating.
  8. 8. the device of temperature-compensating as claimed in claim 6, it is characterised in that second acquisition module includes:
    Second identifying unit, for judging in the preset time, the current environmental temperature and the temperature-compensating The temperature difference of initial value;
    Amending unit, for the predesigned compensation time described in the size amendment according to the temperature difference;
    Holding unit, if being not up to the temperature compensation value within the predesigned compensation time for the current environmental temperature, Then keep the temperature compensation value.
  9. 9. a kind of terminal device of temperature-compensating, including memory, processor and it is stored in the memory and can be in institute State the computer program run on processor, it is characterised in that realized described in the computing device during computer program as weighed Profit requires the step of any one of 1 to 5 methods described.
  10. 10. a kind of computer-readable recording medium of temperature-compensating, the computer-readable recording medium storage have computer journey Sequence, it is characterised in that realized when the computer program is executed by processor such as any one of claim 1 to 5 methods described Step.
CN201710638691.1A 2017-07-31 2017-07-31 Temperature compensation method, terminal device and computer readable storage medium CN107449521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710638691.1A CN107449521B (en) 2017-07-31 2017-07-31 Temperature compensation method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710638691.1A CN107449521B (en) 2017-07-31 2017-07-31 Temperature compensation method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107449521A true CN107449521A (en) 2017-12-08
CN107449521B CN107449521B (en) 2020-01-17

Family

ID=60490557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710638691.1A CN107449521B (en) 2017-07-31 2017-07-31 Temperature compensation method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107449521B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108426646A (en) * 2018-03-16 2018-08-21 深圳市卡卓无线信息技术有限公司 Device temperature measurement method and device
CN110006548A (en) * 2018-01-04 2019-07-12 中国航发商用航空发动机有限责任公司 Temperature sensor signal compensation method and device, computer readable storage medium
CN110030691A (en) * 2019-04-01 2019-07-19 珠海格力电器股份有限公司 A kind of temperature checking method and device of manual operator

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034329A (en) * 2010-12-29 2011-04-27 上海大学 Infrared fire detection method based on multiband and multi-feature
US20110243188A1 (en) * 2010-03-31 2011-10-06 Microchip Technology Incorporated Thermocouple electromotive force voltage to temperature converter with integrated cold-junction compensation and linearization
CN102354429A (en) * 2011-09-22 2012-02-15 无锡圣敏传感科技有限公司 Multivariate combined-type linear temperature-sensing fire detector and implementation method thereof
US8689635B2 (en) * 2011-05-13 2014-04-08 Taiwan Silicon Microelectronics Co., Ltd. Automatic calibration procedure of temperature compensation for digital pressure gauges
CN103759851A (en) * 2014-02-18 2014-04-30 悉雅特万科思自动化(杭州)有限公司 Temperature compensation method used for thermal resistance collecting module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110243188A1 (en) * 2010-03-31 2011-10-06 Microchip Technology Incorporated Thermocouple electromotive force voltage to temperature converter with integrated cold-junction compensation and linearization
CN102034329A (en) * 2010-12-29 2011-04-27 上海大学 Infrared fire detection method based on multiband and multi-feature
US8689635B2 (en) * 2011-05-13 2014-04-08 Taiwan Silicon Microelectronics Co., Ltd. Automatic calibration procedure of temperature compensation for digital pressure gauges
CN102354429A (en) * 2011-09-22 2012-02-15 无锡圣敏传感科技有限公司 Multivariate combined-type linear temperature-sensing fire detector and implementation method thereof
CN103759851A (en) * 2014-02-18 2014-04-30 悉雅特万科思自动化(杭州)有限公司 Temperature compensation method used for thermal resistance collecting module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110006548A (en) * 2018-01-04 2019-07-12 中国航发商用航空发动机有限责任公司 Temperature sensor signal compensation method and device, computer readable storage medium
CN108426646A (en) * 2018-03-16 2018-08-21 深圳市卡卓无线信息技术有限公司 Device temperature measurement method and device
CN110030691A (en) * 2019-04-01 2019-07-19 珠海格力电器股份有限公司 A kind of temperature checking method and device of manual operator

Also Published As

Publication number Publication date
CN107449521B (en) 2020-01-17

Similar Documents

Publication Publication Date Title
Sharifi et al. Accurate direct and indirect on-chip temperature sensing for efficient dynamic thermal management
CN103250066B (en) The system and method for sensing battery capacity
CN101078656B (en) Thermometer calibration
Moffat Describing the uncertainties in experimental results
CN101248365B (en) System and method for estimating a state vector associated with a battery
US20160195585A1 (en) Systems and methods for determining a remaining battery capacity of a battery device
CN101435727B (en) Temperature predicting method and apparatus
EP2447802A1 (en) Apparatus and method for collecting and controlling temperature
KR20170125375A (en) Method for changing extreme powers based on device state, processor and device
US8870453B2 (en) System, method and computer program product for monitoring temperature
CN102692248B (en) The deteriorated sensor realized in transmitter detects
EP2466418A1 (en) Throttling memory in a computer system
JP5009374B2 (en) Detection of temperature sensor configuration in a process variable transmitter
US8965712B2 (en) Life predicting method for solder joint, life predicting apparatus for solder joint and electronic device
CN103631351B (en) Fan control method and device of server and server
CN104714184B (en) Battery ID and the detection means and method of battery temperature are detected by single pin
KR20170126933A (en) Power management to change extreme powers based on device skin temperature
CN104865534B (en) A kind of cell internal temperature method of estimation
WO2005052611A1 (en) Identifying process and temperature of silicon chips
CN203324422U (en) Device for detecting leakage current of resistance temperature detector
CN103575414B (en) A kind of electric thermo-couple temperature measurement Error Compensation method
EP1252613A1 (en) Time constrained sensor data retrieval system and method
CN101706346B (en) Method for compensating for nonlinear temperature drift of measurement of intelligent force sensor
DE102011112675B4 (en) Method for more accurate temperature sensing using thermistors
EP2993451B1 (en) Method of predicting an ambient temperature around a mobile device, computer program product and mobile device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 East and fourth floors, building A1, xinjianxing science and Technology Industrial Park, Fengxin Road, Loucun, Gongming street, Guangming District, Shenzhen City, Guangdong Province

Applicant after: TANDA Technology Co., Ltd.

Address before: 518000 Guangdong province Shenzhen Guangming New District Gongming Street Village Feng Xin Lu Xinjian Xing Technology Industrial Park A1 Building 1 floor, 3 floor, 4 East Building, 5 floor

Applicant before: TANDA Technology Co., Ltd.

Address after: 518000 East and fourth floors, building A1, xinjianxing science and Technology Industrial Park, Fengxin Road, Loucun, Gongming street, Guangming District, Shenzhen City, Guangdong Province

Applicant after: TANDA Technology Co., Ltd.

Address before: 518000 Guangdong province Shenzhen Guangming New District Gongming Street Village Feng Xin Lu Xinjian Xing Technology Industrial Park A1 Building 1 floor, 3 floor, 4 East Building, 5 floor

Applicant before: TANDA Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant