CN106210356B - Method and device for closing terminal screen - Google Patents

Method and device for closing terminal screen Download PDF

Info

Publication number
CN106210356B
CN106210356B CN201610807569.8A CN201610807569A CN106210356B CN 106210356 B CN106210356 B CN 106210356B CN 201610807569 A CN201610807569 A CN 201610807569A CN 106210356 B CN106210356 B CN 106210356B
Authority
CN
China
Prior art keywords
terminal
distance
preset
position
threshold
Prior art date
Application number
CN201610807569.8A
Other languages
Chinese (zh)
Other versions
CN106210356A (en
Inventor
张倩倩
王建磊
Original Assignee
青岛海信移动通信技术股份有限公司
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 青岛海信移动通信技术股份有限公司 filed Critical 青岛海信移动通信技术股份有限公司
Priority to CN201610807569.8A priority Critical patent/CN106210356B/en
Publication of CN106210356A publication Critical patent/CN106210356A/en
Application granted granted Critical
Publication of CN106210356B publication Critical patent/CN106210356B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72522With means for supporting locally a plurality of applications to increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances
    • H04M1/72577Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances to restrict the functionality or the communication capability of the terminal

Abstract

The invention discloses a method and a device for closing a terminal screen, and belongs to the technical field of terminals. The method comprises the following steps: detecting whether the terminal is in a call state currently; and when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal. According to the embodiment of the invention, the first distance information is the distance information between the first position close to the top of the terminal and the user, and the second distance signal is the distance information between the second position close to the bottom of the terminal and the user, so that even if the terminal is held by the user in different modes during conversation, the terminal can accurately determine the distance between the user and the terminal, and when the distance is smaller, the terminal screen is closed, so that the accuracy of closing the terminal screen is improved, misoperation possibly caused by a human face in the conversation process is prevented, and the standby time of the terminal is prolonged.

Description

Method and device for closing terminal screen

Technical Field

The invention relates to the technical field of terminals, in particular to a method and a device for closing a terminal screen.

Background

With the progress of various terminal technologies, people pay attention to how to prolong the standby time of a terminal by reducing the power consumption of the terminal, for example, in the process of using a mobile phone to make a call by a user, the user generally does not need to pay attention to the content displayed on the mobile phone, and when answering the call, a human face may contact a screen and cause misoperation easily, at this time, the power consumption of the mobile phone can be reduced by closing the terminal screen, so that the standby time of the mobile phone is prolonged, and the misoperation of the human face during the call is avoided.

The user usually answers the phone by holding the terminal with his ear close to the top of the terminal, so the method of turning off the terminal screen usually adopted is: when the terminal is in a call state, a sensor built in the top of the terminal is turned on, the distance between a user and the terminal is determined through the sensor, and when the distance is smaller than or equal to a preset distance, a screen of the terminal is closed.

In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:

because the way of holding the terminal by the user during the call may be different, for example, the human ear is far away from the top of the terminal, and the human face is close to the bottom of the terminal, the distance determined by the sensor built in the top of the terminal may not reach the condition of closing the screen of the terminal, so that the screen of the terminal cannot be closed.

Disclosure of Invention

In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for closing a terminal screen. The technical scheme is as follows:

in one aspect, a method for closing a terminal screen is provided, and the method includes:

detecting whether the terminal is in a call state currently;

when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal;

the first distance information is used for representing the distance from a first position of the terminal to a user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold.

Optionally, the first distance information is a first distance from a first position of the terminal to a user, and the second distance information is a second distance from a second position of the terminal to the user;

when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal, including:

when the terminal is in a call state, judging whether the first distance exceeds a preset second threshold value;

when the first distance exceeds the preset second threshold, judging whether the second distance exceeds a preset third threshold;

and when the second distance does not exceed the preset third threshold, closing a terminal screen of the terminal.

Optionally, before determining whether the first distance exceeds a preset second threshold, the method further includes:

acquiring the first distance through a first distance sensor, wherein the first distance sensor is arranged at a first position of the terminal;

before the determining whether the second distance exceeds a preset third threshold, the method further includes:

and acquiring the second distance through a second distance sensor, wherein the second distance sensor is arranged at a second position of the terminal.

Optionally, the first distance information is a first reflected signal strength corresponding to a signal transmitted by the terminal at a first position, and the second distance information is a second reflected signal strength corresponding to a signal transmitted by the terminal at a second position;

when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal, including:

when the terminal is in a call state, judging whether the strength of the first reflection signal exceeds a preset second threshold value;

when the first reflected signal strength does not exceed the preset second threshold, judging whether the second reflected signal strength exceeds a preset third threshold;

and when the strength of the second reflected signal exceeds the preset third threshold, closing a terminal screen of the terminal.

Optionally, before determining whether the strength of the first reflected signal exceeds a preset second threshold, the method further includes:

acquiring the first reflected signal intensity through a first intensity sensor, wherein the first intensity sensor is arranged at a first position of the terminal;

before the determining whether the second reflected signal strength exceeds a preset third threshold, the method further includes:

and acquiring the strength of the second reflected signal through a second strength sensor, wherein the second strength sensor is arranged at a second position of the terminal.

In another aspect, an apparatus for closing a screen of a terminal is provided, the apparatus comprising:

the detection module is used for detecting whether the terminal is in a call state currently;

the closing module is used for closing a terminal screen of the terminal when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition;

the first distance information is used for representing the distance from a first position of the terminal to a user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold.

Optionally, the first distance information is a first distance from a first position of the terminal to a user, and the second distance information is a second distance from a second position of the terminal to the user;

the shutdown module includes:

the first judging unit is used for judging whether the first distance exceeds a preset second threshold value or not when the terminal is in a call state;

the second judging unit is used for judging whether the second distance exceeds a preset third threshold value or not when the first distance exceeds the preset second threshold value;

and the first closing unit is used for closing the terminal screen of the terminal when the second distance does not exceed the preset third threshold.

Optionally, the shutdown module further comprises:

the first acquisition unit is used for acquiring the first distance through a first distance sensor when the terminal is in a call state, and the first distance sensor is arranged at a first position of the terminal;

and the second acquisition unit is used for acquiring the second distance through a second distance sensor when the first distance exceeds the preset second threshold, and the second distance sensor is arranged at a second position of the terminal.

Optionally, the first distance information is a first reflected signal strength corresponding to a signal transmitted by the terminal at a first position, and the second distance information is a second reflected signal strength corresponding to a signal transmitted by the terminal at a second position;

the shutdown module includes:

a third judging unit, configured to judge whether the strength of the first reflected signal exceeds a preset second threshold when the terminal is in a call state;

the fourth judging unit is used for judging whether the intensity of the second reflected signal exceeds a preset third threshold value or not when the intensity of the first reflected signal does not exceed the preset second threshold value;

and the second closing unit is used for closing the terminal screen of the terminal when the second reflected signal strength exceeds the preset third threshold value.

Optionally, the shutdown module further comprises:

a third obtaining unit, configured to obtain, when the terminal is in a call state, the strength of the first reflected signal through a first strength sensor, where the first strength sensor is disposed at a first position of the terminal;

and the fourth acquisition unit is used for acquiring the second reflected signal intensity through a second intensity sensor when the first reflected signal intensity does not exceed the preset second threshold, and the second intensity sensor is arranged at a second position of the terminal.

The technical scheme provided by the embodiment of the invention has the following beneficial effects: when the terminal is in a call state, if first distance information from a first position of the terminal to a user meets a preset condition and/or second distance information from a second position of the terminal to the user meets the preset condition, closing a screen of the terminal; and because the first position is close to the top of the terminal and the second position is close to the bottom of the terminal, even if the terminal is held by a user in different modes during conversation, the terminal can accurately determine the distance between the user and the terminal, thereby improving the accuracy of closing a terminal screen, preventing misoperation possibly caused by human faces during the conversation process and prolonging the standby time of the terminal.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments 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 to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a flowchart of a method for closing a terminal screen according to an embodiment of the present invention;

fig. 2 is a flowchart of a method for closing a terminal screen according to an embodiment of the present invention;

fig. 3 is a schematic diagram of a user holding a terminal with the bottom of the terminal close to the mouth of the user according to an embodiment of the present invention;

fig. 4 is a schematic view of a sensor installed inside a terminal according to an embodiment of the present invention;

fig. 5 is a flowchart of a method for closing a terminal screen according to an embodiment of the present invention;

fig. 6A is a block diagram of an apparatus for closing a terminal screen according to an embodiment of the present invention;

FIG. 6B is a block diagram of a shutdown module provided by embodiments of the present invention;

FIG. 6C is a block diagram of a shutdown module provided by embodiments of the present invention;

FIG. 6D is a block diagram of a shutdown module provided by embodiments of the present invention;

fig. 6E is a block diagram of a shutdown module according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. When a user makes a call, when the user holds the terminal to be close to the face, the user can not execute any operation on the terminal, and the screen can be closed at the moment, so that the electric energy is saved, the standby time is prolonged, and meanwhile, the misoperation possibly caused by the face in the conversation process is prevented. Therefore, the invention detects whether the terminal is in a call state through any one of the following embodiments, and determines whether to close the terminal screen when the terminal is in the call state.

The embodiment of the invention provides a method for closing a terminal screen, and referring to fig. 1, the method comprises the following steps:

step 101: and detecting whether the terminal is in a call state currently.

Step 102: and when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal.

The first distance information is used for representing the distance from a first position of the terminal to the user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold.

In the embodiment of the invention, the terminal firstly detects whether the terminal is currently in a call state, when the terminal is currently in the call state, further judging whether the first distance information acquired at the first position of the terminal meets the preset condition and/or whether the second distance information acquired at the second position of the terminal meets the preset condition, when the first distance information meets the preset condition and/or the second distance information meets the preset condition, the screen of the terminal is closed, the terminal can acquire a plurality of distance information at a plurality of positions, and a plurality of locations have a certain distance therebetween, instead of acquiring one distance information at only one location of the terminal, therefore, even if the mode of holding the terminal by the user is different when the user is talking, the terminal can accurately determine the distance between the user and the terminal, when the distance is smaller, the terminal screen is closed, so that the accuracy of closing the terminal screen is improved.

Optionally, the first distance information is a first distance from a first position of the terminal to the user, and the second distance information is a second distance from a second position of the terminal to the user;

when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal, including:

when the terminal is in a call state, judging whether the first distance exceeds a preset second threshold value;

when the first distance exceeds a preset second threshold, judging whether the second distance exceeds a preset third threshold;

and when the second distance does not exceed a preset third threshold value, closing a terminal screen of the terminal.

Optionally, before determining whether the first distance exceeds the preset second threshold, the method further includes:

acquiring a first distance through a first distance sensor, wherein the first distance sensor is arranged at a first position of a terminal;

before judging whether the second distance exceeds a preset third threshold, the method further comprises:

a second distance is obtained by a second distance sensor, which is disposed at a second location of the terminal.

Optionally, the first distance information is a first reflected signal strength corresponding to a signal transmitted by the terminal at a first position, and the second distance information is a second reflected signal strength corresponding to a signal transmitted by the terminal at a second position;

when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition, closing a terminal screen of the terminal, including:

when the terminal is in a call state, judging whether the intensity of the first reflection signal exceeds a preset second threshold value;

when the intensity of the first reflected signal does not exceed a preset second threshold, judging whether the intensity of the second reflected signal exceeds a preset third threshold;

and when the strength of the second reflected signal exceeds a preset third threshold, closing a terminal screen of the terminal.

Optionally, before determining whether the strength of the first reflected signal exceeds a preset second threshold, the method further includes:

acquiring the intensity of a first reflected signal through a first intensity sensor, wherein the first intensity sensor is arranged at a first position of the terminal;

before judging whether the second reflected signal strength exceeds a preset third threshold, the method further includes:

a second reflected signal strength is obtained by a second strength sensor disposed at a second location on the terminal.

All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the disclosure, which is not described in detail in the embodiments of the present invention.

The embodiment of the invention provides a method for closing a terminal screen, which comprises the steps of obtaining a first distance from a first position of a terminal to a user and a second distance from a second position of the terminal to the user, and determining whether to close the terminal screen according to the first distance and the second distance, wherein the first position is close to the top of the terminal, and the second position is close to the bottom of the terminal. Referring to fig. 2, the method includes:

step 201: and detecting whether the terminal is in a call state currently.

Wherein, when the terminal is currently in a call state, step 202 is executed; and when the terminal is not in the call state currently, ending the operation.

Step 202: when the terminal is in a call state at present, a first distance is acquired through a first distance sensor.

When the terminal is in a call state, the terminal may turn on a first distance sensor provided at a first position of the terminal, and transmit a signal through a signal transmitting device included in the first distance sensor. When the signal meets an obstacle, the obstacle reflects all or part of the signal, wherein the obstacle is usually a user who makes a call when the terminal is in a call state. The terminal receives the reflected signal through a signal receiving device included in the first distance sensor, obtains first transmission time from transmitting to receiving of the signal according to transmitting time of the first distance sensor for transmitting the signal and receiving time of the first distance sensor for receiving the reflected signal, and obtains a first distance from the terminal to a user through conversion according to the first transmission time and the transmission rate of the signal.

It should be noted that the first position is a position where a distance from the terminal to the top of the terminal does not exceed a preset first threshold, where the preset first threshold may be a distance threshold preset by the terminal, for example, when the preset first threshold is 1.5 cm, the first position is any position 1.5 cm away from the top of the terminal, and accordingly, the first distance sensor is a distance sensor disposed at the first position 1.5 cm away from the top of the terminal, and of course, the first position may also be any position 1 cm or 0.5 cm away from the top of the terminal, which is not limited in this embodiment of the present invention.

In addition, the method for obtaining the first distance from the terminal to the user by conversion according to the first transmission time and the transmission rate of the signal is as follows: and calculating the time difference between the receiving time of the first distance sensor for receiving the reflected signal and the transmitting time of the first distance sensor for transmitting the signal, and multiplying half of the time difference by the transmission rate of the signal to obtain the first distance from the terminal to the user.

Step 203: and judging whether the first distance exceeds a preset second threshold value.

When the first distance exceeds a preset second threshold, executing step 204; and when the first distance does not exceed a preset second threshold, closing the terminal screen.

When the first distance exceeds the preset second threshold, it indicates that the top of the terminal is far from the user, and at this time, the terminal may be far from the user, and the user may still need to operate the terminal during a call, or the bottom of the terminal is close to the user, so that the distance from the bottom of the terminal to the user needs to be further determined through the following step 204.

When the first distance is not more than the preset second threshold, it indicates that the top of the terminal is closer to the user, for example, the top speaker of the terminal is close to the ear of the user, and at this time, the user does not need to operate the terminal and does not need to keep the terminal screen in a lighting state, so that the terminal screen can be turned off.

Step 204: and when the first distance exceeds a preset second threshold value, acquiring a second distance through a second distance sensor.

When the first distance exceeds a preset second threshold, the terminal may turn on a second distance sensor provided at a second position of the terminal, and transmit a signal through a signal transmitting device included in the second distance sensor. When the signal meets an obstacle, the obstacle reflects all or part of the signal, wherein the obstacle is usually a user who makes a call when the terminal is in a call state. The terminal receives the reflected signal through a signal receiving device included by the second distance sensor, obtains second transmission time from transmitting to receiving of the signal according to transmitting time of the signal transmitted by the second distance sensor and receiving time of the reflected signal received by the second distance sensor, and obtains a second distance from the terminal to the user through conversion according to the second transmission time and the transmission rate of the signal.

It should be noted that the second position is a position where a distance from the terminal to the top of the terminal does not exceed a preset first threshold, for example, when the preset first threshold is 1.5 cm, the second position is any position 1.5 cm away from the bottom of the terminal, and correspondingly, the second distance sensor is a distance sensor disposed at a second position 1.5 cm away from the bottom of the terminal, of course, the second position may also be any position 1 cm away from the bottom of the terminal, or 0.5 cm away from the bottom of the terminal, and this is not limited in this embodiment of the present invention.

In addition, the method for obtaining the second distance from the terminal to the user by conversion according to the second transmission time and the transmission rate of the signal is as follows: and calculating the time difference between the receiving time of the second distance sensor for receiving the reflected signal and the transmitting time of the second distance sensor for transmitting the signal, and multiplying half of the time difference by the transmission rate of the signal to obtain the second distance from the terminal to the user.

Step 205: and judging whether the second distance exceeds a preset third threshold value.

When the second distance exceeds a preset third threshold, ending the operation; when the second distance does not exceed the preset third threshold, step 206 is executed.

When the second distance exceeds the preset third threshold, the distance from the bottom of the terminal to the user is far, and since the top of the terminal is judged to be far from the user in the steps, the whole terminal can be determined to be far from the user at this time, and the user may need to operate the terminal during the call, so that the subsequent operation of closing the terminal screen is not executed, and the steps of the method are ended.

When the second distance does not exceed the preset third threshold, it indicates that the bottom of the terminal is closer to the user, for example, the bottom microphone of the terminal is close to the mouth of the user, as shown in fig. 3, at this time, the user does not need to operate the terminal, and the terminal screen does not need to keep on a lighting state, so that the subsequent operation of closing the terminal screen can be continuously performed.

It should be noted that the preset second threshold and the preset third threshold may be two distance thresholds preset by the terminal, and the two distance thresholds may be equal or unequal. For example, the preset second threshold may be 2 centimeters, the preset third threshold may be 1.8 centimeters, or both the preset second threshold and the preset third threshold may be 2 centimeters or 1.8 centimeters, which is not limited in the embodiment of the present invention.

Step 206: and when the second distance does not exceed a preset third threshold value, closing the terminal screen.

It should be noted that, in the embodiment of the present invention, the first distance sensor or the second distance sensor may be installed at the first position or the second position of the terminal in the manner as shown in fig. 4, that is, a first or second distance sensor is mounted on the printed circuit board at a first or second location of the terminal, the first distance sensor or the second distance sensor comprises a signal receiving device and a signal transmitting device, a rubber pad is arranged between the first distance sensor or the second distance sensor and the terminal screen, the rubber pad is used for preventing the first distance sensor or the second distance sensor, and the terminal screen from being worn, of course, in practical applications, the installation manner of the first distance sensor or the second distance sensor at the first position or the second position of the terminal may be other manners, and this is not specifically limited in the embodiment of the present invention.

In addition, the signal emitting devices of the first distance sensor and the second distance sensor may be infrared light emitting diodes, and accordingly, the signal emitted by the signal emitting device may be infrared light, for example, the signal emitted by the signal emitting device is infrared light with a wavelength of 850 nanometers or 940 nanometers, and the signal receiving devices of the first distance sensor and the second distance sensor may be infrared light receivers, which is not specifically limited in this embodiment of the present invention.

Furthermore, in the embodiment of the present invention, the terminal may obtain the first distance and the second distance from the terminal to the user through two distance sensors respectively disposed at the first position and the second position, and of course, in practical applications, the terminal may also obtain the first distance and the second distance through other manners, which is not specifically limited in the embodiment of the present invention.

Optionally, in the embodiment of the present invention, a second distance from the second position of the terminal to the user may be obtained by the second distance sensor, when the second distance exceeds a preset third threshold, a first distance from the first position of the terminal to the user is obtained by the first distance sensor, and when the first distance does not exceed the preset second threshold, the terminal screen is closed. Alternatively, the first and second electrodes may be,

a first distance from a first position of the terminal to a user can be acquired through the first distance sensor, a second distance from a second position of the terminal to the user is acquired through the second distance sensor, and when the first distance does not exceed a preset second threshold value and/or the second distance does not exceed a preset third threshold value, a terminal screen is closed.

In the embodiment of the invention, the terminal firstly detects whether the terminal is in a call state at present, if the terminal is in the call state at present, whether a first distance acquired at a first position of the terminal exceeds a preset second threshold and/or whether a second distance acquired at a second position of the terminal exceeds a preset third threshold is judged, and when the first distance does not exceed the preset second threshold and/or the second distance does not exceed the preset third threshold, a terminal screen is closed. According to the embodiment of the invention, the terminal screen can be closed by determining that the first distance acquired at the first position of the terminal does not exceed the preset second threshold and/or the second distance acquired at the second position of the terminal does not exceed the preset third threshold, and the terminal can accurately determine the distance between the user and the terminal through the first distance and the second distance acquired at the two positions because a certain distance exists between the first position and the second position.

The embodiment of the invention provides a method for closing a terminal screen, which comprises the steps of acquiring first reflection signal intensity corresponding to a signal emitted at a first position of a terminal and second reflection signal intensity corresponding to a signal emitted at a second position of the terminal, and determining whether to close the terminal screen or not according to the first reflection signal intensity and the second reflection signal intensity, wherein the first position is close to the top of the terminal, and the second position is close to the bottom of the terminal. Referring to fig. 5, the method includes:

step 501: and detecting whether the terminal is in a call state currently.

Wherein, when the terminal is currently in a call state, step 502 is executed; and when the terminal is not in the call state currently, ending the operation.

Step 502: when the terminal is in a call state at present, the strength of the first reflection signal is obtained through the first strength sensor.

When the terminal is in a call state, the terminal may turn on a first intensity sensor provided at a first position of the terminal, and transmit a signal through a signal transmitting device of the first intensity sensor itself. When the signal meets an obstacle, the obstacle reflects a first reflected signal, wherein the first reflected signal is all or part of the signal, and the obstacle is usually a user who makes a call when the terminal is in a call state. The terminal receives the first reflected signal reflected back through a signal receiving device included in the first intensity sensor, and detects the intensity of the first reflected signal.

It should be noted that the first position is a position where a distance from the terminal to the top of the terminal does not exceed a preset first threshold, where the preset first threshold may be a distance threshold preset by the terminal, for example, when the preset first threshold is 1.5 cm, the first position is any position 1.5 cm away from the top of the terminal, and accordingly, the first distance sensor is a distance sensor disposed at the first position 1.5 cm away from the top of the terminal, and of course, the first position may also be any position 1 cm or 0.5 cm away from the top of the terminal, which is not limited in this embodiment of the present invention.

Step 503: and judging whether the intensity of the first reflected signal exceeds a preset second threshold value.

When the intensity of the first reflected signal does not exceed the preset second threshold, step 304 is executed; and when the strength of the first reflected signal exceeds a preset second threshold, closing the terminal screen.

The magnitude of the first reflected signal strength is in inverse proportion to a first distance from the first location of the terminal to the user, so that when the first reflected signal strength does not exceed a preset second threshold, it indicates that the top of the terminal is far away from the user, at this time, the terminal may be far away from the user, and the user may still need to operate the terminal during a call, or the bottom of the terminal is close to the user, so that the distance from the bottom of the terminal to the user needs to be further determined through the following step 504.

When the first reflected signal strength exceeds the preset second threshold, the fact that the top of the terminal is close to the user is indicated, for example, a loudspeaker at the top of the terminal is close to the ear of the user, the user does not need to operate the terminal at the moment, the terminal screen does not need to be kept in a lighting state, and therefore the terminal screen can be closed.

Step 504: and when the intensity of the first reflected signal does not exceed a preset second threshold value, acquiring the intensity of a second reflected signal through a second intensity sensor.

When the intensity of the first reflected signal does not exceed the preset second threshold, the terminal may turn on a second intensity sensor disposed at a second position of the terminal, and transmit a signal through a signal transmitting device of the second intensity sensor itself. When the signal meets an obstacle, the obstacle reflects a second reflected signal, wherein the second reflected signal is all or part of the signal, and the obstacle is usually a user who makes a call when the terminal is in a call state. The terminal receives the reflected second reflected signal through a signal receiving device included in the second intensity sensor, and detects the intensity of the second reflected signal.

It should be noted that the second position is a position where a distance from the terminal to the top of the terminal does not exceed a preset first threshold, for example, when the preset first threshold is 1.5 cm, the second position is any position 1.5 cm away from the bottom of the terminal, and correspondingly, the second distance sensor is a distance sensor disposed at a second position 1.5 cm away from the bottom of the terminal, of course, the second position may also be any position 1 cm away from the bottom of the terminal, or 0.5 cm away from the bottom of the terminal, and this is not limited in this embodiment of the present invention.

Step 505: and judging whether the intensity of the second reflected signal exceeds a preset third threshold value.

When the intensity of the second reflected signal does not exceed a preset third threshold, ending the operation; when the second reflected signal strength exceeds the preset third threshold, step 506 is executed.

The magnitude of the second reflected signal strength is in inverse proportion to a second distance from the second position of the terminal to the user, so that when the second reflected signal strength does not exceed a preset third threshold value, the bottom of the terminal is far away from the user, and since the top of the terminal is judged to be far away from the user in the steps, the whole terminal can be determined to be far away from the user at the moment, the user may need to operate the terminal during conversation, and therefore, the subsequent operation of closing the terminal screen is not executed, namely, the steps of the method are finished.

When the second reflected signal strength exceeds the preset third threshold, it indicates that the bottom of the terminal is closer to the user, for example, the bottom microphone of the terminal is close to the mouth of the user, as shown in fig. 3, at this time, the user does not need to operate the terminal, and the terminal screen does not need to be kept in a lighting state, so that the subsequent operation of closing the terminal screen can be continuously performed.

It should be noted that the preset second threshold and the preset third threshold may be two intensity thresholds preset by the terminal, and the two intensity thresholds may be equal or unequal. For example, the preset second threshold may be 4 candelas, the preset third threshold may be 3 candelas, or both the preset second threshold and the preset third threshold may be 4 candelas or 3 candelas, which is not limited in the embodiment of the present invention.

Step 506: and when the strength of the second reflected signal exceeds a preset third threshold value, closing the terminal screen.

It should be noted that, in the embodiment of the present invention, the first intensity sensor or the second intensity sensor may be installed at the first position or the second position of the terminal in the manner as shown in fig. 4, that is, a first intensity sensor or a second intensity sensor is mounted on the printed circuit board at a first location or a second location of the terminal, the first intensity sensor or the second intensity sensor comprises a signal receiving device and a signal transmitting device, a rubber pad is arranged between the first intensity sensor or the second intensity sensor and the terminal screen, the rubber pad is used for preventing the first intensity sensor or the second intensity sensor and the terminal screen from being worn, of course, in practical applications, the installation manner of the first intensity sensor or the second intensity sensor at the first position or the second position of the terminal may be other manners, and this is not specifically limited in the embodiment of the present invention.

In addition, the signal emitting devices of the first intensity sensor and the second intensity sensor may be infrared light emitting diodes, and accordingly, the signal emitted by the signal emitting device may be infrared light, for example, the signal emitted by the signal emitting device is infrared light with a wavelength of 850 nanometers or 940 nanometers, and the signal receiving devices of the first distance sensor and the second distance sensor may be infrared light receivers, which is not specifically limited in this embodiment of the present invention.

Furthermore, in the embodiment of the present invention, the terminal may obtain the first reflected signal strength and the second reflected signal strength through two strength sensors respectively disposed at the first position and the second position, and certainly, in practical applications, the terminal may also obtain the first reflected signal strength and the second reflected signal strength through other manners, which is not specifically limited in this embodiment of the present invention.

Optionally, in the embodiment of the present invention, the second intensity sensor may obtain the second reflected signal intensity, and when the second reflected signal intensity does not exceed the preset third threshold, the first intensity sensor obtains the first reflected signal intensity, and when the first reflected signal intensity exceeds the preset second threshold, the terminal screen is closed. Alternatively, the first and second electrodes may be,

the first reflected signal strength can be obtained through the first strength sensor, the second reflected signal strength is obtained through the second strength sensor, and when the first reflected signal strength exceeds a preset second threshold value and/or the second reflected signal strength exceeds a preset third threshold value, the terminal screen is closed.

In the embodiment of the invention, the terminal firstly detects whether the terminal is in a call state at present, if the terminal is in the call state at present, whether the intensity of a first reflection signal acquired at a first position of the terminal exceeds a preset second threshold and/or whether the intensity of a second reflection signal acquired at a second position of the terminal exceeds a preset third threshold is judged, and when the intensity of the first reflection signal exceeds the preset second threshold and/or the intensity of the second reflection signal exceeds the preset third threshold, a screen of the terminal is closed. According to the embodiment of the invention, the terminal screen can be closed by determining that the intensity of the first reflection signal acquired at the first position of the terminal exceeds the preset second threshold and/or the intensity of the second reflection signal acquired at the second position of the terminal exceeds the preset third threshold, and because a certain distance exists between the first position and the second position, the terminal can accurately determine the distance between the user and the terminal through the intensity of the first reflection signal and the intensity of the second reflection signal acquired at the two positions.

Referring to fig. 6A, an embodiment of the present invention provides an apparatus for closing a terminal screen, where the apparatus includes: a detection module 601 and a shutdown module 602.

A detection module 601, configured to detect whether the terminal is currently in a call state;

a closing module 602, configured to close a terminal screen of the terminal when the terminal is in a call state and at least one of the first distance information and the second distance information meets a preset condition;

the first distance information is used for representing the distance from a first position of the terminal to the user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold.

Optionally, referring to fig. 6B, the first distance information is a first distance from a first location of the terminal to the user, and the second distance information is a second distance from a second location of the terminal to the user;

the shutdown module 602 includes:

a first judging unit 6020, configured to judge whether the first distance exceeds a preset second threshold when the terminal is in a call state;

a second determination unit 6021, configured to determine whether the second distance exceeds a preset third threshold when the first distance exceeds a preset second threshold;

a first closing unit 6022, configured to close the terminal screen of the terminal when the second distance does not exceed a preset third threshold.

Optionally, referring to fig. 6C, the shutdown module 602 further includes:

a first obtaining unit 6023, configured to obtain a first distance through a first distance sensor when the terminal is in a call state, where the first distance sensor is disposed at a first position of the terminal;

a second obtaining unit 6024, configured to obtain a second distance by a second distance sensor disposed at a second position of the terminal when the first distance exceeds a preset second threshold.

Optionally, referring to fig. 6D, the first distance information is a first reflected signal strength corresponding to a signal emitted by the terminal at the first position, and the second distance information is a second reflected signal strength corresponding to a signal emitted by the terminal at the second position;

the shutdown module 602 includes:

a third determining unit 6025, configured to determine whether the strength of the first reflected signal exceeds a preset second threshold when the terminal is in a call state;

a fourth judging unit 6026, configured to judge whether the intensity of the second reflected signal exceeds a preset third threshold value when the intensity of the first reflected signal does not exceed the preset second threshold value;

a second closing unit 6027, configured to close the terminal screen of the terminal when the second reflected signal strength exceeds a preset third threshold.

Optionally, referring to fig. 6E, the shutdown module 602 further includes:

a third obtaining unit 6028, configured to obtain a first reflected signal strength through a first strength sensor when the terminal is in a call state, where the first strength sensor is disposed at a first position of the terminal;

a fourth obtaining unit 6029, configured to obtain a second reflected signal strength through a second strength sensor when the first reflected signal strength does not exceed a preset second threshold, the second strength sensor being disposed at a second position of the terminal.

To sum up, in the embodiment of the present invention, the terminal first detects whether the terminal is currently in a call state, and when the terminal is currently in the call state, further determines whether the first distance information acquired at the first position of the terminal satisfies the preset condition and/or whether the second distance information acquired at the second position of the terminal satisfies the preset condition, and when the first distance information satisfies the preset condition and/or the second distance information satisfies the preset condition, the terminal closes the terminal screen, and the terminal can acquire a plurality of distance information at a plurality of positions, and there is a certain distance between the plurality of positions, instead of acquiring one distance information at only one position of the terminal, so that even if the terminal is held by the user in different ways during a call, the terminal can accurately determine the distance between the user and the terminal, and when the distance is smaller, the terminal screen is closed, thereby improving the accuracy of closing the terminal screen, the misoperation possibly caused by the face in the conversation process is prevented, and the standby time of the terminal is prolonged.

It should be noted that: in the apparatus for closing a terminal screen according to the foregoing embodiment, when the terminal screen is closed, only the division of the functional modules is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for closing the terminal screen and the method embodiment for closing the terminal screen provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A method for closing a terminal screen is characterized in that the method comprises the following steps:
detecting whether the terminal is in a call state currently;
when the terminal is in a call state and both the first distance information and the second distance information meet preset conditions, closing a terminal screen of the terminal;
the first distance information is used for representing the distance from a first position of the terminal to a user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold;
the first distance information is a first distance from a first position of the terminal to a user, the second distance information is a second distance from a second position of the terminal to the user, and when the terminal is in a call state and both the first distance information and the second distance information meet a preset condition, the terminal screen of the terminal is closed, including:
when the terminal is in a call state, judging whether the first distance exceeds a preset second threshold value; when the first distance exceeds the preset second threshold, judging whether the second distance exceeds a preset third threshold; when the second distance does not exceed the preset third threshold, closing a terminal screen of the terminal;
or, the first distance information is a first reflected signal strength corresponding to a signal transmitted by the terminal at a first position, the second distance information is a second reflected signal strength corresponding to a signal transmitted by the terminal at a second position, and when the terminal is in a call state and both the first distance information and the second distance information meet a preset condition, the terminal screen of the terminal is closed, including:
when the terminal is in a call state, judging whether the strength of the first reflection signal exceeds a preset second threshold value; when the first reflected signal strength does not exceed the preset second threshold, judging whether the second reflected signal strength exceeds a preset third threshold; and when the strength of the second reflected signal exceeds the preset third threshold, closing a terminal screen of the terminal.
2. The method of claim 1, wherein before determining whether the first distance exceeds a preset second threshold, further comprising:
acquiring the first distance through a first distance sensor, wherein the first distance sensor is arranged at a first position of the terminal, and the first distance is determined according to a first transmission time between the first distance sensor transmitting a signal and receiving the signal and a transmission rate of the signal;
before the determining whether the second distance exceeds a preset third threshold, the method further includes:
acquiring the second distance through a second distance sensor, wherein the second distance sensor is arranged at a second position of the terminal, and the second distance is determined according to a second transmission time from signal emission to signal reception of the second distance sensor and a transmission rate of the signals;
the first distance sensor or the second distance sensor comprises a signal receiving device and a signal transmitting device, and a rubber pad is arranged between the first distance sensor or the second distance sensor and a terminal screen of the terminal.
3. The method of claim 1, wherein before determining whether the first reflected signal strength exceeds a preset second threshold, further comprising:
acquiring the first reflected signal strength through a first strength sensor, wherein the first strength sensor is arranged at a first position of the terminal, and the first reflected signal strength is the strength of a first reflected signal received by the first strength sensor;
before the determining whether the second reflected signal strength exceeds a preset third threshold, the method further includes:
and acquiring the strength of the second reflected signal through a second strength sensor, wherein the second strength sensor is arranged at a second position of the terminal, and the strength of the second reflected signal is the strength of the second reflected signal received by the second strength sensor.
4. A method according to any one of claims 1 to 3, wherein the first threshold value is 1.5 cm;
the second threshold value is 2 centimeters, and the third threshold value is 1.8 centimeters;
alternatively, the second threshold is 3 or 4 candelas and the third threshold is 3 or 4 candelas.
5. An apparatus for closing a screen of a terminal, the apparatus comprising:
the detection module is used for detecting whether the terminal is in a call state currently;
the closing module is used for closing a terminal screen of the terminal when the terminal is in a call state and when the first distance information and the second distance information both meet preset conditions;
the first distance information is used for representing the distance from a first position of the terminal to a user, the second distance information is used for representing the distance from a second position of the terminal to the user, and the distance from the first position to the top of the terminal and the distance from the second position to the bottom of the terminal do not exceed a preset first threshold;
the first distance information is a first distance from a first position of the terminal to a user, the second distance information is a second distance from a second position of the terminal to the user, and the closing module includes:
the first judging unit is used for judging whether the first distance exceeds a preset second threshold value or not when the terminal is in a call state;
the second judging unit is used for judging whether the second distance exceeds a preset third threshold value or not when the first distance exceeds the preset second threshold value;
the first closing unit is used for closing a terminal screen of the terminal when the second distance does not exceed the preset third threshold;
or, the first distance information is a first reflected signal strength corresponding to a signal transmitted by the terminal at a first position, and the second distance information is a second reflected signal strength corresponding to a signal transmitted by the terminal at a second position, where the closing module includes:
a third judging unit, configured to judge whether the strength of the first reflected signal exceeds a preset second threshold when the terminal is in a call state;
the fourth judging unit is used for judging whether the intensity of the second reflected signal exceeds a preset third threshold value or not when the intensity of the first reflected signal does not exceed the preset second threshold value;
and the second closing unit is used for closing the terminal screen of the terminal when the second reflected signal strength exceeds the preset third threshold value.
6. The apparatus of claim 5, wherein the shutdown module further comprises:
the first acquisition unit is used for acquiring the first distance through a first distance sensor when the terminal is in a call state, and the first distance sensor is arranged at a first position of the terminal;
and the second acquisition unit is used for acquiring the second distance through a second distance sensor when the first distance exceeds the preset second threshold, and the second distance sensor is arranged at a second position of the terminal.
7. The apparatus of claim 5, wherein the shutdown module further comprises:
a third obtaining unit, configured to obtain, when the terminal is in a call state, the strength of the first reflected signal through a first strength sensor, where the first strength sensor is disposed at a first position of the terminal;
and the fourth acquisition unit is used for acquiring the second reflected signal intensity through a second intensity sensor when the first reflected signal intensity does not exceed the preset second threshold, and the second intensity sensor is arranged at a second position of the terminal.
CN201610807569.8A 2016-09-07 2016-09-07 Method and device for closing terminal screen CN106210356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610807569.8A CN106210356B (en) 2016-09-07 2016-09-07 Method and device for closing terminal screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610807569.8A CN106210356B (en) 2016-09-07 2016-09-07 Method and device for closing terminal screen

Publications (2)

Publication Number Publication Date
CN106210356A CN106210356A (en) 2016-12-07
CN106210356B true CN106210356B (en) 2020-02-14

Family

ID=58068229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610807569.8A CN106210356B (en) 2016-09-07 2016-09-07 Method and device for closing terminal screen

Country Status (1)

Country Link
CN (1) CN106210356B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850982B (en) * 2017-01-20 2019-08-06 Oppo广东移动通信有限公司 Display screen condition control method and device
CN106850989B (en) * 2017-02-08 2019-08-06 Oppo广东移动通信有限公司 Display screen condition control method and device
CN106850990B (en) * 2017-02-09 2019-10-25 Oppo广东移动通信有限公司 Display screen condition control method and device
CN106850101B (en) * 2017-02-14 2019-09-13 Oppo广东移动通信有限公司 Display screen condition control method and device
CN106933427B (en) * 2017-03-07 2020-01-14 Oppo广东移动通信有限公司 Display screen state control method and electronic equipment
CN106851013A (en) * 2017-03-07 2017-06-13 广东欧珀移动通信有限公司 SOT state of termination determination methods, device and terminal
CN106791218A (en) * 2017-03-31 2017-05-31 努比亚技术有限公司 A kind of screen control terminal and method
CN107506049B (en) * 2017-07-28 2020-05-12 Oppo广东移动通信有限公司 Display screen state control method and device, storage medium and terminal
CN107844246B (en) * 2017-11-22 2019-08-20 Oppo广东移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN107948418B (en) * 2017-11-22 2019-09-13 Oppo广东移动通信有限公司 Display screen condition control method, device, storage medium and terminal
CN107948420B (en) * 2017-11-22 2020-04-10 Oppo广东移动通信有限公司 Display screen state control method and device, storage medium and terminal
CN108881645A (en) * 2018-09-26 2018-11-23 Oppo广东移动通信有限公司 The screen control method and device of mobile phone communication
CN109194833A (en) * 2018-09-26 2019-01-11 Oppo广东移动通信有限公司 The screen control method and device of mobile phone communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201919056U (en) * 2010-08-26 2011-08-03 中国华录集团有限公司 Touch screen mobile phone with proximity sensor
CN104123006A (en) * 2014-07-24 2014-10-29 Tcl通讯(宁波)有限公司 Control device for turning on or off screen on basis of proximity sensor and mobile terminal
CN204408432U (en) * 2015-02-25 2015-06-17 胡伟 Mobile phone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8954099B2 (en) * 2010-06-16 2015-02-10 Qualcomm Incorporated Layout design of proximity sensors to enable shortcuts
US9236861B2 (en) * 2012-07-02 2016-01-12 Stmicroelectronics Asia Pacific Pte Ltd Capacitive proximity sensor with enabled touch detection
CN103561165B (en) * 2013-10-18 2015-06-17 广东欧珀移动通信有限公司 Method and device for preventing sticking film from affecting normal working of proximity transducer
CN104092836A (en) * 2014-06-11 2014-10-08 小米科技有限责任公司 Power-saving method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201919056U (en) * 2010-08-26 2011-08-03 中国华录集团有限公司 Touch screen mobile phone with proximity sensor
CN104123006A (en) * 2014-07-24 2014-10-29 Tcl通讯(宁波)有限公司 Control device for turning on or off screen on basis of proximity sensor and mobile terminal
CN204408432U (en) * 2015-02-25 2015-06-17 胡伟 Mobile phone

Also Published As

Publication number Publication date
CN106210356A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106464751B (en) A method of alarm is presented in the user into environment
JP6489563B2 (en) Volume control method, system, device and program
US9389690B2 (en) Gesture detection based on information from multiple types of sensors
US10621979B2 (en) Speech recognition method and mobile terminal
US8706162B1 (en) Automatic routing of call audio at incoming call
US20150382305A1 (en) Silent mode for submerged devices
CN104506716B (en) A kind of electronic equipment
CN103338308B (en) The method of calling of mobile terminal, the method controlling mobile terminal and relevant device
US9319823B2 (en) Application control method and apparatus for mobile terminal, earphone device and application control system
RU2390931C2 (en) Screen-saver sensor
KR102006562B1 (en) Method and device for message processing
KR100750814B1 (en) Method and apparatus for display power management
US7580725B2 (en) Intelligent wireless device mode changing device and method
EP2629497B1 (en) Method, device and mobile phone for reducing power consumption of mobile phone
ES2628315T3 (en) Mobile terminal and abnormal call processing procedure for it
US20130034234A1 (en) Hearing aid detection
KR20140018032A (en) Method and apparatus for alarm service using context aware in portable terminal
WO2016041340A1 (en) An indication method and mobile terminal
US9215659B2 (en) Method and apparatus for disconnecting a wireless communication link between a communication device and a mobile device
CN103501375A (en) Method and device for controlling sound effect
CN105205955B (en) A kind of method and apparatus sending out standby signal
CN104243662B (en) Terminal prompt mode adjusting method and terminal
CN103248743B (en) Vehicle-mounted hands-free calling device and method thereof
TWI548254B (en) Operating mode switching method
CN203457216U (en) Mobile terminal capable of opening Bluetooth device intelligently

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant