CN107733016B - Mobile terminal charging control method and mobile terminal - Google Patents

Mobile terminal charging control method and mobile terminal Download PDF

Info

Publication number
CN107733016B
CN107733016B CN201710984424.XA CN201710984424A CN107733016B CN 107733016 B CN107733016 B CN 107733016B CN 201710984424 A CN201710984424 A CN 201710984424A CN 107733016 B CN107733016 B CN 107733016B
Authority
CN
China
Prior art keywords
mobile terminal
real
temperature
charging
time temperature
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
CN201710984424.XA
Other languages
Chinese (zh)
Other versions
CN107733016A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710984424.XA priority Critical patent/CN107733016B/en
Publication of CN107733016A publication Critical patent/CN107733016A/en
Application granted granted Critical
Publication of CN107733016B publication Critical patent/CN107733016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0088

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a mobile terminal charging control method, which comprises the following steps: detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state; and if the real-time temperature is lower than a preset temperature threshold value, adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature so as to control the charging current of the mobile terminal. Corresponding mobile terminals and computer-readable storage media are also disclosed. This application adopts above-mentioned mode to adjust the temperature of mobile terminal self, neither influences the operating behavior at battery power consumption and terminal, can regulate and control the battery again under the low temperature environment and charge under the preset temperature, consequently, can reach better charging performance, guarantee user's normal use.

Description

Mobile terminal charging control method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a mobile terminal charging control method and a mobile terminal.
Background
With the rapid development of mobile terminal technology, mobile terminals such as smart phones also play an increasingly important role in the life of people. In order to shorten the time for charging the mobile terminal, the charging technology also changes with the ground, the charging speed is faster and faster, and the charging current is larger and larger.
However, due to the inherent characteristics of the battery, the charging speed is greatly different under different environments, for example, the lower the ambient temperature is, the smaller the charging current is, and thus the charging speed of the terminal is particularly slow under a low temperature environment, even the charging is stopped, which affects the normal use of the user.
Disclosure of Invention
The embodiment of the invention provides a mobile terminal charging control method, which aims to solve the problem of low charging speed in a low-temperature environment.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a method for controlling charging of a mobile terminal is provided, including:
detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state;
and if the real-time temperature is lower than a preset temperature threshold value, adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature so as to control the charging current of the mobile terminal.
In a second aspect, a mobile terminal is provided, including:
the mobile terminal comprises a detection module, a control module and a control module, wherein the detection module is used for detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state;
and the adjusting module is used for adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature if the real-time temperature is detected to be lower than a preset temperature threshold value so as to control the charging current of the mobile terminal.
In a third aspect, a mobile terminal is provided, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the mobile terminal charging control method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the mobile terminal charging control method according to the first aspect.
In the embodiment of the invention, according to the real-time temperature of the mobile terminal and the preset temperature threshold, the number of unit tasks currently operated by the mobile terminal can be adjusted based on the real-time temperature, so that the charging current of the mobile terminal is controlled. The embodiment of the invention adjusts the temperature of the mobile terminal by adopting the mode, does not influence the power consumption of the battery and the running performance of the terminal, and can adjust and control the battery to be charged at the preset temperature in the low-temperature environment, thereby achieving better charging performance and ensuring the normal use of users.
Drawings
Fig. 1 is a schematic flowchart of a mobile terminal charging control method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another mobile terminal charging control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an example of a charging identifier for displaying a charging status according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal according to an 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a mobile terminal charging control method, as shown in fig. 1, including:
step 101: and detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state.
Optionally, step 101 further includes step 100: and judging whether the mobile terminal is in a charging state.
It should be noted that the charging control method provided by the embodiment of the present invention needs to be enabled only when the mobile terminal is in the charging state. Therefore, it can be determined whether the charging control method provided by the embodiment of the present invention needs to be performed by performing step 100.
It is understood that after the determination of step 100 determines that the mobile terminal is in the charging state, step 101 is executed to detect the real-time temperature of the mobile terminal. Specifically, a temperature detection device built in or external to the mobile terminal may be used to detect the real-time temperature of the mobile terminal. The real-time temperature detected here is related to the ambient temperature of the mobile terminal, and may reflect the battery cell temperature of the mobile terminal. Since the temperature of the battery cell has an influence on the charging current of the battery, whether the charging current of the battery can reach an expected charging current can be examined through examining the real-time temperature (it can be understood that the expected charging current has a corresponding relationship with a preset temperature threshold in the embodiment of the present invention), and then the real-time temperature of the mobile terminal can be regulated and controlled in the subsequent steps so as to approach the preset temperature threshold, so that the expected charging current can be reached, and the requirement of the user on the charging performance can be met.
Step 103: and judging whether the real-time temperature is lower than a preset temperature threshold value or not.
It should be noted that, in the embodiment of the present invention, the target of adjusting and controlling the real-time temperature is given by a preset temperature threshold. If the real-time temperature reaches the preset temperature threshold, it can be understood that the current charging current of the mobile terminal can reach the requirement of the user, and charging control is not required to be carried out continuously. Otherwise, step 105 is performed.
It should be noted that, steps 100 to 103 may constitute a charging detection control system for detecting the temperature and state of the mobile terminal and determining whether to perform regulation or not. If it is determined that the control is required through the detection, the charging detection control system starts the charging environment control system, and step 105 is executed to control the real-time temperature. Therefore, step 105 may constitute a charging environment regulation system for regulating the charging environment according to the real-time temperature of the mobile terminal, so as to control the charging current of the mobile terminal.
Step 105: and if the real-time temperature is detected to be lower than the preset temperature threshold, adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature so as to control the charging current of the mobile terminal.
Because the heat generated by the CPU when executing different numbers of unit tasks is different, the temperature of the battery cell can be adjusted by adjusting the number of the unit tasks currently operated by the mobile terminal based on the real-time temperature, and then the charging current of the mobile terminal is controlled to meet the charging performance requirement required by a user.
In the above embodiment, according to the real-time temperature of the mobile terminal and the preset temperature threshold, the number of unit tasks currently operated by the mobile terminal may be adjusted based on the real-time temperature, so as to control the charging current of the mobile terminal. The embodiment of the invention adjusts the temperature of the mobile terminal by adopting the mode, does not influence the power consumption of the battery and the running performance of the terminal, and can adjust and control the battery to be charged at the preset temperature in the low-temperature environment, thereby achieving better charging performance and ensuring the normal use of users.
Various specific implementations of the above-described embodiments will be described in detail below.
In particular, the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the executing entity in steps 100 to 103 may be a charging detection control device to implement the functions of the charging detection control system, and the executing entity in step 105 may be a charging environment regulating device to implement the functions of the charging environment regulating system.
More specifically, the execution subject of each step of the method provided in the foregoing embodiment may be the mobile terminal itself, or may be another device (which may implement the functions of the charging detection control system and the charging environment regulation and control system) capable of interacting with the mobile terminal, besides the mobile terminal, or may be a combination of the two manners (for example, step 100 to step 103 are executed by a charging detection control device except the mobile terminal, and step 105 is executed by the mobile terminal).
The preset temperature threshold adopted in the embodiment of the invention can reflect the expected temperature of the battery core, and it can be understood that the charging performance of the battery is best when the battery is charged at the preset temperature. When the real-time temperature and the preset temperature threshold are judged to be high or low in step 103, a temperature difference between the real-time temperature and the preset temperature threshold may be calculated, and the judgment is performed according to the positive or negative of the difference. Before this, it is necessary to determine the value of the preset temperature threshold. Preferably, the battery attribute of the mobile terminal may be obtained first, and then the value of the temperature threshold may be determined according to the battery attribute of the mobile terminal. Wherein the battery attributes include: and the corresponding relation between the temperature of the battery cell and the charging current. More specifically, the preset temperature threshold may be determined by using a battery property that is a correspondence relationship between the temperature of the battery cell and the charging current. The correspondence relationship may be embodied in the form of a charging ammeter of the battery cell in different temperature intervals. For example, as shown in table 1 below:
table 1 example of battery cell temperature-charging current correspondence table
Temperature t (degree centigrade) of battery core Value of charging current (C is battery capacity)
t≤0 0C
0<t<10 0.5C
10≤t<20 1C
t≥20 1.2C
Taking the data given in table 1 as an example, when the temperature t of the battery electric core is lower than 10 ℃, the charging current is small, and even reaches 0 when the temperature t is lower than 0 ℃, which obviously cannot meet the use requirement of the user. When the temperature reaches more than 20 ℃, the charging current value is larger, the time required by the full charging of the mobile terminal is shorter, and the charging performance at the moment is more in line with the use requirements of users. Therefore, the preset temperature threshold may be taken to be 10 degrees celsius or 20 degrees celsius.
Preferably, referring to fig. 2, in the above embodiment, after the step 101 is executed to obtain the real-time temperature of the mobile terminal, the determination of the step 103 may be performed. When the real-time temperature is lower than the preset temperature threshold, the step 105 may specifically include:
step 1050: calculating a difference value between the real-time temperature and a preset temperature threshold value;
step 1051: determining the target task scheduling number corresponding to the difference value according to the corresponding relation between the preset temperature interval and the task scheduling number;
step 1053: and adjusting the number of the unit tasks running in the mobile terminal according to the target task scheduling number, so that the number of the unit tasks running is the same as the task scheduling number.
Before step 1051 is implemented, a task quantity scheduling table which reflects the corresponding relationship between the temperature interval and the task scheduling quantity can be pre-constructed, so that the task scheduling quantity corresponding to the temperature interval where the temperature difference value is located can be searched in the task quantity scheduling table according to the difference value between the real-time temperature and the preset temperature threshold, and then a new unit task can be started or a unit task in operation can be closed according to the searched task scheduling quantity, so that the quantity of the unit task in operation is the same as the task scheduling quantity.
Specifically, the correspondence between the temperature intervals and the task scheduling number is constructed based on the following principle:
because the load current of the mobile terminal processor CPU (referred to as Central Processing Unit) is different under different loads, the amount of heat generated when the CPU runs different numbers of Unit tasks (job) is also different. Assuming that the CPU load current of the unit task joba is denoted as i, and the continuous operation time of the unit task joba is denoted as t, the amount of heat (denoted as q) generated by the CPU while operating the unit task joba can be expressed as: q ═ i2*r*t。
Meanwhile, if the mass of the battery cell is recorded as C and the specific heat capacity is recorded as M, the temperature of the battery cell is measured from the temperature T1Heating to a temperature T2Time (temperature T)1And temperature T2Temperature difference of Δ T) can be expressed as: q ═ C ═ M [ (T) ]2-T1)=C*M*(△T)。
In the embodiment of the invention, the heat generated by the CPU during the operation task can be used for improving the temperature of the battery cell, so that the temperature of the battery cell reaches the preset temperature threshold value, and better charging performance is achieved. Therefore, it can be understood that, assuming that the number of unit tasks in the CPU operation is n, the amount of heat (denoted by n × Q) generated by the CPU while operating the n tasks is equal to the amount of heat Q required to increase the temperature of the battery cell by the temperature difference (denoted by Δ T), that is: n × Q ═ Q, i.e.: n x i2*r*t=C*M*(△T)。
Therefore, the number n of unit tasks running in the CPU and the running time T of the unit tasks are consistent with the trend of the temperature difference Δ T. In the case where other quantities are not changed, it can be said that the number n of unit tasks and the operation time T of the unit tasks that are operated in the CPU are proportional to the temperature difference Δ T.
The concept of the unit task job described above can be understood as a task that is executed on a "time slice" when the processor CPU executes multitasking. Specifically, when executing programs, a processor CPU (Central processing unit) of the terminal allocates corresponding running time to each program, and the running time is divided into time periods. When the CPU executes a plurality of programs, a time slot, which is a time slot for allowing the process to run, is allocated to a thread corresponding to each program, so that the programs are seemingly performed simultaneously. If the process is still running at the end of the time slice, the CPU will be deprived and allocated to another process; if the process is blocked or ended before the time slice is ended, the CPU immediately switches. Without causing CPU resource waste. Macroscopically, a user can simultaneously open a plurality of application programs, and each program can run in parallel and simultaneously; microscopically, however, since only a portion of the program requirements can be processed by a CPU at a time, time slices are introduced so that each program is executed in turn.
In summary, a task amount schedule table shown in table 2, for example, may be constructed, and a correspondence relationship between the temperature interval and the task scheduling number may be established, so as to reflect the number of unit tasks of the CPU that need to be put into operation to eliminate the temperature difference.
TABLE 2 task volume Schedule example
Figure BDA0001440175910000071
Taking Table 2 as an example, when the temperature difference is greater than Δ T2And is less than DeltaT3In time, in order to make the temperature of the battery cell (which can be understood as the real-time temperature of the mobile terminal) reach the preset temperature threshold, the number of unit tasks required to be run by the CPU is n3. With n3The temperature of the battery cell will rise somewhat with the operation of the individual task. When the real-time temperature of the mobile terminal is acquired again, the temperature difference may be greater than Δ T1And is less than DeltaT2(ii) a At this time, as can be seen from the task amount schedule table query in Table 2, the number of unit tasks to be run by the CPU is adjusted to n2. And repeating the steps until the real-time temperature of the mobile terminal reaches a preset temperature threshold value.
It will be appreciated that in the above example of the adjustment process, since n is3Will be greater than n2Therefore, when the number of unit tasks to be executed by the CPU is adjusted, it is sufficient to normally turn off some of the unit tasks being executed.
In order not to affect the normal use performance of the mobile phone during charging, the unit task that is started or shut down when the task amount is adjusted is preferably selected as a task that does not substantially function, for example, in an L inux operating system, a command that can load an empty CPU, such as cat/dev/zero >/dev/null & can be used.
The principle and process of adjusting the number of unit tasks running in the mobile terminal according to the temperature difference between the real-time temperature and the preset temperature threshold so that the number of unit tasks running matches the temperature difference are described above. On this basis, in order to continuously perform charging control in the charging state of the mobile terminal so that the charging performance of the mobile terminal meets the user requirement, the real-time temperature of the mobile terminal is preferably detected according to a preset period, and then the number of unit tasks currently operated by the mobile terminal is adjusted based on the detected real-time temperature until the real-time temperature reaches the temperature threshold. Therefore, the number of unit tasks running in the mobile terminal can be adjusted in time, the requirement of charging performance is met, and battery power consumption is not additionally generated or the normal use performance of the mobile phone is not influenced.
Preferably, in the process of adjusting the number of unit tasks currently run by the mobile terminal, the method further includes: acquiring the number of unit tasks in operation; adjusting display parameters of a preset charging identifier according to the acquired number of the unit tasks in operation; and a corresponding relation is preset between the number of the running unit tasks and the display parameters of the charging identification.
Taking fig. 3 as an example, it may be assumed that the battery icon of the mobile terminal defaults to green. When the charging is started, the icon is displayed in white, and when the number of unit tasks needs to be adjusted through charging control, the icon starts to change color. One way of displaying is to use the shade of color to show how many unit tasks are in operation: if the number of the running unit tasks is large, the running unit tasks are displayed to be dark red, the real-time temperature of the mobile terminal is gradually increased along with the regulation, the number of the running unit tasks is gradually reduced, and the color of the running unit tasks can be gradually changed into red, light red and the like. Another display mode is that the depth of color is used to show the progress of regulation (which can be understood as the length of the charging control time): the color is displayed as white at the beginning of regulation, and gradually changes into light red, dark red and the like along with the progress of regulation. The specific display parameters may be determined according to design requirements, which is not limited in the present invention.
In addition, the mobile terminal or the dedicated charging control device can display prompt information reflecting the charging state. Specifically, the displayed prompt message may include one or more of the following: time already in a charging state, remaining charging time, real-time temperature of the mobile terminal, or the number of unit tasks in operation, etc. The display form of the prompt message can be various, the progress bar, the number, the percentage and the like can be used, and the change of the charging state can be embodied in the forms of gradual change of color, size of shape and size and the like. The purpose of displaying the prompt information is to help the user to know the charging state of the mobile terminal.
In the embodiment of the invention, the number of unit tasks running in the mobile terminal can be flexibly adjusted according to the detected real-time temperature of the mobile terminal, so that the charging current of the mobile terminal is controlled. The embodiment of the invention adopts the mode to adjust the temperature of the terminal, does not influence the power consumption of the battery and the operation performance of the terminal, and can adjust and control the battery to be charged under the preset temperature threshold value in the low-temperature environment, thereby achieving better charging performance and ensuring the normal use of users.
An embodiment of the present invention further provides a mobile terminal, as shown in fig. 4, including:
the detection module 201 is configured to detect a real-time temperature of the mobile terminal when the mobile terminal is in a charging state;
the adjusting module 203 is configured to adjust the number of unit tasks currently running by the mobile terminal based on the real-time temperature if the real-time temperature is detected to be lower than the preset temperature threshold, so as to control the charging current of the mobile terminal.
Preferably, the adjusting module 203 may specifically include:
the calculating unit is used for calculating the difference between the real-time temperature and the temperature threshold;
the task quantity determining unit is used for determining the target task scheduling quantity corresponding to the difference value according to the corresponding relation between the preset temperature interval and the task scheduling quantity;
and the task scheduling unit is used for adjusting the number of the unit tasks operated in the mobile terminal according to the target task scheduling number, so that the number of the unit tasks in operation is the same as the task scheduling number.
Preferably, the mobile terminal may further include:
the battery attribute acquisition module is used for acquiring the battery attribute of the mobile terminal;
and the temperature threshold value determining module is used for determining the value of the temperature threshold value according to the battery attribute of the mobile terminal.
Preferably, the battery properties include: and the corresponding relation between the temperature of the battery cell and the charging current.
Preferably, the detecting module 201 is further configured to detect a real-time temperature of the mobile terminal according to a preset period;
the adjusting module 203 is further configured to adjust the number of unit tasks currently running by the mobile terminal based on the real-time temperature until the real-time temperature reaches the temperature threshold.
Preferably, the mobile terminal may further include:
the display parameter adjusting module is used for acquiring the number of unit tasks in operation; and adjusting the preset display parameters of the charging identifier according to the number of the running unit tasks, wherein the corresponding relation is preset between the number of the running unit tasks and the display parameters of the charging identifier.
The mobile terminal provided by the embodiment of the invention can realize each process realized by the mobile terminal in the above embodiments of the mobile terminal charging control method, and is not described herein again in order to avoid repetition.
In the mobile terminal provided in the above embodiment, according to the real-time temperature of the mobile terminal and the preset temperature threshold, the number of unit tasks currently operated by the mobile terminal may be adjusted based on the real-time temperature, so as to control the charging current of the mobile terminal. The embodiment of the invention adjusts the temperature of the mobile terminal by adopting the mode, does not influence the power consumption of the battery and the running performance of the terminal, and can adjust and control the battery to be charged at the preset temperature in the low-temperature environment, thereby achieving better charging performance and ensuring the normal use of users.
It should be noted that the functional modules in the mobile terminal may also constitute a charging control device applied to the mobile terminal, and may be a device other than the mobile terminal and capable of interacting with the mobile terminal, which is not limited in this application.
Figure 5 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to detect a real-time temperature of the mobile terminal when the mobile terminal is in a charging state; and if the real-time temperature is detected to be lower than the preset temperature threshold, adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature so as to control the charging current of the mobile terminal.
In the mobile terminal, according to the real-time temperature of the mobile terminal and the preset temperature threshold, the number of unit tasks currently operated by the mobile terminal can be adjusted based on the real-time temperature, so that the charging current of the mobile terminal is controlled. The embodiment of the invention adjusts the temperature of the mobile terminal by adopting the mode, does not influence the power consumption of the battery and the running performance of the terminal, and can adjust and control the battery to be charged at the preset temperature in the low-temperature environment, thereby achieving better charging performance and ensuring the normal use of users.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 5 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 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.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above mobile terminal charging control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned mobile terminal charging control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A mobile terminal charging control method is characterized by comprising the following steps:
detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state;
if the real-time temperature is detected to be lower than a preset temperature threshold value, adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature so as to control the charging current of the mobile terminal; the unit task is a task executed on a time slice when the processor executes multitask;
the detecting the real-time temperature of the mobile terminal comprises: detecting the real-time temperature of the mobile terminal according to a preset period;
the adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature comprises the following steps:
calculating a difference between the real-time temperature and the temperature threshold;
determining the target task scheduling number corresponding to the difference value according to the corresponding relation between the preset temperature interval and the task scheduling number;
and adjusting the number of the unit tasks running in the mobile terminal according to the target task scheduling number, so that the number of the unit tasks running is the same as the task scheduling number.
2. The method of claim 1, wherein prior to said calculating the difference between the real-time temperature and the temperature threshold, the method further comprises:
acquiring the battery attribute of the mobile terminal;
and determining the value of the temperature threshold according to the battery attribute of the mobile terminal.
3. The method of claim 2, wherein the battery attributes comprise: and the corresponding relation between the temperature of the battery cell and the charging current.
4. The method of claim 1, wherein the adjusting the number of unit tasks currently executed by the mobile terminal based on the real-time temperature comprises:
and adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature until the real-time temperature reaches the temperature threshold.
5. The method according to any one of claims 1 to 4, wherein in the process of adjusting the number of unit tasks currently run by the mobile terminal, the method further comprises:
acquiring the number of unit tasks in operation;
adjusting display parameters of a preset charging identifier according to the number of the unit tasks in operation;
and a corresponding relation is preset between the number of the running unit tasks and the display parameters of the charging identification.
6. A mobile terminal, comprising:
the mobile terminal comprises a detection module, a control module and a control module, wherein the detection module is used for detecting the real-time temperature of the mobile terminal when the mobile terminal is in a charging state;
the adjusting module is used for adjusting the number of unit tasks currently operated by the mobile terminal based on the real-time temperature to control the charging current of the mobile terminal if the real-time temperature is detected to be lower than a preset temperature threshold; the unit task is a task executed on a time slice when the processor executes multitask;
the detection module is further used for detecting the real-time temperature of the mobile terminal according to a preset period;
the adjustment module includes:
a calculating unit for calculating a difference between the real-time temperature and the temperature threshold;
the task quantity determining unit is used for determining the target task scheduling quantity corresponding to the difference value according to the corresponding relation between the preset temperature interval and the task scheduling quantity;
and the task scheduling unit is used for adjusting the number of the unit tasks running in the mobile terminal according to the target task scheduling number, so that the number of the unit tasks running is the same as the task scheduling number.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the battery attribute acquisition module is used for acquiring the battery attribute of the mobile terminal;
and the temperature threshold value determining module is used for determining the value of the temperature threshold value according to the battery attribute of the mobile terminal.
8. The mobile terminal of claim 7, wherein the battery attributes comprise: and the corresponding relation between the temperature of the battery cell and the charging current.
9. The mobile terminal of claim 6, wherein the adjusting module is further configured to adjust the number of unit tasks currently run by the mobile terminal based on the real-time temperature until the real-time temperature reaches the temperature threshold.
10. The mobile terminal according to any of claims 6 to 9, characterized in that the mobile terminal further comprises:
the display parameter adjusting module is used for acquiring the number of unit tasks in operation; and adjusting preset display parameters of the charging identifier according to the number of the running unit tasks, wherein a corresponding relation is preset between the number of the running unit tasks and the display parameters of the charging identifier.
11. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the mobile terminal charging control method according to any of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the mobile terminal charging control method according to any one of claims 1 to 5.
CN201710984424.XA 2017-10-20 2017-10-20 Mobile terminal charging control method and mobile terminal Active CN107733016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710984424.XA CN107733016B (en) 2017-10-20 2017-10-20 Mobile terminal charging control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710984424.XA CN107733016B (en) 2017-10-20 2017-10-20 Mobile terminal charging control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107733016A CN107733016A (en) 2018-02-23
CN107733016B true CN107733016B (en) 2020-07-14

Family

ID=61212168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710984424.XA Active CN107733016B (en) 2017-10-20 2017-10-20 Mobile terminal charging control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107733016B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109066834A (en) * 2018-07-12 2018-12-21 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal charging method and device
CN109634737A (en) * 2018-12-21 2019-04-16 易相会 Handheld terminal task distributor gear
CN111756103B (en) * 2020-07-06 2022-03-04 青岛海信移动通信技术股份有限公司 Mobile terminal and charging method thereof
CN111930457A (en) * 2020-08-07 2020-11-13 深圳传音控股股份有限公司 Charging prompting method, mobile terminal and storage medium
CN113032145B (en) * 2021-03-18 2023-12-26 北京计算机技术及应用研究所 Task scheduling method based on domestic multi-NUMA node CPU junction temperature balancing strategy

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106532853A (en) * 2016-12-20 2017-03-22 珠海市魅族科技有限公司 Charging method and mobile terminal
CN106648856A (en) * 2016-11-24 2017-05-10 深圳市万普拉斯科技有限公司 Task scheduling method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013021752A (en) * 2011-07-07 2013-01-31 Nec Casio Mobile Communications Ltd Charging control circuit, charging control method, and portable terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648856A (en) * 2016-11-24 2017-05-10 深圳市万普拉斯科技有限公司 Task scheduling method and device
CN106532853A (en) * 2016-12-20 2017-03-22 珠海市魅族科技有限公司 Charging method and mobile terminal

Also Published As

Publication number Publication date
CN107733016A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107357385B (en) Method for controlling temperature based on frequency, terminal and computer readable storage medium
CN107733016B (en) Mobile terminal charging control method and mobile terminal
CN108089767B (en) Fingerprint identification area dividing method and mobile terminal
CN108322599B (en) Network access method and mobile terminal
CN110445924B (en) Network task execution method and terminal equipment
CN107832689B (en) Fingerprint identification method and mobile terminal
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN108391008B (en) Message reminding method and mobile terminal
CN110365853B (en) Prompting method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN108388403B (en) Method and terminal for processing message
CN109600468B (en) Control method of foldable terminal and foldable terminal
CN108601048B (en) Flow control method and mobile terminal
CN108008892B (en) Function starting method and terminal
CN107800869B (en) Split screen display method, mobile terminal and storage medium
CN110995924B (en) Account management method and electronic equipment
CN108089935B (en) Application program management method and mobile terminal
CN108366171B (en) Temperature rise control method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN108200635B (en) Operation control method of application program and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN111240451B (en) Heat dissipation method, electronic device and computer-readable storage medium

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