CN109040459B - Terminal device control method, terminal device and computer readable storage medium - Google Patents

Terminal device control method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN109040459B
CN109040459B CN201810980803.6A CN201810980803A CN109040459B CN 109040459 B CN109040459 B CN 109040459B CN 201810980803 A CN201810980803 A CN 201810980803A CN 109040459 B CN109040459 B CN 109040459B
Authority
CN
China
Prior art keywords
frequency
terminal device
terminal equipment
target
value
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
CN201810980803.6A
Other languages
Chinese (zh)
Other versions
CN109040459A (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 CN201810980803.6A priority Critical patent/CN109040459B/en
Publication of CN109040459A publication Critical patent/CN109040459A/en
Application granted granted Critical
Publication of CN109040459B publication Critical patent/CN109040459B/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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention provides a terminal device control method and a terminal device, wherein the terminal device control method comprises the following steps: under the condition that the terminal equipment is detected to be in a falling or collision state, controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU; under the condition that the working frequency of the target device is in a preset frequency range, the crystal oscillator frequency deviation value of the terminal device is in a target allowable frequency deviation value range, and the target allowable frequency deviation value range is an allowable frequency deviation value range corresponding to the working frequency in the preset frequency range. Therefore, when the terminal equipment is in a falling or collision state, the working frequency of the terminal equipment is in the preset frequency range, so that the crystal oscillator frequency deviation value of the terminal equipment is in the target frequency deviation value range, the terminal equipment can reliably transmit data, and the reliability of the terminal equipment can be improved.

Description

Terminal device control method, terminal device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a terminal device and a control method thereof.
Background
With the increase of terminal equipment, the functions of the terminal equipment are more and more, and higher requirements are also put forward on the terminal equipment. For example, the terminal device may run an application program such as a game or a video, which is highly required for the terminal. When the terminal equipment runs a game or video application program, the working frequency of a CPU and a DDR of the terminal equipment is higher, the requirement on the precision of a crystal oscillator is higher, namely the allowable value of the frequency deviation of the crystal oscillator is smaller. The crystal oscillator belongs to a mechanical device and is sensitive to external force. In conventional reliability tests such as roller test and directional drop, frequency deviation is easy to occur to a crystal oscillator, and when the frequency deviation exceeds an allowable frequency deviation value, data errors can be caused, and even a terminal is halted or restarted.
Therefore, the reliability of the terminal equipment in the falling or collision scene is low.
Disclosure of Invention
The embodiment of the invention provides a control method of a terminal device and the terminal device, and aims to solve the problem of low reliability of the terminal device in the scene of falling or collision and the like.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling a terminal device, including:
under the condition that the terminal equipment is detected to be in a falling or collision state, controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the control module is used for controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range under the condition that the terminal equipment is detected to be in a falling or collision state, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the control method of the terminal device as described above when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the control method of the terminal device as described above.
In the embodiment of the invention, under the condition that the terminal equipment is detected to be in a falling or collision state, the working frequency of a target device of the terminal equipment is controlled to be in a preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU; and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range. Therefore, when the terminal equipment is in a falling or collision state, the working frequency of the terminal equipment is in the preset frequency range, so that the crystal oscillator frequency deviation value of the terminal equipment is in the target frequency deviation value range, the terminal equipment can reliably transmit data, and the reliability of the terminal equipment can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is one of flowcharts of a control method of a terminal device according to an embodiment of the present invention;
fig. 2 is a second flowchart of a control method of a terminal device according to an embodiment of the present invention;
fig. 3 is a third flowchart of a control method of a terminal device according to an embodiment of the present invention;
fig. 4 is one of the structural diagrams of the terminal device provided in the embodiment of the present invention;
fig. 5 is one of the structural diagrams of a control module in the terminal device according to the embodiment of the present invention;
fig. 6 is a second structural diagram of a control module in the terminal device according to the second embodiment of the present invention;
fig. 7 is a second structural diagram of a terminal device 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.
Referring to fig. 1, fig. 1 is a flowchart of a control method of a terminal device according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, under the condition that the terminal equipment is detected to be in a falling or collision state, controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU.
And under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
In the prior art, when the working frequency of a target device is higher, the requirement on the precision of a crystal oscillator is higher and higher, and when the frequency deviation is slightly larger, faults such as dead halt or restart are easily caused.
Taking DDR reading and writing as an example, when the operating frequency of DDR is 1866Hz, the allowable timing deviation of the sampling signal and the data signal is 115ps, and if the frequency offset of the crystal oscillator exceeds 115ps, data errors may be caused; when the operating frequency of the DDR is 1333Hz, the allowable timing deviation of the sampling signal and the data signal is 165ps, and if the crystal oscillator frequency deviation exceeds 115ps and is less than 165ps, the data can continue to be transmitted reliably.
Therefore, when the working frequency of the DDR is low, the range of the allowable frequency offset of the crystal oscillator is large, and the requirement for the timing deviation is low, that is, the requirement for the allowable frequency offset of the crystal oscillator is low. Therefore, the operating frequency of the DDR of the terminal device can be adjusted to be within a preset range, so as to obtain an allowable frequency offset value with a larger range, that is, an allowable frequency offset value with a lower requirement.
Because the terminal device is prone to failure when falling or colliding, the terminal device can detect whether the terminal device is in the scene where the failure is prone to occur. Specifically, whether the terminal device is in a falling state or a collision state can be determined by detecting physical quantities such as speed or acceleration of the terminal device.
Under the condition that the terminal equipment is in the falling or collision state, the working frequency of a target device of the terminal equipment can be controlled to be in a preset frequency range, and the purpose of reducing the working frequency of the DDR and the CPU can be achieved by reducing running application programs of the terminal equipment or closing backlight, screen locking and the like of the terminal equipment. When the target device is a DDR, the preset frequency range is the preset DDR frequency range; when the device is a CPU, the preset frequency range is the preset frequency range of the CPU; when the target device simultaneously comprises the DDR and the CPU, the DDR is in a preset DDR frequency range, and the CPU is in a preset CPU frequency range.
When the working frequency of the target device is within the preset frequency range, the target allowable frequency offset range corresponding to the working frequency of the target device is larger, so that the crystal oscillator frequency offset value of the terminal equipment is easily within the target allowable frequency offset value range, and therefore, data can be reliably transmitted without faults such as halt, restart and the like.
In this embodiment of the present invention, the control method of the terminal device may be applied to a terminal device, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the control method of the terminal equipment, under the condition that the terminal equipment is detected to be in a falling or collision state, the working frequency of a target device of the terminal equipment is controlled to be in a preset frequency range, and the target device comprises at least one of a double-rate synchronous dynamic random access memory (DDR) and a Central Processing Unit (CPU); and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range. Therefore, when the terminal equipment is in a falling or collision state, the working frequency of the terminal equipment is in the preset frequency range, so that the crystal oscillator frequency deviation value of the terminal equipment is in the target frequency deviation value range, the terminal equipment can reliably transmit data, and the reliability of the terminal equipment can be improved.
Referring to fig. 2, the main difference between the present embodiment and the above-mentioned embodiment is that the operating frequency of the target device of the terminal device is reduced to the preset frequency range by closing part of the third-party application.
Fig. 2 is a flowchart of a control method of a terminal device according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step 201, under the condition that the terminal device is detected to be in a falling or collision state, controlling the terminal device to be in a screen-off state, and/or if the terminal device runs a third-party application program, closing at least part of the third-party application program so as to reduce the working frequency of a target device of the terminal device to the preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory (DDR) and a Central Processing Unit (CPU);
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
Because the terminal device is prone to failure when falling or colliding, the terminal device can detect whether the terminal device is in the scene where the failure is prone to occur. Specifically, whether the terminal device is in a falling state or a collision state can be determined by detecting physical quantities such as speed or acceleration of the terminal device.
Under the condition that the terminal equipment falls or collides, the terminal equipment can be turned off, and backlight and the like of the terminal equipment can be turned off, so that the working frequency of the target device is reduced to a preset frequency range.
Further, the terminal equipment can detect the brightness of the environment, the brightness of the detected environment is low, namely the detected environment is smaller than the preset brightness value, the terminal equipment can be controlled to be on, and prompt voice prompt information is output, so that a user can quickly find the falling terminal equipment in a dark environment.
In addition, whether the terminal device runs the third-party application program can be detected, and if the third-party application program runs, the third-party application program of the terminal device is closed. The application programs in the terminal device may include an application program for ensuring normal operation of the system, and a third-party application program installed for implementing additional functions, such as a social application program, a game application program, a video application program, a weather forecast application program, a financial management application program, and the like, and the third-party application program may be generally operated by a user to implement installation and uninstallation.
Under the condition that the terminal device runs with the third-party application program, the terminal device can close at least part of the third-party application program, control the terminal device to be in a standby state, and also can execute the operations of closing the third-party application program, locking the screen and closing the backlight at the same time.
In this way, the operating frequency of at least one of the DDR and the CPU of the terminal device can be reduced to the preset frequency range.
When the working frequency of the target device is in the preset frequency range, the requirement of at least one of the CPU and the DDR on the crystal oscillator frequency precision can be reduced, namely, the target allowable frequency deviation range corresponding to the working frequency of the target device is large, so that the crystal oscillator frequency deviation value of the terminal device is easily in the target allowable frequency deviation value range, and therefore, data can be reliably transmitted without the occurrence of abnormalities such as halt, restart and the like.
After the terminal device closes the third-party application program, when the terminal device is detected not to be in a falling or collision state, namely the state is stable, the terminal device enters a normal working state, and a user can operate the terminal device. The terminal equipment can also automatically start the closed application program, so that the user operation is reduced.
Optionally, the terminal device is in a falling or collision state, where the acceleration of the terminal device is greater than or equal to a preset threshold, and the preset threshold is the smaller value of the first acceleration value and the second acceleration value;
the first acceleration value is an acceleration value of the terminal equipment in a falling state; the second acceleration value is an acceleration value corresponding to the collision strength causing the terminal equipment to malfunction.
In this embodiment, the terminal device may preset an acceleration threshold value when the terminal device is in a falling state or a collision state, and when the acceleration of the terminal device is greater than or equal to the preset threshold value, it indicates that the terminal device is in the falling state or the collision state.
The first acceleration value may be a value obtained by the terminal device through a test in advance, or may be an acceleration value obtained by the terminal device in advance, for example, 9.8m/s2Setting as a first acceleration value when the acceleration is greater than or equal to 9.8m/s2And if so, judging that the terminal equipment is in a falling state.
The second acceleration value may be a value obtained by the terminal device through a test in advance, and when the acceleration of the terminal device is greater than or equal to the value, it indicates that the terminal device is in a state of collision and possibly causing a fault. For example, the minimum acceleration value when the terminal device collides with another object and a fault such as restart or crash occurs can be obtained through testing.
The terminal device may use the smaller value of the first acceleration value and the second acceleration value as the acceleration threshold, and then, when the acceleration of the terminal device is in any one of a falling state or a collision state, a crash or a restart failure of the terminal device may occur.
Therefore, in any state of falling or collision of the terminal equipment, the terminal equipment reduces the working frequency value of the target device, prevents the terminal equipment from being in a fault of dead halt or restart, and can improve the reliability of the terminal equipment.
Optionally, the controlling the operating frequency of the target device of the terminal device to be within a preset frequency range includes:
acquiring the working frequency of a target device of the terminal equipment;
and under the condition that the working frequency of the target device is greater than a preset frequency value, reducing the working frequency of the target device of the terminal equipment so as to enable the working frequency of the target device to be in the preset frequency range.
In this embodiment, in the case where the terminal device detects falling or collision, the operating frequency of the target appliance of the terminal device may be further detected. When the working frequency of the target device is larger, that is, greater than the preset frequency value, the working frequency of the target device of the terminal device is reduced to the preset frequency range, and specifically, the working frequency of the target device may be reduced by the processing method in the above embodiment, which is not described herein again.
And when the working frequency of the target device is lower, namely less than or equal to the preset frequency value, the terminal equipment does not process the working frequency of the target device.
Thus, the reliability of the terminal equipment can be improved in a falling or collision state of the terminal equipment.
Optionally, the closing at least part of the third-party application programs includes:
respectively acquiring a frequency increase value of the increase of the working frequency of the target device caused by each application program in the third-party application programs;
acquiring a target application program corresponding to a frequency increase value larger than a preset value;
and closing the target application program.
In this embodiment, the terminal device may obtain a frequency increase value, which causes an increase in the operating frequency of the target device, for each of the third-party applications, and obtain a larger frequency increase value, that is, a target application corresponding to the frequency increase value that is greater than the preset value.
For example, the third-party application that the terminal device is running includes: application one, application two and application three. Wherein, the first application causes the working frequency of the target device to increase by 500Hz, the second application causes the working frequency of the target device to increase by 50Hz, and the third application causes the working frequency of the target device to increase by 40 Hz. As soon as the application causes the target device operating frequency to increase higher, the application may be turned off.
Therefore, only the application program which causes the larger increase of the working frequency of the target device is closed, and other application programs are not closed, so that the interference of using the terminal equipment by a user can be reduced, and the user experience is improved.
To facilitate an understanding of the specific embodiments of the present invention, the following description is made in conjunction with the specific embodiments.
As shown in fig. 3, the control method of the terminal device includes the steps of:
step 301, the terminal device is in a normal working state, and the user can operate and use the terminal device normally.
And step 302, reporting the acceleration value to the CPU in real time by an acceleration sensor of the terminal equipment.
And step 303, judging whether the acceleration value is larger than a preset falling or collision acceleration threshold value.
The preset falling acceleration threshold value is an acceleration value of the terminal equipment in a falling state, which is acquired by the terminal equipment in advance; the preset collision acceleration threshold may be an acceleration value which is acquired by the terminal device in advance and causes the terminal device to malfunction when the terminal device collides. The terminal device may set only the smaller of the two values. In the step, whether the acceleration value is larger than the smaller value of a preset falling acceleration threshold value and a preset collision acceleration threshold value is judged.
And step 304, reducing the working frequency of the CPU and the DDR under the condition that the acceleration value is larger than the preset falling or collision acceleration threshold value.
When the acceleration value is larger than the preset falling or collision acceleration threshold value, the terminal device is in a falling or collision state, and the working frequency of the CPU and the DDR can be reduced by closing the currently running application program, and closing the backlight and locking the screen.
And 305, when the terminal equipment is not in the falling or collision state, the terminal equipment enters a normal working state, and a user can normally operate the terminal equipment. Further, the terminal device may turn on the above-mentioned closed application program, turn on a backlight, and the like, thereby recovering the operating frequencies of the CPU and the DDR.
On the basis of the embodiment corresponding to fig. 1, the control method of the terminal device according to the embodiment of the present invention can quickly reduce the operating frequency of the target device of the terminal device, so that the crystal oscillator frequency offset value is within the allowable frequency offset value range.
Referring to fig. 4, fig. 4 is a structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 4, the terminal device 400 includes:
the control module 401 is configured to control a working frequency of a target device of the terminal device to be in a preset frequency range when the terminal device is detected to be in a falling or collision state, where the target device includes at least one of a double data rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
Optionally, the terminal device is in a falling or collision state, where the acceleration of the terminal device is greater than or equal to a preset threshold, and the preset threshold is the smaller value of the first acceleration value and the second acceleration value;
the first acceleration value is an acceleration value of the terminal equipment in a falling state; the second acceleration value is an acceleration value corresponding to the collision strength causing the terminal equipment to malfunction.
Optionally, as shown in fig. 5, the control module 401 includes:
the first obtaining submodule 4011 is configured to obtain a working frequency of a target device of the terminal device;
the reducing submodule 4012 is configured to reduce the operating frequency of the target device of the terminal device when the operating frequency of the target device is greater than a preset frequency value, so that the operating frequency of the target device is within the preset frequency range.
Optionally, the control module 401 is specifically configured to control the terminal device to be in a screen-off state, and/or close at least part of the third-party application programs if the terminal device runs with the third-party application program, so that the operating frequency of the target device of the terminal device is reduced to the preset frequency range.
Optionally, as shown in fig. 6, the control module 401 includes:
the second obtaining sub-module 4013 is configured to obtain frequency increase values, where the frequency increase values result in an increase in the operating frequency of the target device, of each application program in the third-party application programs;
a third obtaining sub-module 4014, configured to obtain a target application program corresponding to a frequency increase value greater than a preset value;
a close sub-module 4015, configured to close the target application.
The terminal device 300 can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
According to the terminal device 400 of the embodiment of the invention, when the terminal device is in a falling or collision state, the working frequency of the terminal device is in the preset frequency range, so that the crystal oscillator frequency deviation value of the terminal device is in the target frequency deviation value range, and therefore, the terminal device can reliably transmit data, and the reliability of the terminal device can be improved.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 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 terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to control a working frequency of a target device of the terminal device to be in a preset frequency range when the terminal device is detected to be in a falling or collision state, where the target device includes at least one of a double data rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
When the terminal equipment is in a falling or collision state, the working frequency of the terminal equipment is in the preset frequency range, so that the crystal oscillator frequency deviation value of the terminal equipment is in the target frequency deviation value range, the terminal equipment can reliably transmit data, and the reliability of the terminal equipment can be improved.
Optionally, the terminal device is in a falling or collision state, where the acceleration of the terminal device is greater than or equal to a preset threshold, and the preset threshold is the smaller value of the first acceleration value and the second acceleration value;
the first acceleration value is an acceleration value of the terminal equipment in a falling state; the second acceleration value is an acceleration value corresponding to the collision strength causing the terminal equipment to malfunction.
Optionally, the processor 710 performs the control that the operating frequency of the target device of the terminal device is in a preset frequency range, including:
acquiring the working frequency of a target device of the terminal equipment;
and under the condition that the working frequency of the target device is greater than a preset frequency value, reducing the working frequency of the target device of the terminal equipment so as to enable the working frequency of the target device to be in the preset frequency range.
Optionally, the processor 710 performs the control that the operating frequency of the target device of the terminal device is in a preset frequency range, including:
and controlling the terminal equipment to be in a screen-off state, and/or closing at least part of application programs in third-party application programs if the terminal equipment runs with the third-party application programs so as to reduce the working frequency of a target device of the terminal equipment to the preset frequency range.
Optionally, the processor 710 executes the closing of at least part of the third-party application programs, including:
respectively acquiring a frequency increase value of the increase of the working frequency of the target device caused by each application program in the third-party application programs;
acquiring a target application program corresponding to a frequency increase value larger than a preset value;
and closing the target application program.
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 terminal device provides the user with wireless broadband internet access through the network module 702, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
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 terminal device 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 terminal device 700 further comprises at least one sensor 705, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the luminance of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 7061 and/or a backlight when the terminal device 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 terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; 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 is used to display information input by the user or information provided to the user. 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 (LCD), an Organic Light-Emitting Diode (OLED), 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 terminal device. 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 in fig. 7, the touch panel 7071 and the display panel 7061 are implemented as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the terminal apparatus 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 an external device and transmit the received input to one or more elements within the terminal apparatus 700 or may be used to transmit data between the terminal apparatus 700 and the external device.
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 terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby performing overall monitoring of the terminal device. 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 terminal device 700 may further include a power supply 711 (e.g., a battery) for supplying power to various components, and preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, 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, when executed by the processor 710, implements each process in the control method embodiment of the terminal device, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 control method embodiment of the terminal device, 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 device (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 control method of a terminal device, comprising:
under the condition that the terminal equipment is detected to be in a falling or collision state, controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
2. The method according to claim 1, wherein the falling or collision state of the terminal device is a state in which the acceleration of the terminal device is greater than or equal to a preset threshold value, and the preset threshold value is the smaller value of the first acceleration value and the second acceleration value;
the first acceleration value is an acceleration value of the terminal equipment in a falling state; the second acceleration value is an acceleration value corresponding to the collision strength causing the terminal equipment to malfunction.
3. The method according to claim 1, wherein the controlling the operating frequency of the target device of the terminal equipment to be in a preset frequency range comprises:
acquiring the working frequency of a target device of the terminal equipment;
and under the condition that the working frequency of the target device is greater than a preset frequency value, reducing the working frequency of the target device of the terminal equipment so as to enable the working frequency of the target device to be in the preset frequency range.
4. The method according to claim 1, wherein the controlling the operating frequency of the target device of the terminal equipment to be in a preset frequency range comprises:
and controlling the terminal equipment to be in a screen-off state, and/or closing at least part of application programs in third-party application programs if the terminal equipment runs with the third-party application programs so as to reduce the working frequency of a target device of the terminal equipment to the preset frequency range.
5. The method of claim 4, wherein the closing at least some of the third party applications comprises:
respectively acquiring a frequency increase value of the increase of the working frequency of the target device caused by each application program in the third-party application programs;
acquiring a target application program corresponding to a frequency increase value larger than a preset value;
and closing the target application program.
6. A terminal device, comprising:
the control module is used for controlling the working frequency of a target device of the terminal equipment to be in a preset frequency range under the condition that the terminal equipment is detected to be in a falling or collision state, wherein the target device comprises at least one of a double-rate synchronous dynamic random access memory DDR and a central processing unit CPU;
and under the condition that the working frequency of the target device is in the preset frequency range, the crystal oscillator frequency offset value of the terminal device is in a target allowable frequency offset value range, and the target allowable frequency offset value range is an allowable frequency offset value range corresponding to the working frequency in the preset frequency range.
7. The terminal device according to claim 6, wherein the terminal device falling or collision state is a state in which the acceleration of the terminal device is greater than or equal to a preset threshold value, and the preset threshold value is the smaller value of the first acceleration value and the second acceleration value;
the first acceleration value is an acceleration value of the terminal equipment in a falling state; the second acceleration value is an acceleration value corresponding to the collision strength causing the terminal equipment to malfunction.
8. The terminal device of claim 6, wherein the control module comprises:
the first obtaining submodule is used for obtaining the working frequency of a target device of the terminal equipment;
and the reduction submodule is used for reducing the working frequency of the target device of the terminal equipment under the condition that the working frequency of the target device is greater than a preset frequency value, so that the working frequency of the target device is in the preset frequency range.
9. The terminal device according to claim 6, wherein the control module is specifically configured to control the terminal device to be in a screen-off state, and/or close at least part of the third-party application program if the terminal device runs with the third-party application program, so that the operating frequency of the target device of the terminal device is reduced to the preset frequency range.
10. The terminal device of claim 9, wherein the control module comprises:
the second acquisition submodule is used for respectively acquiring frequency increase values of the third-party application programs, which cause the increase of the working frequency of the target device;
the third obtaining submodule is used for obtaining a target application program corresponding to the frequency increase value larger than the preset value;
and the closing submodule is used for closing the target application program.
11. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the control method of the terminal device according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps in the control method of a terminal device according to any one of claims 1 to 5.
CN201810980803.6A 2018-08-27 2018-08-27 Terminal device control method, terminal device and computer readable storage medium Active CN109040459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810980803.6A CN109040459B (en) 2018-08-27 2018-08-27 Terminal device control method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810980803.6A CN109040459B (en) 2018-08-27 2018-08-27 Terminal device control method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109040459A CN109040459A (en) 2018-12-18
CN109040459B true CN109040459B (en) 2020-11-06

Family

ID=64625108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810980803.6A Active CN109040459B (en) 2018-08-27 2018-08-27 Terminal device control method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109040459B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443086B (en) * 2019-06-17 2023-08-01 深圳盈达信息科技有限公司 Control method for fall protection of scanning device and scanning device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4003169B2 (en) * 2002-05-09 2007-11-07 日本電気株式会社 Mobile communication terminal with GPS function
JP5115340B2 (en) * 2008-06-09 2013-01-09 富士通株式会社 Wireless communication apparatus and frequency deviation calculation method
CN101819615A (en) * 2010-03-15 2010-09-01 湖南德沐数码科技有限公司 Method for protecting multimedia product through gravity acceleration
CN103904998B (en) * 2012-12-28 2017-02-08 联芯科技有限公司 Method and device for adjusting frequency of mobile terminal
CN103973871A (en) * 2013-02-01 2014-08-06 龙旗科技(上海)有限公司 Drop and power-down protection method for handheld terminals
CN104460829A (en) * 2013-09-12 2015-03-25 纬创资通股份有限公司 Electronic device module, electronic device, protective component and working frequency improving method
CN103955365B (en) * 2014-04-17 2017-08-25 小米科技有限责任公司 The method and device of control terminal when a kind of terminal is fallen
CN106302988B (en) * 2016-07-29 2017-12-19 广东欧珀移动通信有限公司 Falling protection method, device and the mobile terminal of mobile terminal
CN107302792B (en) * 2017-06-26 2019-04-09 维沃移动通信有限公司 A kind of method and mobile terminal of crystal frequency calibration
CN107656774A (en) * 2017-09-30 2018-02-02 努比亚技术有限公司 Adaptive regulation method, device, terminal device and the storage medium of systematic parameter
CN108307060B (en) * 2018-01-23 2020-06-05 Oppo广东移动通信有限公司 Electronic equipment, fall protection method and related product
CN108418951B (en) * 2018-01-30 2021-04-09 Oppo广东移动通信有限公司 Electronic device, data storage method and related product

Also Published As

Publication number Publication date
CN109040459A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN108347759B (en) Anti-interference method of flexible screen and mobile terminal
CN109067418B (en) Antenna control method and mobile terminal
CN108494030B (en) Wireless charging method, terminal and transmitting terminal equipment
CN108319390B (en) Control method of flexible screen and mobile terminal
CN109831359B (en) Method for detecting connection state of data network and terminal equipment thereof
CN110730017A (en) Radio frequency device, control method thereof and terminal equipment
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN111343710B (en) Power adjustment method and electronic equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN110868683B (en) Ultrasonic module failure detection method and electronic equipment
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN109858447B (en) Information processing method and terminal
CN109660657B (en) Application program control method and device
CN109040459B (en) Terminal device control method, terminal device and computer readable storage medium
CN108924319B (en) Proximity detection method and mobile terminal
CN109068276B (en) Message conversion method and terminal
CN108008808B (en) Operation parameter adjusting method and mobile terminal
CN108170360B (en) Control method of gesture function and mobile terminal
CN108089799B (en) Control method of screen edge control and mobile terminal
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal
CN111459323B (en) Control method, electronic device and medium
CN107864294B (en) Do not disturb mode starting method and mobile terminal
CN110286822B (en) Operation response method and terminal 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
GR01 Patent grant
GR01 Patent grant