CN112929492B - Control method, control device, storage medium and mobile terminal - Google Patents

Control method, control device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112929492B
CN112929492B CN202110237187.7A CN202110237187A CN112929492B CN 112929492 B CN112929492 B CN 112929492B CN 202110237187 A CN202110237187 A CN 202110237187A CN 112929492 B CN112929492 B CN 112929492B
Authority
CN
China
Prior art keywords
mobile terminal
preset
screen
proximity sensor
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
CN202110237187.7A
Other languages
Chinese (zh)
Other versions
CN112929492A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110237187.7A priority Critical patent/CN112929492B/en
Publication of CN112929492A publication Critical patent/CN112929492A/en
Application granted granted Critical
Publication of CN112929492B publication Critical patent/CN112929492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses a control method, a control device, a storage medium and a mobile terminal, wherein the method is applied to the mobile terminal and comprises the following steps: when the mobile terminal starts a telephone function or a voice function, the mobile terminal is controlled to be turned off when the normal mode of the proximity sensor detects that the shielding object is close, the direction sensor is started, when the direction change detected by the direction sensor meets a preset direction condition, and the proximity sensor detects that the shielding object is close within a preset distance range, the high-power-consumption mode of the proximity sensor is started, the shielding object is detected by the high-power-consumption mode, when the high-power-consumption mode does not detect that the shielding object is close, the mobile terminal is controlled to be turned on, the problem that the shielding object exists on the screen of the mobile terminal, such as frost and oil stain, exists, the mobile terminal leaves the head after the call is finished, and the screen is still turned off, is solved, and the abnormal problem is caused.

Description

Control method, control device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a control method, an apparatus, a storage medium, and a mobile terminal.
Background
The mobile terminal is provided with a proximity sensor at the top thereof for saving electric quantity and avoiding false touch in the process of telephone calling, and when the mobile terminal approaches the head, the proximity sensor detects that an object is blocked so as to control the screen to be turned off, the touch is prohibited to detect and the like, so as to achieve the effects of avoiding false touch and saving electric quantity. However, in the actual use process, some abnormal situations may occur, so that some abnormal "shelters" may appear on the screen of the mobile terminal, for example, in winter, frost may be left on the screen of the mobile terminal inadvertently during a call, and at this time, it is easy to cause the proximity sensor to mistakenly select the screen turning-off process for the approach of the head, so that the screen is still turned off when the mobile terminal leaves the head, and since the amount of frost is not large, the problem is very serious in the actual use process, and even the mobile terminal cannot be used.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a storage medium and a mobile terminal, and can solve the problem of abnormality caused by the fact that in the process of conversation, due to the fact that shielding objects such as face cream and oil stains are adhered to a screen of the mobile terminal, the mobile terminal leaves the head after the conversation is finished, and the screen is still in a turned-off state.
The embodiment of the application provides a control method, which is applied to a mobile terminal, wherein the mobile terminal comprises a proximity sensor and a direction sensor, and the control method comprises the following steps:
when the mobile terminal starts a telephone function or a voice function, detecting the approach of the shielding object by using the normal mode of the proximity sensor;
when the approach of a shielding object is detected within a preset distance range corresponding to a screen-off condition, controlling the screen of the mobile terminal to be turned off, and starting the direction sensor;
when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object within the preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is greater than the transmitting power corresponding to the normal mode;
detecting an approach of a blockage using the high power mode of the proximity sensor;
and when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to be on.
The embodiment of the present application further provides a control device, which is applied to a mobile terminal, where the mobile terminal includes a proximity sensor and a direction sensor, and the control device includes:
the first detection module is used for detecting the approach of the shielding object by utilizing the normal mode of the proximity sensor when the mobile terminal starts a telephone function or a voice function;
the control module is used for controlling the screen of the mobile terminal to be turned off when the approach of a shielding object is detected within a preset distance range corresponding to the screen turning-off condition;
the starting module is used for starting the direction sensor when controlling the screen of the mobile terminal to be turned off;
the mode switching module is used for starting a high power consumption mode of the proximity sensor when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object in the preset distance range, wherein the transmitting power corresponding to the high power consumption mode is larger than the transmitting power corresponding to the normal mode;
a second detection module for detecting proximity of a blockage using the high power mode of the proximity sensor;
and the control module is also used for controlling the mobile terminal to be on when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition.
The embodiment of the application also provides a computer readable storage medium, wherein a plurality of instructions are stored in the computer readable storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the control methods.
The embodiment of the present application further provides a mobile terminal, which includes a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for any one of the steps in the control method.
When the mobile terminal starts a telephone function or a voice function, the mobile terminal is controlled to turn off the screen when the normal mode of the proximity sensor detects that the shielding object is close, the direction sensor is started, when the direction change detected by the direction sensor meets the preset direction condition and the proximity sensor detects that the shielding object is close within the preset distance range, the mobile terminal is detected to move, but the shielding object is close, the situation that the mobile terminal leaves the head but still detects the shielding object can be considered as a rough situation, the high-power-consumption mode of the proximity sensor is started at the moment, the shielding object is detected by the high-power-consumption mode, when the high-power-consumption mode does not detect the shielding object is close, the mobile terminal is controlled to turn on the screen, namely, if the high-power-consumption mode does not detect the shielding object is close, the situation that the mobile terminal leaves the head can be determined, the mobile terminal is controlled to be on at the moment, and the abnormal problem caused by the fact that the mobile terminal leaves the head and the screen is still turned off after the call is finished due to the fact that shielding objects such as face cream and oil stains exist on the screen of the mobile terminal is solved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a control method according to an embodiment of the present application.
Fig. 2 is a diagram illustrating another flow of a control method according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of a control method according to an embodiment of the present application.
Fig. 4a is a schematic diagram of a motion trajectory used according to an embodiment of the present application.
Fig. 4b is an exemplary diagram of a termination motion trajectory provided in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of a control device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The embodiment of the application provides a control method, a control device, a storage medium and a mobile terminal. Any one of the control devices provided in the embodiments of the present application may be integrated in a mobile terminal, and the mobile terminal may be a server, or may be a terminal device, including a smart phone, a Pad, a wearable device, a robot, and the like. The mobile terminal is integrated with a proximity sensor and a direction sensor, and can simultaneously realize at least one of a telephone function or a voice function.
Referring to fig. 1, fig. 1 is a schematic flowchart of a control method provided in an embodiment of the present application, where the control method is applied to a mobile terminal, and the mobile terminal includes a direction sensor and a proximity sensor, and the control method includes the following steps.
When the mobile terminal starts a telephone function or a voice function, the proximity sensor detects the approach of the obstacle in a normal mode 101.
The mobile terminal starts a telephone function, which may be a telephone function corresponding to a telephone application integrated when the mobile terminal leaves a factory, a telephone function corresponding to a third party telephone application installed on the mobile terminal, or a telephone function existing in other forms on the mobile terminal. Starting a voice function, which can be starting a voice playing function on an instant messaging application program installed on the mobile terminal, for example, when the instant messaging application program receives voice, clicking to play the voice to start the voice function; or starting the voice function when the software such as recording on the mobile terminal detects the playing sound. And is not particularly limited.
When the mobile terminal starts a telephone function or a voice function, the proximity sensor is started, and the proximity sensor is used for detecting the approach of the shielding object. When the proximity sensor is started, the normal mode of the proximity sensor is started by default, and the proximity of the shielding object is detected by using the normal mode of the proximity sensor.
And 102, when the approaching of the shielding object is detected within the preset distance range corresponding to the screen-off condition, controlling the screen of the mobile terminal to be turned off, and starting the direction sensor.
And detecting the distance of the shielding object by using the normal mode of the proximity sensor, and determining that the proximity of the shielding object is detected when the distance is within a preset distance range corresponding to the screen extinguishing condition. It should be noted that the detected obstruction may be cream, oil stain, etc. on the mobile terminal, or may be the head of the user, and the user is ready to receive a call or a voice. It should be noted that the frost and oil stain on the mobile terminal may be adhered to the mobile terminal carelessly during the process of answering a call or answering a voice, for example, the mobile terminal is close to the face, so that the frost is adhered to the mobile terminal; in this case, the obstruction detected in the preset distance range corresponding to the screen-off condition is the head of the user. It may be that before the phone function or the voice function is started, the frost or oil stain is already on the mobile terminal, in this case, the obstruction detected in the preset distance range corresponding to the screen-off condition may be the frost or oil stain (the user does not answer the phone or the voice), or the head of the user.
When the shielding object is detected within a preset distance range corresponding to the screen-off condition, controlling the mobile terminal to screen off (screen off), namely forbidding the display screen of the mobile terminal, and turning off the display screen. The intuitive result is that no touch on the display screen is responded to and no content on the display screen is visible. It should be noted that, when the display screen is in the off-screen state, the mobile terminal may normally perform other functions. For example, the mobile terminal may play audio, may exchange data with a server, may perform voice calls with other users, and the like. If the approach of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, then the step of detecting the approach of the shielding object by using the normal mode of the proximity sensor is executed.
And when the screen of the mobile terminal is controlled to be turned off, a direction sensor on the mobile terminal is started, and the direction of the mobile terminal is detected by the direction sensor. The direction sensor may be an acceleration sensor, such as a gravitational acceleration sensor; but also angular velocity sensors, such as gyroscopes; acceleration sensors and angular velocity sensors may also be included.
When the acceleration sensor is in an operating state, X, Y, Z triaxial acceleration components of the mobile terminal can be detected in real time. If the acceleration Sensor is a Gravity Sensor (G-Sensor), which is a MEMS Sensor capable of sensing the magnitude of acceleration, the acceleration from three different axial components (X, Y, Z three-axis components) can be obtained by the acceleration. When the mobile terminal is horizontally placed on a desktop, the three-axis components (X, Y and Z) of the acceleration are (0, 0 and 9.81); when the mobile terminal is placed on a desktop downwards, three-axis acceleration components (X, Y and Z) are (0, 0, -9.81); when the mobile terminal inclines to the left, the X axis of the acceleration is a positive value; when the mobile terminal inclines to the right, the X axis of the acceleration is a negative value; when the mobile terminal inclines upwards, the acceleration Y axis is a negative value; when the mobile terminal inclines downwards, the acceleration Y axis is a positive value. The value of the X, Y, Z axis is constantly changing as the mobile terminal is rotated. That is, it can be understood that the mobile terminal is in a coordinate system, and whether the mobile terminal moves or rotates can be determined by determining the current values of the current X, Y, Z triaxial components.
When a gyroscope (also called an angular velocity sensor) is in a working state, X, Y, Z three-axis rotation angular velocity of the mobile terminal can be detected in real time. The gyroscope can well measure the actions of rotation and deflection. The gyroscope and the acceleration sensor use the same coordinate system, wherein when the mobile terminal horizontally rotates clockwise, the Z axis is a positive value; when the mobile terminal horizontally rotates anticlockwise, the Z axis is a negative value; when the mobile terminal rotates leftwards, the Y axis is a negative value; when the mobile terminal rotates rightwards, the Y axis is a positive value; when the mobile terminal rotates upwards, the X axis is a negative value; when the mobile terminal rotates downward, the X-axis is positive.
103, when the direction change detected by the direction sensor meets the preset direction condition and the proximity sensor detects the approach of the shielding object within the preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is greater than the transmitting power corresponding to the normal mode.
When the direction sensor is a gravitational acceleration sensor, the preset direction condition may be that a change value of an acceleration component of the at least one axis reaches a preset acceleration value. When the direction sensor is a gyroscope, the preset direction condition is that the angular velocity change value of at least one axis reaches a preset angular velocity value. When the direction sensor comprises a gravity acceleration sensor and a gyroscope, the preset direction condition is that the change value of the acceleration component of at least one axis reaches a preset acceleration value and the change value of the angular velocity of at least one axis reaches a preset angular velocity value, and the force acceleration sensor and the gyroscope are used at the same time to improve the detection accuracy. The preset angular velocity value and the preset acceleration value can be set according to actual conditions, for example, the preset acceleration value is 4, the preset angular velocity value is 10, and the like.
The preset direction condition is set to eliminate direction change caused by small-range adjustment of the mobile terminal by a user in the process of receiving a call or voice.
When the change of the direction value detected by the direction sensor for two consecutive times meets the preset direction condition, the mobile terminal is considered to move or rotate. Specifically, the method can be divided into two cases, when the detected blocking object in the preset distance range corresponding to the screen-off condition may be frost, oil stain or the like, and the detected direction change meets the preset direction condition, including a process that the mobile terminal is moving, such as a process that a user is preparing to receive a call or receiving voice, or a process that the mobile terminal moves along with the movement/motion of the user. When the detected sheltering object in the preset distance range corresponding to the screen-off condition is the head of the user, the detected direction change meets the preset direction condition, and the conditions comprise that the user finishes making a call, does not use a receiver mode to receive the voice any more or finishes receiving the voice and the like.
When the direction change detected by the direction sensor meets the preset direction condition and the proximity sensor detects the approach of the shielding object within the preset distance range, namely the direction change is large, and meanwhile, the proximity sensor detects the approach of the shielding object, then the high power consumption mode of the proximity sensor is started.
Understandably, the proximity sensor has two distinct modes of operation: the device comprises a normal mode and a large power consumption mode, wherein the transmitting power of the large power consumption mode is larger than the transmitting power corresponding to the normal mode. The high power consumption mode of the proximity sensor is started, and it is also understood that the mode of the proximity sensor is switched from the normal mode to the high power consumption mode. The mode of the proximity sensor is switched from a normal mode to a high power consumption mode so that the proximity sensor detects the approach of a shield using a larger transmission power to distinguish whether the case is due to the presence of a shield such as cream, oil stain, or the like, or the case is where the mobile terminal is approaching or moving away from the head of the user.
Wherein the step of initiating a high power mode of the proximity sensor comprises: sending a mode switching instruction to a register corresponding to the proximity sensor; and modifying the value of the register according to the mode switching instruction so as to switch the mode of the proximity sensor from the normal mode to the high-power-consumption mode. The proximity sensor switches from the normal mode to the high power mode by modifying the value of the corresponding register. And controlling the central processing unit to send a mode switching instruction to the register corresponding to the proximity sensor, and modifying the value of the register according to the mode switching instruction. The working current corresponding to the high power consumption mode of the proximity sensor is larger than the working current corresponding to the normal mode.
And 104, detecting the approach of the shielding object by using a large power consumption mode of the proximity sensor.
And when the mode of the proximity sensor is switched to the high power consumption mode, the high power consumption mode of the proximity sensor is utilized to detect the approach of the shielding object.
105, when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to be on.
And when the direction change meets the preset direction condition and the approach of the shielding object is detected, starting a high power consumption mode.
When the mobile terminal is determined to be moving when the proximity of the shielding object is not detected within the preset distance range corresponding to the screen-off condition by using the high-power-consumption mode, the conditions that the user is preparing to answer a phone or answer a voice, the mobile terminal moves along with the movement/movement of the user (the movement is not the movement of answering the phone or answering the voice), and the like are included, at the moment, the mobile terminal does not approach the head of the user, so that the proximity of the shielding object is not detected by using the high-power-consumption mode (the shielding object is detected by using the normal mode because frost, oil stain and the like are adhered on the mobile terminal), and the screen of the mobile terminal is controlled to be lightened, so that the operation of the user on the mobile terminal is prevented from being influenced.
When the situation that the mobile terminal leaves the head is determined when the proximity of the shielding object is not detected within the preset distance range corresponding to the screen-off condition by using the high-power-consumption mode, the situation that a user makes a call and does not use an earphone mode to receive voice or finishes receiving voice, and the like, is determined, at the moment, the proximity of the shielding object is not detected even when the high-power-consumption mode is used (the shielding object is detected by using the normal mode because frost, oil stain and the like are adhered to the mobile terminal), and the screen is controlled to be lightened so as to solve the abnormal problem that the shielding object such as frost, oil stain and the like exists on the screen of the mobile terminal, and the screen is still in a turned-off state after the call is finished.
Wherein, control mobile terminal bright screen includes: and starting a display screen of the mobile terminal and lightening the display screen. The intuitive result is that the corresponding user touches on the display screen and can see the content on the display screen.
In an embodiment, after the step of controlling the mobile terminal to light up, the control method further includes: and turning off the direction sensor and turning off a high-power-consumption mode of the proximity sensor. When it is determined that the proximity of the blocking object is not detected by using the high power consumption mode, it may be determined to include a case where the mobile terminal is away from the head or a case where the mobile terminal is moving (the movement is a movement that is not receiving a call/receiving a voice), and at this time, the mobile terminal is controlled to be on, and the direction sensor is turned off, and the high power consumption mode of the proximity sensor is turned off to reduce the power consumption of the mobile terminal.
In this context, the closing of the direction sensor is understood to mean the function of the closing of the direction sensor. Turning off the high power mode of the proximity sensor may be understood as turning off the proximity sensor, and in one case, may be understood as switching the high power mode of the proximity sensor to the normal mode.
In one embodiment, as shown in fig. 1, the control method further includes step 106.
106, when the approach of the shielding object is detected within the preset distance range corresponding to the screen-off condition, saving the screen-off of the mobile terminal and keeping the starting state of the direction sensor.
And when the direction change meets the preset direction condition and the approach of the shielding object is detected, starting a high power consumption mode. When the high-power mode of the mobile terminal is utilized, the approach of the shielding object is detected within the preset distance range corresponding to the screen-off condition, and the method comprises the following steps: the method comprises the following steps that cream, oil stains and the like on the mobile terminal are too much, and the condition that the mobile terminal is close to the head of a user is almost the same as the condition that the mobile terminal is close to the head of the user, so that in the process that the mobile terminal moves (the movement is not the movement of answering a call/answering voice), or when the mobile terminal finishes receiving a call, finishes answering voice in an earphone mode and finishes answering voice, the direction change is detected to meet the preset condition, and the approach of a shielding object can be detected no matter in a normal mode or a high-power mode; further comprising: when a user answers a call or voice, the gesture is a standing gesture, and in the process of answering the call or voice, the gesture is changed, such as a lying gesture, so that the detected direction change meets the preset direction condition, and the approach of a shielding object can be detected no matter in a normal mode or a high-power mode.
When the high-power mode of the mobile terminal is utilized, when the approach of a shielding object is detected within a preset distance range corresponding to a screen-off condition, the screen of the mobile terminal is kept off, and the starting state of the direction sensor is kept, so as to detect the direction change, the approach of the shielding object and the like, namely, the step of starting the high-power mode of the proximity sensor when the direction change detected by the direction sensor meets the preset direction condition and the proximity sensor detects the approach of the shielding object within the preset distance range is executed.
When too much frost, oil stain and the like on the mobile terminal are different from the situation that the mobile terminal is close to the head of a user (the situation is almost impossible in real life), the frost and the oil stain on the mobile terminal can be removed, and the abnormal problem caused by the fact that the screen is still in a turned-off state due to the existence of shelters such as the frost and the oil stain on the screen of the mobile terminal can be solved.
In the embodiment of the application, when the approach of the shielding object is detected, the distance between the shielding object and the mobile terminal can be detected, and if the distance is within the preset distance range corresponding to the screen-off condition, the approach of the shielding object is determined to be detected.
The method comprises the steps of firstly detecting the approach of a shielding object through a normal mode of the mobile terminal, then starting a direction sensor of the mobile terminal, detecting the direction change of the mobile terminal through the direction sensor, starting a high-power-consumption mode of the proximity sensor only when the direction change meets a preset direction condition (the direction sensor) and the approach of the shielding object (the proximity sensor) is detected at the same time, detecting the shielding object through the high-power-consumption mode, and controlling the mobile terminal to be on when the high-power-consumption mode does not detect the approach of the shielding object, so that the abnormal problem caused by the fact that the mobile terminal leaves the head after the call is finished or the screen of the mobile terminal is still in a turned-off state in the moving process due to the existence of small-area shielding objects such as face cream, oil stain and the like on the screen of the mobile terminal is solved. When the approach of the shielding object is detected by using the high-power-consumption mode, the mobile terminal is controlled to keep the screen-off state, and the starting state of the direction sensor is kept, so that the situation that the posture of the mobile terminal corresponds to the change of the posture of a user in the process of answering a call or answering voice can be solved.
In an embodiment, the proximity sensor may be an infrared sensor or an ultrasonic or the like type sensor or the like. The proximity sensor can emit a detection signal, and the emitted detection signal penetrates through the display screen and then is emitted to the outside. The detection signal is reflected by an external object to generate a reflection signal, and the reflection signal penetrates through the display screen and then enters the proximity sensor. Thus, the proximity sensor can detect the intensity value of the received reflected signal.
Correspondingly, as shown in fig. 2, a schematic flow chart of a control method provided in an embodiment of the present application is shown, where the control method includes the following steps.
When the mobile terminal starts a telephone function or a voice function, the proximity sensor detects the approach of the blocking object in a normal mode.
202, when the approaching of the shielding object is detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to screen-off, and starting the direction sensor.
203, when the direction change detected by the direction sensor meets the preset direction condition and the proximity sensor detects the approach of the shielding object within the preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is larger than the transmitting power corresponding to the normal mode.
Proximity of the obstruction is detected 204 using a high power mode of the proximity sensor.
205, obtaining a first reflected signal intensity value received by the proximity sensor when controlling the mobile terminal to turn off the screen and obtaining a second reflected signal intensity value received when detecting the obstruction by using the high power consumption mode of the proximity sensor.
The proximity sensor detects a corresponding reflected signal due to an infrared sensor or an ultrasonic wave or the like. Specifically, a first reflected signal strength value received by the proximity sensor when the mobile terminal is turned off is obtained, and a second reflected signal strength value received by the proximity sensor when the high power consumption mode is used for detection is obtained. The preset intensity difference value refers to the maximum value of the intensity error corresponding to the detection of the same obstruction twice.
206, detecting whether the intensity difference corresponding to the first and second reflected signal intensity values exceeds a preset intensity difference. If yes, determining that the approach of the shielding object is not detected within a preset distance range corresponding to the screen-off condition, and executing step 207; if not, determining that the approach of the shielding object is detected within the preset distance range corresponding to the screen-off condition, and executing step 208.
If the intensity difference corresponding to the first reflection signal intensity value and the second reflection signal intensity value exceeds the preset intensity difference, it means that the shielding objects corresponding to the first reflection signal intensity value obtained by reflection and the second reflection signal intensity value obtained by reflection are not the same shielding object or the second reflection signal intensity value is almost zero, and it is possible that the mobile terminal leaves the head of the user; if the intensity difference corresponding to the first reflected signal intensity value and the second reflected signal intensity value does not exceed the preset intensity difference, it means that the shielding objects corresponding to the first reflected signal intensity value and the second reflected signal intensity value obtained by reflection may be the same shielding object, like the head of the user. It is understood that the first reflected signal strength value obtained by the proximity sensor detecting the head of the user in the normal mode and the second reflected signal strength value obtained by the proximity sensor detecting the head of the user in the high power consumption mode are the same or not much different.
And 207, controlling the mobile terminal to light the screen, turning off the direction sensor and turning off a high-power-consumption mode of the proximity sensor.
And 208, keeping the mobile terminal off the screen and keeping the starting state of the direction sensor.
If the intensity difference corresponding to the first reflected signal intensity value and the second reflected signal intensity value exceeds a preset intensity value, controlling the mobile terminal to light the screen, closing the direction sensor and closing the high-power-consumption mode of the proximity sensor; the abnormal problem caused by the fact that small-area shelters such as face cream and oil stains exist on the screen of the mobile terminal and the mobile terminal is still in a turned-off state after the mobile terminal leaves the head screen after the call is finished is solved. If the intensity difference corresponding to the first reflection signal intensity value and the second reflection signal intensity value does not exceed the preset intensity value, the screen of the mobile terminal is kept turned off, and the starting state of the direction sensor is kept; the method can solve the corresponding situation of the gesture of the mobile terminal along with the change of the gesture of the user in the process of answering the call or answering the voice.
In some embodiments, in order to prevent the situation of a non-answered phone or a non-answered voice and the like from influencing the detection result, the motion track of the mobile terminal during the call function or the voice function is combined to determine whether the phone function or the voice function is used and/or whether the phone function or the voice function is ended.
Specifically, as shown in fig. 3, a schematic flow chart of the control method provided in the embodiment of the present application is shown.
The control method includes the following steps.
301, obtaining a motion trajectory when the mobile terminal uses a call function or a voice function each time, and when the number of times of repeated occurrence of some motion trajectories of the mobile terminal reaches a first preset number of times, determining that the motion trajectory is a used motion trajectory when the call function or the voice function of the mobile terminal is currently used; and acquiring a motion track when the mobile terminal finishes the call function or the voice function each time, and judging that the motion track is a finishing motion track when the call function or the voice function of the mobile terminal is finished at present when the repeated occurrence times of some motion tracks of the mobile terminal reach a second preset time.
The first preset number and the second preset number may be the same or different, for example, 5. Some motion tracks comprise a certain motion track or a plurality of motion tracks and the like.
The motion trail of the mobile terminal in the preset time period when the mobile terminal uses the call function or the voice function and the motion trail of the mobile terminal when the mobile terminal finishes the call function or the voice function can be obtained. Such as a corresponding motion trajectory within 10 days.
Acquiring a motion track of each time when the mobile terminal uses a call function or a voice function, and determining a motion track with repeated occurrence times reaching a first preset time from the motion track as a use motion track; and acquiring the motion trail of each time when the mobile terminal finishes the call function or the voice function, and determining the motion trail when the repeated occurrence times reaches a second preset time from the motion trail to be used as the finishing motion trail.
The used motion track can be a corresponding motion track from receiving incoming calls to placing at the ear for receiving, can also be a corresponding motion track from opening a telephone application program to placing at the ear for receiving, and can also be a similar motion track for expressing a corresponding motion track from a state of starting receiving/starting making calls to a state of placing at the ear for receiving. If the corresponding motion track is between the taking-up state from the desktop and the answering state of the phone; the corresponding motion track from the use state of watching the display screen to the answering state of answering the phone, and the like. The dashed line shown in fig. 4a is a schematic diagram of a motion trajectory used in the embodiment of the present application.
The ending motion trail refers to a corresponding motion trail from an ending listening state for ending listening beside the ear to a stable state after leaving the ear. If the corresponding motion track is from the end listening state of the ear listening to the position between the desktops; and the corresponding motion track from the end listening state of ending the ear listening to the use state of watching the display screen, and the like. The dashed line shown in fig. 4b is a schematic diagram of an ending motion trajectory provided in the embodiment of the present application.
It should be noted that fig. 4a and 4b are only one example, and do not constitute a limitation of the motion trajectory. Wherein the motion trail can be detected by a direction sensor, such as a gravitational acceleration sensor and a gyroscope.
And 302, setting and storing the using motion track as a preset approaching track, and setting and storing the ending motion track as a preset far track.
The preset approach trajectory may be understood as a trajectory from a distant state to an approaching state, and the preset distant trajectory may be understood as a trajectory from an approaching state to a distant state.
And 303, when the mobile terminal starts a telephone function or a voice function, detecting the approach of the shielding object by using a normal module of the proximity sensor, and detecting the motion track of the mobile terminal.
The motion trail of the mobile terminal is detected by using the direction sensor.
304, when the approaching of the shielding object is detected within the preset distance range corresponding to the screen-off condition and the motion track of the mobile terminal is detected to be the preset approaching track, controlling the screen-off of the mobile terminal, and detecting the direction of the mobile terminal by using the direction sensor.
When the approach of the shielding object is detected in the preset distance range corresponding to the screen-off condition and the motion track of the mobile terminal is detected to be the preset approach track, the user is in the process of answering/making a call and answering voice. Thus, the situation that the mobile terminal moves (not the process of receiving/making a call and receiving voice) is eliminated.
If the approaching of the shielding object is detected within the preset distance range corresponding to the screen-off condition, but the motion track of the mobile terminal is not the preset approaching track, the shielding object such as cream, oil stain and the like may exist on the mobile terminal, and the mobile terminal is controlled to keep the original state unchanged. If the original state is bright screen, the screen is kept bright.
And when the approach of the shielding object is detected within the preset distance range corresponding to the screen-off condition, then a step of detecting the approach of the shielding object by using a normal module of the proximity sensor and detecting the motion track of the mobile terminal is executed.
And 305, when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of the shielding object within a preset distance range, starting a high power consumption mode of the proximity sensor.
In this embodiment, when the direction change detected by the direction sensor satisfies the preset direction condition, the following conditions are included: ending the call, ending the answering voice, ending the receiver state answering voice and the like; during the conversation/voice process of the user, the mobile terminal can move along with the change of the user posture.
Proximity of the obstruction is detected 306 using a high power mode of the proximity sensor.
307, when the approach of the shielding object is not detected in the preset distance range corresponding to the screen-off condition and the motion track of the terminal is detected to be a preset away track, controlling the mobile terminal to turn on the screen, turning off the direction sensor and turning off the high-power-consumption mode of the proximity sensor; otherwise, keeping the mobile terminal off the screen and keeping the starting state of the direction sensor.
When the approach of the shielding object is not detected in the preset distance range corresponding to the screen-off condition and the motion track of the terminal is detected to be the preset far track, the situation that the mobile terminal can move along with the change of the posture of the user in the conversation/voice process of the user can be eliminated; namely, the corresponding situation is the situation of ending the call, ending the answering voice in the receiver state, etc., in which the mobile terminal is controlled to light up, and the direction sensor is turned off, and the high power consumption mode of the proximity sensor is turned off.
Otherwise, the situation is not the situation corresponding to the situation that the approach of the shielding object is not detected in the preset distance range corresponding to the screen-off condition and the motion track of the terminal is detected to be the preset far track.
For the same steps in this embodiment as those in the above embodiment, please refer to the detailed description in the above embodiment, which is not repeated herein.
In the embodiment, a preset approaching track and a preset departing track are introduced to confirm that the abnormal problem caused by the existence of small-area shelters such as frost, oil stain and the like on the screen of the mobile terminal and the fact that the mobile terminal leaves the head screen after the call is finished still in a turned-off state under the conditions of answering the call/voice and finishing the call/answering the voice/receiver mode is solved.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of a control device, which may be specifically implemented as an independent entity or integrated in a mobile terminal.
Referring to fig. 5, fig. 5 specifically illustrates that the control device provided in the embodiment of the present application is applied to a mobile terminal, where the mobile terminal includes a direction sensor and a proximity sensor. The control device may include: a first detection module 401, a control module 402, a start mode 403, a mode switch mode 404, and a second detection module 405.
The first detection module 401 is configured to detect the proximity of the obstruction by using a normal mode of the proximity sensor when the mobile terminal starts a phone function or a voice function.
The control module 402 is configured to control the mobile terminal to turn off the screen when the approaching of the blocking object is detected within a preset distance range corresponding to the screen turn-off condition.
And a starting module 403, configured to start the direction sensor when controlling the screen of the mobile terminal to be turned off.
In an embodiment, the starting module 403 is specifically configured to send a mode switching instruction to a register corresponding to the proximity sensor; and modifying the value of the register according to the mode switching instruction to switch the mode of the proximity sensor from the normal mode to the high-power consumption mode.
And the mode switching module 404 is configured to start a high power consumption mode of the proximity sensor when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects that the obstruction is approaching within a preset distance range, where the transmitting power corresponding to the high power consumption mode is greater than the transmitting power corresponding to the normal mode.
A second detection module 405 to detect proximity of the obstruction using a high power mode of the proximity sensor.
The control module 402 is further configured to control the mobile terminal to turn on the screen when the approaching of the blocking object is not detected within the preset distance range corresponding to the screen-off condition.
In an embodiment, the control module 402 is further configured to turn off the direction sensor and turn off the high power mode of the proximity sensor after controlling the mobile terminal to be on.
In an embodiment, the control module 402 is further configured to keep the mobile terminal off the screen and keep the direction sensor in the activated state when the proximity of the blocking object is detected within the preset distance range corresponding to the screen-off condition.
In one embodiment, as shown in fig. 5, the control device further includes a signal obtaining module 406 and a signal detecting module 407. The signal obtaining module 406 is configured to obtain a first reflected signal strength value received by the proximity sensor when the mobile terminal is controlled to turn off the screen, and obtain a second reflected signal strength value received by the proximity sensor when the high power consumption mode of the proximity sensor is used for detecting the blocking object. The signal detection module 407 is configured to detect whether an intensity difference corresponding to the first reflected signal intensity value and the second reflected signal intensity value exceeds a preset intensity difference.
Correspondingly, the control module 402 is further configured to determine that the approaching of the shielding object is not detected within a preset distance range corresponding to the screen-off condition if the intensity difference corresponding to the first reflection signal intensity value and the second reflection signal intensity value exceeds a preset intensity difference, control the mobile terminal to turn on the screen, turn off the direction sensor, and turn off the high-power-consumption mode of the proximity sensor; and if the intensity difference corresponding to the first reflection signal intensity value and the second reflection signal intensity value does not exceed the preset intensity difference, determining that the approaching of the shielding object is detected within the preset distance range corresponding to the screen-off condition, keeping the screen-off of the mobile terminal, and keeping the starting state of the direction sensor.
In one embodiment, as shown in fig. 6, the control device further includes: a track acquisition module 408 and a track setting module 409. The trajectory acquiring module 408 is configured to acquire a motion trajectory when the mobile terminal uses the call function or the voice function each time, and acquire a motion trajectory when the mobile terminal finishes the call function or the voice function each time. A track setting module 409, configured to determine that a motion track is a used motion track when the mobile terminal uses the call function or the voice function at present, set and store the used motion track as a preset approaching track when the number of times of repeated occurrence of some motion tracks when the mobile terminal uses the call function or the voice function reaches a first predetermined number of times, and determine that the motion track is an ending motion track when the mobile terminal ends the call function or the voice function at present, and set and store the ending motion track as a preset away track when the number of times of repeated occurrence of some motion tracks when the mobile terminal ends the call function or the voice function reaches a second predetermined number of times.
Correspondingly, the first detecting module 401 is further configured to detect a motion trajectory of the mobile terminal while detecting the proximity of the obstruction by using the normal mode of the proximity sensor. The control module 402 is further configured to control the mobile terminal to turn off the screen when the proximity of the blocking object is detected within the preset distance range corresponding to the screen turn-off condition and the motion trajectory of the mobile terminal is detected to be the preset proximity trajectory, and detect the direction of the mobile terminal by using the direction sensor. The control module 402 is further configured to, after the step of detecting the approach of the blocking object by using the high power consumption mode of the proximity sensor, control the mobile terminal to turn on the screen, turn off the direction sensor, and turn off the high power consumption mode of the proximity sensor when the approach of the blocking object is not detected within the preset distance range corresponding to the screen-off condition and the motion trajectory of the terminal is detected to be a preset away trajectory; otherwise, keeping the mobile terminal off the screen and keeping the starting state of the direction sensor.
In a specific implementation, each of the modules and/or units may be implemented as an independent entity, or may be implemented as one or several entities by any combination, where the specific implementation of each of the modules and/or units may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, an embodiment of the present application further provides a mobile terminal, as shown in fig. 7, a mobile terminal 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the mobile terminal 500, 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 running or loading an application stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 501 in the mobile terminal 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, thereby implementing various functions:
when the mobile terminal starts a telephone function or a voice function, detecting the approach of the shielding object by using a normal mode of the proximity sensor; when the approach of a shielding object is detected within a preset distance range corresponding to a screen-off condition, controlling the mobile terminal to turn off the screen, and starting a direction sensor; when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object within a preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is larger than that corresponding to the normal mode; detecting the approach of the shielding object by utilizing a high power consumption mode of the proximity sensor; and when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to be on.
The mobile terminal may implement the steps in any embodiment of the control method provided in the embodiment of the present application, and therefore, beneficial effects that can be achieved by any control method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Fig. 8 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the control method provided in the above-mentioned embodiment. The mobile terminal includes the following modules/units.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE 802.2.access, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Internet Microwave Access (Microwave for Wireless Communication), other suitable protocols for short message service (Max), and any other suitable protocols, and may even include those protocols that have not yet been developed.
The memory 620 may be used to store software programs and modules, such as the corresponding program instructions/modules in the above-described embodiments, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 can further include memory located remotely from the processor 680, which can be connected to the mobile terminal 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch-sensitive surface 631, also referred to as a touch display screen (touch screen) or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in the figure the touch sensitive surface 631 and the display panel 641 are shown as two separate components to implement input and output functions, it will be appreciated that the touch sensitive surface 631 and the display panel 641 are integrated to implement input and output functions.
The mobile terminal 600 may also include at least one sensor 650, such as a light sensor, an orientation sensor, a proximity sensor, and other sensors. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 may provide an audio interface between a user and the mobile terminal 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 600.
The mobile terminal 600, which can assist a user in receiving requests, transmitting information, etc., provides the user with wireless broadband internet access through a transmission module 670 (e.g., a Wi-Fi module). Although the transmission module 670 is illustrated, it is understood that it does not belong to the essential constitution of the mobile terminal 600 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile terminal 600, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the mobile terminal. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The mobile terminal 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 680 through a power management system that may enable management of charging, discharging, and power consumption. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 600 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. In this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs (computer programs), where the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
when the mobile terminal starts a telephone function or a voice function, detecting the approach of the shielding object by using a normal mode of the proximity sensor; when the approach of a shielding object is detected within a preset distance range corresponding to a screen-off condition, controlling the mobile terminal to turn off the screen, and starting a direction sensor; when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object within a preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is larger than that corresponding to the normal mode; detecting the approach of the shielding object by utilizing a high power consumption mode of the proximity sensor; and when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to be on.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions (computer programs) or by instructions controlling associated hardware, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the control method provided in the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any embodiment of the control method provided in the embodiment of the present invention, the beneficial effects that any control method provided in the embodiment of the present invention can achieve can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description is directed to a control method, an apparatus, a storage medium, and a mobile terminal provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A control method is applied to a mobile terminal, the mobile terminal comprises a proximity sensor and a direction sensor, and the control method is characterized by comprising the following steps:
when the mobile terminal starts a telephone function or a voice function, detecting the approach of the shielding object by using the normal mode of the proximity sensor;
when the approach of a shielding object is detected within a preset distance range corresponding to a screen-off condition, controlling the screen of the mobile terminal to be turned off, and starting the direction sensor;
when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object in the preset distance range, starting a high power consumption mode of the proximity sensor, wherein the transmitting power corresponding to the high power consumption mode is greater than the transmitting power corresponding to the normal mode, and when the direction sensor is a gravity acceleration sensor, the preset direction condition is that the change value of the acceleration component of at least one axis reaches a preset acceleration value; when the direction sensor is a gyroscope, the preset direction condition is that the angular velocity change value of at least one axis reaches a preset angular velocity value; when the direction sensor comprises a gravity acceleration sensor and a gyroscope, the preset direction condition is that the change value of the acceleration component of at least one axis reaches a preset acceleration value and the change value of the angular velocity of at least one axis reaches a preset angular velocity value;
detecting an approach of an obstruction with the high power mode of the proximity sensor;
and when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition, controlling the mobile terminal to be on.
2. The control method according to claim 1, characterized by further comprising:
and when the approach of the shielding object is detected within a preset distance range corresponding to the screen-off condition, keeping the screen of the mobile terminal off, and keeping the starting state of the direction sensor.
3. The control method according to claim 1, wherein the proximity sensor is an infrared sensor, and after the step of detecting the approach of a shade using the large power consumption mode of the proximity sensor, the control method further comprises:
acquiring a first reflection signal intensity value received by the proximity sensor when the mobile terminal is controlled to be turned off, and acquiring a second reflection signal intensity value received by a high-power-consumption mode detection shelter of the proximity sensor;
detecting whether the intensity difference corresponding to the first reflected signal intensity value and the second reflected signal intensity value exceeds a preset intensity difference;
if yes, determining that the approach of the shielding object is not detected within a preset distance range corresponding to the screen-off condition, and executing the step of controlling the mobile terminal to be on;
if not, determining that the approach of the shielding object is detected within a preset distance range corresponding to the screen turn-off condition, keeping the screen turn-off of the mobile terminal, and keeping the starting state of the direction sensor.
4. The control method of claim 1, wherein the step of initiating a high power mode of the proximity sensor comprises:
sending a mode switching instruction to a register corresponding to the proximity sensor;
modifying a value of the register according to a mode switching instruction to switch a mode of the proximity sensor from the normal mode to the high power consumption mode.
5. The control method according to claim 1, before the mobile terminal starts a phone function or a voice function, further comprising:
acquiring a motion track of each time the mobile terminal uses a call function or a voice function;
when the repeated occurrence times of some motion tracks of the mobile terminal reach a first preset time, judging that the motion tracks are the use motion tracks when the call function or the voice function of the mobile terminal is used at present, and setting and storing the use motion tracks as preset approaching tracks;
detecting a motion trail of the mobile terminal while detecting the approach of the shielding object by using the normal mode of the proximity sensor;
and when the approach of the shielding object is detected within a preset distance range corresponding to the screen turn-off condition and the motion track of the mobile terminal is detected to be a preset approach track, executing the step of controlling the screen turn-off of the mobile terminal.
6. The control method according to claim 1, before the mobile terminal starts a phone function or a voice function, further comprising:
acquiring a motion track of each time when the mobile terminal finishes a call function or a voice function;
when the repeated occurrence times of some motion tracks of the mobile terminal reach a second preset time, judging that the motion tracks are ending motion tracks when the call function or the voice function of the mobile terminal is ended currently, and setting and storing the ending motion tracks as preset away tracks;
after the step of detecting the approach of a shade using the high power mode of the proximity sensor, further comprising:
when the approach of the shielding object is not detected in the preset distance range corresponding to the screen-off condition and the motion track of the terminal is detected to be a preset far track, executing the step of controlling the mobile terminal to be on;
otherwise, keeping the mobile terminal off the screen and keeping the starting state of the direction sensor.
7. The control method according to claim 1, 3 or 6, wherein after the step of controlling the mobile terminal to light up, the control method further comprises:
turning off the direction sensor, and turning off the high power mode of the proximity sensor.
8. A control device is applied to a mobile terminal, the mobile terminal comprises a proximity sensor and a direction sensor, and is characterized by comprising:
the first detection module is used for detecting the approach of the shielding object by utilizing the normal mode of the proximity sensor when the mobile terminal starts a telephone function or a voice function;
the control module is used for controlling the screen of the mobile terminal to be turned off when the approach of a shielding object is detected within a preset distance range corresponding to the screen turning-off condition;
the starting module is used for starting the direction sensor when controlling the screen of the mobile terminal to be turned off;
the mode switching module is used for starting a high power consumption mode of the proximity sensor when the direction change detected by the direction sensor meets a preset direction condition and the proximity sensor detects the approach of a shielding object in the preset distance range, wherein the transmitting power corresponding to the high power consumption mode is larger than the transmitting power corresponding to the normal mode, and when the direction sensor is a gravity acceleration sensor, the preset direction condition is that the change value of the acceleration component of at least one axis reaches a preset acceleration value; when the direction sensor is a gyroscope, the preset direction condition is that the angular velocity change value of at least one axis reaches a preset angular velocity value; when the direction sensor comprises a gravity acceleration sensor and a gyroscope, the preset direction condition is that the change value of the acceleration component of at least one axis reaches a preset acceleration value and the change value of the angular velocity of at least one axis reaches a preset angular velocity value;
a second detection module to detect proximity of an obstruction using the high power mode of the proximity sensor;
and the control module is also used for controlling the mobile terminal to be on when the approaching of the shielding object is not detected within the preset distance range corresponding to the screen-off condition.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the control method of any of claims 1 to 7.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the control method according to any one of claims 1 to 7.
CN202110237187.7A 2021-03-03 2021-03-03 Control method, control device, storage medium and mobile terminal Active CN112929492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110237187.7A CN112929492B (en) 2021-03-03 2021-03-03 Control method, control device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110237187.7A CN112929492B (en) 2021-03-03 2021-03-03 Control method, control device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112929492A CN112929492A (en) 2021-06-08
CN112929492B true CN112929492B (en) 2022-05-06

Family

ID=76173240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110237187.7A Active CN112929492B (en) 2021-03-03 2021-03-03 Control method, control device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112929492B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113740916A (en) * 2021-09-02 2021-12-03 维沃移动通信有限公司 Proximity detection circuit, proximity detection method, proximity detection device, and electronic apparatus
CN116095228B (en) * 2022-08-16 2023-10-20 荣耀终端有限公司 Near-light emission power processing method, terminal device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107896272A (en) * 2017-08-11 2018-04-10 广东欧珀移动通信有限公司 A kind of call control method and device
CN111405110A (en) * 2020-03-11 2020-07-10 Tcl移动通信科技(宁波)有限公司 Screen control method and device, storage medium and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369142B (en) * 2013-07-09 2015-02-04 广东欧珀移动通信有限公司 Method and system for avoiding call-up malfunction
CN106886019B (en) * 2017-03-02 2019-09-20 北京小米移动软件有限公司 Distance measurement method and device
CN108966323B (en) * 2017-05-17 2021-06-08 上海中兴软件有限责任公司 Bright screen control method and device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107896272A (en) * 2017-08-11 2018-04-10 广东欧珀移动通信有限公司 A kind of call control method and device
CN111405110A (en) * 2020-03-11 2020-07-10 Tcl移动通信科技(宁波)有限公司 Screen control method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN112929492A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN107896272B (en) Call control method and device
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
CN111092990B (en) Application program sharing method, electronic device and storage medium
US20220159777A1 (en) Method for network control and related products
CN112929492B (en) Control method, control device, storage medium and mobile terminal
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
WO2019047973A1 (en) Terminal operating method and terminal, and computer readable storage medium
WO2019011231A1 (en) Method for reducing sar value of mobile terminal, storage medium and mobile terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN106936516B (en) Display screen display state control method, storage medium and terminal
WO2019042478A1 (en) Control method for input method soft keyboard of mobile terminal, storage medium, and mobile terminal
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN110225106B (en) Data transmission method, device and storage medium
CN111372003A (en) Camera switching method and device and terminal
WO2023160250A1 (en) Display brightness control method, apparatus, electronic device, and storage medium
CN105635379B (en) Noise suppression method and device
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111443518A (en) Electronic device and driving method thereof

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