CN111367767B - Terminal temperature detection method and device, storage medium and terminal - Google Patents

Terminal temperature detection method and device, storage medium and terminal Download PDF

Info

Publication number
CN111367767B
CN111367767B CN202010194233.5A CN202010194233A CN111367767B CN 111367767 B CN111367767 B CN 111367767B CN 202010194233 A CN202010194233 A CN 202010194233A CN 111367767 B CN111367767 B CN 111367767B
Authority
CN
China
Prior art keywords
terminal
temperature detection
period
average
screen
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.)
Active
Application number
CN202010194233.5A
Other languages
Chinese (zh)
Other versions
CN111367767A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Iot Technology Co ltd
Original Assignee
Shenzhen Iot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Iot Technology Co ltd filed Critical Shenzhen Iot Technology Co ltd
Priority to CN202010194233.5A priority Critical patent/CN111367767B/en
Publication of CN111367767A publication Critical patent/CN111367767A/en
Application granted granted Critical
Publication of CN111367767B publication Critical patent/CN111367767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a terminal temperature detection method, a device, a storage medium and a terminal, wherein the average service period of the terminal is firstly obtained, then the corresponding temperature detection period is determined according to the average service period, and then the temperature detection is carried out on the terminal according to the temperature detection period, so that the temperature detection period is changed along with the average period of the use of the terminal by a user, the corresponding detection power consumption can be reduced when the average service period is small, the battery endurance of the terminal is improved, and convenience is provided for the user.

Description

Terminal temperature detection method and device, storage medium and terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a terminal temperature detection method, a device, a storage medium, and a terminal.
Background
With the rapid development of intelligent terminals, the heating problem of the intelligent terminals is also more and more focused. At present, an intelligent terminal can install and run different applications (applications), and the applications use different hardware resources of the intelligent terminal and have different execution efficiency, so that the heating conditions in the running process are also greatly different. Therefore, it is necessary to detect the temperature rise condition of the intelligent terminal during operation.
When the temperature of the terminal is felt to be higher, firstly, the user can enter the mobile terminal to set and click on the performance, in the performance, the first item, namely power saving optimization, is found, after the user enters the power saving optimization, the user can see that the middle of the interface displays the current temperature condition of the mobile terminal, and the user can click on the key above to save power so as to reduce the background of the mobile terminal, reduce the heating condition of the mobile terminal.
Since the term of the temperature of the mobile terminal shows that the user does not pay frequent attention, the temperature of the terminal is generally automatically carried out, which causes the energy consumed for detecting the temperature of the terminal to be too high.
Disclosure of Invention
The invention aims to provide a terminal temperature detection method, a device, a storage medium and a terminal, which aim to reduce corresponding detection power consumption when the terminal detects temperature, improve the endurance of a terminal battery and provide convenience for users.
In one aspect, the present invention provides a terminal temperature detection method, including:
acquiring an average service cycle of a terminal;
determining a corresponding temperature detection period according to the average use period;
and detecting the temperature of the terminal according to the temperature detection period.
Further preferably, the acquiring the average usage period of the terminal includes:
when the terminal screen is detected to be awakened, calculating the time difference between the current awakening and the last awakening of the screen and storing the time difference;
an average of the least three most recently stored time differences is calculated to obtain the average usage period.
Further preferably, when the terminal screen is detected to be awakened, calculating a time difference between the current awakening and the last awakening of the screen and storing the time difference, including:
when the power key is triggered when the screen is detected to be in a closed state, storing the triggering time;
and calculating and storing the difference value between the current trigger time and the last trigger time.
Further preferably, the determining a corresponding temperature detection period according to the average usage period includes:
a mapping table of the average use period and the corresponding temperature detection period is pre-established and stored;
and searching the mapping table according to the obtained average use period, and determining a temperature detection period corresponding to the average use period.
Further preferably, the method further comprises:
judging whether the power consumption of the terminal is lower than a power consumption threshold value or not;
if yes, the average service cycle of the terminal is obtained.
Further preferably, the acquiring the average usage period of the terminal includes:
when the screen of the terminal is detected to be changed from a locking state to an unlocking state, calculating the time difference between the current unlocking and the last unlocking of the screen and storing the time difference;
calculating an average of the least three most recently stored time differences to obtain the average usage period
In another aspect, the present invention provides a terminal temperature detection apparatus, including:
the average use period acquisition module is used for acquiring the average use period of the terminal;
the temperature detection period determining module is used for determining a corresponding temperature detection period according to the average use period;
and the temperature detection module is used for detecting the temperature of the terminal according to the temperature detection period.
Further preferably, the average usage period acquisition module includes:
the time difference calculating unit is used for calculating the time difference between the current awakening and the last awakening of the screen and storing the time difference when the terminal screen is detected to be awakened;
and an average value calculating unit for calculating an average value of at least three time differences stored recently to obtain the average use period.
In yet another aspect, the present invention provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the terminal temperature detection method of any one of the above.
The invention also provides a terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the terminal temperature detection method.
The beneficial effects of the invention are as follows: the method comprises the steps of firstly obtaining the average use period of the terminal, then determining the corresponding temperature detection period according to the average use period, and then carrying out temperature detection on the terminal according to the temperature detection period, so that the temperature detection period changes along with the average use period of the terminal used by a user, and when the average use period increases, the frequency used by the user is indicated to decrease, which means that the power consumption of the terminal is lower and the temperature rise is slower at the moment, therefore, the temperature detection period can be properly reduced, the corresponding detection power consumption can be reduced, the battery endurance of the terminal can be improved, and convenience is provided for the user.
Drawings
The technical solution and other advantageous effects of the present invention will be made apparent by the following detailed description of the specific embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal temperature detecting device according to an embodiment of the present invention;
fig. 3 is a further schematic structural diagram of a terminal temperature detecting device according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a terminal temperature detection method according to an embodiment of the present invention;
fig. 5 is a further schematic flow chart of a terminal temperature detection method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of step S11 in FIG. 5;
fig. 7 is a further flow chart of a terminal temperature detection method according to a modification of the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention firstly provides a terminal.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal 100 may include: RF circuitry 110, memory 120, input unit 130, display unit 140, sensor 150, audio circuitry 160, transmission module 170, processor 180, power supply 190, and the like.
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSMC), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Multiple Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., american society of electrical and electronic engineers standards IEEE802.11a, IEEE 802.11.11 b, IEEE802.11g, and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, as well as any other suitable communication protocols, even those not currently developed.
The memory 120 may be used to store functional modules and data, and in an embodiment of the present invention, the functional modules stored in the memory 120 include: the device comprises an average use period acquisition module, a temperature detection period determination module and a temperature detection module. The memory 120 stores functional modules including executable code or instructions, and applications may constitute various functional modules. The processor 180 performs various functional applications and data processing by executing functional modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, functional modules (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180 and the input unit 130.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch screen 131 and other input devices 132. The touch screen 131, also called a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (such as operations of the user on the touch screen 131 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection means according to a preset program. Alternatively, the touch screen 131 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 180, and can receive commands from the processor 180 and execute them. In addition, the touch screen 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. The input unit 130 may include other input devices 132 in addition to the touch screen 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal 100, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch screen 131 may cover the display panel 141, and when the touch screen 131 detects a touch operation thereon or thereabout, the touch screen is transferred to the processor 180 to determine the type of a touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although the touch screen 131 and the display panel 141 implement the input and output functions as two separate components, in some embodiments, the touch screen 131 and the display panel 141 may be integrated to implement the input and output functions.
The terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 when the terminal 100 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the device is stationary, and the device can be used for identifying the gesture of a terminal device (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal 100 are not described in detail herein.
Audio circuitry 160 may provide an audio interface between a user and terminal 100 through speaker 161, microphone 162. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of the peripheral ear bud with terminal 100.
The terminal 100 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user.
The processor 180 is a control center of the terminal 100, and connects various parts of the entire terminal device using various interfaces and lines, wherein the processor 180 is electrically connected with the memory 120, and performs various functions of the terminal 100 and processes data by running or executing functional modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the terminal device. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, functional modules, and the like, with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
In this embodiment, according to the steps in the terminal temperature detection method provided by the embodiment of the present invention, instructions corresponding to the functional modules (the average usage period acquisition module, the temperature detection period determination module, and the temperature detection module) in the terminal temperature detection device provided by the present invention are loaded into the processor 180 from the memory 120, and the processor 180 executes the functional modules stored in the memory 120, thereby implementing various functions, where:
the average use period acquisition module is used for acquiring the average use period of the terminal;
the temperature detection period determining module is used for determining a corresponding temperature detection period according to the average use period;
and the temperature detection module is used for detecting the temperature of the terminal according to the temperature detection period.
The terminal 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which in some embodiments may be logically connected to the processor 180 via a power management system so as to perform functions such as managing charging, discharging, and power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like. Although not shown, the terminal 100 may further include a camera (e.g., front camera, rear camera), a bluetooth module, etc., which will not be described herein.
The embodiment of the invention also provides a terminal temperature detection device applied to the terminal 100.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a terminal temperature detecting device provided in an embodiment of the invention, the terminal temperature detecting device 200 may be integrated in the terminal 100, and the terminal temperature detecting device 200 includes: an average usage period acquisition module 210, a temperature detection period determination module 220, and a temperature detection module 230, which may be stored in the memory 120, and executed and perform the functions thereof by the processor 180, wherein:
(1) The average usage period obtaining module 210 is configured to obtain an average usage period of the terminal.
In general, if the frequency of using the terminal by the user is greater, the power consumption rate is greater and the temperature of the terminal is raised faster, so that the average use period of using the terminal by the user can be acquired by the average use period acquisition module 210, and then the temperature detection period determination module 220 is triggered to determine the temperature detection period of the terminal according to the acquired average use period.
(2) The temperature detection period determining module 220 is configured to determine a corresponding temperature detection period according to the average usage period.
In this embodiment, the temperature detection period determining module 220 automatically detects the temperature of the terminal, and the detection period is determined by the average usage period of the terminal.
(3) And the temperature detection module 230 is configured to perform temperature detection on the terminal according to the temperature detection period.
In this embodiment, after the temperature detection period determining module 220 determines the temperature detection period, the temperature detecting module 230 is triggered to perform its detection function, so that the temperature detection period is determined according to the use condition of the terminal, and if the power consumption of the terminal is smaller, the temperature detection period is larger, so that the detection power consumption can be reduced.
Specifically, the detected temperature may be the terminal temperature read directly from the battery, or the temperature pin voltage on the battery may be read, and then the corresponding temperature may be obtained according to the pin voltage.
Referring to fig. 3, fig. 3 is a further structural schematic diagram of a terminal temperature detection device according to an embodiment of the present invention, where the average service period obtaining module 210 in the terminal temperature detection device 200 may include:
and a time difference calculating unit 211 for calculating and storing the time difference between the current wakeup and the last wakeup of the terminal screen when the screen is detected to be waken.
In this embodiment, since the general user wakes up the terminal before using the terminal, for example, the user wakes up the terminal by double-clicking the screen to light the screen and operate the terminal, the average value of the wake-up periods can be calculated to obtain the average use period.
Specifically, when the terminal screen is detected to be awakened, the current time is recorded, for example, the time when the terminal screen is last awakened is T2, the time when the terminal screen is currently detected to be awakened is T1, the time difference calculating unit 211 calculates the difference between the current awakening times T1 and T2, and stores the difference, and when the terminal screen is continuously detected to be awakened, the value of T1 is given to T2, and the current awakening time is also T1. In other words, if the current time is recorded as T1 each time the terminal screen is detected to be awakened and the last recorded time is assigned to T2, the time difference calculating unit 211 calculates the time difference between T1 and T2 each time the terminal screen is detected to be awakened.
An average value calculation unit 212 for calculating an average value of at least three of the time differences stored recently to obtain an average usage period.
In this embodiment, the average value calculating unit 212 calculates the average value of the last three time differences (T1-T2) to obtain the average use period when the current terminal is awakened; it is also possible to calculate the average of the last four above-mentioned time differences (T1-T2) to obtain the average period of use when the current terminal is awake, the number of samples (time differences) for averaging being unlimited.
From another point of view, assuming that the first wake-up time is T1, the second wake-up time is T2, and so on, if three time differences T4-T3, T3-T2, T2-T1 are accumulated, that is, when the terminal screen is wake-up is detected for the fourth time, the average value calculating unit 212 starts calculating the average value of the first three time differences T4-T3, T3-T2, T2-T1, which is the average value when the terminal screen is wake-up is detected for the fourth time, that is, the average use period when T4 is stored. When the terminal screen detects wake-up for the fifth time, the average value calculating unit 212 continues to calculate the average value of the first three time differences T5-T4, T4-T3, T3-T2 as the average use period at this time, so that the average use period generally changes each time wake-up is detected, which is related to the average period of wake-up.
The time difference calculation unit 211 may specifically be configured to:
when the power key is triggered when the screen is detected to be in a closed state, storing the triggering time;
and calculating and storing the difference between the current trigger time and the last trigger time.
In this embodiment, when the power key is triggered while the screen is in the off state, the screen is awakened, so the time difference calculating unit 211 stores the time when the power key is triggered, calculates the time difference between the current trigger and the last trigger, and calculates the average value of the time difference as the average use period of the terminal through the average value calculating unit 2112.
For example, the last time the user pressed the power key on display in the terminal off display state is as follows:
2019, 12, 31, 22, 46 minutes, 07 seconds
2019, 12, 31, 22, 46 minutes, 02 seconds
2019 12, 31, 22.46 minutes 00 seconds
2019 12, 31, 22, 45 minutes and 50 seconds
The time difference TA is 5 seconds of 46 minutes 07 seconds and 46 minutes 02 seconds of 2019 12, 31, 22, and the time difference TB is 2 seconds of 46 minutes 02 seconds and 46 minutes 00 seconds of 2019 12, 31, 22, 46 minutes 50 seconds and 10 seconds of the time difference TC is 2019, 31, 22, 46 minutes 00 seconds and 2019, 31, 22, 45 minutes 50 seconds; the average use period was calculated to be (5+2+10)/3.
In other embodiments, the time difference calculation unit 211 may also be configured to:
when the screen of the terminal is detected to be changed from the locking state to the unlocking state, calculating the time difference between the current unlocking and the last unlocking of the screen and storing the time difference.
In this embodiment, the average use period of the terminal may be obtained through an average unlock period, firstly, the time of each unlock of the user is obtained, then, the time difference between the current unlock time and the last unlock time of the screen is calculated and stored through the time difference calculation unit 211, and finally, the average value of the time difference of the last three times is calculated through the average value unit 212, so as to obtain the average use period of the terminal when the terminal is unlocked this time, which is used as the temperature detection period.
In this embodiment, the temperature detection period determining module 220 may further include:
a setting unit 221, configured to set up and store a mapping table of average usage periods and corresponding temperature detection periods in advance;
the determining unit 222 is configured to search the mapping table according to the obtained average usage period, and determine a temperature detection period corresponding to the average usage period.
For example, a mapping table is stored in the terminal in advance, wherein a first column of the mapping table is an average use period range, and a second column is a temperature detection period corresponding to the average use period range:
average use period range, temperature detection period;
less than 10 seconds, 5 seconds;
10 seconds or more and less than 30 seconds, 20 seconds;
30 seconds or more and less than 200 seconds, 60 seconds;
greater than 200 seconds, 100 seconds;
this means that the temperature detection period corresponding to when the average use period is less than 10 seconds is 5 seconds; when the average use period is more than or equal to 10 seconds and less than 30 seconds, the corresponding temperature detection period is 20 seconds; when the average use period is more than or equal to 30 seconds and less than 200 seconds, the corresponding temperature detection period is 60 seconds; the corresponding temperature detection period is 100 seconds when the average use period is greater than 200 seconds.
In this embodiment, the apparatus may further include:
the power consumption judging module 240 is configured to judge whether the power consumption of the terminal is lower than a power consumption threshold.
In this embodiment, if the power consumption determining module 240 determines that the power consumption is lower than 300 milliamperes per second, the power consumption speed of the terminal is slow, and the average use period of the terminal is obtained by the average use period obtaining module 210. Therefore, frequent temperature detection when the electric quantity is low can be avoided, and the electric quantity of the terminal is consumed faster.
The power consumption threshold may be set directly by a person or may be set by an electric quantity. Because the power consumption of the terminal is automatically set to be low when the power is generally low. For example, when the power is lower than 10%, the power consumption of the terminal is controlled to be reduced to 300 milliamp per second, so that the average use period acquisition module 210 may be triggered to execute the function when the power is lower than 10%.
According to the terminal temperature detection device provided by the embodiment of the invention, the average use period of the current terminal is acquired through the average use period acquisition module 210, the temperature detection period determination module 220 obtains the corresponding temperature detection period according to the acquired average use period, and then the temperature detection module 230 detects the temperature of the terminal through the temperature detection period, so that the power consumption of temperature detection can be reduced.
The embodiment of the invention further provides a terminal temperature detection method applied to the terminal temperature detection device.
Referring to fig. 4, fig. 4 is a flowchart of a terminal temperature detection method according to an embodiment of the present invention, in which steps are implemented by the terminal temperature detection device 200, so that the terminal temperature detection method is specifically described with reference to the device 200, and includes the following steps:
step S1: the average use period of the terminal is obtained.
In general, if the frequency of using the terminal by the user is greater, the power consumption rate is greater and the temperature of the terminal is raised faster, so that the average use period of using the terminal by the user can be acquired by the average use period acquisition module 210, and then step S2 is performed to determine the temperature detection period of the terminal according to the acquired average use period.
Step S2: and determining a corresponding temperature detection period according to the average use period.
In this embodiment, the temperature detection period determining module 220 automatically detects the temperature of the terminal, and the detection period is determined by the average usage period of the terminal.
Step S3: and detecting the temperature of the terminal according to the temperature detection period.
In this embodiment, after the temperature detection period determining module 220 determines the temperature detection period, step S3 is performed to determine the temperature detection period according to the use condition of the terminal, and if the power consumption of the terminal is smaller, the temperature detection period may be larger, so that the detection power consumption may be reduced.
Specifically, the terminal temperature can be directly read from the battery, the temperature pin voltage on the battery can also be read, and then the corresponding temperature can be obtained according to the pin voltage.
Referring to fig. 5, fig. 5 is a further flowchart of a terminal temperature detection method according to an embodiment of the present invention, and step S1 "obtaining an average usage period of a terminal" includes:
step S11: when the terminal screen is detected to be awakened, calculating the time difference between the current awakening and the last awakening of the screen and storing the time difference.
In this embodiment, since the general user wakes up the terminal before using the terminal, for example, the user wakes up the terminal by double-clicking the screen to light the screen and operate the terminal, the average use period can be obtained by calculating the average value of the wake-up periods.
Specifically, when the terminal screen is detected to be awakened, the current time is recorded, for example, the time when the terminal screen is last awakened is T2, the time when the terminal screen is currently detected to be awakened is T1, the time difference calculating unit 212 calculates the difference between the current awakening times T1 and T2, and stores the difference, and when the terminal screen is continuously detected to be awakened, the value of the last awakening time T1 is assigned to T2, and the current awakening time is also T1. In other words, if the current time is recorded as T1 each time the terminal screen is detected to be awakened, the last recorded time is assigned to T2, and the time difference calculating unit 212 calculates the time difference between T1 and T2 each time the terminal screen is detected to be awakened.
Step S12: the average of the least three most recently stored time differences is calculated to obtain an average usage period.
In this embodiment, the average value calculating unit 212 calculates the average value of the last three time differences (T1-T2) to obtain the average use period when the current terminal is awakened; it is also possible to calculate the average of the last four above-mentioned time differences (T1-T2) to obtain the average period of use when the current terminal is awake, the number of samples (time differences) for averaging being unlimited.
From another point of view, assuming that the first wake-up time is T1, the second wake-up time is T2, and so on, if three time differences T4-T3, T3-T2, T2-T1 are accumulated, that is, when the terminal screen is wake-up is detected for the fourth time, the average value calculating unit 212 starts calculating the average value of the first three time differences T4-T3, T3-T2, T2-T1, which is the average value when the terminal screen is wake-up is detected for the fourth time, that is, the average use period when T4 is stored. When the terminal screen detects wake-up for the fifth time, the average value calculating unit 212 continues to calculate the average value of the first three time differences T5-T4, T4-T3, T3-T2 as the average use period at this time, so that the average use period generally changes each time wake-up is detected, which is related to the average period of wake-up.
In the present embodiment, step S2 "determining the corresponding temperature detection period according to the average usage period" includes:
step S21: a mapping table of the average use period and the corresponding temperature detection period is pre-established and stored;
step S22: and searching the mapping table according to the obtained average use period, and determining the temperature detection period corresponding to the average use period.
For example, temperature detection periods corresponding to the average use periods are stored in the terminal in advance, and a mapping table is established, wherein the mapping table is shown as follows, the first column is an average use period range, and the second column is the temperature detection period corresponding to the average use period range:
average use period range, temperature detection period;
less than 10 seconds, 5 seconds;
10 seconds or more and less than 30 seconds, 20 seconds;
30 seconds or more and less than 200 seconds, 60 seconds;
greater than 200 seconds, 100 seconds;
this means that the temperature detection period corresponding to when the average use period is less than 10 seconds is 5 seconds; when the average use period is more than or equal to 10 seconds and less than 30 seconds, the corresponding temperature detection period is 20 seconds; when the average use period is more than or equal to 30 seconds and less than 200 seconds, the corresponding temperature detection period is 60 seconds; the corresponding temperature detection period is 100 seconds when the average use period is greater than 200 seconds.
In this embodiment, the method may further include:
step S0: and judging whether the power consumption of the terminal is lower than a power consumption threshold.
In this embodiment, if the power consumption determining module 240 determines that the power consumption is lower than 300 milliamperes per second, the power consumption speed of the terminal is slow, and step S1 is performed. Therefore, frequent temperature detection when the electric quantity is low can be avoided, and the electric quantity of the terminal is consumed faster.
The power consumption threshold may be set manually or directly, or may be set by electric quantity. Because the power consumption of the terminal is automatically set to be low when the power is generally low. For example, when the power is lower than 10%, the power consumption of the control terminal is reduced to 300 milliamp per second, so it may be set that the step S1 is performed when the power is lower than 10%.
Referring to fig. 6, fig. 6 is a flowchart of step S11 in fig. 5, and step S11 "when it is detected that the terminal screen is awakened, the time difference between the current awakening and the last awakening of the screen is calculated and stored" includes:
step S111: when the power key is triggered when the screen is detected to be in a closed state, storing the triggering time;
step S112: and calculating and storing the difference between the current trigger time and the last trigger time.
In this embodiment, when the power key is triggered while the screen is in the off state, the screen is awakened, so that the time when the power key is triggered is stored, the time difference between the current trigger and the last trigger is calculated by the time difference calculating unit 211, and finally the average value of the time differences is calculated by the average value calculating unit 2112 as the average service period of the terminal.
For example, the last time the user pressed the power key on display in the terminal off display state is as follows:
2019, 12, 31, 22, 46 minutes, 07 seconds
2019, 12, 31, 22, 46 minutes, 02 seconds
2019 12, 31, 22.46 minutes 00 seconds
2019 12, 31, 22, 45 minutes and 50 seconds
The time difference TA is 5 seconds of 46 minutes 07 seconds and 46 minutes 02 seconds of 2019 12, 31, 22, and the time difference TB is 2 seconds of 46 minutes 02 seconds and 46 minutes 00 seconds of 2019 12, 31, 22, 46 minutes 50 seconds and 10 seconds of the time difference TC is 2019, 31, 22, 46 minutes 00 seconds and 2019, 31, 22, 45 minutes 50 seconds; the average use period was calculated to be (5+2+10)/3.
Referring to fig. 7, fig. 7 is a further schematic diagram of a method for detecting a terminal temperature according to a modification of the embodiment of the present invention, where step S1 "obtaining an average usage period of a terminal" includes:
step S13, when the screen of the terminal is detected to be changed from a locking state to an unlocking state, calculating the time difference between the current unlocking and the last unlocking of the screen and storing the time difference;
step S14: the average of the least three most recently stored time differences is calculated to obtain an average usage period.
In this embodiment, the average use period of the terminal may be obtained through an average unlock period, firstly, the time of each unlock of the user is obtained, then, the time difference between the current unlock time and the last unlock time of the screen is calculated and stored through the time difference calculation unit 211, and finally, the average value of the time difference of the last three times is calculated through the average value unit 212, so as to obtain the average use period of the terminal when the terminal is unlocked this time, which is used as the temperature detection period.
According to the terminal temperature detection method provided by the embodiment of the invention, the average use period of the current terminal is firstly acquired through the average use period acquisition module 210, then the temperature detection period determination module 220 acquires the corresponding temperature detection period according to the acquired average use period, and then the temperature detection module 230 detects the temperature of the terminal according to the temperature detection period, so that the temperature detection can be carried out according to the use condition of the terminal, the detected power consumption can be reduced, and the cruising ability of the battery of the terminal is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions that can be loaded into a processor to perform the steps of any of the terminal temperature detection methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The instructions stored in the storage medium can execute the steps in any of the terminal temperature detection methods provided in the embodiments of the present invention, so that the beneficial effects that any of the terminal temperature detection methods provided in the embodiments of the present invention can be achieved, and detailed descriptions of the previous embodiments are omitted.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The above description of the embodiments is only for helping to understand the technical solution of the present invention and its core ideas; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the technical solutions of the embodiments of the present invention; and any device capable of achieving the function of the terminal temperature detection method provided by the embodiment of the invention is within the protection scope of the invention.

Claims (10)

1. A terminal temperature detection method, comprising:
acquiring an average use period of the terminal, wherein the average use period is obtained by calculating an average value of a wake-up period or an average value of an unlock period;
determining a corresponding temperature detection period according to the average use period;
and detecting the temperature of the terminal according to the temperature detection period.
2. The terminal temperature detection method according to claim 1, wherein the obtaining the average usage period of the terminal includes:
when the terminal screen is detected to be awakened, calculating the time difference between the current awakening and the last awakening of the screen and storing the time difference;
an average of the least three most recently stored time differences is calculated to obtain the average usage period.
3. The terminal temperature detection method according to claim 2, wherein when it is detected that a terminal screen is awakened, a time difference between the current awakening and the last awakening of the screen is calculated and stored, comprising:
when the power key is triggered when the screen is detected to be in a closed state, storing the triggering time;
and calculating and storing the difference value between the current trigger time and the last trigger time.
4. The terminal temperature detection method according to claim 1, wherein the determining a corresponding temperature detection period according to the average usage period includes:
a mapping table of the average use period and the corresponding temperature detection period is pre-established and stored;
and searching the mapping table according to the obtained average use period, and determining a temperature detection period corresponding to the average use period.
5. The terminal temperature detection method according to claim 1, further comprising:
judging whether the power consumption of the terminal is lower than a power consumption threshold value or not;
if yes, the average service cycle of the terminal is obtained.
6. The terminal temperature detection method according to claim 1, wherein the obtaining the average usage period of the terminal includes:
when the screen of the terminal is detected to be changed from a locking state to an unlocking state, calculating the time difference between the current unlocking and the last unlocking of the screen and storing the time difference;
an average of the least three most recently stored time differences is calculated to obtain the average usage period.
7. A terminal temperature detection device, characterized by comprising:
the average use period acquisition module is used for acquiring the average use period of the terminal, wherein the average use period is obtained by calculating the average value of the wake-up period or the average value of the unlock period;
the temperature detection period determining module is used for determining a corresponding temperature detection period according to the average use period;
and the temperature detection module is used for detecting the temperature of the terminal according to the temperature detection period.
8. The terminal temperature detection device according to claim 7, wherein the average use period acquisition module includes:
the time difference calculating unit is used for calculating the time difference between the current awakening and the last awakening of the screen and storing the time difference when the terminal screen is detected to be awakened;
and an average value calculating unit for calculating an average value of at least three time differences stored recently to obtain the average use period.
9. A computer readable storage medium, characterized in that the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the terminal temperature detection method of any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being for storing instructions and data, the processor being for performing the steps of the terminal temperature detection method according to any one of claims 1 to 6.
CN202010194233.5A 2020-03-19 2020-03-19 Terminal temperature detection method and device, storage medium and terminal Active CN111367767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010194233.5A CN111367767B (en) 2020-03-19 2020-03-19 Terminal temperature detection method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010194233.5A CN111367767B (en) 2020-03-19 2020-03-19 Terminal temperature detection method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111367767A CN111367767A (en) 2020-07-03
CN111367767B true CN111367767B (en) 2024-02-09

Family

ID=71208980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010194233.5A Active CN111367767B (en) 2020-03-19 2020-03-19 Terminal temperature detection method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111367767B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5590061A (en) * 1994-05-12 1996-12-31 Apple Computer, Inc. Method and apparatus for thermal management in a computer system
CN103166202A (en) * 2012-09-20 2013-06-19 深圳市金立通信设备有限公司 System and method for reducing heating value in mobile terminal charging
CN105653418A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 Terminal, terminal control method and terminal control device
CN107135299A (en) * 2016-02-26 2017-09-05 工业和信息化部电信研究院 A kind of terminal temperature detection method and device
CN107835306A (en) * 2017-10-27 2018-03-23 努比亚技术有限公司 A kind of temperature checking method, terminal and computer-readable recording medium
CN109004724A (en) * 2018-09-15 2018-12-14 宁波亿诺维信息技术有限公司 Mobile terminal charge protection system
CN110213811A (en) * 2019-05-14 2019-09-06 惠州Tcl移动通信有限公司 Mobile terminal shutdown electricity control processing method, mobile terminal and storage medium
WO2020001115A1 (en) * 2018-06-25 2020-01-02 北京集创北方科技股份有限公司 Method and apparatus for unlocking screen of terminal device and terminal device
CN110750148A (en) * 2019-10-30 2020-02-04 上海展扬通信技术有限公司 Terminal, temperature control method thereof, and computer-readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6650322B2 (en) * 2000-12-27 2003-11-18 Intel Corporation Computer screen power management through detection of user presence
FR2896875B1 (en) * 2006-01-30 2008-04-25 Eads Europ Aeronautic Defence DEVICE AND METHOD FOR MONITORING REAL-TIME ENVIRONMENTAL SIZE
KR101759941B1 (en) * 2011-04-21 2017-07-31 엘지전자 주식회사 Mobile terminal and method for controlling thereof
JP6544310B2 (en) * 2016-07-14 2019-07-17 株式会社デンソー Battery monitoring system
US10801897B2 (en) * 2018-02-12 2020-10-13 Grandex International Corporation Thermometer and temperature monitoring system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5590061A (en) * 1994-05-12 1996-12-31 Apple Computer, Inc. Method and apparatus for thermal management in a computer system
CN103166202A (en) * 2012-09-20 2013-06-19 深圳市金立通信设备有限公司 System and method for reducing heating value in mobile terminal charging
CN105653418A (en) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 Terminal, terminal control method and terminal control device
CN107135299A (en) * 2016-02-26 2017-09-05 工业和信息化部电信研究院 A kind of terminal temperature detection method and device
CN107835306A (en) * 2017-10-27 2018-03-23 努比亚技术有限公司 A kind of temperature checking method, terminal and computer-readable recording medium
WO2020001115A1 (en) * 2018-06-25 2020-01-02 北京集创北方科技股份有限公司 Method and apparatus for unlocking screen of terminal device and terminal device
CN109004724A (en) * 2018-09-15 2018-12-14 宁波亿诺维信息技术有限公司 Mobile terminal charge protection system
CN110213811A (en) * 2019-05-14 2019-09-06 惠州Tcl移动通信有限公司 Mobile terminal shutdown electricity control processing method, mobile terminal and storage medium
CN110750148A (en) * 2019-10-30 2020-02-04 上海展扬通信技术有限公司 Terminal, temperature control method thereof, and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
解谦 ; 张睿 ; 徐永太 ; 张沛 ; .移动智能终端温度的检测方法.移动通信.2017,(07),全文. *

Also Published As

Publication number Publication date
CN111367767A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2018196659A1 (en) Unlocking control method and related product
WO2018219104A1 (en) Power saving control method and related product
WO2018032581A1 (en) Method and apparatus for application program control
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
CN107193473B (en) Unlocking control method and related product
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN105807891A (en) Screen control method and device, and electronic equipment
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN112286286B (en) Standby control method, wearable device and computer readable storage medium
CN107635277B (en) Power saving management method of terminal equipment of Internet of things and terminal equipment of Internet of things
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN108170360B (en) Control method of gesture function and mobile terminal
CN111367767B (en) Terminal temperature detection method and device, storage medium and terminal
CN107197086B (en) Unlocking control method and related product
CN113613310B (en) WIFI connection method and device, storage medium and mobile terminal
CN112312542B (en) Ephemeris information collection method, device, storage medium and mobile terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
WO2018195923A1 (en) Unlocking control method and related product
JP7207838B2 (en) Application processor wake-up method applied to mobile terminal, mobile terminal and computer program
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN106896896B (en) Electricity saving method, device and electronic equipment
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240115

Address after: 518000 Building A, Tea Tree Industrial Zone, Xiaweiyuan New Village, Gushu Community, Xixiang Street, Bao'an District, Shenzhen City, Guangdong Province 408

Applicant after: Shenzhen IOT Technology Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Applicant before: TCL mobile communication technology (Ningbo) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant