CN107665081B - Display screen state control method and device, storage medium and terminal - Google Patents

Display screen state control method and device, storage medium and terminal Download PDF

Info

Publication number
CN107665081B
CN107665081B CN201710960062.0A CN201710960062A CN107665081B CN 107665081 B CN107665081 B CN 107665081B CN 201710960062 A CN201710960062 A CN 201710960062A CN 107665081 B CN107665081 B CN 107665081B
Authority
CN
China
Prior art keywords
signal
threshold
value
signal strength
display screen
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
CN201710960062.0A
Other languages
Chinese (zh)
Other versions
CN107665081A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710960062.0A priority Critical patent/CN107665081B/en
Publication of CN107665081A publication Critical patent/CN107665081A/en
Application granted granted Critical
Publication of CN107665081B publication Critical patent/CN107665081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/46Indirect determination of position data
    • G01S17/48Active triangulation systems, i.e. using the transmission and reflection of electromagnetic waves other than radio waves

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application provides a display screen state control method, a display screen state control device, a storage medium and a terminal, wherein the display screen state control method comprises the following steps: acquiring a first signal strength value; acquiring a signal intensity threshold according to the first signal intensity value; acquiring a second signal strength value; and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value. According to the display screen state control method, the signal intensity threshold value is obtained according to the first signal intensity value, so that the signal intensity threshold value can be associated with the external environment, the influence of the external environment on the detection of the proximity sensor can be reduced, the detection accuracy of the proximity sensor can be improved, the state control accuracy of the display screen of the terminal can be improved, and the stability of the terminal can be improved.

Description

Display screen state control method and device, storage medium and terminal
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for controlling a status of a display screen, a storage medium, and a terminal.
Background
With the rapid development of terminal technology, intelligent terminals are more and more popular and become essential devices in people's life. People can learn, entertain and the like through the intelligent terminal.
Currently, judging the approaching or departing state between the intelligent terminal and an external object to control the intelligent terminal to turn off or turn on the screen is a necessary function in the intelligent terminal. The smart terminal generally uses an infrared transmitter and an infrared receiver to detect a proximity state or a distance state between the smart terminal and an external object. This infrared emitter sends the infrared ray, forms reflection light after the obstacle reflection, and this infrared receiver judges this intelligent terminal whether be close or keep away from the obstacle according to reflection light's intensity value after receiving this reflection light.
However, in practical applications, the external environment also contains infrared rays, for example, sunlight contains a large amount of infrared rays. Especially under strong sunlight, the infrared ray is stronger. At this moment, infrared receiver among the intelligent terminal can receive infrared ray's among the external environment influence, causes the intelligent terminal to judge and the outside object between be close to or keep away from the state inaccurate to cause intelligent terminal to appear constantly and put out the screen, the bright screen operation, also appear the phenomenon of twinkling of a screen.
Disclosure of Invention
The embodiment of the application provides a display screen state control method and device, a storage medium and a terminal, which can improve the accuracy of state control of a display screen of the terminal and further improve the stability of the terminal.
The embodiment of the application provides a display screen state control method, which is applied to a terminal, wherein the terminal comprises a display screen and a proximity sensor, the proximity sensor comprises a signal transmitter and a signal receiver, and the display screen state control method comprises the following steps:
acquiring a first signal strength value, wherein the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is closed;
acquiring a signal intensity threshold according to the first signal intensity value;
acquiring a second signal intensity value, wherein the second signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is started;
and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
The embodiment of the present application further provides a display screen state control device, which is applied to a terminal, the terminal includes a display screen and a proximity sensor, the proximity sensor includes a signal transmitter and a signal receiver, the display screen state control device includes:
a first obtaining module, configured to obtain a first signal strength value, where the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned off;
the second obtaining module is used for obtaining a signal strength threshold value according to the first signal strength value;
the first obtaining module is further configured to obtain a second signal strength value, where the second signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned on;
and the control module is used for controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
The embodiment of the application also provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the display screen state control method.
The embodiment of the application further provides a terminal, which comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the display screen state control method by calling the computer program stored in the memory.
The display screen state control method provided by the embodiment of the application comprises the following steps: acquiring a first signal strength value; acquiring a signal intensity threshold according to the first signal intensity value; acquiring a second signal strength value; and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value. According to the display screen state control method, the signal intensity threshold value is obtained according to the first signal intensity value, so that the signal intensity threshold value can be associated with the external environment, the influence of the external environment on the detection of the proximity sensor can be reduced, the detection accuracy of the proximity sensor can be improved, the state control accuracy of the display screen of the terminal can be improved, and the stability of the terminal can be improved.
Drawings
Fig. 1 is a first structural schematic diagram of a terminal according to an embodiment of the present application.
Fig. 2 is a first structural diagram of a panel assembly according to an embodiment of the present application.
Fig. 3 is a second structural diagram of a panel assembly according to an embodiment of the present application.
Fig. 4 is a third structural diagram of a panel assembly in the embodiment of the present application.
Fig. 5 is a fourth structural diagram of a panel assembly in the embodiment of the present application.
Fig. 6 is a schematic diagram of a fifth structure of a panel assembly in an embodiment of the present application.
Fig. 7 is a schematic view of a sixth structure of a panel assembly in an embodiment of the present application.
Fig. 8 is a first flowchart illustrating a display screen state control method according to an embodiment of the present application.
Fig. 9 is a second flowchart illustrating a display screen state control method according to an embodiment of the present application.
Fig. 10 is a third flowchart illustrating a display screen state control method according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a display screen state control device according to an embodiment of the present disclosure.
Fig. 12 is a schematic structural diagram of a second display screen state control device according to an embodiment of the present disclosure.
Fig. 13 is a schematic structural diagram of a display screen state control device according to an embodiment of the present application.
Fig. 14 is a second structural diagram of a terminal according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of a third terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal 1000 according to an embodiment of the present application. The terminal 1000 is an electronic device such as a mobile phone or a tablet computer. It is understood that terminal 1000 includes but is not limited to the examples of the present embodiments.
The terminal 1000 includes a panel assembly 100 and a housing 200. The panel assembly 100 is disposed on and connected to the housing 200. It is understood that the terminal 1000 can also include a receiver. Correspondingly, the non-display area 100a of the panel assembly 100 is provided with an opening 300 for a receiver to make a sound, and the terminal 1000 may further include a fingerprint identification module 400, wherein the fingerprint identification module 400 is disposed in the non-display area 100a of the panel assembly 100. The display area 100b of the panel assembly 100 can be used for displaying pictures or for user touch control.
The panel assembly 100 may be a touch panel assembly, a panel assembly, or a terminal panel assembly having other functions, among others.
Referring to fig. 2, fig. 2 is a first structural schematic diagram of the panel assembly 100 according to the embodiment of the present disclosure. The panel assembly 100 includes a sensor module 11, a cover plate assembly 12, and a control circuit 13. The sensor module 11 is disposed on one side of the inner surface of the cover plate 12, and the sensor module 11 and the cover plate 12 are disposed at an interval. The control circuit 13 is communicatively coupled to the sensor module 11 and the cover assembly 12. In this embodiment, the control circuit 13 is a motherboard, the sensor module 11 is a proximity sensor, and the sensor module 11 is fixedly disposed on the motherboard.
The sensor module 11 includes a first signal transmitter 111, a first signal receiver 112, and a second signal receiver 113.
The signal transmitter 111 is used to transmit a signal outward. The signal receiver 112 and the signal receiver 113 are used for receiving signals reflected by external objects.
In some embodiments, the sensor module 11 may also include only the signal emitter 111 and the signal receiver 112.
The signal may be an optical signal such as infrared ray or laser, or may be an acoustic signal such as ultrasonic wave. The following description will be given by taking the signal as an optical signal, the signal transmitter as an optical transmitter, and the signal receiver as an optical receiver.
In some embodiments, the first light emitter 111 is configured to emit probe light having a wavelength greater than 850nm, such as infrared light, which is an infrared emitter. For example, the first light emitter 111 may be an LED (light emitting Diode) emitting infrared rays.
Correspondingly, the first light receiver 112 may be an infrared light receiver for receiving a low beam signal formed after the detection light is reflected by the obstacle 70. The barrier 70 is typically a human face and is applied to a scene where the user is approaching or moving away from the face during a call.
Correspondingly, the second light receiver 113 may be an infrared light receiver for receiving a far light signal formed after the detection light is reflected by the obstacle 70.
The low-beam signal indicates that the light receiver reflected by the obstacle enters a short distance from the first light emitter 111, and the high-beam signal indicates that the light receiver reflected by the obstacle enters a long distance from the first light emitter 111.
The distance between the first optical receiver 112 and the first optical transmitter 111 is smaller than the distance between the second optical receiver 113 and the first optical transmitter 111. Therefore, the detection of the change in light intensity of the second light receiver 113 is more sensitive when the cover plate assembly 12 is farther from the obstacle. The detection of changes in light intensity by the first light receiver 112 is more sensitive when the cover plate assembly 12 is closer to a barrier. Therefore, in specific applications, the terminal may determine whether the terminal is far away from or close to the terminal according to the light intensity values of the reflected light received by the first light receiver 112 and the second light receiver 113, so that the determination accuracy can be greatly improved, and the improvement of user experience is facilitated.
In this embodiment, the first optical transmitter 111 and the first optical receiver 112 may be integrated in a first integrated chip to form a two-in-one chip. Of course, it may be provided separately as two independent chips.
The cover plate assembly 12 includes a cover plate 121, a first adhesion layer 122 disposed on an inner surface of the cover plate 121, and a second adhesion layer 123 disposed on a surface of the first adhesion layer 122 away from the cover plate 121. The first adhesive layer 122 completely covers the second adhesive layer 123. The first adhesion layer 122 and the second adhesion layer 123 constitute an adhesion layer.
The first adhesion layer 122 and the second adhesion layer 123 are disposed to hide the internal structure of the terminal 1000 and the second adhesion layer 123. I.e. such that a user can see only the first adhesive layer 122 and not the second adhesive layer 123 when looking at the outer side of the cover plate 121.
The cover plate 121 may be a transparent glass cover plate. In some embodiments, the cover plate 121 may be a glass cover plate made of a material such as sapphire.
The adhesive layer may be an ink layer or a coating layer formed of other materials. The following description will be given by taking the adhesion layer as an ink layer, the first adhesion layer as a light-transmitting ink layer, and the second adhesion layer as a light-shielding ink layer.
In this embodiment, the transparent ink layer 122 is a transparent ink layer for transmitting most light. The transmittance of the ink layer can be set according to actual requirements, the transmittance of visible light (for example, visible light with a wavelength of 550 nm) of the transparent ink layer 122 is generally between 2% and 10%, and the transmittance of an optical signal (for example, infrared light with a wavelength of 850 nm) of the proximity sensor is greater than or equal to 80%.
The light transmissive ink layer 122 may comprise several light transmissive ink sublayers 1221. For example, in the present embodiment, the light-transmissive ink layer 122 has 3 light-transmissive ink sub-layers 1221, and each light-transmissive ink sub-layer 1221 is formed by spraying or printing white ink. Of course, the white ink is only an example, and the transparent ink layer 122 may be designed to have other colors according to different aesthetic requirements.
It is to be understood that when the color of clear ink layer 122 is different, the apparent color appearance of terminal 1000 is also different. For example, when the light-transmissive ink layer 122 is a white ink, the appearance of the terminal 1000 is white, i.e., the terminal 1000 is a white model. When the transparent ink layer 122 is a golden ink, the appearance of the terminal 1000 is golden, that is, the terminal 1000 is a golden model.
The light-shielding ink layer 123 is an ink layer capable of shielding light and is used for shielding most of light. The light-shielding ink layer 123 may be formed by spraying or printing black ink. The light-shielding ink layer 123 includes a first region and a second region. The first region has a greater transmittance for light than the second region. The first region can be understood as a light-transmitting region for transmitting a majority of the light. The second region can be understood as a light-blocking region for blocking a large part of the light.
The transparent ink layer 122 covers the first area on the light-shielding ink layer 123.
The transmittance of the light-transmissive ink layer 122 to light is greater than the transmittance of the light-blocking ink layer 123 to light.
The transmittance may include transmittance to infrared rays, transmittance to laser light, and transmittance to visible light.
In some embodiments, the light-shielding ink layer 123 has a first light-passing hole 124 and a second light-passing hole 125. The first light passing hole 124 and the second light passing hole 125 are used for passing light. The first light passing hole 124 and the second light passing hole 125 form a first area, and an area on the light shielding ink layer 123 outside the first light passing hole 124 and the second light passing hole 125 is a second area. It is understood that the first light passing hole 124 and the second light passing hole 125 can be filled with a light transmissive material, and the color of the light transmissive material can be the same as the color of the light transmissive ink layer 122. The first light passing hole 124 may include a first light emitting hole 1241 and a first light receiving hole 1242, which are separated from each other. The first light emitter 111 is opposite to the first light emitting hole 1241, and emits the detection light outwards through the first light emitting hole 1241. The first light receiver 112 is opposite to the first light receiving hole 1242, and receives the reflected light of the detection light through the first light receiving hole 1242.
The second light passing hole 125 is opposite to the second light receiver 113, and the second light receiver 113 receives the reflected light of the detection light through the second light passing hole 125.
The shapes of the first light emitting hole 1241, the first light receiving hole 1242 and the second light passing hole 125 may be set according to actual requirements. For example, the shape may be circular, rectangular, rounded rectangular, or the like. In order to improve the ability of the first optical receiver 112 and the second optical receiver 113 to receive optical signals and improve the sensitivity of the sensor, the opening areas of the first light receiving hole 1242 and the second light passing hole 125 may be larger than the opening area of the first light emitting hole 1241.
It is understood that, as shown in fig. 3, in other embodiments, the first light passing hole 124 may also be a larger hole, which is used by both the first light emitter 111 and the first light receiver 112.
In this embodiment, the control circuit 13 is in communication connection with the first optical transmitter 111, the first optical receiver 112 and the second optical receiver 113, and the first optical transmitter 111, the first optical receiver 112 and the second optical receiver 113 are all fixedly disposed on the motherboard.
For example, when the panel assembly 100 is applied to a mobile phone, the first light receiver 112 is closer to the first light emitter 111 due to the different distances between the first light receiver 112 and the second light receiver 113 from the first light emitter 111, and when the panel assembly 100 is closer to an obstacle, the second light receiver 113 receives little light due to the farther distance from the first light emitter 111, and the variation of the light intensity is not large as the distance is changed. When the panel assembly 100 is far from the obstacle, the reflected light is weak, and the light emitted by the first light emitter 111 directly enters the first light receiver 112 by internal reflection, the base value of the light intensity value received by the first light receiver 112 is large, and the light intensity value of the reflected light is small because the cover is far from the obstacle, so that the reflected light received by the first light receiver is not obvious to the detected light intensity change. The second light receiver 113 is far away from the first light emitter 111 relative to the first light receiver 112, so that the portion of the light emitted by the first light emitter 111 that enters the second light receiver 113 through internal reflection is small, the basic light intensity value is small, and the change of the light intensity after the reflected light enters the second light receiver 113 is relatively large.
During a call of the terminal, the control circuit 13 controls the first light emitter 111 to emit a detection light, and determines whether the terminal mounted with the panel assembly 100 is close to or away from a human face according to the light intensity values of the reflected light received by the first light receiver 112 and the second light receiver 113. When the screen is far away from the face, the cover plate assembly 12 is controlled to be on, and when the screen is close to the face, the cover plate assembly 12 is controlled to be off.
When the light intensity value received by the first light receiver 113 reaches a first approach threshold value or the light intensity value received by the second light receiver 113 reaches a second approach threshold value, it is determined that the terminal is close to the face. When the light intensity value received by the first light receiver 113 reaches the first distance threshold and the light intensity value received by the second light receiver 113 reaches the second distance threshold, it is determined that the terminal is away from the face.
Referring to fig. 4, fig. 4 is another structural schematic diagram of the panel assembly 100 in the embodiment of the present application. The panel assembly 100 includes a sensor module 21, a cover assembly 22, and a control circuit 23. The sensor module 21 is disposed on one side of the inner surface of the cover plate 22, and the sensor module 21 and the cover plate 22 are spaced apart from each other. The control circuit 23 is communicatively coupled to the sensor module 21 and the cover assembly 22. In this embodiment, the control circuit 23 is a main board, and the sensor module 21 is fixedly disposed on the main board.
The sensor module 21 includes a first light emitter 211, a first light receiver 212, a second light receiver 213, a second light emitter 214, a first ambient light sensor 215, and a second ambient light sensor 216.
It will be appreciated that in some embodiments, the sensor module 21 may also include a circuit board. The first light emitter 211, the first light receiver 212, the second light receiver 213, the second light emitter 214, the first ambient light sensor 215, and the second ambient light sensor 216 may be disposed on the circuit board.
The first light emitter 211 and the second light emitter 214 are both configured to emit invisible light with a wavelength greater than 850nm, such as infrared light.
The first light emitter 211 and the second light emitter 214 are both infrared light emitters. Both the first optical receiver 212 and the second optical receiver 213 can be infrared light receivers. The first light receiver 212 is used for receiving a low beam signal formed after the detection light is reflected by the obstacle. The second light receiver 214 is used for receiving a far light signal formed after the detection light is reflected by the obstacle. The distance between the first optical receiver 212 and the first optical transmitter 211 is smaller than the distance between the second optical receiver 213 and the first optical transmitter 211. The low-beam signal indicates that the light receiver reflected by the obstacle enters a short distance from the first light emitter 211, and the high-beam signal indicates that the light receiver reflected by the obstacle enters a long distance from the first light emitter 211.
The distance between the first optical receiver 212 and the first optical transmitter 211 is smaller than the distance between the second optical receiver 213 and the first optical transmitter 211. Therefore, when the first light emitter 211 is used as the emitter of the detection light, and when the panel assembly 100 is far away from the obstacle, the detection of the light intensity variation of the second light receiver is more sensitive; the first light receiver is more sensitive to light intensity change detection when the panel assembly 100 is closer to a barrier. When the second light emitter 214 is used as the detector light emitter, and when the panel assembly 100 is far away from the obstacle, the detection of the light intensity variation of the second light receiver 214 is more sensitive; the first light receiver 212 is more sensitive to light intensity change detection when the panel assembly 100 is closer to a barrier.
In this embodiment, the control circuit 23 may select one of the first light emitter 211 and the second light emitter 214 as the detected light emitter, and in general, the first light emitter 211 is used as the detected light emitter, and when the control circuit 23 detects that the first light emitter 211 is abnormal or damaged, the second light emitter 214 is used as the detected light emitter.
In some embodiments, the first light emitter 211, the first light receiver 212, and the first ambient light sensor 215 may be integrally disposed on an integrated chip, forming a three-in-one chip. The second light emitter 214, the second light receiver 213 and the second ambient light sensor 216 may be integrated on another integrated chip to form another three-in-one chip.
In some embodiments, as shown in fig. 5, the sensor module 21 may include only the light emitter 211, the first light receiver 212, the second light receiver 213, and the ambient light sensor 216. The light emitter 211, the first light receiver 212, the second light receiver 213, and the ambient light sensor 216 may be disposed on a circuit board.
The optical transmitter 211 and the first optical receiver 212 may be integrated on an integrated chip to form a two-in-one chip. The second light receiver 213 and the ambient light sensor 216 may be integrated on another integrated chip to form another two-in-one chip. The two-in-one chips can be arranged on the circuit board at intervals.
The distance between the two-in-one chips is between 2 mm and 12 mm. The distance is the distance between the geometric centers of the two-in-one chips.
The cover plate assembly 22 includes a cover plate 221, a light-transmissive ink layer 222 disposed on an inner surface of the cover plate 221, and a light-blocking ink layer 223 disposed on a surface of the light-transmissive ink layer 222 away from the cover plate 221. The transparent ink layer 122 and the light-shielding ink layer 123 constitute an ink layer.
For example, in the present embodiment, the light-transmissive ink layer 222 has three light-transmissive ink sublayers 2221, and each light-transmissive ink sublayer 2221 is formed by spraying or printing white ink. Of course, the white ink is only an example, and the transparent ink layer 222 can be designed into other colors according to different aesthetic requirements.
The light-shielding ink layer 223 may be formed by spraying or printing black ink. The light-shielding ink layer 223 has a first light-passing hole 224 and a second light-passing hole 225.
In this embodiment, the light-transmissive ink layer 222 on the light-shielding ink layer 223 is a light-transmissive ink layer. The transmittance of the ink layer can be set according to actual requirements, the transmittance of visible light (for example, visible light with a wavelength of 550 nm) of the transparent ink layer 222 is generally between 2% and 10%, and the transmittance of an optical signal (for example, infrared light with a wavelength of 850 nm) of the proximity sensor is greater than or equal to 80%.
Wherein the first light passing hole 224 may include a separate first light emitting hole 2241 and first light receiving hole 2242. The first light emitter 211 is opposite to the first light emitting hole 2241, and emits a probe light outward through the first light emitting hole 2241. The first light receiver 212 and the first ambient light sensor 215 are opposite to the first light receiving hole 2242, the first light receiver 212 receives the reflected light of the detected light through the first light receiving hole 2242, and the first ambient light sensor 215 detects the intensity of the ambient light through the first light receiving hole 2242.
The second light passing hole 225 may include a separate second light emitting hole 2251 and a second light receiving hole 2252. The second light emitter 214 is opposite to the second light emission hole 2251, and emits a probe light outward through the second light emission hole 2251. The second light receiving hole 2252 is opposite to the second light receiver 213 and the second ambient brightness sensor 216, the second light receiver 213 receives the reflected light of the detection light through the second light receiving hole 2252, and the second ambient brightness sensor 216 detects the intensity of the ambient light through the second light receiving hole 2252.
It is understood that, as shown in fig. 6, in other embodiments, the first light passing hole 224 may also be a larger hole, which is used by the first light emitter 211, the first light receiver 212 and the first ambient light sensor 215 at the same time.
The second light aperture 225 can also be a larger aperture that is used by the second light emitter 214, the second light receiver 213, and the second ambient light sensor 216 simultaneously.
Taking the panel assembly 100 applied to a mobile phone as an example for illustration, normally, the control circuit 23 selects the first light emitter 211 as the emitter of the detection light, and the second light emitter 214 does not operate.
In some embodiments, as shown in fig. 7, the cover plate assembly 22 may include only the cover plate 221 and the light transmissive ink layer 222 disposed on the inner surface of the cover plate 221.
The transparent ink layer 222 can be formed by spraying or printing special ink. For example, the specialty ink may be an infrared ink (IR ink). The IR ink has a transmittance of infrared rays of 80% or more and thus can transmit most of infrared rays. The appearance of the IR ink appeared to be black ink.
A functional area may be disposed on the transparent ink layer 222 corresponding to the ambient brightness sensor 216, and ink that can be transmitted by ambient light is sprayed or printed on the functional area. The functional region is used to pass ambient light so that the ambient light sensor 216 detects ambient brightness.
The embodiment of the application also relates to a display screen state control method. The display screen state control method is applied to the terminal. The terminal comprises a display screen and a sensor module. The sensor module may be a proximity sensor. The display screen state control method controls the state of the display screen according to the distance state between the terminal and the external object. The distance state includes a distant state and a close state. The status of the display screen includes on and off.
The following description will be given only by taking the sensor module as a proximity sensor, and the proximity sensor includes a signal transmitter and a signal receiver as an example, to describe the display screen state control method. Wherein, the signal emitter can be an infrared emitter for emitting infrared rays; the signal receiver may be an infrared receiver for receiving infrared rays.
As shown in fig. 8, the display screen state control method may include the steps of:
s510, obtaining a first signal strength value, where the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned off.
And when the signal transmitter is closed, the terminal controls the signal receiver to detect the signal intensity value at the moment. The signal strength value detected by the signal receiver is the first signal strength value.
Since the signal transmitter is in the off state at this time, the signal detected by the signal receiver comes from the external environment. The detected signal strength value is the signal strength value in the external environment.
In some embodiments, the signal receiver is an infrared receiver. The first signal intensity value detected by the signal receiver is thus an infrared intensity value in the external environment, for example in sunlight. The intensity of infrared rays in sunlight varies with weather. The stronger the sunlight is, the higher the infrared ray intensity in the sunlight is, and the greater the first signal intensity value acquired by the terminal at this time is.
In some embodiments, the terminal may obtain the signal strength value detected by the signal receiver multiple times while the signal transmitter is turned off. Then, the average value of the signal intensity values acquired for multiple times is used as the first signal intensity value. The average value is obtained through multiple detections, so that the obtained first signal intensity value is more accurate.
S520, obtaining a signal intensity threshold value according to the first signal intensity value.
After the terminal acquires the first signal strength value, the signal strength threshold value can be acquired according to the first signal strength value. The signal intensity threshold is used for judging whether the terminal and an external object are in a close state or a far state, so that the state of a display screen of the terminal is controlled.
Since the external environment contains infrared rays, such as infrared rays in sunlight, the infrared rays in the external environment affect the detection of the proximity sensor. Therefore, after the signal intensity threshold is obtained according to the first signal intensity value, the signal intensity threshold can be associated with the external environment, and the influence of infrared rays in the external environment on the detection of the proximity sensor can be reduced.
S530, obtaining a second signal strength value, where the second signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned on.
And when the signal transmitter is started, the terminal controls the signal receiver to detect the signal intensity value at the moment. The signal strength value detected by the signal receiver is the second signal strength value.
When the signal emitter is started, the signal emitter emits infrared rays outwards. The infrared rays emitted by the signal emitter are reflected by an external object (such as the face of a user) to form a reflected signal, and the reflected signal can be received by the signal receiver. At this time, the signal intensity value detected by the signal receiver is partly from the reflected signal and partly from the external environment (e.g., infrared in sunlight). That is, the second signal strength value includes a signal strength value of the reflected signal and a signal strength value in an external environment.
And S540, controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
After the terminal acquires the second signal intensity value, the state of the display screen can be controlled according to the second signal intensity value and the signal intensity threshold value. Wherein the status of the display screen includes on and off.
In practical application, the terminal may control the state of the display screen according to the second signal strength value and the signal strength threshold value when the state of the display screen needs to be controlled. For example, when the terminal is in a voice call state, the state of the display screen is controlled. At this moment, when the user's face is close to the display screen, can control the display screen and extinguish to avoid the user to cause the maloperation to the display screen. And when the face of the user is far away from the display screen, controlling the display screen to be lightened so as to recover the normal display of the display screen.
In some embodiments, as shown in fig. 9, in step S510, before obtaining a first signal strength value, where the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned off, the method for controlling the state of the display screen further includes the following steps:
s551, detecting an ambient light intensity value;
s552, judging whether the ambient light intensity value is greater than an ambient light intensity threshold value;
if the ambient light intensity value is greater than the ambient light intensity threshold value, a first signal intensity value is obtained, and the first signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is closed.
Wherein, the terminal comprises an ambient light sensor. The ambient light sensor is used for detecting the intensity of ambient light. And before the terminal acquires the first signal intensity value, detecting an ambient light intensity value through the ambient light sensor. Subsequently, it is determined whether the ambient light intensity value is greater than an ambient light intensity threshold.
The threshold value of the ambient light intensity may be an ambient light intensity value preset in the terminal, such as 6000lx (lux). The ambient light intensity threshold value represents a demarcation point of a strong light environment and a weak light environment. If the ambient light intensity value is greater than the ambient light intensity threshold value, indicating that the external environment is in a strong light environment; and if the ambient light intensity value is less than or equal to the ambient light intensity threshold value, indicating that the external environment is in a weak light environment.
And when the ambient light intensity value is greater than the ambient light intensity threshold value, the terminal acquires a first signal intensity value. When the ambient light intensity value is less than or equal to the ambient light intensity threshold, the terminal may terminate the process.
In some embodiments, as shown in fig. 9, the step S520 of obtaining the signal strength threshold according to the first signal strength value includes the following steps:
s521, determining a signal intensity interval where the first signal intensity value is located;
and S522, acquiring a signal intensity threshold according to the signal intensity interval.
Wherein a plurality of signal strength sections may be divided in advance for the first signal strength value, a signal strength threshold may be set in advance for each signal strength section, and the plurality of signal strength sections and the correspondence between each signal strength section and the signal strength threshold may be stored in the terminal. For example, the divided signal strength intervals and the correspondence between each signal strength interval and the signal strength threshold may be as shown in table 1:
TABLE 1
Signal strength interval Signal strength threshold
(0,43] 300
(43,159] 291
(159,295] 267
(295,424] 243
(424,611] 219
…… ……
After the terminal acquires the first signal intensity value, a signal intensity interval where the first signal intensity value is located is determined. Then, the signal strength threshold is obtained according to the located signal strength interval and the corresponding relation between the signal strength interval and the signal strength threshold.
For example, if the first signal strength value acquired by the terminal is 100, the signal strength interval in which the first signal strength value is located is (43, 159).
In some embodiments, as shown in fig. 10, the step S522 of obtaining the signal strength threshold according to the signal strength interval includes the following steps:
s5221, obtaining a threshold attenuation coefficient according to the signal intensity interval and a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the signal intensity interval and the threshold attenuation coefficient;
s5222, acquiring an initial signal intensity threshold;
s5223, calculating a signal strength threshold according to the initial signal strength threshold and the threshold attenuation coefficient.
The preset correspondence between the signal intensity interval and the threshold attenuation coefficient may be set in the terminal in advance. The threshold attenuation factor is a numerical value. The threshold attenuation coefficient is used for adjusting the signal intensity threshold of the terminal according to the external environment. For example, the preset correspondence may be a correspondence as shown in table 2:
TABLE 2
Signal strength interval Threshold attenuation coefficient
(0,43] 100%
(43,159] 97.56%
(159,295] 89.43%
(295,424] 81.30%
(424,611] 73.58%
…… ……
And after the terminal determines the signal intensity interval in which the first signal intensity value is positioned, acquiring a threshold attenuation coefficient according to the signal intensity interval and the preset corresponding relation. For example, if the signal strength range in which the first signal strength value is located is (295, 424], the threshold attenuation coefficient obtained by the terminal is 81.30%.
Then, the terminal obtains an initial signal strength threshold value, and calculates the signal strength threshold value according to the initial signal strength threshold value and the threshold attenuation coefficient. Wherein the initial signal strength threshold may be a signal strength threshold preset in the terminal. For example, the initial signal strength threshold may be 300. And after the terminal acquires the initial signal intensity threshold, calculating according to a preset algorithm to obtain the signal intensity threshold.
In some embodiments, the preset algorithm is to calculate a product of the initial signal strength threshold and the threshold attenuation coefficient, and use the calculated product as the signal strength threshold. For example, if the initial signal strength threshold is 300 and the threshold attenuation factor is 81.30%, the product of the initial signal strength threshold and the threshold attenuation factor is 243.9. The terminal then uses the product 243.9 as a signal strength threshold.
In some embodiments, as shown in fig. 9, the step S540 of controlling the state of the display screen according to the second signal strength value and the signal strength threshold value includes the following steps:
s541, when the display screen is in a bright screen state, judging whether the second signal intensity value is larger than a first threshold value;
and S542, if the second signal intensity value is greater than the first threshold value, controlling the display screen to be turned off.
Wherein the signal strength threshold comprises a first threshold. The first threshold may be a high threshold. And the high threshold is used for triggering and controlling the display screen to be extinguished when the display screen is in a bright screen state.
When the display screen of the terminal is in a bright screen state, after the terminal acquires a second signal intensity value, the second signal intensity value is compared with the first threshold value to judge whether the second signal intensity value is greater than the first threshold value. When the second signal intensity value is judged to be larger than the first threshold value, the terminal is in a close state with an external object (such as the face of a user), and the display screen is controlled to be turned off. When the second signal intensity value is judged to be smaller than or equal to the first threshold value, the terminal and an external object (for example, the face of a user) are not in a close state, and the display screen is maintained in a bright screen state at the moment.
For example, the first threshold is 243.9, and the second signal strength value acquired by the terminal is 400, and at this time, the second signal strength value is greater than the first threshold, and the terminal controls the display screen to be turned off.
In some embodiments, as shown in fig. 10, the step S540 of controlling the state of the display screen according to the second signal strength value and the signal strength threshold value includes the following steps:
s543, when the display screen is in the screen-off state, judging whether the second signal intensity value is smaller than a second threshold value;
s544, if the second signal strength value is smaller than the second threshold, controlling the display screen to light up.
Wherein the signal strength threshold comprises a second threshold. The second threshold may be a low threshold. And the low threshold is used for triggering and controlling the display screen to be lightened when the display screen is in a screen-off state. The low threshold is less than the high threshold for the same terminal in the same external environment.
When the display screen of the terminal is in the screen-off state, after the terminal acquires a second signal intensity value, comparing the second signal intensity value with the second threshold value to judge whether the second signal intensity value is smaller than the second threshold value. When the second signal intensity value is judged to be smaller than the second threshold value, the terminal is far away from an external object (such as the face of a user), and the display screen is controlled to be lightened. When the second signal intensity value is judged to be greater than or equal to the second threshold value, the terminal is not far away from an external object (such as the face of a user), and the terminal maintains the display screen in the screen-off state.
For example, the second threshold is 200, the second signal strength value acquired by the terminal is 180, and at this time, the second signal strength value is smaller than the second threshold, and the terminal controls the display screen to be lit.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
From the above, the display screen state control method provided in the embodiment of the present application includes: acquiring a first signal strength value; acquiring a signal intensity threshold according to the first signal intensity value; acquiring a second signal strength value; and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value. According to the display screen state control method, the signal intensity threshold value is obtained according to the first signal intensity value, so that the signal intensity threshold value can be associated with the external environment, the influence of the external environment on the detection of the proximity sensor can be reduced, the detection accuracy of the proximity sensor can be improved, the state control accuracy of the display screen of the terminal can be improved, and the stability of the terminal can be improved.
The embodiment of the application also relates to a display screen state control device. The display screen state control device is applied to a terminal. The terminal comprises a display screen and a sensor module. The sensor module may be a proximity sensor. The display screen state control device controls the state of the display screen according to the state of the distance between the terminal and the external object. The distance state includes a distant state and a close state. The status of the display screen includes on and off.
As shown in fig. 11, the display screen state control device 600 includes: a first obtaining module 601, a second obtaining module 602, and a control module 603.
The first obtaining module 601 is configured to obtain a first signal strength value, where the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned off.
The first obtaining module 601 controls the signal receiver to detect the signal strength value when the signal transmitter is turned off. The signal strength value detected by the signal receiver is the first signal strength value.
Since the signal transmitter is in the off state at this time, the signal detected by the signal receiver comes from the external environment. The detected signal strength value is the signal strength value in the external environment.
In some embodiments, the signal receiver is an infrared receiver. The first signal intensity value detected by the signal receiver is thus an infrared intensity value in the external environment, for example in sunlight. The intensity of infrared rays in sunlight varies with weather. The stronger the sunlight is, the higher the infrared ray intensity in the sunlight is, and the greater the first signal intensity value acquired by the terminal at this time is.
In some embodiments, the first obtaining module 601 may obtain the signal strength value detected by the signal receiver multiple times when the signal transmitter is turned off. Then, the average value of the signal intensity values acquired for multiple times is used as the first signal intensity value. The average value is obtained through multiple detections, so that the obtained first signal intensity value is more accurate.
A second obtaining module 602, configured to obtain a signal strength threshold according to the first signal strength value.
After the first obtaining module 601 obtains the first signal strength value, the second obtaining module 602 may obtain the signal strength threshold according to the first signal strength value. The signal intensity threshold is used for judging whether the terminal and an external object are in a close state or a far state, so that the state of a display screen of the terminal is controlled.
Since the external environment contains infrared rays, such as infrared rays in sunlight, the infrared rays in the external environment affect the detection of the proximity sensor. Therefore, after the signal intensity threshold is obtained according to the first signal intensity value, the signal intensity threshold can be associated with the external environment, and the influence of infrared rays in the external environment on the detection of the proximity sensor can be reduced.
The first obtaining module 601 is further configured to obtain a second signal strength value, where the second signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned on.
The first obtaining module 601 controls the signal receiver to detect the signal strength value when the signal transmitter is turned on. The signal strength value detected by the signal receiver is the second signal strength value.
When the signal emitter is started, the signal emitter emits infrared rays outwards. The infrared rays emitted by the signal emitter are reflected by an external object (such as the face of a user) to form a reflected signal, and the reflected signal can be received by the signal receiver. At this time, the signal intensity value detected by the signal receiver is partly from the reflected signal and partly from the external environment (e.g., infrared in sunlight). That is, the second signal strength value includes a signal strength value of the reflected signal and a signal strength value in an external environment.
And the control module 603 is configured to control the state of the display screen according to the second signal strength value and the signal strength threshold.
After the first obtaining module 601 obtains the second signal strength value, the control module 603 may control the state of the display screen according to the second signal strength value and the signal strength threshold value. Wherein the status of the display screen includes on and off.
In practical application, the control module 603 may control the state of the display screen according to the second signal strength value and the signal strength threshold when the state of the display screen needs to be controlled. For example, when the terminal is in a voice call state, the state of the display screen is controlled. At this moment, when the user's face is close to the display screen, can control the display screen and extinguish to avoid the user to cause the maloperation to the display screen. And when the face of the user is far away from the display screen, controlling the display screen to be lightened so as to recover the normal display of the display screen.
In some embodiments, as shown in fig. 12, the display screen state control apparatus 600 further includes a detection module 604. The detection module 604 is configured to perform the following steps:
detecting an ambient light intensity value;
judging whether the ambient light intensity value is greater than an ambient light intensity threshold value;
if the ambient light intensity value is greater than the ambient light intensity threshold, the first obtaining module 601 obtains a first signal intensity value, where the first signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is turned off.
Wherein, the terminal comprises an ambient light sensor. The ambient light sensor is used for detecting the intensity of ambient light. Before obtaining the first signal strength value, the detection module 604 detects an ambient light strength value through the ambient light sensor. Subsequently, it is determined whether the ambient light intensity value is greater than an ambient light intensity threshold.
The threshold value of the ambient light intensity may be an ambient light intensity value preset in the terminal, such as 6000lx (lux). The ambient light intensity threshold value represents a demarcation point of a strong light environment and a weak light environment. If the ambient light intensity value is greater than the ambient light intensity threshold value, indicating that the external environment is in a strong light environment; and if the ambient light intensity value is less than or equal to the ambient light intensity threshold value, indicating that the external environment is in a weak light environment.
When the ambient light intensity value is greater than the ambient light intensity threshold, the first obtaining module 601 obtains a first signal intensity value. When the ambient light intensity value is less than or equal to the ambient light intensity threshold, the process may be terminated.
In some embodiments, as shown in fig. 13, the second obtaining module 602 includes: a determination sub-module 6021 and an acquisition sub-module 6022.
A determining submodule 6021, configured to determine a signal strength interval in which the first signal strength value is located;
the obtaining submodule 6022 is configured to obtain a signal strength threshold according to the signal strength interval.
Wherein a plurality of signal strength sections may be divided in advance for the first signal strength value, a signal strength threshold may be set in advance for each signal strength section, and the plurality of signal strength sections and the correspondence between each signal strength section and the signal strength threshold may be stored in the terminal. For example, the divided signal strength intervals and the correspondence between each signal strength interval and the signal strength threshold may be as shown in table 3:
TABLE 3
Figure BDA0001435026090000191
Figure BDA0001435026090000201
After the first obtaining module 601 obtains the first signal strength value, the determining sub-module 6021 determines a signal strength interval in which the first signal strength value is located. Subsequently, the obtaining sub-module 6022 obtains the signal strength threshold value according to the signal strength interval and the corresponding relationship between the signal strength interval and the signal strength threshold value.
For example, if the first signal strength value acquired by the first acquiring module 601 is 100, the signal strength interval in which the first signal strength value is located is (43, 159).
In some embodiments, the acquisition sub-module 6022 is configured to perform the steps of:
acquiring a threshold attenuation coefficient according to the signal intensity interval and a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the signal intensity interval and the threshold attenuation coefficient;
acquiring an initial signal intensity threshold;
and calculating a signal intensity threshold according to the initial signal intensity threshold and the threshold attenuation coefficient.
The preset correspondence between the signal intensity interval and the threshold attenuation coefficient may be set in the terminal in advance. The threshold attenuation factor is a numerical value. The threshold attenuation coefficient is used for adjusting the signal intensity threshold of the terminal according to the external environment. For example, the preset correspondence may be a correspondence as shown in table 4:
TABLE 4
Signal strength interval Threshold attenuation coefficient
(0,43] 100%
(43,159] 97.56%
(159,295] 89.43%
(295,424] 81.30%
(424,611] 73.58%
…… ……
After the determination submodule 6021 determines the signal intensity interval in which the first signal intensity value is located, the obtaining submodule 6022 obtains the threshold attenuation coefficient according to the signal intensity interval and the preset corresponding relationship. For example, if the first signal strength value is in the signal strength range of (295, 424), the obtained threshold attenuation coefficient is 81.30%.
Subsequently, the acquisition sub-module 6022 acquires the initial signal strength threshold value and calculates the signal strength threshold value according to the initial signal strength threshold value and the threshold attenuation coefficient. Wherein the initial signal strength threshold may be a signal strength threshold preset in the terminal. For example, the initial signal strength threshold may be 300. After the initial signal intensity threshold is obtained, the obtaining submodule 6022 calculates a signal intensity threshold according to a preset algorithm.
In some embodiments, the preset algorithm is to calculate a product of the initial signal strength threshold and the threshold attenuation coefficient, and use the calculated product as the signal strength threshold. For example, if the initial signal strength threshold is 300 and the threshold attenuation factor is 81.30%, the product of the initial signal strength threshold and the threshold attenuation factor is 243.9. The acquisition sub-module 6022 then takes the product 243.9 as a signal strength threshold.
In some embodiments, the control module 603 is configured to perform the following steps:
when the display screen is in a bright screen state, judging whether the second signal intensity value is greater than a first threshold value;
and if the second signal intensity value is larger than the first threshold value, controlling the display screen to be extinguished.
Wherein the signal strength threshold comprises a first threshold. The first threshold may be a high threshold. And the high threshold is used for triggering and controlling the display screen to be extinguished when the display screen is in a bright screen state.
When the display screen of the terminal is in a bright screen state, after the first obtaining module 601 obtains the second signal strength value, the control module 603 compares the second signal strength value with the first threshold value to determine whether the second signal strength value is greater than the first threshold value. When the second signal intensity value is judged to be larger than the first threshold value, the terminal is in a close state with an external object (such as the face of a user), and the display screen is controlled to be turned off. When the second signal intensity value is judged to be smaller than or equal to the first threshold value, the terminal and an external object (for example, the face of a user) are not in a close state, and the display screen is maintained in a bright screen state at the moment.
For example, the first threshold is 243.9, and the second signal strength value obtained by the terminal is 400, and if the second signal strength value is greater than the first threshold, the control module 603 controls the display screen to be turned off.
In some embodiments, the control module 603 is configured to perform the following steps:
when the display screen is in the screen-off state, judging whether the second signal intensity value is smaller than a second threshold value;
and if the second signal intensity value is smaller than the second threshold value, controlling the display screen to be lightened.
Wherein the signal strength threshold comprises a second threshold. The second threshold may be a low threshold. And the low threshold is used for triggering and controlling the display screen to be lightened when the display screen is in a screen-off state. The low threshold is less than the high threshold for the same terminal in the same external environment.
When the display screen of the terminal is in the screen-off state, after the first obtaining module 601 obtains the second signal strength value, the control module 603 compares the second signal strength value with the second threshold value to determine whether the second signal strength value is smaller than the second threshold value. When the second signal intensity value is judged to be smaller than the second threshold value, the terminal is far away from an external object (such as the face of a user), and the display screen is controlled to be lightened. When the second signal intensity value is judged to be greater than or equal to the second threshold value, the terminal is not far away from an external object (such as the face of a user), and the terminal maintains the display screen in the screen-off state.
For example, the second threshold is 200, the second signal strength value acquired by the terminal is 180, and if the second signal strength value is smaller than the second threshold, the control module 603 controls the display to be turned on.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the display screen state control apparatus 600 provided in the embodiment of the present application obtains the first signal strength value through the first obtaining module 601; the second obtaining module 602 obtains a signal strength threshold according to the first signal strength value; the first obtaining module 601 obtains a second signal strength value; the control module 603 controls the state of the display screen according to the second signal strength value and the signal strength threshold value. The display screen state control device acquires the signal intensity threshold according to the first signal intensity value, so that the signal intensity threshold can be associated with an external environment, the influence of the external environment on the detection of the proximity sensor can be reduced, the detection accuracy of the proximity sensor can be improved, the state control accuracy of the display screen of the terminal can be improved, and the stability of the terminal is improved.
The embodiment of the application also provides a terminal. The terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 14, terminal 700 includes a processor 701 and a memory 702. The processor 701 is electrically connected to the memory 702.
The processor 701 is a control center of the terminal 700, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or calling a computer program stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the terminal.
In this embodiment, the processor 701 in the terminal 700 loads instructions corresponding to one or more processes of the computer program into the memory 702 according to the following steps, and the processor 701 runs the computer program stored in the memory 702, thereby implementing various functions:
acquiring a first signal intensity value, wherein the first signal intensity value is a signal intensity value detected by a signal receiver when a signal transmitter is closed;
acquiring a signal intensity threshold according to the first signal intensity value;
acquiring a second signal intensity value, wherein the second signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is started;
and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
In some embodiments, when obtaining the signal strength threshold value according to the first signal strength value, the processor 701 performs the following steps:
determining a signal strength interval in which the first signal strength value is located;
and acquiring a signal intensity threshold according to the signal intensity interval.
In some embodiments, when the signal strength threshold is obtained according to the signal strength interval, the processor 701 performs the following steps:
acquiring a threshold attenuation coefficient according to the signal intensity interval and a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the signal intensity interval and the threshold attenuation coefficient;
acquiring an initial signal intensity threshold;
and calculating a signal intensity threshold according to the initial signal intensity threshold and the threshold attenuation coefficient.
In some embodiments, before obtaining the first signal strength value, the processor 701 further performs the following steps:
detecting an ambient light intensity value;
judging whether the ambient light intensity value is greater than an ambient light intensity threshold value;
and if the ambient light intensity value is greater than the ambient light intensity threshold value, acquiring a first signal intensity value.
In some embodiments, the signal strength threshold comprises a first threshold, and the processor 701 performs the following steps when controlling the state of the display screen according to the second signal strength value and the signal strength threshold:
when the display screen is in a bright screen state, judging whether the second signal intensity value is larger than the first threshold value or not;
and if the second signal intensity value is larger than the first threshold value, controlling the display screen to be extinguished.
In some embodiments, the signal strength threshold comprises a second threshold, and the processor 701 performs the following steps when controlling the state of the display screen according to the second signal strength value and the signal strength threshold:
when the display screen is in the screen-off state, judging whether the second signal intensity value is smaller than the second threshold value;
and if the second signal intensity value is smaller than the second threshold value, controlling the display screen to be lightened.
The memory 702 may be used to store computer programs and data. The memory 702 stores a computer program having instructions embodied therein that are executable in the processor. The computer program may constitute various functional modules. The processor 701 executes various functional applications and data processing by calling a computer program stored in the memory 702.
In some embodiments, as shown in fig. 15, terminal 700 further comprises: radio frequency circuit 703, display screen 704, control circuit 705, input unit 706, audio circuit 707, sensor 708, and power supply 709. The processor 701 is electrically connected to the rf circuit 703, the display 704, the control circuit 705, the input unit 706, the audio circuit 707, the sensor 708, and the power source 709, respectively.
The rf circuit 703 is used for transceiving rf signals to communicate with a network device or other terminals through wireless communication.
The display screen 704 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the terminal, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 705 is electrically connected to the display screen 704, and is configured to control the display screen 704 to display information.
The input unit 706 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 706 may include a fingerprint recognition module.
The audio circuitry 707 may provide an audio interface between the user and the terminal through a speaker, microphone.
The sensor 708 is used to collect external environmental information. The sensors 708 may include one or more of a proximity sensor, an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
Power supply 709 is provided to supply power to various components of terminal 700. In some embodiments, the power supply 709 may be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in fig. 15, the terminal 700 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In view of the above, an embodiment of the present application provides a terminal, where the terminal obtains a first signal strength value; acquiring a signal intensity threshold according to the first signal intensity value; acquiring a second signal strength value; and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value. The terminal obtains the signal intensity threshold value according to the first signal intensity value, so that the signal intensity threshold value can be associated with the external environment, the influence of the external environment on the detection of the proximity sensor can be reduced, the detection accuracy of the proximity sensor can be improved, the state control accuracy of the terminal display screen can be improved, and the stability of the terminal can be improved.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the display screen state control method according to any one of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The display screen state control method, device, storage medium and terminal provided by the embodiment of the present application are introduced in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A display screen state control method is applied to a terminal, the terminal comprises a display screen, an ambient light sensor and a proximity sensor, the proximity sensor comprises a signal transmitter and a signal receiver, and the display screen state control method comprises the following steps:
detecting an ambient light intensity value by the ambient light sensor;
judging whether the ambient light intensity value is greater than an ambient light intensity threshold value;
if the ambient light intensity value is greater than the ambient light intensity threshold value, acquiring a first signal intensity value, wherein the first signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is closed;
obtaining a signal strength threshold according to the first signal strength value, where the first signal strength value is inversely proportional to the signal strength threshold, and the method specifically includes: determining a signal strength interval in which the first signal strength value is located; acquiring a threshold attenuation coefficient according to the signal intensity interval and a preset corresponding relation, acquiring an initial signal intensity threshold, and calculating the signal intensity threshold according to the initial signal intensity threshold and the threshold attenuation coefficient, wherein the preset corresponding relation is the corresponding relation between the signal intensity interval and the threshold attenuation coefficient, the signal intensity interval in the preset corresponding relation is inversely proportional to the threshold attenuation coefficient, the initial signal intensity threshold is a signal intensity threshold preset in the terminal, and the signal intensity threshold is the product of the initial signal intensity threshold and the threshold attenuation coefficient;
acquiring a second signal intensity value, wherein the second signal intensity value is a signal intensity value detected by the signal receiver when the signal transmitter is started;
and controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
2. The display screen status control method of claim 1, wherein the signal strength threshold comprises a first threshold, and the step of controlling the status of the display screen according to the second signal strength value and the signal strength threshold comprises:
when the display screen is in a bright screen state, judging whether the second signal intensity value is larger than the first threshold value or not;
and if the second signal intensity value is larger than the first threshold value, controlling the display screen to be extinguished.
3. The display screen status control method of claim 1, wherein the signal strength threshold comprises a second threshold, and the step of controlling the status of the display screen according to the second signal strength value and the signal strength threshold comprises:
when the display screen is in the screen-off state, judging whether the second signal intensity value is smaller than the second threshold value;
and if the second signal intensity value is smaller than the second threshold value, controlling the display screen to be lightened.
4. A display screen state control device is applied to a terminal, the terminal comprises a display screen, an ambient light sensor and a proximity sensor, the proximity sensor comprises a signal transmitter and a signal receiver, and the display screen state control device is characterized by comprising:
the detection module is used for detecting an ambient light intensity value through the ambient light sensor; judging whether the ambient light intensity value is greater than an ambient light intensity threshold value; if the ambient light intensity value is greater than the ambient light intensity threshold value, a first obtaining module obtains a first signal intensity value, wherein the first signal intensity value is a signal intensity value detected by a signal receiver when a signal transmitter is closed;
the first obtaining module is configured to obtain a first signal strength value, where the first signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned off;
a second obtaining module, configured to obtain a signal strength threshold according to the first signal strength value, where the first signal strength value is inversely proportional to the signal strength threshold;
the second obtaining module includes: determining a submodule and an obtaining submodule; the determining submodule is used for determining a signal strength interval in which the first signal strength value is located; the obtaining submodule is used for obtaining a signal intensity threshold value according to the signal intensity interval;
the obtaining submodule is specifically configured to obtain a threshold attenuation coefficient according to the signal strength interval and a preset corresponding relationship, obtain an initial signal strength threshold, and calculate a signal strength threshold according to the initial signal strength threshold and the threshold attenuation coefficient, where the preset corresponding relationship is a corresponding relationship between the signal strength interval and the threshold attenuation coefficient, the signal strength interval in the preset corresponding relationship is inversely proportional to the threshold attenuation coefficient, the initial signal strength threshold is a signal strength threshold preset in the terminal, and the signal strength threshold is a product of the initial signal strength threshold and the threshold attenuation coefficient;
the first obtaining module is further configured to obtain a second signal strength value, where the second signal strength value is a signal strength value detected by the signal receiver when the signal transmitter is turned on;
and the control module is used for controlling the state of the display screen according to the second signal intensity value and the signal intensity threshold value.
5. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the display screen state control method according to any one of claims 1 to 3.
6. A terminal characterized in that the terminal comprises a processor and a memory, the memory having stored therein a computer program, the processor being configured to execute the display screen state control method according to any one of claims 1 to 3 by calling the computer program stored in the memory.
CN201710960062.0A 2017-10-16 2017-10-16 Display screen state control method and device, storage medium and terminal Active CN107665081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710960062.0A CN107665081B (en) 2017-10-16 2017-10-16 Display screen state control method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710960062.0A CN107665081B (en) 2017-10-16 2017-10-16 Display screen state control method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN107665081A CN107665081A (en) 2018-02-06
CN107665081B true CN107665081B (en) 2020-01-14

Family

ID=61098088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710960062.0A Active CN107665081B (en) 2017-10-16 2017-10-16 Display screen state control method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN107665081B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874605B (en) * 2018-06-29 2021-09-17 Oppo广东移动通信有限公司 Display screen testing method and device, electronic equipment and storage medium
CN109510896B (en) * 2018-10-24 2020-12-01 Oppo广东移动通信有限公司 Proximity sensor selection method and device, storage medium and electronic device
CN112859050B (en) * 2019-11-27 2023-09-15 宇龙计算机通信科技(深圳)有限公司 Correction method and device for optical distance sensor, storage medium and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106940633B (en) * 2017-03-06 2019-09-13 Oppo广东移动通信有限公司 Display screen condition control method and device

Also Published As

Publication number Publication date
CN107665081A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
US10650789B2 (en) Method and apparatus for controlling display screen statuses
US10403232B2 (en) Method of controlling display screen states, and apparatus
WO2018161739A1 (en) Method and device for controlling state of display screen, storage medium, and terminal
CN106385511B (en) Sensor module, panel assembly and mobile terminal
CN106850990B (en) Display screen condition control method and device
CN110249613B (en) Display screen state control method and device, storage medium and electronic equipment
CN107064948B (en) Sensor module and mobile terminal
CN107665081B (en) Display screen state control method and device, storage medium and terminal
WO2020056939A1 (en) Under-screen optical detection system, electronic device and object approach detection method
CN106598444B (en) Control method of mobile terminal and mobile terminal
CN107959752B (en) Display screen state control method and device, storage medium and terminal
CN107909977B (en) Display screen assembly, control method and device, storage medium and electronic equipment
CN106774656B (en) Sensor assembly, cover plate, mobile terminal and terminal control method
CN107948420B (en) Display screen state control method and device, storage medium and terminal
CN106550072B (en) Cover plate assembly and terminal
CN107506049B (en) Display screen state control method and device, storage medium and terminal
CN106774653B (en) Terminal
CN106774655B (en) Cover board, sensor module, terminal and screen intensity method of adjustment
CN106534415B (en) Sensor assembly, cover plate assembly, terminal and approach state detection method
CN107844246B (en) Display screen condition control method, device, storage medium and terminal
CN206930778U (en) Sensor module and mobile terminal
CN106657624B (en) Cover plate and terminal
CN117435084A (en) Touch display and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant