CN107977113B - Control method and mobile terminal - Google Patents

Control method and mobile terminal Download PDF

Info

Publication number
CN107977113B
CN107977113B CN201711030227.0A CN201711030227A CN107977113B CN 107977113 B CN107977113 B CN 107977113B CN 201711030227 A CN201711030227 A CN 201711030227A CN 107977113 B CN107977113 B CN 107977113B
Authority
CN
China
Prior art keywords
mobile terminal
pocket mode
pocket
touch
infrared sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711030227.0A
Other languages
Chinese (zh)
Other versions
CN107977113A (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 CN201711030227.0A priority Critical patent/CN107977113B/en
Publication of CN107977113A publication Critical patent/CN107977113A/en
Application granted granted Critical
Publication of CN107977113B publication Critical patent/CN107977113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The embodiment of the invention provides a control method and a mobile terminal, wherein the control method comprises the following steps: monitoring whether the mobile terminal has acceleration in a preset direction; if so, acquiring the number of touch report points on a touch screen of the mobile terminal, and detecting the state of an infrared sensor of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor; and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information. Therefore, whether the mobile terminal is put into the pocket or not can be accurately judged, the phenomenon of misjudgment is effectively prevented, and the user experience is further improved.

Description

Control method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile terminal control, in particular to a control method and a mobile terminal.
Background
Currently, mobile terminals have become very popular, and when a user does not use the mobile terminal, the user may choose to turn off the screen and place the screen in a locked state, and then place the mobile terminal in a pocket.
However, when the user forgets to lock the screen and puts the mobile terminal into the pocket, the problem of misoperation such as automatic call making can occur.
In order to solve the above problems, the prior art generally determines that the mobile terminal enters the pocket mode after detecting that the infrared sensor of the mobile terminal is blocked for a predetermined time, and then automatically locks the screen of the mobile terminal.
However, when the prior art determines whether the mobile terminal is in the pocket mode, the method is too single, which causes the problem of misdetermination, for example: when the infrared sensor of the mobile terminal is only shielded by the palm of the user for a long time, the mobile terminal automatically judges that the mobile terminal is in the pocket mode at present, namely the mobile terminal automatically locks the screen, so that the game or application currently carried out by the user is interrupted, and the user experience is seriously influenced.
Disclosure of Invention
The embodiment of the invention provides a control method, which aims to solve the problems that the control method in the prior art has high misjudgment rate and influences user experience.
In order to solve the technical problem, the invention is realized as follows:
the embodiment of the invention provides a control method, which is applied to a mobile terminal and comprises the following steps:
monitoring whether the mobile terminal has acceleration in a preset direction;
if so, acquiring the number of touch report points on a touch screen of the mobile terminal, and detecting the state of an infrared sensor of the mobile terminal;
judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor;
and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the monitoring module is used for monitoring whether the mobile terminal has acceleration in a preset direction;
the acquisition module is used for acquiring the number of touch report points on the touch screen of the mobile terminal if the monitoring module has a positive result; and the number of the first and second groups,
the detection module is used for detecting the state of the infrared sensor of the mobile terminal if the result of the monitoring module is positive;
the judging module is used for judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor;
and the updating module is used for locking the screen of the mobile terminal if the judgment result of the module is positive, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
An embodiment of the present invention further provides a mobile terminal, including: the control system comprises a memory, a processor and a control program stored on the memory and capable of running on the processor, wherein the control program realizes the steps of any one of the control methods shown in the invention when being executed by the processor.
The embodiment of the present invention further provides a computer-readable storage medium, in which a control program is stored, and when the control program is executed by a processor, the steps of any one of the control methods shown in the present invention are implemented.
Therefore, in the embodiment of the invention, whether the mobile terminal has acceleration in the preset direction is monitored; if so, acquiring the number of touch report points on a touch screen of the mobile terminal; detecting the state of an infrared sensor of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor; and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information. Therefore, whether the mobile terminal is put into the pocket or not can be accurately judged, the phenomenon of misjudgment is effectively prevented, and the user experience is further 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 labor.
FIG. 1 is a flow chart of a control method in an embodiment of the present invention;
FIG. 2 is a second flowchart of a control method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a control method according to an embodiment of the present invention;
FIG. 4 is one of the block diagrams of a mobile terminal in an embodiment of the present invention;
fig. 5 is a second block diagram of the mobile terminal in an embodiment of the present invention;
fig. 6 is a third block diagram of a mobile terminal in an embodiment of the present invention;
fig. 7 is a fourth block diagram of the mobile terminal in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the 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.
Example one
Referring to fig. 1, a flowchart of a control method in the embodiment of the present invention is shown, which specifically includes:
step 101, monitoring whether the mobile terminal has acceleration in a predetermined direction.
Specifically, in the embodiment of the present invention, an acceleration sensor is configured in the mobile terminal, and the acceleration sensor can acquire the motion condition of the mobile terminal in real time. The mobile terminal can judge whether the mobile terminal has acceleration in a preset direction by monitoring the value in the acceleration sensor. In an embodiment of the invention, the predetermined direction is vertically downward.
And 102, if yes, acquiring the number of touch report points on a touch screen of the mobile terminal, and detecting the state of an infrared sensor of the mobile terminal.
Specifically, in the embodiment of the present invention, if the mobile terminal monitors that the mobile terminal has an acceleration in a predetermined direction, it may be preliminarily determined that the user puts the mobile terminal into a pocket. Subsequently, the mobile terminal needs to further determine whether the mobile terminal is put into a pocket in combination with other conditions, so as to reduce the misjudgment rate.
Specifically, in the embodiment of the present invention, the mobile terminal obtains the number of touch points on the touch screen, and detects the state of the infrared sensor of the mobile terminal.
Step 103, judging whether the mobile terminal is in the pocket mode according to the number of touch report points and the state of the infrared sensor.
Specifically, in the embodiment of the present invention, the mobile terminal can determine whether the mobile terminal is in the pocket mode according to the number of touch report points and the state of the infrared sensor.
In one embodiment, if the mobile terminal is put into a pocket, a large number of touch points should be provided on the touch screen, and the infrared sensor of the mobile terminal is shielded. That is, in the embodiment of the present invention, after the mobile terminal determines that the mobile terminal has been put into the pocket, the mobile terminal can determine whether the mobile terminal has been put into the pocket by combining the touch report and the state of the infrared sensor.
And step 104, if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
Specifically, in the embodiment of the present invention, after the mobile terminal confirms that the mobile terminal enters the pocket mode, that is, after the mobile terminal is confirmed to be put into a pocket, the mobile terminal automatically locks the screen. Meanwhile, the mobile terminal calls the locally stored preset pocket mode configuration information and updates the current configuration information of the mobile terminal according to the pocket mode configuration information. In a preferred embodiment of the present invention, the configuration information includes, but is not limited to: ring volume, vibration amplitude, power saving mode, etc.
In summary, in the technical solution of the embodiment of the present invention, whether the mobile terminal has an acceleration in a predetermined direction is monitored; if so, acquiring the number of touch report points on a touch screen of the mobile terminal, and detecting the state of an infrared sensor of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor; and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information. Therefore, whether the mobile terminal is put into the pocket or not can be accurately judged, the phenomenon of misjudgment is effectively prevented, and the user experience is further improved.
Example two
Referring to fig. 2, a flowchart of a control method in the embodiment of the present invention is shown, which specifically includes:
step 201, monitoring whether the mobile terminal has acceleration in a predetermined direction.
Specifically, in the embodiment of the present invention, an acceleration sensor is configured in the mobile terminal, and the acceleration sensor can acquire the motion condition of the mobile terminal in real time. The mobile terminal can judge whether the mobile terminal has acceleration in a preset direction by monitoring the value in the acceleration sensor. In an embodiment of the invention, the predetermined direction is vertically downward.
If the mobile terminal monitors that the mobile terminal has an acceleration in a predetermined direction, step 202 is entered. Otherwise, no action is taken.
Step 202, acquiring the number of touch report points on the touch screen of the mobile terminal, and detecting the state of the infrared sensor of the mobile terminal.
Specifically, in the embodiment of the present invention, if the mobile terminal monitors that the mobile terminal has an acceleration in a predetermined direction, it may be preliminarily determined that the user puts the mobile terminal into a pocket. Subsequently, the mobile terminal needs to further determine whether the mobile terminal is put into a pocket in combination with other conditions, so as to reduce the misjudgment rate.
Specifically, in the embodiment of the present invention, the mobile terminal obtains the number of touch points on the touch screen, and detects the state of the infrared sensor of the mobile terminal.
Step 203, determining whether the mobile terminal is in the pocket mode according to the number of touch report points and the state of the infrared sensor.
Specifically, in the embodiment of the present invention, the mobile terminal can determine whether the mobile terminal is in the pocket mode according to the number of touch report points and the state of the infrared sensor.
In the embodiment of the invention, if the mobile terminal is put into a pocket, a large number of touch report points should be arranged on the touch screen, and meanwhile, the infrared sensor of the mobile terminal is shielded. That is, in the embodiment of the present invention, after the mobile terminal determines that the mobile terminal has been put into the pocket, the mobile terminal can determine whether the mobile terminal has been put into the pocket by combining the touch report and the state of the infrared sensor.
Specifically, in this embodiment, if the mobile terminal detects that the number of touch newspaper points exceeds a predetermined threshold and the infrared sensor is in a blocked state, it is determined that the mobile terminal is in the pocket mode.
In addition, in a preferred embodiment of the present invention, to further improve accuracy, the mobile terminal may further detect whether the surrounding environment of the mobile terminal is dark, so as to determine whether the mobile terminal is in the pocket mode by combining the brightness of the surrounding environment of the mobile terminal. Specifically, in this embodiment, if the mobile terminal is placed in the pocket, the surrounding environment of the mobile terminal will become dark, and the mobile terminal may detect whether the surrounding environment of the mobile terminal becomes dark after preliminarily determining that there is an action of placing the mobile terminal in the pocket, and if so, may further determine that the mobile terminal has been placed in the pocket, and enters the pocket mode, thereby effectively improving the accuracy of the determination. Subsequently, the mobile terminal judges whether the mobile terminal enters the pocket mode again according to the touch report point and the state of the infrared sensor, so that the judgment accuracy can be further improved, and the problem of misjudgment is effectively avoided.
And 204, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
Specifically, in the embodiment of the present invention, after the mobile terminal confirms that the mobile terminal enters the pocket mode, that is, after the mobile terminal is confirmed to be put into a pocket, the mobile terminal automatically locks the screen. Meanwhile, the mobile terminal calls the locally stored preset pocket mode configuration information and updates the current configuration information of the mobile terminal according to the pocket mode configuration information.
In an embodiment of the invention, the pocket mode configuration information comprises at least one of: power saving mode is turned on, vibration enhancement, and ring tone is maximized. In one embodiment, the configuration may be set by a user, and may be selectively turned on or off, which is not limited by the invention.
In summary, according to the technical scheme in the embodiment of the present invention, after it is preliminarily determined that the mobile terminal is placed in the pocket, that is, after the user has an action of placing the mobile terminal in the pocket, the surrounding environment of the mobile terminal, the number of touch-control points of the touch screen, and the state of the infrared sensor are combined, so that whether the mobile terminal enters the pocket mode can be accurately determined, the accuracy of the determination is effectively improved, and the problem of erroneous determination is avoided. In addition, after the mobile terminal enters the pocket mode, the screen can be automatically locked and the current configuration can be updated, namely, the ringing is increased, the vibration mode is enhanced and the like, so that the problems of missed calls and the like are avoided, and after the mobile terminal enters the pocket mode, the mobile terminal can be automatically adjusted to the power-saving mode, so that the standby time of the mobile terminal under the condition of nonuse is effectively prolonged, and the user experience is effectively improved.
EXAMPLE III
Referring to fig. 3, a flowchart of a control method in the embodiment of the present invention is shown, which specifically includes:
step 301, monitoring whether the mobile terminal has acceleration in a preset direction.
Step 302, acquiring the number of touch newspaper points on a touch screen of the mobile terminal; and detecting the state of an infrared sensor of the mobile terminal.
Step 303, determining whether the mobile terminal is in the pocket mode according to the number of touch reporting points and the state of the infrared sensor
And 304, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
The steps 301-304 are the same as the steps 201-204 in the second embodiment, and are not described herein again.
Step 305, if it is monitored that the mobile terminal exits from the pocket mode, restoring the updated configuration information to the configuration before entering into the pocket mode, wherein after it is monitored that the mobile terminal exits from the pocket mode, the mobile terminal keeps the screen locking state.
Specifically, in the embodiment of the present invention, if the mobile terminal monitors that the mobile terminal exits from the pocket mode, the updated configuration information is automatically restored to the configuration before entering the pocket mode. In order to avoid misjudgment, after the mobile terminal is determined to exit from the pocket mode, the mobile terminal is still in a screen locking state until a user manually unlocks a screen.
Specifically, the method for the mobile terminal to determine that the mobile terminal has left the pocket mode may specifically include:
1) it is determined whether there is a take-out action. Specifically, the mobile terminal can judge whether the mobile terminal has an acceleration which is vertical to the ground or not by monitoring the value of the acceleration sensor in real time, and if so, the mobile terminal can be determined to be taken out, namely, the mobile terminal is in an open bag mode.
2) And judging whether the surrounding environment becomes bright or not. Specifically, as opposed to the determination of entering the pocket mode, if the mobile terminal leaves the open pocket mode, the surrounding environment of the mobile terminal will become bright, the mobile terminal may monitor the surrounding environment in real time, and if the surrounding environment becomes bright, it may be determined that the mobile terminal has been taken out.
3) And judging whether the infrared sensor is changed from a shielding state to an unshielded state. Specifically, after the mobile terminal is taken out of the pocket, the infrared sensor is restored to the non-shielded state from the shielded state. The mobile terminal can determine whether the mobile terminal is taken out or not by monitoring the state of the infrared sensor in real time.
In summary, in the embodiment of the present invention, by monitoring whether the mobile terminal exits the pocket mode and updating the configuration information of the mobile terminal in time, the mobile terminal can be intelligently controlled to enter the pocket mode and exit the open pocket mode, so that a user does not need to manually adjust the mobile terminal, and the user experience is effectively improved.
Example four
Referring to fig. 4, a block diagram of a mobile terminal 400 in an embodiment of the invention is shown. The method specifically comprises the following steps:
the monitoring module 401 is configured to monitor whether the mobile terminal has an acceleration in a predetermined direction.
Specifically, in the embodiment of the present invention, an acceleration sensor is configured in the mobile terminal, and the acceleration sensor can acquire the motion condition of the mobile terminal in real time. The monitoring module 401 may determine whether there is an acceleration in the mobile terminal in a predetermined direction by monitoring a value in the acceleration sensor. In an embodiment of the invention, the predetermined direction is vertically downward.
An obtaining module 402, configured to obtain, if the result of the monitoring module is yes, the number of touch report points on the touch screen of the mobile terminal.
And the detecting module 403 is used for detecting the state of the infrared sensor of the mobile terminal as a result of the monitoring module being yes.
Specifically, in the embodiment of the present invention, if the mobile terminal monitors that the mobile terminal has an acceleration in a predetermined direction, it may be preliminarily determined that the user puts the mobile terminal into a pocket. Subsequently, the mobile terminal needs to further determine whether the mobile terminal is put into a pocket in combination with other conditions, so as to reduce the misjudgment rate.
Specifically, in the embodiment of the present invention, the obtaining module 402 obtains the number of touch points on the touch screen, and the detecting module 403 detects the state of the infrared sensor of the mobile terminal.
The determining module 404 is configured to determine whether the mobile terminal is in the pocket mode according to the number of touch reporting points and the state of the infrared sensor.
Specifically, in the embodiment of the present invention, the determining module 404 may determine whether the mobile terminal is in the pocket mode according to the number of touch points and the state of the infrared sensor.
In one embodiment, if the mobile terminal is put into a pocket, a large number of touch points should be provided on the touch screen, and the infrared sensor of the mobile terminal is shielded. That is, in the embodiment of the present invention, after the mobile terminal determines that the mobile terminal has been put into the pocket, the mobile terminal can determine whether the mobile terminal has been put into the pocket by combining the touch report and the state of the infrared sensor.
And an updating module 405, configured to lock the screen of the mobile terminal if the result of the determining module is yes, and update the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
Specifically, in the embodiment of the present invention, after the mobile terminal confirms that the mobile terminal enters the pocket mode, that is, after the mobile terminal is confirmed to be put into a pocket, the mobile terminal automatically locks the screen. Meanwhile, the updating module 405 calls the locally stored preset pocket mode configuration information and updates the current configuration information of itself according to the pocket mode configuration information. In a preferred embodiment of the present invention, the configuration information includes, but is not limited to: ring volume, vibration amplitude, provincial mode, etc.
In summary, the mobile terminal in the embodiment of the present invention monitors whether the mobile terminal has an acceleration in a predetermined direction; if so, acquiring the number of touch report points on a touch screen of the mobile terminal; detecting the state of an infrared sensor of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor; and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information. Therefore, whether the mobile terminal is put into the pocket or not can be accurately judged, the phenomenon of misjudgment is effectively prevented, and the user experience is further improved.
Referring to fig. 5, in a preferred embodiment of the present invention, on the basis of fig. 4, the determining module 404 further includes:
a detection sub-module 4041 for detecting whether the surrounding environment of the mobile terminal is darkened;
the determining sub-module 4042 is configured to determine whether the mobile terminal is in the pocket mode according to the number of touch reporting points and the state of the infrared sensor if the result of the detecting sub-module is yes.
Referring to fig. 6, in a preferred embodiment of the present invention, on the basis of fig. 4, the determining module 404 further includes:
the determining sub-module 4043 is configured to determine that the mobile terminal is in the pocket mode if the number of touch report points exceeds a predetermined threshold and the infrared sensor is in a blocked state.
In a preferred embodiment of the present invention, the pocket mode configuration information includes at least one of:
starting a power saving mode;
vibration enhancement;
the ring tone is maximized.
Referring to fig. 7, in a preferred embodiment of the present invention, on the basis of fig. 4, the mobile terminal further includes:
a restoring module 406, configured to restore the updated configuration information to the configuration before entering the pocket mode if it is detected that the mobile terminal exits the pocket mode, where after it is detected that the mobile terminal exits the pocket mode, the mobile terminal maintains the screen-locking state.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
In summary, the mobile terminal in the embodiment of the present invention preliminarily determines that the mobile terminal is placed in the pocket, that is, after the user has the action of placing the mobile terminal in the pocket, the surrounding environment of the mobile terminal, the number of touch-control points of the touch screen, and the state of the infrared sensor are combined, so that whether the mobile terminal enters the pocket mode can be accurately determined, the accuracy of the determination is effectively improved, and the problem of erroneous determination is avoided. In addition, after the mobile terminal enters the pocket mode, the screen can be automatically locked and the current configuration can be updated, namely, the ringing is increased, the vibration mode is enhanced and the like, so that the problems of missed calls and the like are avoided, and after the mobile terminal enters the pocket mode, the mobile terminal can be automatically adjusted to the power-saving mode, so that the standby time of the mobile terminal under the condition of nonuse is effectively prolonged. In addition, the invention realizes intelligent control of the mobile terminal to enter the pocket mode and leave the open pocket mode by monitoring whether the mobile terminal leaves the open pocket mode or not and updating the configuration information of the mobile terminal in time, so that a user does not need to manually adjust, and the user experience is effectively improved.
EXAMPLE five
Figure 8 is a diagram of a hardware configuration of a mobile terminal 500 implementing various embodiments of the present invention,
the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510 for monitoring whether the mobile terminal has an acceleration in a predetermined direction; if so, acquiring the number of touch report points on a touch screen of the mobile terminal; detecting the state of an infrared sensor of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor; and if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information.
In summary, the mobile terminal in the embodiment of the present invention preliminarily determines that the mobile terminal is placed in the pocket, that is, after the user has the action of placing the mobile terminal in the pocket, the surrounding environment of the mobile terminal, the number of touch-control points of the touch screen, and the state of the infrared sensor are combined, so that whether the mobile terminal enters the pocket mode can be accurately determined, the accuracy of the determination is effectively improved, and the problem of erroneous determination is avoided. In addition, after the mobile terminal enters the pocket mode, the screen can be automatically locked and the current configuration can be updated, namely, the ringing is increased, the vibration mode is enhanced and the like, so that the problems of missed calls and the like are avoided, and after the mobile terminal enters the pocket mode, the mobile terminal can be automatically adjusted to the power-saving mode, so that the standby time of the mobile terminal under the condition of nonuse is effectively prolonged. In addition, the invention realizes intelligent control of the mobile terminal to enter the pocket mode and leave the open pocket mode by monitoring whether the mobile terminal leaves the open pocket mode or not and updating the configuration information of the mobile terminal in time, so that a user does not need to manually adjust, and the user experience is effectively improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 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 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 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 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 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 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 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 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 8, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. 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 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 509 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 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 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 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the above control method embodiment, 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, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A control method is applied to a mobile terminal, and is characterized by comprising the following steps:
monitoring whether the mobile terminal has acceleration in a preset direction;
if so, acquiring the number of touch report points on a touch screen of the mobile terminal, and detecting the state of an infrared sensor of the mobile terminal;
judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor;
if so, locking the screen of the mobile terminal, and updating the current configuration information of the mobile terminal according to preset pocket mode configuration information;
wherein the predetermined direction is vertically ground-down;
wherein the pocket mode configuration information includes at least one of:
starting a power saving mode;
vibration enhancement;
the step of judging whether the mobile terminal is in a pocket mode according to the number of touch report points and the state of the infrared sensor specifically comprises the following steps:
and if the number of touch newspaper points exceeds a preset threshold value and the infrared sensor is in a shielded state, determining that the mobile terminal is in a pocket mode.
2. The method according to claim 1, wherein the step of determining whether the mobile terminal is in a pocket mode according to the number of touch points and the state of the infrared sensor further comprises:
detecting whether the surrounding environment of the mobile terminal is darkened;
if so, judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor.
3. The method according to claim 1, wherein after the step of updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information, the method further comprises:
and if the mobile terminal is monitored to exit the pocket mode, restoring the updated configuration information to the configuration before entering the pocket mode, wherein the mobile terminal keeps a screen locking state after the mobile terminal is monitored to exit the pocket mode.
4. A mobile terminal, comprising:
the monitoring module is used for monitoring whether the mobile terminal has acceleration in a preset direction;
the acquisition module is used for acquiring the number of touch report points on a touch screen of the mobile terminal if the monitoring module has a positive result;
the detection module is used for detecting the state of the infrared sensor of the mobile terminal if the result of the monitoring module is positive;
the judging module is used for judging whether the mobile terminal is in a pocket mode or not according to the number of the touch report points and the state of the infrared sensor;
the updating module is used for locking the screen of the mobile terminal if the judging module has a positive result, and updating the current configuration information of the mobile terminal according to the preset pocket mode configuration information;
wherein the predetermined direction is vertically ground-down;
wherein the pocket mode configuration information includes at least one of:
starting a power saving mode;
vibration enhancement;
wherein the judging module further comprises:
the determining submodule is used for determining that the mobile terminal is in a pocket mode if the number of touch newspaper points exceeds a preset threshold value and the infrared sensor is in a shielded state.
5. The mobile terminal of claim 4, wherein the determining module further comprises:
the detection submodule is used for detecting whether the surrounding environment of the mobile terminal is dark or not;
and the judgment submodule is used for judging whether the mobile terminal is in a pocket mode or not according to the number of touch report points and the state of the infrared sensor if the detection submodule has a positive result.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
and the recovery module is used for recovering the updated configuration information to the configuration before entering the pocket mode if the mobile terminal is monitored to exit the pocket mode, wherein the mobile terminal keeps a screen locking state after the mobile terminal is monitored to exit the pocket mode.
7. A mobile terminal, comprising: memory, a processor and a control program stored on the memory and executable on the processor, which control program, when executed by the processor, carries out the steps of the control method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a control program is stored thereon, which when executed by a processor implements the steps of the control method according to any one of claims 1 to 3.
CN201711030227.0A 2017-10-27 2017-10-27 Control method and mobile terminal Active CN107977113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711030227.0A CN107977113B (en) 2017-10-27 2017-10-27 Control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711030227.0A CN107977113B (en) 2017-10-27 2017-10-27 Control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107977113A CN107977113A (en) 2018-05-01
CN107977113B true CN107977113B (en) 2020-06-30

Family

ID=62012731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711030227.0A Active CN107977113B (en) 2017-10-27 2017-10-27 Control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107977113B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209335B (en) * 2019-05-08 2021-12-14 珠海格力电器股份有限公司 Control method and device of intelligent terminal
CN110309752B (en) * 2019-06-24 2021-09-10 Oppo广东移动通信有限公司 Ultrasonic processing method, ultrasonic processing apparatus, storage medium, and electronic device
CN110850965B (en) * 2019-10-16 2023-09-22 青岛海信移动通信技术有限公司 Mobile terminal and updating method of capacitor threshold value
CN113535440A (en) * 2020-04-21 2021-10-22 深圳市万普拉斯科技有限公司 Functional mode triggering method and device and electronic equipment
CN112738324A (en) * 2020-12-25 2021-04-30 北京小米移动软件有限公司 Pocket pattern recognition method, pocket pattern recognition apparatus, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931705A (en) * 2010-08-31 2010-12-29 中兴通讯股份有限公司 Method for locking input module of mobile terminal and mobile terminal
CN102006356A (en) * 2010-09-27 2011-04-06 浙江大学 Method for detecting state of cell phone pocket by using Android operating system
CN103139389A (en) * 2013-02-25 2013-06-05 上海斐讯数据通信技术有限公司 Method of preventing wrong operation for mobile terminal and mobile terminal
CN103167151A (en) * 2012-09-21 2013-06-19 深圳市金立通信设备有限公司 Automatic screen-locking system and method for mobile phone placed in pocket
CN104158958A (en) * 2014-07-28 2014-11-19 中山大学 Anti-misoperation method for intelligent terminal equipment
CN105607844A (en) * 2015-09-30 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Touch screen control method, touch screen control device and terminal
CN105843392A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Screen control method and device of mobile terminal
CN106200862A (en) * 2015-01-15 2016-12-07 联发科技股份有限公司 Power saving method and mobile electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999147A (en) * 2011-09-13 2013-03-27 联想(北京)有限公司 Equipment and method for preventing mistaken touch
JP2014071732A (en) * 2012-09-28 2014-04-21 Toshiba Corp Electronic apparatus, display control method, and program
US9639261B2 (en) * 2013-12-04 2017-05-02 Sony Corporation Apparatus and method for controlling a suspended state
CN103823624A (en) * 2014-02-20 2014-05-28 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931705A (en) * 2010-08-31 2010-12-29 中兴通讯股份有限公司 Method for locking input module of mobile terminal and mobile terminal
CN102006356A (en) * 2010-09-27 2011-04-06 浙江大学 Method for detecting state of cell phone pocket by using Android operating system
CN103167151A (en) * 2012-09-21 2013-06-19 深圳市金立通信设备有限公司 Automatic screen-locking system and method for mobile phone placed in pocket
CN103139389A (en) * 2013-02-25 2013-06-05 上海斐讯数据通信技术有限公司 Method of preventing wrong operation for mobile terminal and mobile terminal
CN104158958A (en) * 2014-07-28 2014-11-19 中山大学 Anti-misoperation method for intelligent terminal equipment
CN106200862A (en) * 2015-01-15 2016-12-07 联发科技股份有限公司 Power saving method and mobile electronic device
CN105607844A (en) * 2015-09-30 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Touch screen control method, touch screen control device and terminal
CN105843392A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Screen control method and device of mobile terminal

Also Published As

Publication number Publication date
CN107977113A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN109271121B (en) Application display method and mobile terminal
CN108182043B (en) Information display method and mobile terminal
CN107977113B (en) Control method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN108391008B (en) Message reminding method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN107808107B (en) Application message display method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN108196781B (en) Interface display method and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN108089935B (en) Application program management method and mobile terminal
CN108388459B (en) Message display processing method and mobile terminal
CN110740265B (en) Image processing method and terminal equipment
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN109660657B (en) Application program control method and device
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN108229423B (en) Fingerprint identification scanning method and mobile terminal
CN110764650A (en) Key trigger detection method and electronic 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