Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with accompanying drawing the embodiment of the invention is described in further detail, obviously, described embodiment only is that the embodiment of the invention is for example a part of, rather than whole giving an example.Based on the content that the embodiment of the invention is described, those of ordinary skills are not making all other contents that obtain under the creative work prerequisite, all belong to the scope of embodiment of the invention protection.
Embodiment one
In the present embodiment one, measure by a large amount of in advance, set the corresponding relation of first measured value, second measured value and corrected value, for follow-up method flow use, the first measured value indicative for environments temperature wherein, the second measured value indicating mobile terminal internal heat resource temperature.
Each first measured value in the above-mentioned corresponding relation, be to be under the different actual environment temperature of setting and based on the portable terminal internal heat resource temperature of difference second measured value indication of setting environment temperature to be measured by portable terminal, each corrected value in this corresponding relation, be first measured value by correspondence when deducting portable terminal and drawing this first measured value residing actual environment temperature value draw.
The thermal source of portable terminal inside has central processing unit and power module etc., in the present embodiment one, when preestablishing corresponding relation, can only consider wherein a kind of temperature of main thermal source.Enumerate an example that preestablishes corresponding relation below, in this example, only consider the temperature of the inner a kind of main thermal source of portable terminal, for example the temperature of central processing unit.
Portable terminal is in the environment that the actual environment temperature is 0 degree, 5 degree, 10 degree, 15 degree, 20 degree, 25 degree and 30 degree, it is respectively the situation of 25 degree, 30 degree, 35 degree, 40 degree, 45 degree, 50 degree, 55 degree, 60 degree, 65 degree, 70 degree, 75 degree, 80 degree and 85 degree based on portable terminal center of inside temperature of processor, environment temperature is measured, obtain 91 first measured values, and then each first measured value residing actual environment temperature value when drawing this first measured value subtracted each other, obtain corresponding corrected value.
The corrected value that provides as following table 1, be that portable terminal is in the environment that the actual environment temperature is 25 degree, be the situation of 25 degree, 30 degree, 35 degree, 40 degree, 45 degree, 50 degree, 55 degree, 60 degree, 65 degree, 70 degree, 75 degree, 80 degree and 85 degree based on the portable terminal central processor temperature respectively, obtain after environment temperature is measured.Be under the situation of other values in the actual environment temperature, also can obtain corresponding corrected value, all corrected values are gathered, can obtain complete corresponding relation, for follow-up method flow use.
Table 1
First measured value |
Second measured value |
Corrected value |
25 |
25 |
0 |
26 |
30 |
1 |
27 |
35 |
2 |
28 |
40 |
3 |
29 |
45 |
4 |
30 |
50 |
5 |
31 |
55 |
6 |
32 |
60 |
7 |
33 |
65 |
8 |
34 |
70 |
9 |
35 |
75 |
10 |
36 |
80 |
11 |
37 |
85 |
12 |
The actual environment temperature that provides in the above example and portable terminal central processor temperature are only given an example for a kind of, according to demands of applications, can set other temperature values, for example setting the portable terminal central processor temperature is the interval with 1 degree, when setting corresponding relation, needs are measured more first measured value like this.
Fig. 1 is the method flow diagram of measures ambient temperature in the embodiment of the invention one, and this flow process comprises:
Step 11: obtain current mobile terminal to first measured value of environment temperature, and portable terminal to second measured value of internal heat resource;
Step 12: according to the corresponding relation of predefined first measured value, second measured value and corrected value, determine first measured value that obtains and the corrected value of the second measured value correspondence;
Step 13: deduct the corrected value of determining with first measured value that obtains, obtain ambient temperature measurement value.
In above-mentioned steps 11, can obtain first measured value based on the temperature sensor of sense ambient temperature in the portable terminal, obtain second measured value based on the temperature sensor of sensing internal heat resource temperature in the portable terminal.
In above-mentioned steps 12, based on predefined corresponding relation, can determine first measured value that obtains and the corrected value of the second measured value correspondence.Suppose that first measured value that obtains in the step 11 is 28, second measured value that obtains is 40, then based on corresponding relation as shown in table 1, can obtain corresponding corrected value is 3.Consider a kind of special situation, if in the table 1 not with step 11 in the first identical measured value of first measured value that obtains, then can search first measured value close with first measured value that obtains, if in the table 1 not with step 11 in the second identical measured value of second measured value that obtains, then can search second measured value close with second measured value that obtains, and then determine first measured value that finds out and the corrected value of the second measured value correspondence.For example suppose that first measured value that obtains in the step 11 is that 29, second measured value is 41, still selecting first measured value when then tabling look-up is that 28, second measured value is 40 corresponding corrected values 3.Tackle the another kind of settling mode of this special circumstances, be when preestablishing corresponding relation, the interval of second measured value is diminished, for example become and be spaced apart 1, need measure more first measured value like this, can provide more reference data for searching of execution in the step 12 thus.
In above-mentioned steps 13, suppose first measured value that obtains in the step 11 be 28 and step 12 in the corrected value determined be 3, the ambient temperature measurement value after then obtaining proofreading and correct is 25.
As optional embodiment, also can consider the temperature of the inner multiple thermal source of portable terminal in the present embodiment one, for example consider central processor temperature and power module temperature simultaneously, this moment is in preestablishing the process of corresponding relation, when portable terminal is measured each first measured value, based on difference second measured value both comprised second measured value of indicating central processor temperature, also comprise second measured value of indication power module temperature.For example second measured value shown in the table 1 is indicated central processor temperature at present, consider at the same time under the situation of central processor temperature and power module temperature, to have more second measured value of a row indication power module temperature in the table 1, based on such corresponding relation, when the manner of execution flow process, at first obtain the first current measured value, second measured value of second measured value of indication central processor temperature and indication power module temperature, in predefined corresponding relation, search first measured value and the corresponding corrected value of second measured value that obtain then, deduct the corrected value of determining with first measured value that obtains at last, draw the environment measurement temperature.
In sum, measure by a large amount of in advance in the present embodiment one, form the corresponding relation of first measured value, second measured value and corrected value, in follow-up method flow, after obtaining first measured value and second measured value of portable terminal to inner heat source temperature of current mobile terminal to environment temperature, can determine corresponding corrected value by tabling look-up, the corrected value that recycling is determined is proofreaied and correct first measured value that obtains, can reduce the temperature of portable terminal internal heat resource thus to the influence of ambient temperature measurement, improve the accuracy of ambient temperature measurement.
Embodiment two
In the present embodiment two, the corresponding relation among the embodiment one is divided into two kinds of corresponding relations of more refinement, and the method for measures ambient temperature is provided based on these two kinds of corresponding relations.
In the present embodiment two, measure by a large amount of in advance, set first corresponding relation of first measured value, second measured value and actual environment temperature value, also set second corresponding relation of second measured value, actual environment temperature value and corrected value.
Enumerate an example that preestablishes first corresponding relation and second corresponding relation below, in this example, only consider the temperature of the inner main thermal source of portable terminal, for example the temperature of central processing unit.
It is 0 degree that portable terminal is in the actual environment temperature, 5 degree, 10 degree, 15 degree, 20 degree, 25 degree, in 30 environment of spending, be 25 degree based on portable terminal center of inside temperature of processor respectively, 30 degree, 35 degree, 40 degree, 45 degree, 50 degree, 55 degree, 60 degree, 65 degree, 70 degree, 75 degree, the situation of 80 degree and 85 degree, environment temperature is measured, obtain 91 first measured values, can set first measured value thus, first corresponding relation of second measured value and actual environment temperature value, and then each first measured value residing actual environment temperature value of portable terminal when drawing this first measured value subtracted each other, draw corresponding corrected value, can set second measured value thus, second corresponding relation of actual environment temperature value and corrected value.
Following table 2 provides first corresponding relation of setting, and wherein transverse axis represents the portable terminal central processor temperature, and the longitudinal axis represents the actual environment temperature, and center section is each first measured value that portable terminal obtains.
Table 2
Following table 3 provides second corresponding relation of setting, and wherein transverse axis represents the portable terminal central processor temperature, and the longitudinal axis represents the actual environment temperature, and center section is corrected value.
Table 3
The actual environment temperature that provides in the above example and portable terminal central processor temperature are only given an example for a kind of, according to demands of applications, can set other temperature values, for example setting the portable terminal central processor temperature is the interval with 1 degree, when setting first corresponding relation and second corresponding relation, needs are measured more first measured value like this.
Fig. 2 is the method flow diagram of measures ambient temperature in the embodiment of the invention two, and this flow process comprises:
Step 21: obtain current mobile terminal to first measured value of environment temperature, and portable terminal to second measured value of internal heat resource;
Step 22: according to first corresponding relation of predefined first measured value, second measured value and environment actual temperature value, determine an above array of being formed by second measured value and environment actual temperature value of the first measured value correspondence obtained;
Step 23: in all arrays of determining, search the array that comprises second measured value that obtains;
Step 24: according to second corresponding relation of predefined second measured value, environment actual temperature value and corrected value, determine the corrected value of the array correspondence that finds out.
Step 25: deduct the corrected value of determining with first measured value that obtains, obtain ambient temperature measurement value.
As optional embodiment, in above-mentioned steps 22, can be in first corresponding relation, search first measured value identical or close with first measured value that obtains, determine an above array of being formed by second measured value and actual environment temperature value of the first measured value correspondence that finds out then.
As optional embodiment, in above-mentioned steps 23, find out the array that comprises second measured value that obtains if surpass, search the array that comprises second measured value close with second measured value that obtains;
Suppose that in above-mentioned steps 21 first measured value that obtains is 23 degree, second measured value that obtains is 65 degree.In above-mentioned steps 22, based on first corresponding relation as shown in table 2, determine that the array of first measured value, 23 correspondences obtained is (35,20), (60,15) and (80,10).In above-mentioned steps 23, based on second corresponding relation as shown in table 3, determining to comprise in second corresponding relation with second measured value, the 65 immediate arrays of obtaining is (65,15).In above-mentioned steps 24, based on the array of determining in the step 23 (65,15), determine that corresponding corrected value is 9.In above-mentioned steps 25, deduct the corrected value of determining 9 with first measured value 23 that obtains, drawing ambient temperature measurement value is 14.
As optional embodiment, also can consider the temperature of the inner multiple thermal source of portable terminal in the present embodiment two, for example consider central processor temperature and power module temperature simultaneously, this moment is when preestablishing first corresponding relation and second corresponding relation, when portable terminal is measured each first measured value, based on difference second measured value both comprised second measured value of indicating central processor temperature, also comprise second measured value of indication power module temperature.For example only listed central processor temperature in the table 2 at present, consider at the same time under the situation of central processor temperature and power module temperature, also need list the power module temperature in the table 2, transverse axis in the table 2 can be set to the combination of central processor temperature and power module temperature at this moment, for example fill in (25 in first lattice of transverse axis, 25), fill in (30 in second lattice, 25) etc., can list the multiple combination of central processor temperature and power module temperature in the transverse axis, this moment, portable terminal needed based on the various combination of central processor temperature and power module temperature environment temperature to be measured, thereby draws first measured value when first corresponding relation is set.
In sum, measure by a large amount of in advance in the present embodiment two, form first measured value, first corresponding relation of second measured value and actual environment temperature value, and second measured value, second corresponding relation of actual environment temperature value and corrected value, in follow-up method flow, after obtaining first measured value and second measured value of portable terminal to internal heat resource of current mobile terminal to environment temperature, can determine corresponding corrected value by tabling look-up, the corrected value that recycling is determined is proofreaied and correct first measured value that obtains, can reduce the temperature of portable terminal internal heat resource thus to the influence of ambient temperature measurement, improve the accuracy of ambient temperature measurement.
Embodiment three
Fig. 3 is the structural representation of the device of measures ambient temperature in the embodiment of the invention three, and this device comprises: acquiring unit 31, determining unit 32 and correcting unit 33.
Acquiring unit 31, be used for obtaining portable terminal to first measured value of environment temperature, and portable terminal to second measured value of internal heat resource.
Determining unit 32 is used for the corresponding relation according to predefined first measured value and corrected value, determines first measured value that obtains and the corrected value of the second measured value correspondence.Each first measured value in the corresponding relation here, be in by portable terminal under the different actual environment temperature of setting and based on the portable terminal internal heat resource temperature of difference second measured value indication of setting environment temperature measured, each corrected value in the described corresponding relation, residing actual environment temperature value draws when being deducted portable terminal and drawn this first measured value by first measured value of correspondence.
Correcting unit 33 is used for deducting the corrected value of determining with first measured value that obtains, and obtains ambient temperature measurement value.
As optional embodiment, determining unit 32 comprises: first searches module 321, second searches module 322 and determination module 323.
First searches module 321, in the corresponding relation of predefined first measured value and corrected value, searches first measured value identical or close with first measured value that obtains.
Second searches module 322, is used for the corresponding relation at predefined first measured value and corrected value, searches second measured value identical or close with second measured value that obtains.
Determination module 323 is for first measured value of determining to find out and the corrected value of the second measured value correspondence.
Predefined corresponding relation in the present embodiment three with identical described in the embodiment one, repeats no more here.
Embodiment four
Fig. 4 is the structural representation of the device of measures ambient temperature in the embodiment of the invention four, and this device comprises: acquiring unit 41, determining unit 42 and correcting unit 43.
Acquiring unit 41, be used for obtaining portable terminal to first measured value of environment temperature, and portable terminal to second measured value of internal heat resource.
Determining unit 42 comprises: first determination module 421, search module 422 and second determination module 423.
First determination module 421 is used for first corresponding relation according to predefined first measured value, second measured value and actual environment temperature value, determines the array of being made up of second measured value and actual environment temperature of the first measured value correspondence obtained.
As optional embodiment, first determination module 421 comprises: search submodule and definite submodule.Wherein, search first corresponding relation that submodule is used for predefined first measured value, second measured value and actual environment temperature value, search first measured value identical or close with first measured value that obtains, determine that submodule is used to determine an above array of being made up of second measured value and actual environment temperature value of the first measured value correspondence that finds out.
Search module 422, be used for searching the array that comprises second measured value that obtains in all arrays of determining.
As optional embodiment, search module 422 when not finding out the array that comprises second measured value that obtains, the array of searching immediate second measured value of second measured value that comprises and obtain.
Second determination module 423 is used for second corresponding relation according to predefined second measured value, actual environment temperature value and corrected value, determines the corrected value of the array correspondence that finds out.
Correcting unit 43 is used for deducting the corrected value of determining with first measured value that obtains, and obtains ambient temperature measurement value.
First corresponding relation in the present embodiment four and second corresponding relation, identical with described in the embodiment two repeats no more here.
Need to prove: the device of the measures ambient temperature that above-described embodiment provides, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is that the preferable of the embodiment of the invention given an example; not in order to limit the embodiment of the invention; all within the spirit and principle of the embodiment of the invention, any modification of doing, be equal to replacement, improvement etc., all should be included within the protection domain of the embodiment of the invention.