CN108965606A - Determine the method and device of environment temperature - Google Patents
Determine the method and device of environment temperature Download PDFInfo
- Publication number
- CN108965606A CN108965606A CN201810962733.1A CN201810962733A CN108965606A CN 108965606 A CN108965606 A CN 108965606A CN 201810962733 A CN201810962733 A CN 201810962733A CN 108965606 A CN108965606 A CN 108965606A
- Authority
- CN
- China
- Prior art keywords
- terminal
- battery
- temperature value
- real
- sensor
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/48—Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
- H01M10/486—Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte for measuring temperature
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Abstract
The disclosure provides a kind of method and device of determining environment temperature, wherein the described method includes: obtaining real-time temperature values corresponding at least one sensor in the terminal when the battery status for detecting terminal changes;According to real-time temperature values corresponding at least one described sensor, ambient temperature value corresponding when the battery status of the terminal changes is determined.The disclosure can determine ambient temperature value corresponding when the battery status of terminal changes, to more effectively analyze environment temperature on influence caused by terminal power consumption, so that the analysis result to terminal power consumption is more accurate.
Description
Technical field
This disclosure relates to field of terminal, more particularly to determine the method and device of environment temperature.
Background technique
With the continuous development of mobile communication technology, terminal using more more and more universal, how analysing terminal power consumption it is former
Cause carries out power consumption optimization and has become a hot research project.
It in the related art, can be according to the temperature change of the battery of terminal come the power consumption reason of analysing terminal.But only
The power consumption analysis that terminal is carried out according to the temperature of the battery of terminal, it is not accurate enough to will cause analysis result.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides the method and dress of a kind of determining environment temperature
It sets.
According to the first aspect of the embodiments of the present disclosure, a kind of method of determining environment temperature is provided, which comprises
When the battery status for detecting terminal changes, obtain in the terminal corresponding at least one sensor
Real-time temperature values;
According to real-time temperature values corresponding at least one described sensor, determine that the battery status of the terminal changes
Corresponding ambient temperature value when change.
Optionally, the battery status for detecting terminal changes, and includes at least one of the following:
Detect that the electricity percentage of the battery of terminal changes;
Detect that the battery temperature value of the battery of terminal changes;
Detect that the health status of the battery of terminal changes;
The charged state or discharge condition for detecting the battery of terminal change.
It is optionally, described to obtain real-time temperature values corresponding at least one sensor in the terminal, comprising:
Within the period of preset number, at least one sensor recorded in the default node in the terminal is obtained respectively
In the real-time temperature values in each period.
Optionally, real-time temperature values corresponding to described at least one sensor according to, determine the electricity of the terminal
Pond state ambient temperature value corresponding when changing, comprising:
Within the period of preset number, if the difference of the real-time temperature values in any two period corresponding to current sensor
Value is less than preset threshold, then by the current sensor the last one period real-time temperature values alternately environment temperature
Value;
According to the alternative embodiments temperature value, environment temperature corresponding when the battery status of the terminal changes is determined
Angle value.
Optionally, described according to the alternative embodiments temperature value, determine that the battery status of the terminal changes when institute
Corresponding ambient temperature value, comprising:
It is corresponding when minimum value in the alternative embodiments temperature value is changed as the battery status of the terminal
Ambient temperature value;Or
The average value for calculating the alternative embodiments temperature value occurs the average value as the battery status of the terminal
Corresponding ambient temperature value when change.
Optionally, when the battery status of the determination terminal changes after corresponding ambient temperature value, institute
State method further include:
Export the battery information of the battery and the ambient temperature value when battery status of the terminal changes.
According to the second aspect of an embodiment of the present disclosure, a kind of device of determining environment temperature is provided, described device includes:
Real time temperature obtains module, is configured as obtaining the end when the battery status for detecting terminal changes
Real-time temperature values corresponding at least one sensor on end;
Environment temperature determining module is configured as the real-time temperature values according to corresponding at least one described sensor, really
The battery status of fixed terminal ambient temperature value corresponding when changing.
Optionally, it includes at least one following submodule that the real time temperature, which obtains module:
First detection sub-module is configured as detecting that the electricity percentage of the battery of terminal changes;
Second detection sub-module is configured as detecting that the battery temperature value of the battery of terminal changes;
Third detection sub-module is configured as detecting that the health status of the battery of terminal changes;
4th detection sub-module is configured as detecting that the charged state of the battery of terminal or discharge condition change.
Optionally, the real time temperature acquisition module includes:
Real time temperature acquisition submodule, was configured as within the period of preset number, obtained respectively pre- in the terminal
If at least one sensor recorded in node is in the real-time temperature values in each period.
Optionally, the environment temperature determining module includes:
First determines submodule, is configured as within the period of preset number, if any corresponding to current sensor
The difference of the real-time temperature values in two periods is less than preset threshold, then the current sensor is real-time in the last one period
Temperature value alternately ambient temperature value;
Second determines submodule, is configured as determining the battery status of the terminal according to the alternative embodiments temperature value
Corresponding ambient temperature value when changing.
Optionally, described second determine that submodule includes following any cell:
First determination unit is configured as using the minimum value in the alternative embodiments temperature value as the battery of the terminal
Corresponding ambient temperature value when state changes;
Second determination unit is configured as calculating the average value of the alternative embodiments temperature value, using the average value as
The battery status of terminal ambient temperature value corresponding when changing.
Optionally, described device further include:
Output module, be configured as exporting when the battery status of the terminal changes the battery information of the battery and
The ambient temperature value.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, the storage medium is deposited
Contain computer program, the method that the computer program is used to execute determination environment temperature described in above-mentioned first aspect.
According to a fourth aspect of embodiments of the present disclosure, a kind of device of determining environment temperature is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the battery status for detecting terminal changes, obtain in the terminal corresponding at least one sensor
Real-time temperature values;
According to real-time temperature values corresponding at least one described sensor, determine that the battery status of the terminal changes
Corresponding ambient temperature value when change.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure, if detecting that the battery status of terminal changes, can according in terminal at least
Real-time temperature values corresponding to one sensor, come environment temperature corresponding when determining that the battery status of terminal changes.
In the embodiments of the present disclosure, ambient temperature value corresponding when the battery status of terminal changes can be determined, to more have
The analysis environment temperature of effect is on influence caused by terminal power consumption, so that the analysis result to terminal power consumption is more accurate.
In the embodiment of the present disclosure, it is alternatively possible in the electricity percentage for the battery for detecting terminal, battery temperature value,
When health status and any one of charged state or discharge condition change, determine that the battery status of terminal changes
Become.When so that free position change occurring for battery, terminal automatically determines corresponding ambient temperature value, so as to more effective
Analysis environment temperature on influence caused by terminal power consumption.
In the embodiment of the present disclosure, within the period of preset number, it can obtain respectively in the default node in the terminal
Real-time temperature values of at least one sensor of record in each period.The embodiment of the present disclosure is by existing at least one sensor
The real-time temperature values in each period are analyzed, and more accurately determine environment temperature corresponding when battery status changes
Value, availability are high.
In the embodiment of the present disclosure, within the period of preset number, if any two period corresponding to current sensor
The difference of interior real-time temperature values be less than preset threshold, then by the current sensor the last one period real-time temperature values
Alternately ambient temperature value.It is possible to further determine the battery status of the terminal according to the alternative embodiments temperature value
Corresponding ambient temperature value when changing.By the above process, can filter out sensor and be abnormal leads to sensor
The case where real-time temperature values change greatly, so that finally determining ambient temperature value is more accurate.
In the embodiment of the present disclosure, it can change the minimum value in alternative embodiments temperature value as the battery status of terminal
Corresponding ambient temperature value when change, or the average value of alternative embodiments temperature value is calculated, using the average value as terminal
Corresponding ambient temperature value when battery status changes.The above process makes the ambient temperature value finally determined more quasi-
Really, in the subsequent environment temperature that can more effectively analyze on influence caused by terminal power consumption, so that the analysis to terminal power consumption
As a result more accurate.
In the embodiment of the present disclosure, the battery of the battery status that terminal can export terminal battery when changing
Information and corresponding ambient temperature value.It is more quasi- so as to preferably analyze environment temperature to influence caused by terminal power consumption
Temperature control strategy really is formulated, power consumption optimization is carried out, promotes user to the usage experience of terminal.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of method flow diagram of determining environment temperature shown according to an exemplary embodiment.
Fig. 2A and Fig. 2 B is the schematic diagram of a scenario of determining environment temperature shown according to an exemplary embodiment.
Fig. 3 is another method flow diagram for determining environment temperature shown according to an exemplary embodiment.
Fig. 4 is another method flow diagram for determining environment temperature shown according to an exemplary embodiment.
Fig. 5 A and Fig. 5 B are the schematic diagram of a scenario of determining environment temperature shown according to an exemplary embodiment.
Fig. 6 is a kind of device block diagram of determining environment temperature shown according to an exemplary embodiment.
Fig. 7 is another device block diagram for determining environment temperature shown according to an exemplary embodiment.
Fig. 8 is another device block diagram for determining environment temperature shown according to an exemplary embodiment.
Fig. 9 is another device block diagram for determining environment temperature shown according to an exemplary embodiment.
Figure 10 is another device block diagram for determining environment temperature shown according to an exemplary embodiment.
Figure 11 is another device block diagram for determining environment temperature shown according to an exemplary embodiment.
Figure 12 is that the disclosure is shown according to an exemplary embodiment a kind of for determining a knot of the device of environment temperature
Structure schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term of disclosure operation.
The "an" of the singular run in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless the context clearly indicates other meaning.It is also understood that the term "and/or" run herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, as run at this word " if " can be construed to " and ... when " or " when ...
When " or " in response to determination ".
A kind of method of determining environment temperature is provided in the embodiment of the present disclosure, can be used for terminal, for example, intelligent hand
Machine, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc..Shown in referring to Fig.1, Fig. 1 is
A kind of method flow diagram of determining environment temperature shown according to an exemplary embodiment, may comprise steps of:
In a step 101, when the battery status for detecting terminal changes, at least one biography in the terminal is obtained
Real-time temperature values corresponding to sensor;
In a step 102, the real-time temperature values according to corresponding at least one described sensor, determine the electricity of the terminal
Pond state ambient temperature value corresponding when changing.
It, can be according in terminal at least one if detecting that the battery status of terminal changes in above-described embodiment
Real-time temperature values corresponding to a sensor, come environment temperature corresponding when determining that the battery status of terminal changes.?
In the embodiment of the present disclosure, ambient temperature value corresponding when the battery status of terminal changes can be determined, thus more effectively
Analysis environment temperature on influence caused by terminal power consumption so that the analysis result to terminal power consumption is more accurate.
For above-mentioned steps 101, optionally, terminal can determine the electricity of terminal when detecting following any case
Pond state changes:
Detect that the electricity percentage of the battery of terminal changes;
Detect that the battery temperature value of the battery of terminal changes;
Detect that the health status of the battery of terminal changes;
The charged state or discharge condition for detecting the battery of terminal change.
Wherein, the electricity percentage of battery can be as shown in Figure 2 A, if terminal detects battery according to the relevant technologies
Electricity percentage changes, then terminal can determine that battery status changes.
In the related technology, battery temperature value will affect terminal power consumption, therefore, in the embodiment of the present disclosure, if terminal according to
The relevant technologies detect that battery temperature value changes, then equally determine that battery status changes.
The health status of battery can be as shown in Figure 2 B, including maximum capacity and peak performance capacity.Wherein, maximum capacity
It is the battery capacity for new battery, that is, battery life.Capacity is lower may cause charging after, battery use when
Between shorten.Peak performance capacity is whether battery supports normal peak performance, is determined whether to reduce the key of terminal frequency.
Terminal can be detected according to health status of the relevant technologies to battery, if health status changes, it is determined that battery
State changes.
In addition, terminal can carry out charged state or discharging headlamp according to the relevant technologies automatically, if detecting charging
State or discharge condition change, then equally determine that the battery status of terminal changes.
In this step, once terminal detects that battery status changes, then at least one sensing can be obtained automatically
Real-time temperature values corresponding to device.
It is alternatively possible to the method for creating the real-time temperature values for obtaining each sensor, such as create
checkEnvTem().Wherein, this method can create in the battery service (Battery Service) of terminal system,
It can create in individual application program (Application, App).Further, by this method preset number week
In phase, such as in 10 periods, at least one sensor recorded in the default node in the terminal is obtained respectively each
The real-time temperature values in period.The default node can be the sensible heat area node of terminal system, such as sys/class/
Thermal/thermal_Zone, real-time temperature values of the node meeting each sensor of periodic logging in each period.
In the embodiments of the present disclosure, sensor includes but is not limited to acceleration transducer (Accelerometer
Sensor), optical sensor (Light Sensor), pressure sensor (Pressure Sensor) and range sensor
(Proximity Sensor)。
For above-mentioned steps 102, optionally, as shown in figure 3, Fig. 3 is shown on the basis of embodiment according to Fig. 1
The method that another kind determines environment temperature, step 102 may include:
In step 102-1, within the period of preset number, if any two period corresponding to current sensor
The difference of real-time temperature values be less than preset threshold, then using the current sensor the last one period real-time temperature values as
Alternative embodiments temperature value;
In this step, within the period of preset number, such as in 10 periods, if any corresponding to current sensor
The difference of the real-time temperature values in two periods is less than preset threshold, and the preset threshold can be 5 degree, illustrate at current sensor
In normal condition, can by current sensor the last one period real-time temperature values alternately ambient temperature value.If
The difference of the real-time temperature values in any two period corresponding to current sensor is more than preset threshold, illustrates at current sensor
In abnormality, when determining alternative embodiments temperature value, without considering real-time temperature values corresponding to current sensor.
For example, four corresponding real-time temperature values of sensor such as 1 institute of table that terminal acquires respectively within 10 periods
Show.
Table 1
Wherein, sensor 2 is more than 5 degree there are the difference of the real-time temperature values in two periods, at this time it is considered that due to outer
The factors such as boundary's pressure make sensor 2 be in abnormality, to cause the real-time temperature values of sensor 2 that biggish change occurs
Change, then when determining backup temperature value, can not consider real-time temperature values corresponding to sensor 2.
Further, by table 1 can determine sensor 1, sensor 3 and sensor 4 within 10 periods, any two
The difference of the real-time temperature values in period is both less than 5 degree of preset threshold.Therefore, sensor 1, sensor 3 and sensor 4 are in normal
Working condition, can be by the real-time temperature values of sensor 1, sensor 3 and the last one the corresponding period of sensor 4 alternately
Ambient temperature value.It can determine to need by 21.6,22 and 23.8 alternately ambient temperature values by table 1.
In step 102-2, according to the alternative embodiments temperature value, when determining that the battery status of the terminal changes
Corresponding ambient temperature value.
Heat-conduction principle in the related technology is pointed out, as long as there is temperature between object or between the different piece of same object
It is poor to spend, and just has the generation of hot transport phenomenon, and will proceed to always temperature it is identical when until.In the embodiment of the present disclosure,
It can determine that institute is right when the battery status of the terminal changes based on the above principles, according to the alternative embodiments temperature value
The ambient temperature value answered.
In this step, it can determine that alternative embodiments temperature value is not less than ambient temperature value based on heat-conduction principle, therefore,
Terminal is corresponding when directly the minimum value in alternative embodiments temperature value can change as the battery status of the terminal
Ambient temperature value.
Such as by the minimum value 21.6 in alternative embodiments temperature value 21.6,22 and 23.8, the battery status as terminal is sent out
Corresponding ambient temperature value when raw change.
Alternatively, in view of the temperature in terminal between different sensors is different, it may occur that hot transport phenomenon is until not simultaneous interpretation
The temperature of sensor is identical, and therefore, the embodiment of the present disclosure summarizes the average value that can also calculate alternative embodiments temperature value, will be described flat
Mean value ambient temperature value corresponding when changing as the battery status of the terminal.
Such as calculating the average value of alternative embodiments temperature value 21.6,22 and 23.8 is 22.5, then it can be by 22.5 degree of conducts
Corresponding ambient temperature value when the battery status of terminal changes.
In above-described embodiment, within the period of preset number, if in any two period corresponding to current sensor
Real-time temperature values difference be less than preset threshold, then by the current sensor the last one period real-time temperature values make
For alternative embodiments temperature value.It is possible to further determine the battery status hair of the terminal according to the alternative embodiments temperature value
Corresponding ambient temperature value when raw change.By the above process, can filter out sensor and be abnormal causes sensor real
When temperature value the case where changing greatly so that finally determining ambient temperature value is more accurate.Can more effectively it divide subsequent
Environment temperature is analysed on influence caused by terminal power consumption, so that the analysis result to terminal power consumption is more accurate.
In one embodiment, as shown in figure 4, Fig. 4 is that the another kind shown on the basis of embodiment according to Fig. 1 determines
The method of environment temperature, after completing step 102, the above method can also include:
In step 103, the battery information of the battery and described is exported when the battery status of the terminal changes
Ambient temperature value.
In this step, terminal electricity when can change in default App according to the relevant technologies output battery status
The battery information in pond and the ambient temperature value, display is on a terminal screen.Or it can also be by the printing that is connect with terminal
Machine prints the battery information of the battery and the ambient temperature value when battery status changes according to the relevant technologies.
In the embodiment of the present disclosure, optionally, whether the battery information may include: battery status, plug-in, battery electricity
Time etc. after amount, battery operation state, cell voltage, battery temperature, battery technology, starting.Such as shown in Fig. 5 A.
In this step, terminal when battery status changes in addition to above-mentioned battery information can be exported, can also be simultaneously
Output environment temperature value, such as shown in Fig. 5 B.
Research staff can be when battery status changes, according between the battery information and ambient temperature value of output
Mapping relations are more accurately analyzed influence of the environment temperature to terminal power consumption and are done to more accurately formulate temperature control strategy
Good power consumption optimization, promotes user to the usage experience of terminal.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the disclosure is not limited by the described action sequence because according to the disclosure, certain
A little steps can be performed in other orders or simultaneously.
Secondly, those skilled in the art should also know that, embodiment described in this description belongs to alternative embodiment,
Necessary to the related actions and modules not necessarily disclosure.
Corresponding with aforementioned applications function realizing method embodiment, the disclosure additionally provides application function realization device and phase
The embodiment for the terminal answered.
Referring to a kind of Fig. 6 device block diagram of determining environment temperature shown according to an exemplary embodiment, described device packet
It includes:
Real time temperature obtains module 210, is configured as when the battery status for detecting terminal changes, described in acquisition
Real-time temperature values corresponding at least one sensor in terminal;
Environment temperature determining module 220 is configured as the real-time temperature values according to corresponding at least one described sensor,
Determine ambient temperature value corresponding when the battery status of the terminal changes.
It is shown in Fig. 6 referring to Fig. 7 another device block diagram for determining environment temperature shown according to an exemplary embodiment
On the basis of Installation practice, it includes at least one following submodule that the real time temperature, which obtains module 210:
First detection sub-module 211 is configured as detecting that the electricity percentage of the battery of terminal changes;
Second detection sub-module 212 is configured as detecting that the battery temperature value of the battery of terminal changes;
Third detection sub-module 213 is configured as detecting that the health status of the battery of terminal changes;
4th detection sub-module 214 is configured as detecting that the charged state of the battery of terminal or discharge condition change
Become.
It is shown in Fig. 6 referring to Fig. 8 another device block diagram for determining environment temperature shown according to an exemplary embodiment
On the basis of Installation practice, the real time temperature obtains module 210 and includes:
Real time temperature acquisition submodule 215, was configured as within the period of preset number, was obtained in the terminal respectively
Real-time temperature values of at least one sensor recorded in default node in each period.
It is shown in Fig. 8 referring to Fig. 9 another device block diagram for determining environment temperature shown according to an exemplary embodiment
On the basis of Installation practice, the environment temperature determining module 220 includes:
First determines submodule 221, is configured as within the period of preset number, if appointed corresponding to current sensor
Anticipate two periods real-time temperature values difference be less than preset threshold, then by the current sensor the last one period reality
When temperature value alternately ambient temperature value;
Second determines submodule 222, is configured as determining the battery shape of the terminal according to the alternative embodiments temperature value
Corresponding ambient temperature value when state changes.
The 0 another device block diagram for determining environment temperature shown according to an exemplary embodiment referring to Fig.1, in Fig. 9 institute
On the basis of showing device embodiment, described second determines that submodule 222 includes following any cell:
First determination unit 2221 is configured as using the minimum value in the alternative embodiments temperature value as the terminal
Corresponding ambient temperature value when battery status changes;
Second determination unit 2222 is configured as calculating the average value of the alternative embodiments temperature value, by the average value
Battery status as terminal ambient temperature value corresponding when changing.
The 1 another device block diagram for determining environment temperature shown according to an exemplary embodiment referring to Fig.1, in Fig. 6 institute
On the basis of showing device embodiment, described device further include:
Output module 230 is configured as exporting the battery letter of the battery when battery status of the terminal changes
Breath and the ambient temperature value.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein above-mentioned be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
Correspondingly, the embodiment of the present disclosure additionally provides a kind of computer readable storage medium, the storage medium is stored with
Computer program, the method that the computer program is used to execute any of the above-described determination environment temperature.
Correspondingly, the embodiment of the present disclosure additionally provides a kind of device of determining environment temperature, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the battery status for detecting terminal changes, obtain in the terminal corresponding at least one sensor
Real-time temperature values;
According to real-time temperature values corresponding at least one described sensor, determine that the battery status of the terminal changes
Corresponding ambient temperature value when change.
Figure 12 is a kind of structural schematic diagram of the device of determining environment temperature shown according to an exemplary embodiment.Such as figure
Shown in 12, a kind of device 1200 of determining environment temperature shown according to an exemplary embodiment, the device 1200 can be meter
Calculation machine, mobile phone, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building are set
It is standby, the clients such as personal digital assistant.
Referring to Fig.1 2, device 1200 may include following one or more components: processing component 1201, memory 1202,
Power supply module 1203, multimedia component 1204, audio component 1205, the interface 1206 of input/output (I/O), sensor module
1207 and communication component 1208.
The integrated operation of the usual control device 1200 of processing component 1201, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1201 may include one or more processors 1209 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1201 may include one or more moulds
Block, convenient for the interaction between processing component 1201 and other components.For example, processing component 1201 may include multi-media module,
To facilitate the interaction between multimedia component 1204 and processing component 1201.
Memory 1202 is configured as storing various types of data to support the operation in device 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1202 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1203 provides electric power for the various assemblies of device 1200.Power supply module 1203 may include power management
System, one or more power supplys and other generates, managees, and distributes the associated component of electric power with for device 1200.
Multimedia component 1204 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1204 includes a front camera and/or rear camera.When device 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1205 is configured as output and/or input audio signal.For example, audio component 1205 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1202 or via communication
Component 1208 is sent.In some embodiments, audio component 1205 further includes a loudspeaker, is used for output audio signal.
I/O interface 1206 provides interface, above-mentioned peripheral interface module between processing component 1201 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1207 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1207 can detecte the state that opens/closes of device 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1207 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Set 1200 temperature change.Sensor module 1207 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1207 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1208 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1208 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1208 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electron component are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1202 of instruction, above-metioned instruction can be executed by the processor 1209 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Wherein, when the instruction in the storage medium is executed by the processor, so that device 1200 is able to carry out
The method for stating determining environment temperature.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim point out.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.
Claims (14)
1. a kind of method of determining environment temperature, which is characterized in that the described method includes:
When the battery status for detecting terminal changes, obtain real-time corresponding at least one sensor in the terminal
Temperature value;
According to real-time temperature values corresponding at least one described sensor, when determining that the battery status of the terminal changes
Corresponding ambient temperature value.
2. being wrapped the method according to claim 1, wherein the battery status for detecting terminal changes
It includes at least one of following:
Detect that the electricity percentage of the battery of terminal changes;
Detect that the battery temperature value of the battery of terminal changes;
Detect that the health status of the battery of terminal changes;
The charged state or discharge condition for detecting the battery of terminal change.
3. the method according to claim 1, wherein at least one sensor institute is right in the acquisition terminal
The real-time temperature values answered, comprising:
Within the period of preset number, at least one sensor recorded in the default node in the terminal is obtained respectively every
The real-time temperature values in a period.
4. according to the method described in claim 3, it is characterized in that, reality corresponding to described at least one sensor according to
When temperature value, determine ambient temperature value corresponding when the battery status of the terminal changes, comprising:
Within the period of preset number, if the difference of the real-time temperature values in any two period corresponding to current sensor is small
In preset threshold, then by the current sensor the last one period real-time temperature values alternately ambient temperature value;
According to the alternative embodiments temperature value, environment temperature corresponding when the battery status of the terminal changes is determined
Value.
5. according to the method described in claim 4, it is characterized in that, described according to the alternative embodiments temperature value, determine described in
Corresponding ambient temperature value when the battery status of terminal changes, comprising:
Corresponding ring when minimum value in the alternative embodiments temperature value is changed as the battery status of the terminal
Border temperature value;Or
The average value for calculating the alternative embodiments temperature value, changes the average value as the battery status of the terminal
When corresponding ambient temperature value.
6. method according to claim 1-5, which is characterized in that the battery status of the determination terminal is sent out
When raw change after corresponding ambient temperature value, the method also includes:
Export the battery information of the battery and the ambient temperature value when battery status of the terminal changes.
7. a kind of device of determining environment temperature, which is characterized in that described device includes:
Real time temperature obtains module, is configured as obtaining in the terminal when the battery status for detecting terminal changes
Real-time temperature values corresponding at least one sensor;
Environment temperature determining module is configured as the real-time temperature values according to corresponding at least one described sensor, determines institute
State ambient temperature value corresponding when the battery status of terminal changes.
8. device according to claim 7, which is characterized in that the real time temperature obtain module include it is following at least one
Submodule:
First detection sub-module is configured as detecting that the electricity percentage of the battery of terminal changes;
Second detection sub-module is configured as detecting that the battery temperature value of the battery of terminal changes;
Third detection sub-module is configured as detecting that the health status of the battery of terminal changes;
4th detection sub-module is configured as detecting that the charged state of the battery of terminal or discharge condition change.
9. device according to claim 7, which is characterized in that the real time temperature obtains module and includes:
Real time temperature acquisition submodule, was configured as within the period of preset number, obtained the default section in the terminal respectively
Real-time temperature values of at least one sensor recorded in point in each period.
10. device according to claim 9, which is characterized in that the environment temperature determining module includes:
First determines submodule, is configured as within the period of preset number, if any two corresponding to current sensor
The difference of the real-time temperature values in period be less than preset threshold, then by the current sensor the last one period real time temperature
It is worth alternately ambient temperature value;
Second determines submodule, is configured as determining that the battery status of the terminal occurs according to the alternative embodiments temperature value
Corresponding ambient temperature value when change.
11. device according to claim 10, which is characterized in that described second determines that submodule includes following any list
Member:
First determination unit is configured as using the minimum value in the alternative embodiments temperature value as the battery status of the terminal
Corresponding ambient temperature value when changing;
Second determination unit is configured as calculating the average value of the alternative embodiments temperature value, using the average value as described in
Corresponding ambient temperature value when the battery status of terminal changes.
12. according to the described in any item devices of claim 7-11, which is characterized in that described device further include:
Output module is configured as exporting when the battery status of the terminal changes the battery information of the battery and described
Ambient temperature value.
13. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
The method that calculation machine program is used to execute any determination environment temperature of the claims 1-6.
14. a kind of device of determining environment temperature characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When the battery status for detecting terminal changes, obtain real-time corresponding at least one sensor in the terminal
Temperature value;
According to real-time temperature values corresponding at least one described sensor, when determining that the battery status of the terminal changes
Corresponding ambient temperature value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962733.1A CN108965606B (en) | 2018-08-22 | 2018-08-22 | Method and device for determining ambient temperature |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962733.1A CN108965606B (en) | 2018-08-22 | 2018-08-22 | Method and device for determining ambient temperature |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965606A true CN108965606A (en) | 2018-12-07 |
CN108965606B CN108965606B (en) | 2021-01-01 |
Family
ID=64473850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810962733.1A Active CN108965606B (en) | 2018-08-22 | 2018-08-22 | Method and device for determining ambient temperature |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965606B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111398827A (en) * | 2020-03-18 | 2020-07-10 | 珠海迈巨微电子有限责任公司 | Ambient temperature prediction method, battery temperature prediction method and electric quantity calculation method |
CN111947808A (en) * | 2020-09-16 | 2020-11-17 | 努比亚技术有限公司 | Body temperature detection method, mobile terminal and computer readable storage medium |
EP4087008A1 (en) * | 2021-05-06 | 2022-11-09 | Beijing Xiaomi Mobile Software Co., Ltd. | Determination method for battery state, electronic apparatus, and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010271286A (en) * | 2009-05-25 | 2010-12-02 | Mitsubishi Heavy Ind Ltd | Device and method of determining deterioration of battery, and program |
US20110119018A1 (en) * | 2009-11-19 | 2011-05-19 | Sony Ericsson Mobile Communications Ab | Estimation of ambient temperature |
CN105633498A (en) * | 2016-03-15 | 2016-06-01 | 北京小米移动软件有限公司 | Battery temperature detection method and device |
CN105890800A (en) * | 2016-03-30 | 2016-08-24 | 联想(北京)有限公司 | Electronic device, ambient temperature detection method and detection system |
CN105910725A (en) * | 2016-04-25 | 2016-08-31 | 惠州Tcl移动通信有限公司 | Temperature change detection method for environment of battery and temperature change detection device thereof |
CN106068461A (en) * | 2014-03-18 | 2016-11-02 | 株式会社东芝 | Deterioration estimation method, deterioration hypothetical system and deterioration estimating program |
CN107340068A (en) * | 2017-06-26 | 2017-11-10 | 青岛海信移动通信技术股份有限公司 | Utilize the method and terminal of temperature sensor measurement ambient temperature in terminal |
CN108152611A (en) * | 2017-11-22 | 2018-06-12 | 上海青橙实业有限公司 | The test method and test server of electric terminal |
CN108279384A (en) * | 2018-01-26 | 2018-07-13 | 北京小米移动软件有限公司 | Battery status information recording method and device |
-
2018
- 2018-08-22 CN CN201810962733.1A patent/CN108965606B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010271286A (en) * | 2009-05-25 | 2010-12-02 | Mitsubishi Heavy Ind Ltd | Device and method of determining deterioration of battery, and program |
US20110119018A1 (en) * | 2009-11-19 | 2011-05-19 | Sony Ericsson Mobile Communications Ab | Estimation of ambient temperature |
CN106068461A (en) * | 2014-03-18 | 2016-11-02 | 株式会社东芝 | Deterioration estimation method, deterioration hypothetical system and deterioration estimating program |
CN105633498A (en) * | 2016-03-15 | 2016-06-01 | 北京小米移动软件有限公司 | Battery temperature detection method and device |
CN105890800A (en) * | 2016-03-30 | 2016-08-24 | 联想(北京)有限公司 | Electronic device, ambient temperature detection method and detection system |
CN105910725A (en) * | 2016-04-25 | 2016-08-31 | 惠州Tcl移动通信有限公司 | Temperature change detection method for environment of battery and temperature change detection device thereof |
CN107340068A (en) * | 2017-06-26 | 2017-11-10 | 青岛海信移动通信技术股份有限公司 | Utilize the method and terminal of temperature sensor measurement ambient temperature in terminal |
CN108152611A (en) * | 2017-11-22 | 2018-06-12 | 上海青橙实业有限公司 | The test method and test server of electric terminal |
CN108279384A (en) * | 2018-01-26 | 2018-07-13 | 北京小米移动软件有限公司 | Battery status information recording method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111398827A (en) * | 2020-03-18 | 2020-07-10 | 珠海迈巨微电子有限责任公司 | Ambient temperature prediction method, battery temperature prediction method and electric quantity calculation method |
CN111947808A (en) * | 2020-09-16 | 2020-11-17 | 努比亚技术有限公司 | Body temperature detection method, mobile terminal and computer readable storage medium |
CN111947808B (en) * | 2020-09-16 | 2023-10-20 | 努比亚技术有限公司 | Body temperature detection method, mobile terminal and computer readable storage medium |
EP4087008A1 (en) * | 2021-05-06 | 2022-11-09 | Beijing Xiaomi Mobile Software Co., Ltd. | Determination method for battery state, electronic apparatus, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108965606B (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105204742B (en) | Control method, device and the terminal of electronic equipment | |
CN105095873B (en) | Photo be shared method, apparatus | |
CN105049923B (en) | Wake up the method and device of electronic equipment | |
CN105094321B (en) | The control method and device of smart machine | |
CN109920418A (en) | Adjust the method and device of wakeup sensitivity | |
CN105487680B (en) | Method, apparatus and terminal for terminal screenshotss | |
CN105446858B (en) | The replacement reminding method and device of battery | |
CN106210496A (en) | Method, photo taking and device | |
CN108965606A (en) | Determine the method and device of environment temperature | |
CN106250430A (en) | The sort method of smart machine list and device | |
CN105162193A (en) | Charging method and charging apparatus for terminal, and terminal | |
CN109698878A (en) | Notification message sort method and device | |
CN104933419A (en) | Method and device for obtaining iris images and iris identification equipment | |
CN106095544B (en) | Central processing unit control method and device | |
CN106604230B (en) | The method and device of region configuration | |
CN108143353A (en) | Information prompting method, device, equipment and storage medium | |
CN104881342B (en) | terminal test method and device | |
CN111988493A (en) | Interaction processing method, device, equipment and storage medium | |
CN105183309B (en) | Method for handover control and device | |
CN106610476B (en) | Test method, device and the terminal of charge and discharge process | |
CN109951701A (en) | Monitor fault handling method and device | |
CN106557403B (en) | TPE test method, device and equipment | |
CN105244936B (en) | Charging method, device and the terminal of terminal | |
CN109451848A (en) | Page indicating means and device | |
CN110472098A (en) | Determination method, apparatus, electronic equipment and the storage medium of video content topic |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |