Summary of the invention
The embodiment of the present invention provides method and the device of measures ambient temperature, can consider the impact of mobile terminal internal heat resource, corrects the environment temperature that mobile terminal is measured, and improves the accuracy of ambient temperature measurement.
The embodiment of the present invention provides a kind of method of measures ambient temperature, and the method comprises:
Obtain current mobile terminal to the first measured value of environment temperature and described mobile terminal to the second measured value of internal heat resource;
The first measured value that first measured value of Search and acquirement is identical or close in corresponding relation;
The second measured value that second measured value of Search and acquirement is identical or close in described corresponding relation;
Determine described first measured value that finds out and corrected value corresponding to described second measured value found out;
Deduct the described corrected value determined with the first measured value of described acquisition, obtain ambient temperature measurement value;
Wherein, each first measured value in described corresponding relation, carry out measurement to environment temperature be in the different actual environment temperature of setting by described mobile terminal under and based on the mobile terminal internal heat resource temperature of the difference second measured value instruction of setting to draw, each corrected value in described corresponding relation, deducts residing actual environment temperature value when described mobile terminal draws this first measured value by the first measured value of correspondence and draws.
The embodiment of the present invention provides a kind of method of measures ambient temperature, and the method comprises:
Obtain current mobile terminal to the first measured value of environment temperature and described mobile terminal to the second measured value of internal heat resource;
According to the first corresponding relation of the first measured value preset, the second measured value and actual environment temperature value, determine more than one array be made up of the second measured value and actual environment temperature value that the first measured value of acquisition is corresponding;
The array of the second measured value comprising acquisition is searched in all arrays determined;
According to the second corresponding relation of the second measured value preset, actual environment temperature value and corrected value, determine the corrected value that the array that finds out is corresponding;
Deduct the described corrected value determined with the first measured value of described acquisition, obtain ambient temperature measurement value;
Wherein, each first measured value in described first corresponding relation, carry out measurement to environment temperature be in the different actual environment temperature of setting by described mobile terminal under and based on the mobile terminal internal heat resource temperature of the difference second measured value instruction of setting to draw, each corrected value in described second corresponding relation, deducts residing actual environment temperature value when described mobile terminal draws this first measured value by the first measured value of correspondence and draws.
The embodiment of the present invention provides a kind of device of measures ambient temperature, and this device comprises:
Acquiring unit, for obtaining mobile terminal to the first measured value of environment temperature and mobile terminal to the second measured value of internal heat resource;
Determining unit, for according to the first measured value of presetting corresponding relation with corrected value, determines the first measured value of acquisition and corrected value corresponding to the second measured value;
Correcting unit, for deducting the described corrected value determined with the first measured value of described acquisition, obtains ambient temperature measurement value;
Wherein, each first measured value in described corresponding relation, carry out measurement to environment temperature be in the different actual environment temperature of setting by described mobile terminal under and based on the mobile terminal internal heat resource temperature of the difference second measured value instruction of setting to draw, each corrected value in described corresponding relation, deducts residing actual environment temperature value when described mobile terminal draws this first measured value by the first measured value of correspondence and draws;
Described determining unit comprises:
First searches module, in the corresponding relation of the first measured value preset and corrected value, searches first measured value identical or close with the first measured value of described acquisition;
Second searches module, in the corresponding relation of the first measured value preset and corrected value, searches second measured value identical or close with the second measured value of described acquisition;
Determination module, for determining described first measured value that finds out and corrected value corresponding to described second measured value found out.
The embodiment of the present invention provides a kind of device of measures ambient temperature, and this device comprises:
Acquiring unit, for obtaining mobile terminal to the first measured value of environment temperature and described mobile terminal to the second measured value of internal heat resource;
Determining unit, for the corresponding relation according to the first measured value of presetting and corrected value, determines the first measured value of described acquisition and corrected value corresponding to described second measured value;
Correcting unit, for deducting the described corrected value determined with the first measured value of described acquisition, obtains ambient temperature measurement value;
Wherein, each first measured value in described corresponding relation, carry out measurement to environment temperature be in the different actual environment temperature of setting by described mobile terminal under and based on the mobile terminal internal heat resource temperature of the difference second measured value instruction of setting to draw, each corrected value in described corresponding relation, deducts residing actual environment temperature value when described mobile terminal draws this first measured value by the first measured value of correspondence and draws;
Described determining unit comprises:
First determination module, for the first corresponding relation according to the first measured value, the second measured value and the actual environment temperature value that preset, determines the array be made up of described second measured value and actual environment temperature that the first measured value of described acquisition is corresponding;
Search module, for searching the array of the second measured value comprising described acquisition in all arrays determined;
Second determination module, for according to the second corresponding relation of the second measured value, actual environment temperature value and corrected value preset, determines the corrected value that the array that finds out is corresponding.
Visible, the corresponding relation of the first measured value, the second measured value and corrected value is preset in the embodiment of the present invention, obtain current mobile terminal to the first measured value of environment temperature and mobile terminal to after the second measured value of internal heat resource, corresponding corrected value can be determined by tabling look-up, recycle the corrected value determined to correct the first measured value obtained, the impact of temperature on ambient temperature measurement of mobile terminal internal heat resource can be reduced thus, improve the accuracy of ambient temperature measurement.
Embodiment
In order to make the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail, obviously, described embodiment is only the citing of embodiment of the present invention some, instead of whole citings.Based on the content that the embodiment of the present invention describes, those of ordinary skill in the art are not making other contents all obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
Embodiment one
In the present embodiment one, measured by a large amount of in advance, set the corresponding relation of the first measured value, the second measured value and corrected value, for subsequent processes flow process, wherein the first measured value indicative for environments temperature, the second measured value indicating mobile terminal internal heat resource temperature.
Each first measured value in above-mentioned corresponding relation, that the mobile terminal internal heat resource temperature indicated under being in the different actual environment temperature of setting by mobile terminal and based on difference second measured value of setting draws environment temperature measurement, each corrected value in this corresponding relation deducts residing actual environment temperature value when mobile terminal draws this first measured value by the first measured value of correspondence to draw.
The thermal source of mobile terminal inside has central processing unit and power module etc., in the present embodiment one, when presetting corresponding relation, only can consider the temperature of wherein a kind of main heating source.Enumerate the example that presets corresponding relation below, in this example, only consider the temperature of the inner a kind of main heating source of mobile terminal, the temperature of such as central processing unit.
It is in the environment of 0 degree, 5 degree, 10 degree, 15 degree, 20 degree, 25 degree and 30 degree that mobile terminal is in actual environment temperature, 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 respectively based on mobile terminal center of inside temperature of processor, environment temperature is measured, obtain 91 the first measured values, and then by each first measured value and when drawing this first measured value, residing actual environment temperature value subtracts each other, and obtains corresponding corrected value.
As the corrected value that following table 1 provides, that to be in actual environment temperature be in the environment of 25 degree to mobile terminal, 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 respectively based on mobile terminal central processor temperature, obtain after environment temperature is measured.When actual environment temperature is other values, also can obtains corresponding corrected value, all corrected values be gathered, complete corresponding relation can be obtained, for subsequent processes flow process.
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 provided in above example and mobile terminal central processor temperature are only a kind of citing, according to the demand of application, other temperature values can be set, such as set mobile terminal central processor temperature with 1 degree for interval, like this when setting corresponding relation, needs measurement is obtained more first measured value.
Fig. 1 is the method flow diagram of measures ambient temperature in the embodiment of the present invention one, and this flow process comprises:
Step 11: obtain current mobile terminal to the first measured value of environment temperature and mobile terminal to the second measured value of internal heat resource;
Step 12: according to the corresponding relation of the first measured value preset, the second measured value and corrected value, determines the first measured value of obtaining and corrected value corresponding to the second measured value;
Step 13: deduct with the first measured value obtained the corrected value determined, obtain ambient temperature measurement value.
In above-mentioned steps 11, the temperature sensor based on sense ambient temperature in mobile terminal can obtain the first measured value, obtains the second measured value based on the temperature sensor sensing internal heat resource temperature in mobile terminal.
In above-mentioned steps 12, based on the corresponding relation preset, the first measured value of obtaining and corrected value corresponding to the second measured value can be determined.Suppose that the first measured value obtained in step 11 is 28, the second measured value of acquisition 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 the first measured value not identical with the first measured value obtained in step 11 in table 1, then can close the first measured value of the first measured value of Search and acquirement, if the second measured value not identical with the second measured value obtained in step 11 in table 1, then can close the second measured value of the second measured value of Search and acquirement, and then determine the first measured value of finding out and corrected value corresponding to the second measured value.The first measured value such as supposing to obtain in step 11 is the 29, second measured value is 41, then still select the first measured value to be 28 when tabling look-up, the corrected value 3 of the second measured value corresponding to 40.Tackle the another kind of settling mode of this special circumstances, be when presetting corresponding relation, the interval of the second measured value is diminished, such as, become and be spaced apart 1, such needs measurement obtains more first measured value, can provide more reference data thus for searching of execution in step 12.
In above-mentioned steps 13, suppose that the first measured value obtained in step 11 is 28 and the corrected value determined in step 12 is 3, then obtaining the ambient temperature measurement value after correcting is 25.
As optional embodiment, also the temperature of the inner various heating sources of mobile terminal can be considered in the present embodiment one, such as consider central processor temperature and power module temperature simultaneously, now in the process presetting corresponding relation, when mobile terminal measures each first measured value, based on difference second measured value both comprised the second measured value of instruction central processor temperature, also comprise the second measured value of instruction power module temperature.The second measured value instruction central processor temperature such as at present shown in table 1, when considering central processor temperature and power module temperature at the same time, second measured value of a row instruction power module temperature will be had more in table 1, based on such corresponding relation, when manner of execution flow process, first the first current measured value is obtained, second measured value of instruction central processor temperature and the second measured value of instruction power module temperature, then in the corresponding relation preset, search the first measured value of acquisition and the corrected value corresponding to the second measured value, finally deduct with the first measured value obtained the corrected value determined, draw environment measurement temperature.
In sum, measured by a large amount of in advance in the present embodiment one, form the corresponding relation of the first measured value, the second measured value and corrected value, in follow-up method flow, obtain current mobile terminal to the first measured value of environment temperature and mobile terminal to after the second measured value of inner heat source temperature, corresponding corrected value can be determined by tabling look-up, recycle the corrected value determined to correct the first measured value obtained, the impact of temperature on ambient temperature measurement of mobile terminal internal heat resource can be reduced thus, improve the accuracy of ambient temperature measurement.
Embodiment two
In the present embodiment two, the corresponding relation in embodiment one is divided into two kinds of corresponding relations of more refinement, and provides the method for measures ambient temperature based on these two kinds of corresponding relations.
In the present embodiment two, measured by a large amount of in advance, set the first corresponding relation of the first measured value, the second measured value and actual environment temperature value, also set the second corresponding relation of the second measured value, actual environment temperature value and corrected value.
Enumerate the example that presets the first corresponding relation and the second corresponding relation below, in this example, only consider the temperature of the inner main heating source of mobile terminal, the temperature of such as central processing unit.
It is 0 degree that mobile terminal is in actual environment temperature, 5 degree, 10 degree, 15 degree, 20 degree, 25 degree, with in the environment of 30 degree, it is 25 degree based on mobile 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 the first measured values, the first measured value can be set thus, first corresponding relation of the second measured value and actual environment temperature value, and then the actual environment temperature value by each first measured value and when drawing this first measured value residing for mobile terminal subtracts each other, draw corresponding corrected value, the second measured value can be set thus, second corresponding relation of actual environment temperature value and corrected value.
Following table 2 provides the first corresponding relation of setting, and wherein transverse axis represents mobile terminal central processor temperature, and the longitudinal axis represents actual environment temperature, and center section is each first measured value that mobile terminal obtains.
Table 2
Following table 3 provides the second corresponding relation of setting, and wherein transverse axis represents mobile terminal central processor temperature, and the longitudinal axis represents actual environment temperature, and center section is corrected value.
Table 3
The actual environment temperature provided in above example and mobile terminal central processor temperature are only a kind of citing, according to the demand of application, other temperature values can be set, such as set mobile terminal central processor temperature with 1 degree for interval, like this when setting first corresponding relation and the second corresponding relation, needs measurement is obtained more first measured value.
Fig. 2 is the method flow diagram of measures ambient temperature in the embodiment of the present invention two, and this flow process comprises:
Step 21: obtain current mobile terminal to the first measured value of environment temperature and mobile terminal to the second measured value of internal heat resource;
Step 22: according to the first corresponding relation of the first measured value preset, the second measured value and environment actual temperature value, determines more than one array be made up of the second measured value and environment actual temperature value that the first measured value of acquisition is corresponding;
Step 23: the array of searching the second measured value comprising acquisition in all arrays determined;
Step 24: according to the second corresponding relation of the second measured value preset, environment actual temperature value and corrected value, determines the corrected value that the array that finds out is corresponding.
Step 25: deduct with the first measured value obtained the corrected value determined, obtain ambient temperature measurement value.
As optional embodiment, in above-mentioned steps 22, can in the first corresponding relation, the first measured value that first measured value of Search and acquirement is identical or close, then determines more than one array be made up of the second measured value and actual environment temperature value that the first measured value of finding out is corresponding.
As optional embodiment, in above-mentioned steps 23, if the not super array finding out the second measured value comprising acquisition, search the array comprising second measured value close with the second measured value obtained;
Suppose in above-mentioned steps 21, the first measured value of acquisition is 23 degree, and the second measured value of acquisition is 65 degree.In above-mentioned steps 22, based on the first corresponding relation as shown in table 2, determine that the array of the first measured value 23 correspondence obtained is for (35,20), (60,15) and (80,10).In above-mentioned steps 23, based on the second corresponding relation as shown in table 3, determining to comprise in the second corresponding relation with the immediate array of the second measured value 65 obtained is (65,15).In above-mentioned steps 24, based on the array determined in step 23 (65,15), determine that corresponding corrected value is 9.In above-mentioned steps 25, deduct with the first measured value 23 obtained the corrected value 9 determined, show that ambient temperature measurement value is 14.
As optional embodiment, also the temperature of the inner various heating sources of mobile terminal can be considered in the present embodiment two, such as consider central processor temperature and power module temperature simultaneously, now when presetting the first corresponding relation and the second corresponding relation, when mobile terminal measures each first measured value, based on difference second measured value both comprised the second measured value of instruction central processor temperature, also comprise the second measured value of instruction power module temperature.Such as, only list central processor temperature in current table 2, when considering central processor temperature and power module temperature at the same time, also need in table 2 to list power module temperature, transverse axis now in table 2 can be set to the combination of central processor temperature and power module temperature, such as, fill in (25 in the first lattice of transverse axis, 25), (30 are filled in second lattice, 25) etc., the multiple combination of central processor temperature and power module temperature can be listed in transverse axis, now when arranging the first corresponding relation, mobile terminal need be measured environment temperature based on the various combination of central processor temperature and power module temperature, thus draw the first measured value.
In sum, measured by a large amount of in advance in the present embodiment two, form the first measured value, first corresponding relation of the 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, obtain current mobile terminal to the first measured value of environment temperature and mobile terminal to after the second measured value of internal heat resource, corresponding corrected value can be determined by tabling look-up, recycle the corrected value determined to correct the first measured value obtained, the impact of temperature on ambient temperature measurement of mobile terminal internal heat resource can be reduced thus, 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 present invention three, and this device comprises: acquiring unit 31, determining unit 32 and correcting unit 33.
Acquiring unit 31, for obtaining mobile terminal to the first measured value of environment temperature and mobile terminal to the second measured value of internal heat resource.
Determining unit 32, for according to the first measured value of presetting corresponding relation with corrected value, determines the first measured value of acquisition and corrected value corresponding to the second measured value.Here each first measured value in corresponding relation, carry out measurement to environment temperature be in the different actual environment temperature of setting by mobile terminal under and based on the mobile terminal internal heat resource temperature of the difference second measured value instruction of setting to draw, each corrected value in described corresponding relation, deducts residing actual environment temperature value when mobile terminal draws this first measured value by the first measured value of correspondence and draws.
Correcting unit 33, for deducting with the first measured value obtained the corrected value determined, 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 the first measured value preset and corrected value, and the first measured value that the first measured value of Search and acquirement is identical or close.
Second searches module 322, in the corresponding relation of the first measured value preset and corrected value, and the second measured value that the second measured value of Search and acquirement is identical or close.
Determination module 323, for determining the first measured value of finding out and corrected value corresponding to the second measured value.
The corresponding relation preset in the present embodiment three, identical with described in embodiment one, repeat no more here.
Embodiment four
Fig. 4 is the structural representation of the device of measures ambient temperature in the embodiment of the present invention four, and this device comprises: acquiring unit 41, determining unit 42 and correcting unit 43.
Acquiring unit 41, for obtaining mobile terminal to the first measured value of environment temperature and mobile terminal to the second measured value of internal heat resource.
Determining unit 42 comprises: the first determination module 421, search module 422 and the second determination module 423.
First determination module 421, for the first corresponding relation according to the first measured value, the second measured value and the actual environment temperature value that preset, determines the array be made up of the second measured value and actual environment temperature that the first measured value of acquisition is corresponding.
As optional embodiment, the first determination module 421 comprises: search submodule and determine submodule.Wherein, search submodule in the first corresponding relation of the first measured value, the second measured value and actual environment temperature value of presetting, the first measured value that first measured value of Search and acquirement is identical or close, determines that submodule is for determining more than one array be made up of the second measured value and actual environment temperature value that the first measured value of finding out is corresponding.
Search module 422, for searching the array of the second measured value comprising acquisition in all arrays determined.
As optional embodiment, search module 422 when not finding out the array of the second measured value comprising acquisition, search the array comprised with immediate second measured value of the second measured value obtained.
Second determination module 423, for according to the second corresponding relation of the second measured value, actual environment temperature value and corrected value preset, determines the corrected value that the array that finds out is corresponding.
Correcting unit 43, for deducting with the first measured value obtained the corrected value determined, obtains ambient temperature measurement value.
The first corresponding relation in the present embodiment four and the second corresponding relation, identical with described in embodiment two, repeats no more here.
It should be noted that: the device of the measures ambient temperature that above-described embodiment provides, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by equipment is divided into different functional modules, to complete all or part of function described above.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only the better citing of the embodiment of the present invention; not in order to limit the embodiment of the present invention; within all spirit in the embodiment of the present invention and principle, any amendment done, equivalent replacement, improvement etc., within the protection domain that all should be included in the embodiment of the present invention.