CN107659718B - Method and device for controlling mobile terminal, mobile terminal and storage medium - Google Patents

Method and device for controlling mobile terminal, mobile terminal and storage medium Download PDF

Info

Publication number
CN107659718B
CN107659718B CN201710848485.3A CN201710848485A CN107659718B CN 107659718 B CN107659718 B CN 107659718B CN 201710848485 A CN201710848485 A CN 201710848485A CN 107659718 B CN107659718 B CN 107659718B
Authority
CN
China
Prior art keywords
time
mobile terminal
modem
state
active
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
CN201710848485.3A
Other languages
Chinese (zh)
Other versions
CN107659718A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710848485.3A priority Critical patent/CN107659718B/en
Publication of CN107659718A publication Critical patent/CN107659718A/en
Application granted granted Critical
Publication of CN107659718B publication Critical patent/CN107659718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Abstract

The embodiment of the application relates to a method and a device for controlling a mobile terminal, the mobile terminal and a storage medium. The method comprises the following steps: when detecting that a modem of a mobile terminal is in an active state, recording the active time of the modem; when the active time reaches a first time threshold, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state; recording the first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, awakening the mobile terminal and reconnecting the network. The method, the device, the mobile terminal and the storage medium for controlling the mobile terminal can reasonably control the service time of the mobile terminal.

Description

Method and device for controlling mobile terminal, mobile terminal and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a mobile terminal, and a computer-readable storage medium.
Background
With the increasing strength of functions of intelligent mobile terminals (such as mobile phones, tablet computers and the like), users have higher and higher dependence on the functions, and the intelligent mobile terminals can not only realize the communication functions of ordinary telephones, short messages and the like, but also be used for surfing the internet to browse information, playing games and the like. The user uses intelligent mobile terminal for a long time, not only causes eye fatigue easily, also has certain injury to the health simultaneously.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling a mobile terminal, the mobile terminal and a computer readable storage medium, which can reasonably control the service time of the mobile terminal.
A method of controlling a mobile terminal, comprising:
when detecting that a modem of a mobile terminal is in an active state, recording the active time of the modem;
when the active time reaches a first time threshold, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state;
recording the first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, awakening the mobile terminal and reconnecting the network.
An apparatus for controlling a mobile terminal, comprising:
the mobile terminal comprises an active time recording module, a time judging module and a time judging module, wherein the active time recording module is used for recording the active time of a modem when the modem of the mobile terminal is detected to be in an active state;
the dormancy module is used for disconnecting the current network connection and enabling the mobile terminal to enter a dormancy state when the active time reaches a first time threshold value;
and the dormancy time recording module is used for recording the first dormancy time of the mobile terminal, and awakening the mobile terminal and reconnecting the network when the first dormancy time reaches a second time threshold value.
A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, the computer program instructions, when executed by the processor, causing the processor to implement the method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method as set forth above.
According to the method, the device, the mobile terminal and the computer readable storage medium for controlling the mobile terminal, when the active time of the modem of the mobile terminal reaches the first time threshold, the current network connection is disconnected, the mobile terminal is enabled to enter the dormant state, and when the dormant time of the mobile terminal reaches the second time threshold, the mobile terminal is awakened and the network is reconnected, so that the service time of the mobile terminal can be reasonably controlled, and the health damage caused by long-time use of the mobile terminal by a user is reduced.
Drawings
FIG. 1 is a flow diagram illustrating a method for controlling a mobile terminal in one embodiment;
FIG. 2 is a flow diagram illustrating the process of obtaining a first time threshold and a second time threshold according to one embodiment;
FIG. 3 is a flowchart illustrating the process of obtaining the first time threshold and the second time threshold according to another embodiment;
FIG. 4 is a flow diagram illustrating an embodiment of a modem after entering a sleep state;
FIG. 5 is a block diagram of an apparatus that controls a mobile terminal in one embodiment;
fig. 6 is a block diagram of a mobile terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
As shown in fig. 1, in one embodiment, there is provided a method of controlling a mobile terminal, including the steps of:
step 110, when detecting that the modem of the mobile terminal is in an active state, recording the active time of the modem.
A Modem (Modem) is built in the mobile terminal and is mainly used for processing wireless communication, and the Modem can establish a logical channel between the mobile terminal and the wireless network and transmit networking data through the logical channel. The mobile terminal may monitor a state of a built-in modem, and may record an active time of the modem when detecting that the modem is in an active state, where the active state of the modem refers to that the mobile terminal is in a state capable of performing Wireless communication, and the Wireless communication may include WiFi (Wireless-Fidelity) communication, GPRS (General Packet radio service) communication, bluetooth communication, and the like.
In one embodiment, the mobile terminal may start a first timer for recording the modem's active time. When the mobile terminal starts the first timer, whether the first timer stores the last recorded active time can be detected, if so, the first timer can be reset, and the active time of the modem is recorded again.
And step 120, when the active time reaches a first time threshold, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state.
The mobile terminal may be preset with a first time threshold, where the first time threshold refers to the longest time that the mobile terminal can be used, and the first time threshold may be set by a user according to actual needs. The mobile terminal records the active time of the modem through the first timer, and can compare the recorded active time with a first time threshold value every other preset time period to judge whether the recorded active time reaches the first time threshold value, wherein the preset time period can be set according to actual requirements, such as 5 minutes, 10 minutes and the like. When the active time of the modem reaches a first time threshold, the mobile terminal can disconnect the current network connection and enter a dormant state, and after entering the dormant state, the mobile terminal can stop working.
In one embodiment, when the active time of the modem recorded by the first timer reaches the first time threshold, the mobile terminal may detect whether the mobile terminal is currently in a predetermined communication state, which may include, but is not limited to, a call state, a video state, and the like. Different communication states can correspond to different state detection interfaces, when the active time of the modem reaches a first time threshold value, the mobile terminal can detect whether the modem is in a preset communication state or not one by one according to each state detection interface, and if the modem is in the preset communication state, the mobile terminal can send warning information according to a preset mode. The sending mode of the warning information can be set according to actual requirements, for example, the warning information is sent through vibration, the warning information is sent through voice, the warning information is sent through flashing of a flash lamp, and the like. If the mobile terminal is not in the preset communication state, the mobile terminal can disconnect the current network connection and enter a dormant state.
In one embodiment, if the mobile terminal is currently in a preset communication state, the mobile terminal sends the warning information according to a preset mode, the sending time of the warning information can be recorded, and when the sending time exceeds the buffer time from the current time, the mobile terminal can directly disconnect the current network connection and enter a dormant state. The buffering time refers to the buffering time after the mobile terminal sends the warning information, and can be set in advance according to actual requirements, for example, 10 minutes, 15 minutes and the like, and in the buffering time, a user can finish the communication as soon as possible, so that inconvenience brought to the user when the mobile terminal directly enters a dormant state can be avoided.
Step 130, recording a first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, waking up the mobile terminal and reconnecting the network.
The mobile terminal may be preset with a second time threshold, where the second time threshold refers to a time when the mobile terminal cannot be used, and the second time threshold may be set by a user according to actual needs. When the mobile terminal enters the sleep state, a second timer can be started, and the second timer is used for recording the first sleep time of the mobile terminal. When the mobile terminal starts the second timer, whether the second timer stores the first dormancy time recorded last time can be detected, if yes, the second timer can be reset, and the recording of the first dormancy time of the mobile terminal is started. In one embodiment, the second timer may be a Real Time Clock (RTC), which is a separate hardware Clock and can run normally when the processor of the mobile terminal is in sleep. When the first sleep time recorded on the RTC reaches the second time threshold, the RTC may wake up the processor of the mobile terminal in an interrupt manner, so that the mobile terminal may be woken up. After the mobile terminal is awakened, the network can be reconnected.
In an embodiment, when the mobile terminal disconnects the current network connection and enters a sleep state, if a touch operation of a user is received, an operation type of the touch operation may be determined, and whether the operation type belongs to a preset white list may be determined, where the white list may record an operation type that may be performed when the mobile terminal enters the sleep state, for example, basic operations such as making a call, answering a call, and the like. If the operation type of the received touch operation does not belong to the preset white list, the mobile terminal does not respond to the touch operation, and if the operation type of the received touch operation belongs to the preset white list, the mobile terminal can normally respond to the touch operation and execute a corresponding task according to the touch operation.
In this embodiment, when the active time of the modem of the mobile terminal reaches the first time threshold, the current network connection is disconnected, and the mobile terminal enters the sleep state, and when the sleep time of the mobile terminal reaches the second time threshold, the mobile terminal is awakened and the network is reconnected, so that the service time of the mobile terminal can be controlled, the user can use the mobile terminal reasonably, and health damage caused by long-time use of the mobile terminal by the user is reduced.
As shown in fig. 2, in one embodiment, after the step when the modem of the mobile terminal is detected to be in an active state, the method further comprises the steps of:
step 202, collecting user identification information, and determining the user identity according to the user identification information.
When the mobile terminal detects that the modem is in an active state, user identification information of a user currently using the mobile terminal can be collected, wherein the user identification information can be one or more of fingerprint information, iris information, an input account number, a password and the like. After the mobile terminal collects the user identification information, the collected user identification information can be matched with the pre-stored user identification information to determine the user identity, wherein the user identity can be information such as the name of the user, and the like, and can also be a group to which the user belongs, such as children, teenagers, adults, the elderly, and the like.
Step 204, reading the identity time mapping table, and obtaining a first time threshold and a second time threshold matched with the user identity from the identity time mapping table.
In one embodiment, the mobile terminal may preset an identity time mapping table, and different user identities may correspond to different first time thresholds and second time thresholds, and store the correspondence between the user identity and the first time thresholds, and the correspondence between the user identity and the second time thresholds in the identity time mapping table. For example, the user identity is a child, the corresponding first time threshold may be set for a shorter time, the second time threshold may be set for a longer time, the user identity is an adult, the corresponding first time threshold may be set for a longer time, and the second time threshold may be set for a shorter time, but is not limited thereto. After the mobile terminal determines the user identity of the current operation, a first time threshold and a second time threshold matched with the user identity can be obtained from the identity time mapping table, and the mobile terminal is controlled to be used according to the obtained matched first time threshold and second time threshold.
In this embodiment, the first time threshold and the second time threshold that are matched can be obtained according to the user identity, and the usable time of the mobile terminal is controlled according to the user identity, so that the usable time of the mobile terminal is controlled more reasonably.
As shown in fig. 3, in one embodiment, after the step when the modem of the mobile terminal is detected to be in an active state, the method further comprises the steps of:
step 302, obtaining the application program identifier operated in the foreground, and determining the application type according to the application program identifier.
When detecting that the modem is in an active state, the mobile terminal can obtain the identification of the application program running in the foreground through the activity manager, can obtain an application program list through the RunningAppProcessInfo class of the activity manager, and can judge whether the state of each running application program in the application program list is running in the foreground or running in the background one by one, wherein all running application programs are recorded in the application program list. The mobile terminal may obtain, from the application list, an application identifier whose state is foreground operation, where the application identifier may be a name of the application or information such as a number that can be used to uniquely identify the application. The mobile terminal can determine the application type of the application program running in the foreground according to the application program identification running in the foreground, wherein the application type can comprise instant messaging application, game application, shopping application, video application and the like.
Step 304, a first time threshold and a second time threshold matching the application type are obtained.
In an embodiment, the mobile terminal may preset different first time thresholds and second time thresholds corresponding to different application types, for example, the first time threshold corresponding to the instant messaging application is 3 hours, the second time threshold is 1 hour, the first time threshold corresponding to the game application is 1 hour, the second time threshold is 2 hours, the first time threshold corresponding to the video application is 2 hours, the second time threshold is 1 hour, and the like, but is not limited thereto. The mobile terminal may store the correspondence between the application type and the first and second time thresholds in the application time mapping table. After determining the application type of the application program running in the foreground, the mobile terminal can acquire a first time threshold and a second time threshold which are matched with the application type according to the application time mapping table, and control the use of the mobile terminal according to the acquired matched first time threshold and second time threshold.
It is to be understood that the mobile terminal may set a plurality of parameters affecting the first time threshold and the second time threshold, and besides the user identity and the application type of the application running in the foreground, the mobile terminal may further include other parameters, such as a time period corresponding to the current time of the mobile terminal, whether the current day is a working day, and the like, which is not limited thereto.
In one embodiment, the mobile terminal may combine the plurality of parameters, calculate the corresponding first time threshold and second time threshold, assign a corresponding weight to each parameter, and perform weighted calculation on the first time threshold and the second time threshold matched with each parameter according to the weight of each parameter to obtain the corresponding first time threshold and second time threshold. For example, the user identity currently operated by the mobile terminal is a child, the first time threshold is matched to be 1 hour, the second time threshold is 2 hours, the application type of the application program running in the foreground is a video application, the first time threshold is matched to be 2 hours, the second time threshold is 1 hour, wherein the weight corresponding to the user identity may be 60%, the weight corresponding to the application type may be 40%, after performing the weighting calculation, the first time threshold may be obtained as 1 hour 60% +2 hours 40% + 1.4 hours, and the second time threshold may be 2 hours 60% +1 hour 40% +1 hour 1.6 hours. Other calculation methods may be used, and are not limited thereto.
In this embodiment, the matched first time threshold and the second time threshold can be obtained according to the application identifier of the application program running in the foreground, and the usable time of the mobile terminal is controlled according to the application program running in the foreground, so that the management and control of the usable time of the mobile terminal are more reasonable.
In one embodiment, after the step of recording the active time of the modem, the method further comprises: when it is detected that the modem enters the sleep state, the recorded active time is cleared and it is redetected whether the modem is in the active state.
The mobile terminal starts a first timer to record the active time of the modem, can monitor the state of the modem at the same time, detects that the modem enters a dormant state when the active time does not reach a first time threshold value, can stop recording the active time of the modem, and clears the active time recorded by the first timer at this time, wherein the fact that the modem enters the dormant state means that the mobile terminal is in a state that wireless communication cannot be carried out. When the mobile terminal detects the modem is in active state again, the first timer can be restarted to record the active time of the modem from zero. When the modem enters the dormant state, namely the recorded active time is cleared, the accuracy of the recorded active time can be ensured.
As shown in fig. 4, in one embodiment, after the step when the modem is detected to enter the sleep state, the following steps are further included:
step 402, recording a second sleep time of the modem and re-detecting whether the modem is in an active state.
When the mobile terminal detects that the modem enters the sleep state, a third timer for recording a second sleep time of the modem may be started. When the mobile terminal starts the third timer, it can detect whether the third timer stores the second dormancy time recorded last time, if yes, it can reset the third timer, and then starts to record the third dormancy time of the modem.
And step 404, clearing the recorded active time when the second sleep time reaches a third time threshold.
After the modem enters the dormant state, the mobile terminal can continue to monitor the state of the modem, and when the second dormant time recorded by the third timer reaches a third time threshold value and the modem is not detected to enter the active state, the mobile terminal can directly clear the active time recorded on the first timer. The third time threshold may be set according to actual requirements, and refers to the shortest sleep time of the modem, for example, 30s, 1 minute, and the like.
And 406, reading the recorded active time and continuing to accumulate when the second sleep time does not reach the third time threshold when the modem is detected to be in the active state.
And if the mobile terminal detects that the modem enters the active state and the second dormancy time recorded by the third timer does not reach the third time threshold value, reading the active time recorded before the first timer, and continuously accumulating on the basis of the previously recorded active time without recording the active time of the modem again from zero.
In this embodiment, the active time of the modem is recorded again from zero only when the time when the modem enters the sleep state reaches the third time threshold, so that the user can be prevented from entering the unusable sleep state by turning off the communication function of the modem for a short time, and the service time of the mobile terminal can be controlled more accurately and reasonably.
In one embodiment, there is provided a method of controlling a mobile terminal, including the steps of:
step (1), when detecting that a modem of the mobile terminal is in an active state, acquiring user identification information, determining a user identity according to the user identification information, reading an identity time mapping table, and acquiring a first time threshold value and a second time threshold value matched with the user identity from the identity time mapping table.
Step (2), recording the active time of the modem, recording the second sleep time of the modem when the modem is detected to enter the sleep state, and detecting whether the modem is in the active state again, and clearing the recorded active time when the second sleep time reaches a third time threshold; and when the second sleep time does not reach a third time threshold value when the modem is detected to be in an active state, reading the recorded active time and continuing to accumulate.
Step (3), when the active time reaches a first time threshold, detecting whether the mobile terminal is in a preset communication state or not, if so, sending warning information according to a preset mode, and if not, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state;
and (4) recording the first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, awakening the mobile terminal and reconnecting the network.
In this embodiment, when the active time of the modem of the mobile terminal reaches the first time threshold, the current network connection is disconnected, and the mobile terminal enters the sleep state, and when the sleep time of the mobile terminal reaches the second time threshold, the mobile terminal is awakened and the network is reconnected, so that the service time of the mobile terminal can be controlled, the user can use the mobile terminal reasonably, and health damage caused by long-time use of the mobile terminal by the user is reduced.
In one embodiment, there is provided a method of controlling a mobile terminal, including the steps of:
step (1), when detecting that a modem of the mobile terminal is in an active state, acquiring an application program identifier operated by a foreground, determining an application type according to the application program identifier, and acquiring a first time threshold and a second time threshold which are matched with the application type.
Step (2), recording the active time of the modem, recording the second sleep time of the modem when the modem is detected to enter the sleep state, and detecting whether the modem is in the active state again, and clearing the recorded active time when the second sleep time reaches a third time threshold; and when the second sleep time does not reach a third time threshold value when the modem is detected to be in an active state, reading the recorded active time and continuing to accumulate.
Step (3), when the active time reaches a first time threshold, detecting whether the mobile terminal is in a preset communication state or not, if so, sending warning information according to a preset mode, and if not, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state;
and (4) recording the first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, awakening the mobile terminal and reconnecting the network.
In this embodiment, when the active time of the modem of the mobile terminal reaches the first time threshold, the current network connection is disconnected, and the mobile terminal enters the sleep state, and when the sleep time of the mobile terminal reaches the second time threshold, the mobile terminal is awakened and the network is reconnected, so that the service time of the mobile terminal can be controlled, the user can use the mobile terminal reasonably, and health damage caused by long-time use of the mobile terminal by the user is reduced.
As shown in fig. 5, in one embodiment, an apparatus 500 for controlling a mobile terminal is provided and includes an active time recording module 510, a sleep module 520, and a sleep time recording module 530.
An active time recording module 510 for recording an active time of a modem of the mobile terminal when the modem is detected to be in an active state.
The sleep module 520 is configured to disconnect the current network connection and enable the mobile terminal to enter a sleep state when the active time reaches the first time threshold.
A sleep time recording module 530, configured to record a first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, wake up the mobile terminal and reconnect the network.
In one embodiment, the apparatus 500 for controlling a mobile terminal includes a communication status detection module.
And the communication state detection module is used for detecting whether the communication state is in a preset communication state at present, and if so, sending warning information according to a preset mode.
In this embodiment, when the active time of the modem of the mobile terminal reaches the first time threshold, the current network connection is disconnected, and the mobile terminal enters the sleep state, and when the sleep time of the mobile terminal reaches the second time threshold, the mobile terminal is awakened and the network is reconnected, so that the service time of the mobile terminal can be controlled, the user can use the mobile terminal reasonably, and health damage caused by long-time use of the mobile terminal by the user is reduced.
In one embodiment, the apparatus 500 for controlling a mobile terminal includes a determining module and an obtaining module in addition to the active time recording module 510, the sleep module 520, the sleep time recording module 530 and the communication state detecting module.
And the determining module is used for acquiring the user identification information and determining the user identity according to the user identification information.
And the obtaining module is used for reading the identity time mapping table and obtaining a first time threshold value and a second time threshold value which are matched with the user identity from the identity time mapping table.
In this embodiment, the first time threshold and the second time threshold that are matched can be obtained according to the user identity, and the usable time of the mobile terminal is controlled according to the user identity, so that the usable time of the mobile terminal is controlled more reasonably.
In one embodiment, the determining module is further configured to obtain an application identifier running in a foreground, and determine the application type according to the application identifier.
The obtaining module is further used for obtaining a first time threshold and a second time threshold which are matched with the application type.
In this embodiment, the matched first time threshold and the second time threshold can be obtained according to the application identifier of the application program running in the foreground, and the usable time of the mobile terminal is controlled according to the application program running in the foreground, so that the management and control of the usable time of the mobile terminal are more reasonable.
In one embodiment, the active time recording module 510 is further configured to clear the recorded active time when the modem is detected to enter the sleep state, and to re-detect whether the modem is in the active state.
In one embodiment, active time recording module 510 includes a recording unit, a clearing unit, and an accumulating unit.
And the recording unit is used for recording the second sleep time of the modem and detecting whether the modem is in an active state again.
And the clearing unit is used for clearing the recorded active time when the second dormancy time reaches a third time threshold.
And the accumulation unit is used for reading the recorded active time and continuing accumulation when the second dormancy time does not reach a third time threshold value when the modem is detected to be in the active state.
In this embodiment, the active time of the modem is recorded again from zero only when the time when the modem enters the sleep state reaches the third time threshold, so that the user can be prevented from entering the unusable sleep state by turning off the communication function of the modem for a short time, and the service time of the mobile terminal can be controlled more accurately and reasonably.
The embodiment of the application also provides the mobile terminal. As shown in fig. 6, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 6 is a block diagram of a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present application. Referring to fig. 6, the handset includes: radio Frequency (RF) circuitry 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuitry 660, WiFi module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 610 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of the base station and then process the downlink information to the processor 680; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM, General Packet Radio Service (GPRS), CDMA, Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 620 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 input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 630 may include a touch panel 632 and other input devices 634. The touch panel 632, which may also be referred to as a touch screen, may collect touch operations of a user (e.g., operations of a user on or near the touch panel 632 using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 632 may include two portions, 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 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 632 can be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 634 in addition to the touch panel 632. In particular, other input devices 634 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 642. In one embodiment, the Display panel 642 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 632 can cover the display panel 642, and when the touch panel 632 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 642 according to the type of the touch event. Although in fig. 6, the touch panel 632 and the display panel 642 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 632 and the display panel 642 may be integrated to implement the input and output functions of the mobile phone.
The handset 600 may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 642 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 642 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuit 660, speaker 662, and microphone 664 may provide an audio interface between a user and a cell phone. The audio circuit 660 can transmit the electrical signal converted from the received audio data to the loudspeaker 662, and convert the electrical signal into a sound signal by the loudspeaker 662 and output the sound signal; on the other hand, the microphone 664 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 660, and then outputs the audio data to the processor 680 for processing, and then the audio data can be transmitted to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. In one embodiment, processor 680 may include one or more processing units. In one embodiment, processor 680 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset 600 also includes a power supply 690 (e.g., a battery) for powering the various components, and preferably, the power supply 690 may be logically coupled to the processor 680 via a power management system, such that functions of managing charging, discharging, and power consumption are performed via the power management system.
In one embodiment, the handset 600 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 680 included in the mobile terminal implements the above-described method of controlling the mobile terminal when executing the computer program stored in the memory.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the above-mentioned method of controlling a mobile terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of controlling a mobile terminal, comprising:
when detecting that a modem of a mobile terminal is in an active state, recording the active time of the modem;
when the active time reaches a first time threshold, disconnecting the current network connection and enabling the mobile terminal to enter a dormant state;
recording the first sleep time of the mobile terminal, and when the first sleep time reaches a second time threshold, awakening the mobile terminal and reconnecting the network.
2. The method of claim 1, wherein prior to said disconnecting the current network connection, the method further comprises:
detecting whether the current communication state is in a preset communication state, and if so, sending warning information according to a preset mode; the preset communication state comprises a call state or a video state.
3. The method according to claim 1 or 2, characterized in that after said detecting that the modem of the mobile terminal is in an active state, the method further comprises:
collecting user identification information, and determining the user identity according to the user identification information;
and reading an identity time mapping table, and acquiring a first time threshold and a second time threshold which are matched with the user identity from the identity time mapping table.
4. The method according to claim 1 or 2, characterized in that after said detecting that the modem of the mobile terminal is in an active state, the method further comprises:
acquiring an application program identifier operated in a foreground, and determining an application type according to the application program identifier;
and acquiring a first time threshold and a second time threshold which are matched with the application type.
5. The method of claim 1, wherein after said recording the modem's active time, the method further comprises:
when it is detected that the modem enters a dormant state, the recorded active time is cleared, and whether the modem is in an active state is re-detected.
6. The method of claim 5, wherein after said detecting that the modem enters the sleep state, the method further comprises:
recording a second sleep time of the modem and re-detecting whether the modem is in an active state;
clearing the recorded active time when the second sleep time reaches a third time threshold;
and when the second sleep time does not reach the third time threshold value when the modem is detected to be in the active state, reading the recorded active time and continuing to accumulate.
7. An apparatus for controlling a mobile terminal, comprising:
the mobile terminal comprises an active time recording module, a time judging module and a time judging module, wherein the active time recording module is used for recording the active time of a modem when the modem of the mobile terminal is detected to be in an active state;
the dormancy module is used for disconnecting the current network connection and enabling the mobile terminal to enter a dormancy state when the active time reaches a first time threshold value;
and the dormancy time recording module is used for recording the first dormancy time of the mobile terminal, and awakening the mobile terminal and reconnecting the network when the first dormancy time reaches a second time threshold value.
8. The apparatus of claim 7, further comprising:
the communication state detection module is used for detecting whether the communication state is in a preset communication state at present, and if the communication state is in the preset communication state, sending warning information according to a preset mode; the preset communication state comprises a call state or a video state.
9. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, the computer program instructions, when executed by the processor, cause the processor to implement the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201710848485.3A 2017-09-19 2017-09-19 Method and device for controlling mobile terminal, mobile terminal and storage medium Active CN107659718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710848485.3A CN107659718B (en) 2017-09-19 2017-09-19 Method and device for controlling mobile terminal, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710848485.3A CN107659718B (en) 2017-09-19 2017-09-19 Method and device for controlling mobile terminal, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107659718A CN107659718A (en) 2018-02-02
CN107659718B true CN107659718B (en) 2020-05-12

Family

ID=61130770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710848485.3A Active CN107659718B (en) 2017-09-19 2017-09-19 Method and device for controlling mobile terminal, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107659718B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898428A (en) * 2018-06-19 2018-11-27 努比亚技术有限公司 A kind of terminal user enlivens determination method, server and the storage medium of index
CN109413612A (en) * 2018-10-22 2019-03-01 深圳市元征科技股份有限公司 A kind of communication connection method for building up and equipment
CN112087772B (en) * 2020-10-10 2023-04-07 Oppo(重庆)智能科技有限公司 Network anomaly recovery method, terminal and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270520A (en) * 2014-09-26 2015-01-07 苏州佳世达电通有限公司 Network management method and system based on mobile terminal
CN106485117A (en) * 2016-09-19 2017-03-08 惠州Tcl移动通信有限公司 A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system
CN106550152A (en) * 2017-01-19 2017-03-29 宇龙计算机通信科技(深圳)有限公司 Realize the method and mobile terminal of modem energy-conservation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7584366B2 (en) * 2004-07-08 2009-09-01 At&T Intellectual Property I, L.P. Methods, systems and computer program products for detecting tampering of electronic equipment based on constrained time to obtain computational result
US8718633B2 (en) * 2011-07-13 2014-05-06 Qualcomm Incorporated Intelligent parental controls for wireless devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270520A (en) * 2014-09-26 2015-01-07 苏州佳世达电通有限公司 Network management method and system based on mobile terminal
CN106485117A (en) * 2016-09-19 2017-03-08 惠州Tcl移动通信有限公司 A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system
CN106550152A (en) * 2017-01-19 2017-03-29 宇龙计算机通信科技(深圳)有限公司 Realize the method and mobile terminal of modem energy-conservation

Also Published As

Publication number Publication date
CN107659718A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN107272872B (en) Power saving control method and related product
CN108900231B (en) Dynamic antenna adjustment method and related product
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
CN106250223B (en) Background process management method and terminal equipment
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN107566604B (en) Message reminding control method and user terminal
CN106446111B (en) Data migration method and terminal
CN110169091B (en) Communication method, wearable device, mobile terminal and system
CN108762814B (en) Screen lightening method and related equipment
CN106658753B (en) Data migration method and terminal equipment
CN107613129B (en) Unlocking method and related product
WO2018214744A1 (en) Information processing method and related product
CN106604277B (en) Wireless network access method and mobile terminal
CN107317918B (en) Parameter setting method and related product
CN107659718B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN108810261B (en) Antenna switching method in call and related product
CN112805988B (en) Call control method and device, computer readable storage medium and electronic equipment
CN106095566B (en) Response control method and mobile terminal
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN112286286B (en) Standby control method, wearable device and computer readable storage medium
CN107040658B (en) Mobile terminal and method and device for controlling screen thereof
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN110277097B (en) Data processing method and related equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant