CN110138974B - Screen control method, device, equipment and computer readable storage medium - Google Patents

Screen control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110138974B
CN110138974B CN201910417795.9A CN201910417795A CN110138974B CN 110138974 B CN110138974 B CN 110138974B CN 201910417795 A CN201910417795 A CN 201910417795A CN 110138974 B CN110138974 B CN 110138974B
Authority
CN
China
Prior art keywords
scene
terminal equipment
designated
distance data
designated surface
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
CN201910417795.9A
Other languages
Chinese (zh)
Other versions
CN110138974A (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.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology 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 Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN201910417795.9A priority Critical patent/CN110138974B/en
Publication of CN110138974A publication Critical patent/CN110138974A/en
Application granted granted Critical
Publication of CN110138974B publication Critical patent/CN110138974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Abstract

The embodiment of the invention provides a screen control method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring distance data between a designated surface of terminal equipment and a target object, wherein the designated surface comprises at least one first designated surface and at least one second designated surface; determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition; determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located; and when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into a screen-off state. The embodiment of the invention can switch the state of the screen of the terminal equipment according to the scene where the terminal equipment is located, and avoids screen turn-off caused by false triggering of a user.

Description

Screen control method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a screen control method, a screen control device, screen control equipment and a computer readable storage medium.
Background
In order to facilitate user operation, the touch screen is widely applied to the terminal, and the touch screen enables a user to realize various operations on the terminal by touching the terminal screen, so that the terminal is convenient and quick. However, when a user makes a call through the terminal, the head of the user is likely to contact the terminal screen, which causes a false touch on the touch screen, and may cause the phone to hang up or cause the terminal to perform other false operations.
In the prior art, an infrared light proximity sensor is arranged at the top of a terminal screen, and if a terminal detects that the distance between a human body and the terminal screen is smaller than a specified value through the infrared light proximity sensor in a call process, the terminal screen is extinguished, so that the head of a user is prevented from mistakenly touching the terminal screen in the call process.
However, in the prior art, when a user performs other operations such as games and web browsing on the terminal, the infrared light proximity sensor accidentally approaches the top of the screen, and the screen of the terminal is erroneously triggered to be turned off, so that the user operation is interrupted.
Disclosure of Invention
The embodiment of the invention provides a screen control method, a screen control device, screen control equipment and a computer readable storage medium, and aims to solve the problems that an infrared light proximity sensor of the conventional terminal equipment is easily triggered by mistake to cause screen shutdown of the terminal equipment and interrupt operation of a user.
In a first aspect, an embodiment of the present invention provides a screen control method, including:
acquiring distance data between a designated surface of the terminal equipment and a target object, wherein the designated surface comprises at least one first designated surface and at least one second designated surface;
determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition;
determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located;
and when the distance data of each second designated surface meets the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into a screen-off state.
In a possible implementation manner, the obtaining distance data between the designated surface of the terminal device and the target object includes:
acquiring capacitance values of antennas of all designated surfaces of the terminal equipment through an electromagnetic wave absorption ratio SAR sensor, wherein the SAR sensor is respectively connected with the antennas of all designated surfaces of the terminal equipment;
and determining the distance data of each designated surface according to the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data and the capacitance value of each designated surface antenna, wherein the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data is determined by detecting the capacitance value of each designated surface antenna when the test object is placed at the preset distance position.
In one possible embodiment, the designated side of the terminal device includes a top side, a bottom side, a left side, a right side, a front side, and a back side.
In a possible implementation manner, the determining the scene where the terminal device is located according to the distance data of each first designated surface and a preset corresponding relationship between the distance data of each first designated surface and the scene includes:
and if the distance data of the top surface and the bottom surface of the terminal equipment are both smaller than the respective corresponding distance threshold values, determining that the scene where the terminal equipment is located is the game scene.
In a possible embodiment, the second designated surface includes a left side surface, a right side surface and a front surface, and the state switching condition corresponding to the game scene includes:
the distance data of the left side, the right side and the front of the terminal equipment are all smaller than the distance threshold values corresponding to the left side, the right side and the front of the terminal equipment.
In a possible implementation manner, the determining the scene where the terminal device is located according to the distance data of each first designated surface and a preset corresponding relationship between the distance data of each first designated surface and the scene includes:
and if the distance data of the left side surface, the right side surface and the back surface of the terminal equipment are all smaller than the corresponding distance threshold values, determining that the scene where the terminal equipment is located is the call scene.
In a possible implementation, the second designated surface includes a top surface, a bottom surface and a front surface, and the state switching condition corresponding to the call scenario includes:
and the distance data of at least two surfaces in the second designated surface are smaller than the corresponding distance threshold values.
In a second aspect, an embodiment of the present invention provides a screen control apparatus, including:
the acquisition module is used for acquiring distance data between the designated surface of the terminal equipment and a target object;
the first processing module is used for determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to one state switching condition;
the second processing module is used for determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located;
and the switching module is used for switching the screen state of the terminal equipment into a screen-off state when the distance data of each second designated surface meets the state switching condition corresponding to the scene where the terminal equipment is located.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the screen control method as described above in the first aspect and various possible embodiments of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the screen control method according to the first aspect and various possible implementations of the first aspect is implemented.
According to the screen control method, the screen control device, the screen control equipment and the computer readable storage medium, distance data between the designated surface of the terminal equipment and the target object is acquired, wherein the designated surface comprises at least one first designated surface and at least one second designated surface; determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition; determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located; when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment is switched to the screen-off state, and screen-off control over the screen of the terminal equipment can be achieved. According to the embodiment of the invention, the scene where the terminal equipment is located can be determined through the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene; by turning off the screen of the terminal equipment when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment can be switched correspondingly to the application scene where the terminal equipment is located, so that the screen of the terminal equipment is prevented from being turned off due to false triggering of a user, and the interruption of user operation due to the fact that the screen is turned off due to false triggering is prevented.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a screen control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of each side of a terminal device according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a screen control method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a screen control method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a screen control method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a screen control device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this embodiment, the terminal device may be a mobile phone, a tablet, an intelligent bracelet, a computer, and the like, which is not limited herein. When the user uses the terminal equipment, the user can make a call, play a game, take a picture, watch a video, browse a webpage and the like through the terminal equipment. When the terminal device is in different application scenes, the way in which the user holds the terminal device and the relative position between the user and the terminal device may be different, for example, the way in which the user holds the terminal device when the terminal device is in a call scene, a game scene, and a photographing scene is different. If the terminal adopts a uniform screen-off mode to turn off the screen, the screen of the terminal equipment is easily turned off due to the false triggering of a user in some application scenes, so that the operation of the user is interrupted, and the normal use of the user is influenced. For example, when a user plays a game through a terminal device, the hand of the user is likely to mistakenly touch an infrared light sensor arranged on the top of a screen of the terminal device, so that the screen is turned off, and the game is interrupted.
In this embodiment, the scene where the terminal device is located can be determined through the distance data of each designated surface of the terminal device and the preset corresponding relationship between the distance data of each designated surface and the scene; by switching off the screen of the terminal equipment when the distance data of each designated plane meets the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment can be switched correspondingly to the application scene where the terminal equipment is located, so that the screen of the terminal equipment is prevented from being switched off due to false triggering of a user, and the interruption of user operation due to the fact that the screen is switched off due to false triggering is prevented.
Fig. 1 is a flowchart illustrating a screen control method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
s101, obtaining distance data between the designated surface of the terminal device and a target object, wherein the designated surface comprises at least one first designated surface and at least one second designated surface.
In this embodiment, the designated plane of the terminal device is a plane designated from all planes of the terminal device, and the designated plane may be selected from all planes of the terminal device according to actual requirements, which is not limited herein. The specified surface comprises a first specified surface and a second specified surface, wherein the distance data of the first specified surface is used for judging the scene where the terminal device is located, and the distance data of the second specified surface is used for judging whether the state switching condition corresponding to the scene where the terminal device is located is met. Fig. 2 is a schematic diagram of each side of a terminal device according to an embodiment of the present invention, where fig. 2(a) is a schematic diagram of a front side of the terminal device, and fig. 2(b) is a schematic diagram of a back side of the terminal device. As shown in fig. 2, the faces of the terminal device may include a top face 21, a bottom face 22, a left side face 23, a right side face 24, a front face 25 and a back face 26, the top face 21, the bottom face 22, the left side face 23 and the right side face 24 may be designated as designated faces of the terminal device, the top face 21, the bottom face 22, the front face 25 and the back face 26 may be designated as designated faces of the terminal device, or all the faces of the terminal device may be designated as designated faces, which is not limited herein.
The target object may be a human body. For each designated surface, the distance data between the designated surface and the target object may be a distance value of the target object from the designated surface. The distance data between each designated surface and the target object can be acquired by a sensor arranged on the terminal device.
S102, determining scenes where the terminal equipment is located according to the distance data of the first designated surfaces and the preset corresponding relation between the distance data of the first designated surfaces and the scenes, wherein each scene corresponds to one state switching condition.
In this embodiment, the scene in which the terminal device is located may include a game scene, a call scene, a photographing scene, and the like, which is not limited herein. For example, the game scene is a scene in which the user uses the terminal device to play a game, the call scene is a scene in which the user uses the terminal device to make a call, and the photo scene is a scene in which the user uses the terminal device to take a photo.
Under different application scenes, the mode of holding the terminal equipment by a user is different, and the distances between each surface of the terminal equipment and a human body are different. For example, when the terminal device is in a game scene, one hand of a user holds the top surface of the terminal device, the other hand holds the bottom surface of the terminal device, the top surface and the bottom surface of the terminal device are close to a human body, and the distance between the top surface and the human body is small; when the terminal equipment is in a conversation scene, a user holds the left side face and the right side face of the terminal equipment with one hand, the left side face, the right side face and the bottom face of the terminal equipment are close to a human body, and the distance between the left side face, the right side face and the bottom face of the terminal equipment and the human body is small. According to the characteristics of holding of the user when the terminal equipment is in different scenes, the corresponding relation between the distance data of each first designated surface of the terminal equipment and the scenes can be preset.
The scene where the terminal equipment is located can be determined by obtaining the distance data between each first designated surface of the terminal equipment and the target object and then according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene.
S103, determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located.
In this embodiment, the state switching condition is a condition for switching the screen state of the terminal device to the screen-off state. The state switching condition may be a condition related to a distance between one or more designated surfaces of the terminal device and the target object, and may be preset according to a screen-off function in different scenes, which is not limited herein.
Each scene of the terminal equipment corresponds to a state switching condition. The terminal equipment is in different scenes, the use requirements of users are different, different state switching conditions can be set to automatically control screen turn-off of the screen, and the use requirements of the users in different scenes are met. For example, when the terminal device is in a game scene, the terminal device can be controlled to turn off the screen by setting corresponding state switching conditions to prevent the screen from being too close to the eyes of the user and influencing the vision of the user; when the terminal equipment is in a conversation scene, the terminal equipment can be controlled to be off by setting corresponding state switching conditions so as to prevent the head of a user from mistakenly touching the screen and causing conversation interruption. The state switching condition corresponding to each scene can be determined according to the actual use requirements of the user in different scenes.
And S104, when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into a screen-off state.
In this embodiment, the state of the screen of the terminal device may include a bright screen state and a dead screen state. And when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into a screen-off state. And when the distance data of each second designated surface does not meet the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment back to the bright screen state.
The embodiment of the invention obtains the distance data between the designated surface of the terminal equipment and the target object; determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition; determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located; and when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into the screen-off state, so that the terminal equipment can be controlled. According to the embodiment of the invention, the scene where the terminal equipment is located can be determined through the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene; by turning off the screen of the terminal equipment when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment can be switched correspondingly to the application scene where the terminal equipment is located, so that the screen of the terminal equipment is prevented from being turned off due to false triggering of a user, and the interruption of user operation due to the fact that the screen is turned off due to false triggering is prevented.
Fig. 3 is a flowchart illustrating a screen control method according to another embodiment of the present invention. The embodiment describes in detail a specific implementation process for acquiring distance data of each designated plane. As shown in fig. 3, the method includes:
s301, acquiring capacitance values of the antennas of the appointed surfaces of the terminal equipment through an electromagnetic wave absorption ratio SAR sensor, wherein the SAR sensor is respectively connected with the antennas of the appointed surfaces of the terminal equipment.
In this embodiment, each designated surface of the terminal device is provided with an antenna. The terminal equipment is provided with an SAR sensor. The SAR sensors are respectively connected with the antennas of all the designated surfaces of the terminal equipment. The antenna may form two poles of a capacitor with the target object, and the capacitance value of the antenna may change when the distance between the antenna and the target object is different. The SAR sensor uses the antenna of each designated surface as a capacitive sensing device for sensing the approaching degree of a target object. The capacitance values of the antennas of the respective designated faces of the terminal device can be acquired by the SAR sensor.
S302, determining distance data of each designated surface according to a preset corresponding relation between the antenna capacitance value and the distance data of each designated surface and the capacitance value of each designated surface antenna, wherein the preset corresponding relation between the antenna capacitance value and the distance data of each designated surface is determined by detecting the capacitance value of each designated surface antenna when a test object is placed at a preset distance position.
In this embodiment, for each designated surface, a plurality of distance positions at a specific distance from the designated surface may be preset, for example, the preset distances between the plurality of distance positions and the designated surface may be 0mm, 5mm, 10mm, 15mm, 20mm, 30mm, 40mm, and the like, respectively. The test object similar to the target object can be successively placed at each distance position, the corresponding capacitance value of the antenna of the appointed surface is sequentially detected, and the corresponding relation between the distance value between the test object and the appointed surface and the detected capacitance value of the antenna is recorded.
The preset corresponding relation between the antenna capacitance value and the distance data of each designated surface can be stored in the local terminal equipment or the server. The terminal device may obtain the correspondence, and may obtain distance data of each designated plane according to the capacitance value of each designated plane antenna and the correspondence.
And S303, determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to one state switching condition.
In this embodiment, S303 is similar to S102 in the embodiment of fig. 1, and is not described here again.
S304, according to the scene where the terminal equipment is located, determining a state switching condition corresponding to the scene where the terminal equipment is located.
In this embodiment, S304 is similar to S103 in the embodiment of fig. 1, and is not described here again.
S305, when the distance data of each second designated surface meets the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment to a screen-off state.
In this embodiment, S305 is similar to S104 in the embodiment of fig. 1, and is not described here again.
The traditional sensor corresponding to the automatic screen-off of the terminal equipment is an infrared light sensor arranged at the top of the screen. The infrared light sensor needs to be arranged by digging holes in the top space of the screen, the space on the surface of the terminal equipment needs to be occupied, and the infrared light sensor can only measure the distance from a human body to the front of the terminal equipment. In the embodiment, the capacitance values of the antennas of the designated surfaces of the terminal equipment are acquired through the SAR sensor, the distance data of the designated surfaces are determined according to the capacitance values of the antennas of the designated surfaces, and the antennas of the designated surfaces of the terminal equipment and the SAR sensor are used for distance induction, so that on one hand, a sensor does not need to be arranged on the top of a screen in a hole digging mode, the space on the surface of the terminal equipment can be saved, on the other hand, the distance data of multiple surfaces of the terminal equipment can be induced, and the situation where the terminal equipment is located and whether the terminal equipment meets the state switching condition or not can be judged according to.
Fig. 4 is a flowchart illustrating a screen control method according to another embodiment of the present invention. The scene comprises a game scene. The embodiment describes in detail a specific implementation process of switching the screen state when the terminal device is in a game scene. As shown in fig. 4, the method includes:
s401, obtaining distance data between the appointed surface of the terminal device and a target object, wherein the appointed surface comprises at least one first appointed surface and at least one second appointed surface, the first appointed surface comprises a top surface and a bottom surface, and the second appointed surface comprises a left side surface, a right side surface and a front surface.
In this embodiment, S401 is similar to S101 in the embodiment of fig. 1, and is not described here again.
S402, if the distance data of the top surface and the bottom surface of the terminal device are smaller than the distance threshold values corresponding to the top surface and the bottom surface of the terminal device, determining that the scene where the terminal device is located is the game scene.
In this embodiment, each designated surface corresponds to a distance threshold, and the distance threshold corresponding to each designated surface may be preset, which is not limited herein. The distance threshold values corresponding to the respective designated surfaces may be the same or different. For example, the distance threshold corresponding to the top surface may be 5mm, 6mm, and the distance threshold corresponding to the bottom surface may be 5mm, 6mm, 10mm, etc. When the terminal device is in a game scene, usually, a user holds the terminal device with two hands, one hand holds the top surface of the terminal device, the other hand holds the bottom surface of the terminal device, the top surface and the bottom surface of the terminal device are close to a human body, and the distance between the top surface and the human body is small. Therefore, the distance data of the top surface and the bottom surface of the terminal device can be respectively compared with the corresponding distance threshold values, and when the distance data of the top surface and the bottom surface of the terminal device are both smaller than the corresponding distance threshold values, the scene where the terminal device is located is determined to be a game scene.
S403, according to the scene where the terminal device is located, determining a state switching condition corresponding to the scene where the terminal device is located, wherein the state switching condition corresponding to the game scene comprises: the distance data of the left side, the right side and the front of the terminal equipment are all smaller than the distance threshold values corresponding to the distance data.
In this embodiment, when the terminal device is in a game scene, the top surface and the bottom surface of the terminal device are both close to the hand of the human body, and the distance data of the left side surface, the right side surface and the front surface of the terminal device can accurately reflect the distance between the terminal device and the head of the human body. Therefore, the distance data of the left side, the right side and the front of the terminal equipment are all smaller than the corresponding distance threshold value thereof to serve as the state switching condition corresponding to the game scene, and the state of the screen of the terminal equipment is switched to the screen-off state when the state condition is met.
S404, when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment to a screen-off state.
In this embodiment, S404 is similar to S104 in the embodiment of fig. 1, and is not described here again.
In the embodiment, the distance data of the top surface and the bottom surface of the terminal equipment are compared with the corresponding distance threshold values, so that the situation that the terminal equipment is in a game scene can be accurately identified; the distance data of the left side face, the right side face and the front face of the terminal device are smaller than the corresponding distance threshold values of the left side face, the right side face and the front face of the terminal device to serve as state switching conditions corresponding to the game scene, the screen state of the screen of the terminal device can be controlled to be turned off when the terminal device is in the game scene, the screen can be prevented from being too close to the eyes of a user when the terminal device is in the game scene, and the influence on the vision of the user due to too close of the screen.
Fig. 5 is a flowchart illustrating a screen control method according to still another embodiment of the invention. The scene comprises a call scene. The embodiment describes in detail a specific implementation process of switching the screen state when the terminal device is in a call scene. As shown in fig. 5, the method includes:
s501, obtaining distance data between each appointed surface of the terminal device and a target object, wherein the appointed surfaces comprise at least one first appointed surface and at least one second appointed surface, the first appointed surface comprises a left side surface, a right side surface and a back surface, and the second appointed surface comprises a top surface, a bottom surface and a front surface.
In this embodiment, S501 is similar to S101 in the embodiment of fig. 1, and is not described here again.
And S502, if the distance data of the left side, the right side and the back of the terminal equipment are all smaller than the corresponding distance threshold values, determining that the scene where the terminal equipment is located is the call scene.
In this embodiment, when the terminal device is in a call scene, the user holds the left side surface and the right side surface of the terminal device with one hand, and the left side surface, the right side surface and the bottom surface of the terminal device are close to a human body and have a small distance from the human body. Therefore, the distance data of the left side surface, the right side surface and the bottom surface of the terminal device can be respectively compared with the corresponding distance threshold values, and when the distance data of the left side surface, the right side surface and the back surface of the terminal device are all smaller than the corresponding distance threshold values, the scene where the terminal device is located is determined to be a call scene.
S503, determining a state switching condition corresponding to the scene where the terminal device is located according to the scene where the terminal device is located, wherein the state switching condition corresponding to the call scene comprises: and the distance data of at least two surfaces in the second designated surface are smaller than the corresponding distance threshold values.
In this embodiment, when the terminal device is in a call scene, the left side, the right side, and the back of the terminal device are all close to the human hand, and the distance data of the top, the bottom, and the front of the terminal device can accurately reflect the distance to the human head. Therefore, the condition that the distance data of at least two of the top surface, the bottom surface and the front surface of the terminal equipment is smaller than the corresponding distance threshold value can be used as the state switching condition corresponding to the call scene, and the state of the screen of the terminal equipment is switched to the screen-off state when the state condition is met.
Specifically, the distance data of at least two of the second designated surfaces are smaller than the corresponding distance threshold values thereof, including four cases, wherein the first case is that the distance data of the top surface and the bottom surface of the terminal device are both smaller than the corresponding distance threshold values thereof; the second case is that the distance data of the top surface and the front surface of the terminal device are both smaller than their respective corresponding distance thresholds; the third situation is that the distance data of the bottom surface and the front surface of the terminal equipment are both smaller than the distance threshold values corresponding to the bottom surface and the front surface of the terminal equipment; a fourth case is when the distance data of the top, bottom and front faces of the terminal device are all less than their respective corresponding distance thresholds. And if any one of the four conditions is met, switching the state of the screen of the terminal equipment into the screen-off state.
S504, when the distance data of each second designated surface meet the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment is switched to the screen off state.
In this embodiment, S504 is similar to S104 in the embodiment of fig. 1, and is not described here again.
In the embodiment, the distance thresholds corresponding to the distance data of the left side surface, the right side surface and the back surface of the terminal equipment are compared, so that the terminal equipment can be accurately identified to be in a conversation scene; the distance data of at least two of the top surface, the bottom surface and the front surface of the terminal equipment are smaller than the corresponding distance threshold values to serve as state switching conditions corresponding to the game scene, the screen state of the terminal equipment can be controlled to be turned off when the terminal equipment is in the conversation scene, the screen can be prevented from being touched by the head of a user by mistake when the terminal equipment is in the conversation scene, and conversation interruption caused by the fact that the screen is touched by the head of the user by mistake is avoided.
The embodiment of the invention obtains the distance data between the appointed surface of the terminal equipment and the target object, wherein the appointed surface comprises at least one first appointed surface and at least one second appointed surface; determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition; determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located; and when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into the screen-off state, so that the terminal equipment can be controlled. According to the embodiment of the invention, the scene where the terminal equipment is located can be determined through the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene; by turning off the screen of the terminal equipment when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment can be switched correspondingly to the application scene where the terminal equipment is located, so that the screen of the terminal equipment is prevented from being turned off due to false triggering of a user, and the interruption of user operation due to the fact that the screen is turned off due to false triggering is prevented.
Fig. 6 is a schematic structural diagram of a screen control device according to an embodiment of the present invention. As shown in fig. 6, the screen control device 60 is applied to a terminal apparatus, and includes: an obtaining module 601, a first processing module 602, a second processing module 603, and a switching module 604.
An obtaining module 601, configured to obtain distance data between a designated surface of the terminal device and a target object, where the designated surface includes at least one first designated surface and at least one second designated surface.
The first processing module 602 is configured to determine a scene where the terminal device is located according to the distance data of each first designated surface and a preset correspondence between the distance data of each first designated surface and the scene, where each scene corresponds to one state switching condition.
The second processing module 603 is configured to determine, according to the scene where the terminal device is located, a state switching condition corresponding to the scene where the terminal device is located.
A switching module 604, configured to switch the state of the screen of the terminal device to a screen-off state when the distance data of each second designated surface meets a state switching condition corresponding to the scene where the terminal device is located.
The embodiment of the invention obtains the distance data between the appointed surface of the terminal equipment and the target object, wherein the appointed surface comprises at least one first appointed surface and at least one second appointed surface; determining scenes where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scenes, wherein each scene corresponds to a state switching condition; determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located; and when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into the screen-off state, so that the terminal equipment can be controlled. According to the embodiment of the invention, the scene where the terminal equipment is located can be determined through the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene; by turning off the screen of the terminal equipment when the distance data of each second designated surface accords with the state switching condition corresponding to the scene where the terminal equipment is located, the state of the screen of the terminal equipment can be switched correspondingly to the application scene where the terminal equipment is located, so that the screen of the terminal equipment is prevented from being turned off due to false triggering of a user, and the interruption of user operation due to the fact that the screen is turned off due to false triggering is prevented.
Optionally, the obtaining module 601 is configured to:
acquiring capacitance values of antennas of all designated surfaces of the terminal equipment through an electromagnetic wave absorption ratio SAR sensor, wherein the SAR sensor is respectively connected with the antennas of all designated surfaces of the terminal equipment;
and determining the distance data of each designated surface according to the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data and the capacitance value of each designated surface antenna, wherein the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data is determined by detecting the capacitance value of each designated surface antenna when the test object is placed at the preset distance position.
Optionally, the designated side of the terminal device includes a top side, a bottom side, a left side, a right side, a front side, and a back side.
Optionally, the first designated face comprises a top face and a bottom face, the scene comprises a game scene, and the first processing module 602 is configured to:
and if the distance data of the top surface and the bottom surface of the terminal equipment are both smaller than the respective corresponding distance threshold values, determining that the scene where the terminal equipment is located is the game scene.
Optionally, the second designated surface includes a left side surface, a right side surface and a front surface, and the state switching condition corresponding to the game scene includes:
the distance data of the left side, the right side and the front of the terminal equipment are all smaller than the distance threshold values corresponding to the left side, the right side and the front of the terminal equipment.
Optionally, the first designated surface includes a left side surface, a right side surface and a back surface, the scene includes a call scene, and the first processing module 602 is configured to:
and if the distance data of the left side surface, the right side surface and the back surface of the terminal equipment are all smaller than the corresponding distance threshold values, determining that the scene where the terminal equipment is located is the call scene.
Optionally, the second designated surface includes a top surface, a bottom surface, and a front surface, and the state switching condition corresponding to the call scenario includes:
and the distance data of at least two surfaces in the second designated surface are smaller than the corresponding distance threshold values.
The screen control device provided by the embodiment of the invention can be used for executing the method embodiment, the implementation principle and the technical effect are similar, and the embodiment is not described herein again.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. As shown in fig. 7, the terminal device 70 provided in the present embodiment includes: at least one processor 701 and a memory 702. The terminal device 70 further comprises a communication section 703. The processor 701, the memory 702, and the communication section 703 are connected by a bus 704.
In a specific implementation process, the at least one processor 701 executes computer-executable instructions stored in the memory 702, so that the at least one processor 701 executes the screen control method as described above.
For a specific implementation process of the processor 701, reference may be made to the above method embodiments, which implement principles and technical effects similar to each other, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the screen control method is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A screen control method is applied to a terminal device and comprises the following steps:
acquiring distance data between a designated surface of the terminal equipment and a target object, wherein the designated surface comprises at least one first designated surface and at least one second designated surface;
determining the scene of the terminal device according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene, wherein the scene is a call scene, a game scene, a webpage browsing scene or a photographing scene, and each scene corresponds to a state switching condition;
determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located;
and when the distance data of each second designated surface meets the state switching condition corresponding to the scene where the terminal equipment is located, switching the state of the screen of the terminal equipment into a screen-off state.
2. The method of claim 1, wherein the obtaining distance data between the designated surface of the terminal device and the target object comprises:
acquiring capacitance values of antennas of all designated surfaces of the terminal equipment through an electromagnetic wave absorption ratio SAR sensor, wherein the SAR sensor is respectively connected with the antennas of all designated surfaces of the terminal equipment;
and determining the distance data of each designated surface according to the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data and the capacitance value of each designated surface antenna, wherein the preset corresponding relation between the antenna capacitance value of each designated surface and the distance data is determined by detecting the capacitance value of each designated surface antenna when the test object is placed at the preset distance position.
3. The method of claim 1 or 2, wherein the designated side of the terminal device comprises a top side, a bottom side, a left side, a right side, a front side, and a back side.
4. The method according to claim 3, wherein the first designated surfaces comprise top surfaces and bottom surfaces, the scene is a game scene, and the determining the scene in which the terminal device is located according to the distance data of each first designated surface and the preset corresponding relationship between the distance data of each first designated surface and the scene comprises:
and if the distance data of the top surface and the bottom surface of the terminal equipment are both smaller than the respective corresponding distance threshold values, determining that the scene where the terminal equipment is located is the game scene.
5. The method of claim 4, wherein the second designated surface comprises a left side surface, a right side surface and a front surface, and the state switching condition corresponding to the game scene comprises:
the distance data of the left side, the right side and the front of the terminal equipment are all smaller than the distance threshold values corresponding to the left side, the right side and the front of the terminal equipment.
6. The method according to claim 3, wherein the first designated surfaces include a left side surface, a right side surface and a back surface, the scene is a call scene, and the determining the scene where the terminal device is located according to the distance data of each first designated surface and a preset corresponding relationship between the distance data of each first designated surface and the scene comprises:
and if the distance data of the left side surface, the right side surface and the back surface of the terminal equipment are all smaller than the corresponding distance threshold values, determining that the scene where the terminal equipment is located is the call scene.
7. The method of claim 6, wherein the second designated surface comprises a top surface, a bottom surface and a front surface, and wherein the state-switching condition corresponding to the call scenario comprises:
and the distance data of at least two surfaces in the second designated surface are smaller than the corresponding distance threshold values.
8. A screen control device is applied to a terminal device and comprises:
the acquisition module is used for acquiring distance data between a designated surface of the terminal equipment and a target object, wherein the designated surface comprises at least one first designated surface and at least one second designated surface;
the first processing module is used for determining the scene where the terminal equipment is located according to the distance data of each first designated surface and the preset corresponding relation between the distance data of each first designated surface and the scene, wherein the scene is a call scene, a game scene, a webpage browsing scene or a photographing scene, and each scene corresponds to a state switching condition;
the second processing module is used for determining a state switching condition corresponding to the scene where the terminal equipment is located according to the scene where the terminal equipment is located;
and the switching module is used for switching the screen state of the terminal equipment into a screen-off state when the distance data of each second designated surface meets the state switching condition corresponding to the scene where the terminal equipment is located.
9. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the screen control method of any of claims 1 to 7.
10. A computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the screen control method of any one of claims 1 to 7.
CN201910417795.9A 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium Active CN110138974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910417795.9A CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910417795.9A CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110138974A CN110138974A (en) 2019-08-16
CN110138974B true CN110138974B (en) 2021-06-01

Family

ID=67571373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910417795.9A Active CN110138974B (en) 2019-05-20 2019-05-20 Screen control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110138974B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204362145U (en) * 2014-03-31 2015-05-27 广州视源电子科技股份有限公司 The mobile terminal of automatic identification right-hand man
CN106775308A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 Proximity transducer changing method, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071575A (en) * 2012-09-28 2014-04-21 Panasonic Corp Electronic apparatus using capacitive touch panel
CN108243277A (en) * 2017-12-12 2018-07-03 惠州Tcl移动通信有限公司 Mobile terminal and its control method, storage device
CN109271019B (en) * 2018-08-22 2020-07-10 Oppo广东移动通信有限公司 Proximity event detection element switching control method and apparatus
CN109240541B (en) * 2018-09-26 2021-09-10 Oppo广东移动通信有限公司 Screen false touch prevention method and device of electronic equipment and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204362145U (en) * 2014-03-31 2015-05-27 广州视源电子科技股份有限公司 The mobile terminal of automatic identification right-hand man
CN106775308A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 Proximity transducer changing method, device and terminal

Also Published As

Publication number Publication date
CN110138974A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US9406262B2 (en) Mobile electronic device with luminance control according to surrounding brightness and contact
CN108710469B (en) Application program starting method, mobile terminal and medium product
CN109407871B (en) Method and device for identifying soaking state and electronic equipment
CN110418000B (en) Terminal control method, device, mobile terminal and storage medium
CN106293283B (en) Key triggering method and device and terminal
EP3435199A2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN108390961B (en) Touch response method and device, readable storage medium and mobile terminal
US20150002455A1 (en) Close-range sensing method and device based on capacitive touch screen and communication terminal
CN106708409B (en) A kind of response method of popup menu, device and mobile terminal
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
US10268362B2 (en) Method and system for realizing functional key on side surface
CN110244849B (en) Proximity recognition method and device, mobile terminal and storage medium
CN110138974B (en) Screen control method, device, equipment and computer readable storage medium
CN110800277B (en) Call processing method and related product
CN105022633A (en) Solving method of hotkey conflict and terminal
CN104866193A (en) Terminal
CN111475057A (en) Touch identification method and device
CN112083837A (en) Touch information processing method and device of touch screen and electronic equipment
CN108762996B (en) Touch detection method and device
CN110620830A (en) Electronic device and fall protection control method
CN114089868A (en) Touch operation method and device and electronic equipment
CN111045540A (en) Screen touch response method, device, equipment and computer readable medium
CN114356153A (en) Control method, control device, electronic equipment and storage medium
CN113849082A (en) Touch processing method and device, storage medium and mobile terminal

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