CN107968883B - Distance state detection method and device, storage medium and electronic equipment - Google Patents

Distance state detection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107968883B
CN107968883B CN201711176004.5A CN201711176004A CN107968883B CN 107968883 B CN107968883 B CN 107968883B CN 201711176004 A CN201711176004 A CN 201711176004A CN 107968883 B CN107968883 B CN 107968883B
Authority
CN
China
Prior art keywords
state
display
display screen
signal
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
CN201711176004.5A
Other languages
Chinese (zh)
Other versions
CN107968883A (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 CN201711176004.5A priority Critical patent/CN107968883B/en
Publication of CN107968883A publication Critical patent/CN107968883A/en
Application granted granted Critical
Publication of CN107968883B publication Critical patent/CN107968883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The embodiment of the application provides a distance state detection method, a distance state detection device, a storage medium and electronic equipment, wherein the distance state detection method comprises the following steps: acquiring a display state of a display screen; acquiring preset signal transmitting power according to the display state; controlling a proximity sensor to transmit a detection signal at the preset signal transmission power; acquiring a reflected signal intensity value received by the proximity sensor; and judging the distance state of the electronic equipment according to the intensity value of the reflected signal. In the distance state detection method, when the display screen is in different display states, the transmitting power of the proximity sensor is different when the proximity sensor transmits the detection signal, so that the distance state between the electronic equipment and an external object can be accurately detected, the influence of the proximity sensor on the display performance of the display screen can be reduced, and the stability of the display information of the display screen is improved.

Description

Distance state detection method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for detecting a distance status, a storage medium, and an electronic device.
Background
With the rapid development of electronic technology, electronic devices such as smart phones and tablet computers have become more and more popular. Electronic equipment such as smart phones and tablet computers are provided with display screens.
In general, a proximity sensor is provided in a non-display area of an upper portion of a display screen. The proximity sensor is used for detecting a proximity state or a distant state between the electronic equipment and an external object, so that the display screen of the electronic equipment is controlled to be turned off or on.
Disclosure of Invention
The embodiment of the application provides a distance state detection method and device, a storage medium and electronic equipment, which can improve the stability of information displayed by a display screen.
The embodiment of the application provides a distance state detection method, which is applied to electronic equipment, wherein the electronic equipment comprises a display screen and a proximity sensor, the display screen comprises a display area, the orthographic projection of the proximity sensor on the display screen is positioned in the display area, and the distance state detection method comprises the following steps:
acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state;
acquiring preset signal transmitting power according to the display state;
controlling the proximity sensor to transmit a detection signal at the preset signal transmission power;
acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object;
and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state.
The embodiment of the present application further provides a distance state detection device, is applied to electronic equipment, electronic equipment includes display screen and proximity sensor, the display screen includes the display area, proximity sensor is in orthographic projection on the display screen is located the display area, distance state detection device includes:
the display device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the display state of a display screen, and the display state comprises a screen lightening state and a screen extinguishing state;
the second acquisition module is used for acquiring preset signal transmitting power according to the display state;
the control module is used for controlling the proximity sensor to transmit a detection signal at the preset signal transmitting power;
the third acquisition module is used for acquiring the intensity value of a reflected signal received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object;
and the judging module is used for judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state.
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 is caused to execute the distance state detection method.
The embodiment of the application further provides an electronic device, which comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the distance state detection method by calling the computer program stored in the memory.
The distance state detection method provided by the embodiment of the application comprises the following steps: acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state; acquiring preset signal transmitting power according to the display state; controlling a proximity sensor to transmit a detection signal at the preset signal transmission power; acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object; and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state. In the distance state detection method, when the display screen is in different display states, the transmitting power of the proximity sensor is different when the proximity sensor transmits the detection signal, so that the distance state between the electronic equipment and an external object can be accurately detected, the influence of the proximity sensor on the display performance of the display screen can be reduced, and the stability of the display information of the display screen is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of a first distance state detection method according to an embodiment of the present disclosure.
Fig. 4 is a schematic flowchart of a second distance status detection method according to an embodiment of the present application.
Fig. 5 is a schematic flowchart of a third method for detecting a distance state according to an embodiment of the present disclosure.
Fig. 6 is a fourth flowchart illustrating a distance status detection method according to an embodiment of the present application.
Fig. 7 is a fifth flowchart illustrating a distance status detection method according to an embodiment of the present application.
Fig. 8 is a sixth flowchart illustrating a distance status detection method according to an embodiment of the present application.
Fig. 9 is a seventh flowchart illustrating a distance status detection method according to an embodiment of the present application.
Fig. 10 is a schematic view of an application scenario of the distance state detection method according to the embodiment of the present application.
Fig. 11 is a schematic structural diagram of a distance status detection apparatus according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of a second distance status detecting device according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of a third distance status detecting device according to an embodiment of the present application.
Fig. 14 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 15 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, electronic device, system comprising a list of steps is not necessarily limited to those steps or modules or units explicitly listed, may include steps or modules or units not explicitly listed, and may include other steps or modules or units inherent to such process, method, apparatus, electronic device, or system.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 includes a cover plate 10, a display 20, a circuit board 30, a housing 40, and a proximity sensor 50 mounted inside the housing 40.
The cover plate 10 is mounted to the display screen 20 to cover the display screen 20. The cover plate 10 may be a transparent glass cover plate. In some embodiments, the cover plate 10 may be a glass cover plate made of a material such as sapphire.
The display screen 20 is mounted on the housing 40 to form a display surface of the electronic device 100. In some embodiments, the display screen 20 includes a display area 21 and a non-display area 22. The display area 21 is used for displaying information such as images and texts. The non-display area 22 does not display information. The non-display area 22 may be used to set some functional components, such as a camera, a fingerprint recognition module, and the like. In some embodiments, the non-display area 22 may include a plurality of areas spaced apart from each other. For example, the non-display area 22 may include two areas located at the upper and lower portions of the display area 21.
In some embodiments, the display screen 20 may be displayed full screen. That is, the display 20 includes only the display area 21 and does not include the non-display area, as shown in fig. 2.
In some embodiments, the Display 20 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display.
The circuit board 30 is mounted inside the housing 40. The circuit board 30 may be a motherboard of the electronic device 100. Functional components such as a camera and a processor may be integrated on the circuit board 30. Meanwhile, the display screen 20 may be electrically connected to the circuit board 30.
In some embodiments, display control circuitry is disposed on the circuit board 30. The display control circuit outputs an electrical signal to the display screen 20 to control the display screen 20 to display information.
The housing 40 is used to form the outer contour of the electronic device 100. The housing 40 may be made of plastic or metal. The housing 40 may be integrally formed.
The proximity sensor 50 is mounted inside the housing 40. Meanwhile, the proximity sensor 50 is electrically connected to the circuit board 30. For example, the proximity sensor 50 may be integrated on the circuit board 30. The proximity sensor 50 may be an infrared sensor, an ultrasonic sensor, or the like. The proximity sensor 50 is used to detect a distance state between the electronic apparatus 100 and an external object (e.g., a user's face). The distance state includes an approaching state and a departing state. When the electronic device 100 performs some functions, for example, a call function, the electronic device 100 may control the display screen 20 to turn off when the electronic device 100 is in a close state with the face of the user, so as to prevent a user from performing a wrong operation; when the electronic device 100 is away from the face of the user, the electronic device 100 may control the display screen 20 to be bright to perform a normal display function.
In the present embodiment, the proximity sensor 50 may be located below the display area 21 of the display screen 20. That is, the orthographic projection of the proximity sensor 50 on the display screen 20 is located at the display area 21 of said display screen 20. It is understood that the detection signal emitted from the proximity sensor 50 is transmitted to the outside after penetrating the display area 21 of the display screen 20. The detection signal is reflected by an external object to generate a reflection signal, and the reflection signal penetrates through the display area 21 of the display screen 20 and enters the proximity sensor 50. Thus, the proximity sensor 50 may detect the intensity value of the received reflected signal.
When the proximity sensor 50 detects a distance state between the electronic device 100 and an external object (e.g., for a face), a detection signal emitted by the proximity sensor 50 penetrates the display area 21 of the display screen 20, and a reflection signal generated by the detection signal being reflected by the external object also penetrates the display area 21 of the display screen 20, so that the proximity sensor 50 may affect the display performance of the display screen 20 during operation, and the display area 21 of the display screen 20 may flicker.
The embodiment of the application provides a distance state detection method, which can be applied to electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. The electronic device is the electronic device 100 according to any of the above embodiments. As shown in fig. 3, the distance state detection method may include the following steps:
s110, obtaining the display state of the display screen, wherein the display state comprises a screen-on state and a screen-off state.
The electronic device may obtain a display state of the display screen. The display state comprises a screen lightening state and a screen extinguishing state. When the display screen is in a bright screen state, the display screen can display information such as images and texts, can also sense touch operation of a user, and executes corresponding functions. When the screen is in the screen-off state, the display screen does not display information and does not respond to the touch operation of the user.
It should be noted that when the display screen is in the screen-off state, the electronic device can normally perform other functions. For example, the electronic device may play audio, may exchange data with a server, may perform voice calls with other users, and so on.
And S120, acquiring preset signal transmitting power according to the display state.
After the electronic equipment acquires the display state of the display screen, the preset signal transmitting power can be acquired according to the display state. The preset signal transmission power may be a power value pre-stored in the electronic device, for example, 100mw (milliwatt). Wherein a plurality of different power values may be pre-stored in the electronic device. When the display screen is in different display states, the preset signal transmitting power acquired by the electronic equipment is different.
And S130, controlling the proximity sensor to transmit a detection signal at the preset signal transmission power.
After the electronic equipment acquires the preset signal transmitting power, the electronic equipment controls the proximity sensor to transmit the detection signal at the preset signal transmitting power. Wherein the electronic device may control the transmit power of the proximity sensor by controlling the current of the proximity sensor.
The detection signal may be an infrared ray, an ultrasonic wave, or the like. The signal type of the detection signal depends on the type of the proximity sensor.
And S140, obtaining the intensity value of the reflected signal received by the proximity sensor, wherein the reflected signal is generated by the detection signal being reflected by an external object.
Referring to fig. 10, after the proximity sensor emits a detection signal, the detection signal penetrates a display area of the display screen and is then emitted to the outside. When the detection signal contacts an external object (e.g., a user's face), a reflected signal is generated. The signal type of the reflected signal is the same as the signal type of the probe signal. The reflected signal penetrates through the display area of the display screen and enters the proximity sensor. The proximity sensor may detect an intensity value of the received reflected signal.
At this time, the electronic device may acquire a reflected signal intensity value received by the proximity sensor.
S150, judging the distance state of the electronic equipment according to the reflection signal intensity value, wherein the distance state comprises a close state and a far state.
After the electronic equipment obtains the intensity value of the reflected signal received by the proximity sensor, the distance state of the electronic equipment is judged according to the intensity value of the reflected signal. The distance state is a distance state between the electronic device and an external object (e.g., a user's face). The distance state includes an approaching state and a departing state.
Then, the electronic device can control the display screen to be turned off or on according to the judged distance state. For example, in the process of a call of the electronic device, when the display screen is in a bright screen state, if the electronic device is in a close state, the electronic device may control the display screen to be off; when the display screen is in the screen-off state, if the electronic equipment is in the far state, the electronic equipment can control the display screen to be bright.
In some embodiments, as shown in fig. 4, the step S120 of obtaining the preset signal transmission power according to the display state includes the following steps:
s121, when the display state of the display screen is a bright screen state, acquiring first signal transmitting power;
and S122, when the display state of the display screen is the screen-off state, acquiring second signal transmitting power, wherein the first signal transmitting power is smaller than the second signal transmitting power.
The electronic device may store the first signal transmission power and the second signal transmission power in advance. The first signal transmitting power corresponds to the bright screen state of the display screen. The second signal transmitting power corresponds to the screen-off state of the display screen. Wherein the first signal transmission power is less than the second signal transmission power. For example, the first signal transmission power is 50mw, and the second signal transmission power is 150 mw.
After the electronic equipment acquires the display state of the display screen, if the display state is a bright screen state, the electronic equipment calls the stored first signal transmitting power; and if the display state is the screen-off state, the electronic equipment calls the stored second signal transmission power.
The display of the display screen is influenced in the working process of the proximity sensor, so that the display screen flickers. It will be appreciated that the degree of flicker of the display screen is related to the transmission power at which the proximity sensor transmits the detection signal. The greater the transmit power of the proximity sensor, the more severe the flicker caused to the display screen. The smaller the transmit power of the proximity sensor, the less flicker is caused to the display screen. When the proximity sensor only slightly flickers the display screen, and the user cannot detect the slight flickers of the display screen, it can be considered that the influence of the proximity sensor on the display screen is eliminated at this time.
In some embodiments, as shown in fig. 5, the step S121 of acquiring the first signal transmission power when the display state of the display screen is a bright screen state includes the following steps:
s1211, when the display state of the display screen is a bright screen state, acquiring the brightness of the display screen;
s1212, determining a brightness interval where the brightness is located;
s1213, acquiring the first signal emission power according to the brightness interval.
It should be noted that when the display screens are at different brightness, the perception of the user is different for the same degree of flicker. For example, when the brightness of the display screen is bright, the user is sensitive to the flicker of the display screen; when the brightness of the display screen is dark, the flicker of the display screen is not easy to be sensed by a user. That is, for the same degree of flicker, the user can perceive when the brightness of the display screen is bright, and the user cannot perceive when the brightness of the display screen is dark.
The electronic device may pre-store a plurality of brightness intervals for the brightness of the display screen, and set a corresponding first signal emission power for each brightness interval. For example, the electronic device may store three luminance intervals (40, 60), (60, 80), (80, 100), and the like, and the first signal emission power corresponding to the three luminance intervals (40, 60), (60, 80), (80, 100), and the like is 70mw, 60mw, and 50mw, respectively.
When the display state of the display screen is a bright screen state, the electronic device can acquire the brightness of the display screen. Then, the electronic device determines a brightness interval where the brightness is located, and acquires corresponding first signal emission power according to the determined brightness interval.
For example, the brightness of the display screen is 70, and the brightness interval of the display screen is (60, 80).
In some embodiments, as shown in fig. 6, the step S121 of acquiring the first signal transmission power when the display state of the display screen is a bright screen state includes the following steps:
s1214, when the display state of the display screen is a bright screen state, acquiring the display color of a preset area of the display screen, wherein the preset area is an area, which is just opposite to the proximity sensor, on the display screen;
and S1215, acquiring the first signal emission power according to the display color.
It should be noted that when the display screen displays different colors, the perception of the user is different for the same degree of flicker. For example, when the display screen displays red, the user is sensitive to the flickering of the display screen; when the display screen displays white, the flicker of the display screen is not easy to be sensed by the user. That is, for the same degree of flicker, the user can perceive when the display screen displays red, and the user cannot perceive when the display screen displays white.
It will be appreciated that the flicker caused to the display screen by the proximity sensor is only present in a predetermined area of the display screen. The preset area is an area which is right opposite to the proximity sensor on the display screen. For the area outside the preset area on the display screen, the proximity sensor cannot cause influence, and the flicker condition does not exist.
The electronic device may store different first signal emission powers in advance for different display colors of the preset area of the display screen. For example, the first signal emission power is set to be 75mw, 65mw and 55mw respectively for displaying red, blue and white colors in the preset area of the display screen.
When the display state of the display screen is a bright screen state, the electronic device may acquire the display color of the preset area of the display screen. Then, the first signal emission power is obtained according to the display color.
For example, if the display color of the preset area of the display screen is red, the first signal emission power acquired by the electronic device is 75 mw.
In some embodiments, when the display screen is in a bright screen state, the electronic device may obtain the brightness of the display screen and the display color of the preset area of the display screen, and obtain the first signal emission power according to the brightness and the display color.
In some embodiments, as shown in fig. 7, the step S150 of determining the distance state of the electronic device according to the reflected signal strength value includes the following steps:
s151, acquiring a signal intensity threshold according to the display state;
s152, judging the distance state of the electronic equipment according to the signal intensity threshold value and the reflected signal intensity value.
Wherein, the signal intensity threshold value can be stored in the electronic equipment in advance. The signal strength threshold may be a signal strength value pre-stored in the electronic device. The signal intensity threshold is used for judging whether the electronic equipment is in a close state or a far state with an external object.
And after the electronic equipment acquires the intensity value of the reflected signal, further acquiring a signal intensity threshold value stored in the electronic equipment. The electronic device may then compare the reflected signal strength value to the signal strength threshold value to obtain a magnitude relationship between the reflected signal strength value and the signal strength threshold value. Then, the electronic equipment judges the distance state of the electronic equipment according to the magnitude relation between the reflected signal intensity value and the signal intensity threshold value.
In some embodiments, as shown in fig. 8, the step S151 of obtaining the signal strength threshold according to the display state includes the following steps:
s1511, when the display state of the display screen is a bright screen state, acquiring a first threshold;
step S152, determining a distance state of the electronic device according to the signal strength threshold and the reflected signal strength value, includes the following steps:
s1521, determining whether the reflected signal strength value is greater than the first threshold value;
s1522, if the intensity value of the reflected signal is greater than the first threshold, determining that the electronic device is in a proximity state.
Wherein the signal strength threshold comprises a first threshold. The first threshold value is a signal intensity value stored in the electronic equipment in advance. For example, the first threshold may be 200. The first threshold is used for triggering and controlling the display screen to be turned off when the display screen is in a bright screen state.
After the electronic equipment acquires the intensity value of the reflection signal, if the display screen of the electronic equipment is in a bright screen state, the electronic equipment acquires the first threshold value. The electronic device then compares the reflected signal strength value to the first threshold to determine whether the reflected signal strength value is greater than the first threshold. And if the intensity value of the reflected signal is greater than the first threshold value, judging that the electronic equipment is in the approaching state. At this time, the electronic device may control the display screen to turn off. If the reflected signal strength value is less than or equal to the first threshold, the electronic device may terminate the process.
For example, the electronic device acquires a reflected signal strength value of 300. The reflected signal strength value is greater than the first threshold 200. At this time, the distance state of the electronic device is the proximity state. The electronic device may control the display screen to turn off.
In some embodiments, as shown in fig. 9, the step S151 of obtaining the signal strength threshold according to the display state includes the following steps:
s1512, when the display state of the display screen is a screen-off state, acquiring a second threshold;
step S152, determining a distance state of the electronic device according to the signal strength threshold and the reflected signal strength value, includes the following steps:
s1523, determining whether the reflected signal strength value is smaller than the second threshold;
s1524, if the intensity value of the reflected signal is smaller than the second threshold, determining that the electronic device is in a remote state.
Wherein the signal strength threshold comprises a second threshold. The second threshold is a signal strength value pre-stored in the electronic device. For example, the second threshold may be 600. And the second threshold is used for triggering and controlling the display screen to be lightened when the display screen is in a screen-off state.
After the electronic equipment acquires the intensity value of the reflected signal, if the display screen of the electronic equipment is in a screen-off state, the electronic equipment acquires the second threshold value. The electronic device then compares the reflected signal strength value to the second threshold to determine whether the reflected signal strength value is less than the second threshold. And if the intensity value of the reflected signal is smaller than the second threshold value, determining that the electronic equipment is in a far state. At this time, the electronic device may control the display screen to be bright. If the reflected signal strength value is greater than or equal to the second threshold value, the electronic device may terminate the process.
For example, the electronic device acquires a reflected signal strength value of 500. The reflected signal strength value is less than the second threshold 600. At this time, the distance state of the electronic device is the distant state. The electronic device can control the display screen to be bright.
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.
As can be seen from the above, the distance state detection method provided in the embodiment of the present application includes: acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state; acquiring preset signal transmitting power according to the display state; controlling a proximity sensor to transmit a detection signal at the preset signal transmission power; acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object; and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state. In the distance state detection method, when the display screen is in different display states, the transmitting power of the proximity sensor is different when the proximity sensor transmits the detection signal, so that the distance state between the electronic equipment and an external object can be accurately detected, the influence of the proximity sensor on the display performance of the display screen can be reduced, and the stability of the display information of the display screen is improved.
The embodiment of the application further provides a distance state detection device, the distance state detection device can be integrated in electronic equipment, and the electronic equipment can be equipment such as a smart phone and a tablet computer. The electronic device is the electronic device 100 according to any of the above embodiments.
As shown in fig. 11, the distance state detecting device 200 may include: a first obtaining module 201, a second obtaining module 202, a control module 203, a third obtaining module 204 and a judging module 205.
The first obtaining module 201 is configured to obtain a display state of a display screen, where the display state includes a screen-on state and a screen-off state.
The first obtaining module 201 may obtain a display state of the display screen. The display state comprises a screen lightening state and a screen extinguishing state. When the display screen is in a bright screen state, the display screen can display information such as images and texts, can also sense touch operation of a user, and executes corresponding functions. When the screen is in the screen-off state, the display screen does not display information and does not respond to the touch operation of the user.
It should be noted that when the display screen is in the screen-off state, the electronic device can normally perform other functions. For example, the electronic device may play audio, may exchange data with a server, may perform voice calls with other users, and so on.
A second obtaining module 202, configured to obtain a preset signal transmitting power according to the display state.
After the first obtaining module 201 obtains the display state of the display screen, the second obtaining module 202 may obtain the preset signal transmitting power according to the display state. The preset signal transmission power may be a power value pre-stored in the electronic device, for example, 100mw (milliwatt). Wherein a plurality of different power values may be pre-stored in the electronic device. When the display screen is in different display states, the preset signal transmitting powers acquired by the second acquiring module 202 are different.
And the control module 203 is used for controlling the proximity sensor to transmit the detection signal at the preset signal transmission power.
After the second obtaining module 202 obtains the preset signal transmitting power, the control module 203 controls the proximity sensor to transmit the detection signal at the preset signal transmitting power. Wherein the control module 203 may control the transmit power of the proximity sensor by controlling the current of the proximity sensor.
The detection signal may be an infrared ray, an ultrasonic wave, or the like. The signal type of the detection signal depends on the type of the proximity sensor.
A third obtaining module 204, configured to obtain a strength value of a reflected signal received by the proximity sensor, where the reflected signal is a reflected signal generated by the detection signal being reflected by an external object.
After the proximity sensor transmits the detection signal, the detection signal penetrates through a display area of the display screen and is then transmitted to the outside. When the detection signal contacts an external object (e.g., a user's face), a reflected signal is generated. The signal type of the reflected signal is the same as the signal type of the probe signal. The reflected signal penetrates through the display area of the display screen and enters the proximity sensor. The proximity sensor may detect an intensity value of the received reflected signal.
At this time, the third obtaining module 204 may obtain the strength value of the reflected signal received by the proximity sensor.
The determining module 205 is configured to determine a distance state of the electronic device according to the reflected signal strength value, where the distance state includes a close state and a far state.
After the third obtaining module 204 obtains the intensity value of the reflected signal received by the proximity sensor, the determining module 205 determines the distance state of the electronic device according to the intensity value of the reflected signal. The distance state is a distance state between the electronic device and an external object (e.g., a user's face). The distance state includes an approaching state and a departing state.
Subsequently, the electronic device may control the display screen to turn off or turn on according to the distance status determined by the determining module 205. For example, in the process of a call of the electronic device, when the display screen is in a bright screen state, if the electronic device is in a close state, the electronic device may control the display screen to be off; when the display screen is in the screen-off state, if the electronic equipment is in the far state, the electronic equipment can control the display screen to be bright.
In some embodiments, as shown in fig. 12, the second obtaining module 202 includes: a first acquisition submodule 2021 and a second acquisition submodule 2022.
The first obtaining sub-module 2021, configured to obtain a first signal transmitting power when the display state of the display screen is a bright screen state;
the second obtaining sub-module 2022 is configured to obtain a second signal transmission power when the display state of the display screen is an off-screen state, where the first signal transmission power is smaller than the second signal transmission power.
The electronic device may store the first signal transmission power and the second signal transmission power in advance. The first signal transmitting power corresponds to the bright screen state of the display screen. The second signal transmitting power corresponds to the screen-off state of the display screen. Wherein the first signal transmission power is less than the second signal transmission power. For example, the first signal transmission power is 50mw, and the second signal transmission power is 150 mw.
After the first obtaining module 201 obtains the display state of the display screen, if the display state is a bright screen state, the first obtaining sub-module 2021 obtains the stored first signal transmitting power; if the display state is the screen-off state, the second obtaining sub-module 2022 obtains the stored second signal transmission power.
The display of the display screen is influenced in the working process of the proximity sensor, so that the display screen flickers. It will be appreciated that the degree of flicker of the display screen is related to the transmission power at which the proximity sensor transmits the detection signal. The greater the transmit power of the proximity sensor, the more severe the flicker caused to the display screen. The smaller the transmit power of the proximity sensor, the less flicker is caused to the display screen. When the proximity sensor only slightly flickers the display screen, and the user cannot detect the slight flickers of the display screen, it can be considered that the influence of the proximity sensor on the display screen is eliminated at this time.
In some embodiments, the first obtaining sub-module 2021 is configured to perform the following steps:
when the display state of the display screen is a bright screen state, acquiring the brightness of the display screen;
determining a brightness interval in which the brightness is located;
and acquiring first signal transmitting power according to the brightness interval.
It should be noted that when the display screens are at different brightness, the perception of the user is different for the same degree of flicker. For example, when the brightness of the display screen is bright, the user is sensitive to the flicker of the display screen; when the brightness of the display screen is dark, the flicker of the display screen is not easy to be sensed by a user. That is, for the same degree of flicker, the user can perceive when the brightness of the display screen is bright, and the user cannot perceive when the brightness of the display screen is dark.
The electronic device may pre-store a plurality of brightness intervals for the brightness of the display screen, and set a corresponding first signal emission power for each brightness interval. For example, the electronic device may store three luminance intervals (40, 60), (60, 80), (80, 100), and the like, and the first signal emission power corresponding to the three luminance intervals (40, 60), (60, 80), (80, 100), and the like is 70mw, 60mw, and 50mw, respectively.
When the display state of the display screen is a bright screen state, the first obtaining sub-module 2021 may obtain the brightness of the display screen. Subsequently, the first obtaining sub-module 2021 determines a brightness interval in which the brightness is located, and obtains a corresponding first signal transmission power according to the determined brightness interval.
For example, the brightness of the display screen is 70, and the brightness interval of the display screen is (60, 80).
In some embodiments, the first obtaining sub-module 2021 is configured to perform the following steps:
when the display state of the display screen is a bright screen state, acquiring the display color of a preset area of the display screen, wherein the preset area is an area, which is just opposite to the proximity sensor, on the display screen;
and acquiring first signal transmitting power according to the display color.
It should be noted that when the display screen displays different colors, the perception of the user is different for the same degree of flicker. For example, when the display screen displays red, the user is sensitive to the flickering of the display screen; when the display screen displays white, the flicker of the display screen is not easy to be sensed by the user. That is, for the same degree of flicker, the user can perceive when the display screen displays red, and the user cannot perceive when the display screen displays white.
It will be appreciated that the flicker caused to the display screen by the proximity sensor is only present in a predetermined area of the display screen. The preset area is an area which is right opposite to the proximity sensor on the display screen. For the area outside the preset area on the display screen, the proximity sensor cannot cause influence, and the flicker condition does not exist.
The electronic device may store different first signal emission powers in advance for different display colors of the preset area of the display screen. For example, the first signal emission power is set to be 75mw, 65mw and 55mw respectively for displaying red, blue and white colors in the preset area of the display screen.
When the display state of the display screen is a bright screen state, the first obtaining sub-module 2021 may obtain the display color of the preset region of the display screen. Then, the first signal emission power is obtained according to the display color.
For example, if the display color of the preset area of the display screen is red, the first obtaining sub-module 2021 obtains the first signal transmission power of 75 mw.
In some embodiments, when the display screen is in a bright screen state, the first obtaining sub-module 2021 may obtain the brightness of the display screen and the display color of the preset area of the display screen, and obtain the first signal emission power according to the brightness and the display color.
In some embodiments, as shown in fig. 13, the determining module 205 comprises: a third obtaining sub-module 2051 and a judging sub-module 2052.
A third obtaining submodule 2051, configured to obtain a signal strength threshold according to the display state;
and a judgment submodule 2052, configured to judge a distance state of the electronic device according to the signal strength threshold and the reflected signal strength value.
Wherein, the signal intensity threshold value can be stored in the electronic equipment in advance. The signal strength threshold may be a signal strength value pre-stored in the electronic device. The signal intensity threshold is used for judging whether the electronic equipment is in a close state or a far state with an external object.
After the third obtaining module 204 obtains the intensity value of the reflected signal, the third obtaining submodule 2051 obtains a signal intensity threshold stored in the electronic device. Subsequently, the determining sub-module 2052 may compare the reflected signal strength value with the signal strength threshold value to obtain a magnitude relationship between the reflected signal strength value and the signal strength threshold value. Subsequently, the determining sub-module 2052 determines the distance status of the electronic device according to the magnitude relationship between the intensity value of the reflected signal and the threshold value of the intensity of the signal.
In some embodiments, the third obtaining submodule 2051 is configured to perform the following steps:
when the display state of the display screen is a bright screen state, acquiring a first threshold value;
the decision sub-module 2052 is configured to perform the following steps:
judging whether the intensity value of the reflected signal is greater than the first threshold value;
and if the intensity value of the reflected signal is greater than the first threshold value, determining that the electronic equipment is in the approaching state.
Wherein the signal strength threshold comprises a first threshold. The first threshold value is a signal intensity value stored in the electronic equipment in advance. For example, the first threshold may be 200. The first threshold is used for triggering and controlling the display screen to be turned off when the display screen is in a bright screen state.
After the third obtaining module 204 obtains the intensity value of the reflected signal, if the display screen of the electronic device is in a bright screen state, the third obtaining sub-module 2051 obtains the first threshold. Subsequently, the decision sub-module 2052 compares the reflected signal strength value with the first threshold to determine whether the reflected signal strength value is greater than the first threshold. If the intensity value of the reflected signal is greater than the first threshold, the judgment sub-module 2052 judges that the electronic device is in the proximity state. At this time, the electronic device may control the display screen to turn off. If the reflected signal strength value is less than or equal to the first threshold, the process may be terminated.
For example, the third obtaining module 204 obtains the strength value of the reflected signal as 300. The reflected signal strength value is greater than the first threshold 200. At this time, the distance state of the electronic device is the proximity state. The electronic device may control the display screen to turn off.
In some embodiments, the third obtaining submodule 2051 is configured to perform the following steps:
when the display state of the display screen is the screen-off state, acquiring a second threshold value;
the decision sub-module 2052 is configured to perform the following steps:
judging whether the intensity value of the reflected signal is smaller than the second threshold value;
and if the intensity value of the reflected signal is smaller than the second threshold value, determining that the electronic equipment is in a far state.
Wherein the signal strength threshold comprises a second threshold. The second threshold is a signal strength value pre-stored in the electronic device. For example, the second threshold may be 600. And the second threshold is used for triggering and controlling the display screen to be lightened when the display screen is in a screen-off state.
After the third obtaining module 204 obtains the intensity value of the reflected signal, if the display screen of the electronic device is in a screen-off state, the third obtaining sub-module 2051 obtains the second threshold. Subsequently, the determination sub-module 2052 compares the reflected signal strength value with the second threshold to determine whether the reflected signal strength value is less than the second threshold. If the intensity value of the reflected signal is smaller than the second threshold, the judgment sub-module 2052 judges that the electronic device is in a remote state. At this time, the electronic device may control the display screen to be bright. If the reflected signal strength value is greater than or equal to the second threshold value, the process may be terminated.
For example, the third obtaining module 204 obtains the strength value of the reflected signal as 500. The reflected signal strength value is less than the second threshold 600. At this time, the distance state of the electronic device is the distant state. The electronic device can control the display screen to be bright.
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, in the distance state detection apparatus 200 provided in the embodiment of the present application, the first obtaining module 201 obtains the display state of the display screen, where the display state includes a screen-on state and a screen-off state; the second obtaining module 202 obtains a preset signal transmitting power according to the display state; the control module 203 controls the proximity sensor to transmit a detection signal at the preset signal transmission power; the third obtaining module 204 obtains a reflected signal intensity value received by the proximity sensor, where the reflected signal is a reflected signal generated by the detection signal being reflected by an external object; the determining module 205 determines a distance state of the electronic device according to the intensity value of the reflected signal, where the distance state includes a close state and a far state. The distance state detection device can acquire different transmitting powers according to different display states of the display screen, and controls the proximity sensor to transmit the detection signal according to the acquired transmitting power, so that the distance state between the electronic equipment and an external object can be accurately detected, the influence of the proximity sensor on the display performance of the display screen can be reduced, and the stability of information displayed by the display screen is improved.
The embodiment of the application also provides the electronic equipment. The electronic equipment comprises a display screen and a proximity sensor, wherein the display screen comprises a display area, and the orthographic projection of the proximity sensor on the display screen is positioned in the display area. The electronic device can be a smart phone, a tablet computer and the like. As shown in fig. 14, the electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302.
The processor 301 is a control center of the electronic device 300, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more processes of the computer program into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, so as to implement various functions:
acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state;
acquiring preset signal transmitting power according to the display state;
controlling the proximity sensor to transmit a detection signal at the preset signal transmission power;
acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object;
and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state.
In some embodiments, the preset signal transmitting power includes a first signal transmitting power and a second signal transmitting power, and when the preset signal transmitting power is obtained according to the display state, the processor 301 performs the following steps:
when the display state of the display screen is a bright screen state, acquiring first signal transmitting power;
and when the display state of the display screen is the screen-off state, acquiring second signal transmitting power, wherein the first signal transmitting power is smaller than the second signal transmitting power.
In some embodiments, when the display state of the display screen is a bright screen state and the first signal transmission power is acquired, the processor 301 performs the following steps:
when the display state of the display screen is a bright screen state, acquiring the brightness of the display screen;
determining a brightness interval in which the brightness is located;
and acquiring first signal transmitting power according to the brightness interval.
In some embodiments, when the display state of the display screen is a bright screen state and the first signal transmission power is acquired, the processor 301 performs the following steps:
when the display state of the display screen is a bright screen state, acquiring the display color of a preset area of the display screen, wherein the preset area is an area, which is just opposite to the proximity sensor, on the display screen;
and acquiring first signal transmitting power according to the display color.
In some embodiments, when determining the distance status of the electronic device according to the reflected signal strength value, the processor 301 performs the following steps:
acquiring a signal intensity threshold according to the display state;
and judging the distance state of the electronic equipment according to the signal intensity threshold value and the reflected signal intensity value.
In some embodiments, the signal strength threshold comprises a first threshold, and when the signal strength threshold is obtained according to the display state, the processor 301 performs the following steps:
when the display state of the display screen is a bright screen state, acquiring a first threshold value;
when the distance state of the electronic device is determined according to the signal strength threshold and the reflected signal strength value, the processor 301 executes the following steps:
judging whether the intensity value of the reflected signal is greater than the first threshold value;
and if the intensity value of the reflected signal is greater than the first threshold value, determining that the electronic equipment is in the approaching state.
In some embodiments, the signal strength threshold comprises a second threshold, and when the signal strength threshold is obtained according to the display state, the processor 301 performs the following steps:
when the display state of the display screen is the screen-off state, acquiring a second threshold value;
when the distance state of the electronic device is determined according to the signal strength threshold and the reflected signal strength value, the processor 301 executes the following steps:
judging whether the intensity value of the reflected signal is smaller than the second threshold value;
and if the intensity value of the reflected signal is smaller than the second threshold value, determining that the electronic equipment is in a far state.
Memory 302 may be used to store computer programs and data. The memory 302 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
In some embodiments, as shown in fig. 15, the electronic device 300 further comprises: radio frequency circuit 303, display screen 304, control circuit 305, input unit 306, audio circuit 307, sensor 308, and power supply 309. The processor 301 is electrically connected to the rf circuit 303, the display 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.
The radio frequency circuit 303 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 304 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 305 is electrically connected to the display screen 304, and is used for controlling the display screen 304 to display information.
The input unit 306 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 306 may include a fingerprint recognition module.
Audio circuitry 307 may provide an audio interface between the user and the electronic device through a speaker, microphone.
The sensor 308 is used to collect external environmental information. The sensor 308 may include one or more of an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 309 is used to power the various components of the electronic device 300. In some embodiments, the power source 309 may be logically coupled to the processor 301 through a power management system, such that functions to manage charging, discharging, and power consumption management are performed through the power management system.
Although not shown in fig. 15, the electronic device 300 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state; acquiring preset signal transmitting power according to the display state; controlling a proximity sensor to transmit a detection signal at the preset signal transmission power; acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object; and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state. The electronic equipment that this application embodiment provided, when the display screen is in the display state of difference, the transmitting power when proximity sensor transmission detected the signal is different to both can guarantee that electronic equipment can accurately detect and the outside object between the distance state, can reduce the influence that proximity sensor caused to the display performance of display screen again, improve the stability of display screen display information.
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 distance state detection 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 distance state detection method, the distance state detection device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiments 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 (11)

1. A distance state detection method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a display screen and a proximity sensor, the display screen comprises a display area, the orthographic projection of the proximity sensor on the display screen is positioned in the display area, and the distance state detection method comprises the following steps:
acquiring display states of a display screen, wherein the display states comprise a screen-on state and a screen-off state;
acquiring preset signal transmitting power according to the display state, wherein the preset signal transmitting power comprises the following steps: when the display state of the display screen is a bright screen state, acquiring first signal transmitting power; when the display state of the display screen is a screen-off state, acquiring second signal transmitting power, wherein the first signal transmitting power is smaller than the second signal transmitting power;
controlling the proximity sensor to transmit a detection signal at the preset signal transmission power;
acquiring a reflected signal intensity value received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object;
and judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state.
2. The distance state detection method according to claim 1, wherein the obtaining of the first signal transmission power when the display state of the display screen is a bright screen state comprises:
when the display state of the display screen is a bright screen state, acquiring the brightness of the display screen;
determining a brightness interval in which the brightness is located;
and acquiring first signal transmitting power according to the brightness interval.
3. The distance state detection method according to claim 1, wherein the obtaining of the first signal transmission power when the display state of the display screen is a bright screen state comprises:
when the display state of the display screen is a bright screen state, acquiring the display color of a preset area of the display screen, wherein the preset area is an area, which is just opposite to the proximity sensor, on the display screen;
and acquiring first signal transmitting power according to the display color.
4. The distance state detection method according to any one of claims 1 to 3, wherein the step of determining the distance state of the electronic device from the reflected signal intensity value comprises:
acquiring a signal intensity threshold according to the display state;
and judging the distance state of the electronic equipment according to the signal intensity threshold value and the reflected signal intensity value.
5. The distance status detecting method according to claim 4, wherein the signal strength threshold value comprises a first threshold value, and the step of obtaining the signal strength threshold value according to the display status comprises:
when the display state of the display screen is a bright screen state, acquiring a first threshold value;
the step of judging the distance state of the electronic device according to the signal intensity threshold and the reflected signal intensity value comprises:
judging whether the intensity value of the reflected signal is greater than the first threshold value;
and if the intensity value of the reflected signal is greater than the first threshold value, determining that the electronic equipment is in the approaching state.
6. The distance status detecting method according to claim 4, wherein the signal strength threshold value comprises a second threshold value, and the step of obtaining the signal strength threshold value according to the display status comprises:
when the display state of the display screen is the screen-off state, acquiring a second threshold value;
the step of judging the distance state of the electronic device according to the signal intensity threshold and the reflected signal intensity value comprises:
judging whether the intensity value of the reflected signal is smaller than the second threshold value;
and if the intensity value of the reflected signal is smaller than the second threshold value, determining that the electronic equipment is in a far state.
7. A distance state detection device is applied to electronic equipment, and is characterized in that the electronic equipment comprises a display screen and a proximity sensor, the display screen comprises a display area, the orthographic projection of the proximity sensor on the display screen is positioned in the display area, and the distance state detection device comprises:
the display device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the display state of a display screen, and the display state comprises a screen lightening state and a screen extinguishing state;
the second obtaining module is used for obtaining preset signal transmitting power according to the display state, and comprises: when the display state of the display screen is a bright screen state, acquiring first signal transmitting power; when the display state of the display screen is a screen-off state, acquiring second signal transmitting power, wherein the first signal transmitting power is smaller than the second signal transmitting power;
the control module is used for controlling the proximity sensor to transmit a detection signal at the preset signal transmitting power;
the third acquisition module is used for acquiring the intensity value of a reflected signal received by the proximity sensor, wherein the reflected signal is a reflected signal generated by the detection signal being reflected by an external object;
and the judging module is used for judging the distance state of the electronic equipment according to the intensity value of the reflected signal, wherein the distance state comprises a close state and a far state.
8. The distance status detecting device according to claim 7, wherein when the display status of the display screen is a bright screen status and the first signal transmission power is acquired, the second acquiring module is configured to:
when the display state of the display screen is a bright screen state, acquiring the brightness of the display screen;
determining a brightness interval in which the brightness is located;
and acquiring first signal transmitting power according to the brightness interval.
9. The distance status detecting device according to claim 7, wherein when the display status of the display screen is a bright screen status and the first signal transmission power is acquired, the second acquiring module is configured to:
when the display state of the display screen is a bright screen state, acquiring the display color of a preset area of the display screen, wherein the preset area is an area, which is just opposite to the proximity sensor, on the display screen;
and acquiring first signal transmitting power according to the display color.
10. A storage medium, characterized in that a computer program is stored therein, which when run on a computer, causes the computer to execute the distance state detection method according to any one of claims 1 to 6.
11. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the distance state detection method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
CN201711176004.5A 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment Active CN107968883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711176004.5A CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711176004.5A CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107968883A CN107968883A (en) 2018-04-27
CN107968883B true CN107968883B (en) 2020-08-14

Family

ID=62001477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711176004.5A Active CN107968883B (en) 2017-11-22 2017-11-22 Distance state detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107968883B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040417B (en) * 2018-06-06 2022-01-18 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium, and computer apparatus
CN108737661B (en) * 2018-06-06 2021-03-23 Oppo广东移动通信有限公司 Control method, control device, electronic device, storage medium, and computer apparatus
CN108833695B (en) 2018-06-06 2020-07-31 Oppo广东移动通信有限公司 Control method, control device, electronic device, computer storage medium, and apparatus
CN108989494B (en) 2018-06-27 2021-02-09 北京小米移动软件有限公司 Electronic equipment
CN108983211B (en) * 2018-07-02 2022-08-09 Oppo广东移动通信有限公司 Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
CN108924358A (en) * 2018-07-03 2018-11-30 Oppo广东移动通信有限公司 proximity sensor control method, electronic device and computer readable storage medium
CN109195206B (en) * 2018-07-17 2022-01-07 Oppo广东移动通信有限公司 Control method of display screen state, storage medium and electronic equipment
CN109144227A (en) * 2018-07-17 2019-01-04 Oppo广东移动通信有限公司 Processing method, storage medium and the electronic equipment of finger print information
WO2020161075A1 (en) * 2019-02-04 2020-08-13 Ams International Ag Proximity sensing based on ratio change detection
CN112153207A (en) * 2019-06-26 2020-12-29 北京小米移动软件有限公司 Terminal and control method of display panel
CN111239750B (en) * 2020-01-03 2023-03-03 歌尔光学科技有限公司 Proximity sensor testing method and proximity sensor testing system
CN113777621A (en) * 2020-06-09 2021-12-10 北京小米移动软件有限公司 Electronic device, relative position relation detection method and device, and storage medium
CN114172983A (en) * 2020-09-10 2022-03-11 华为技术有限公司 Proximity optical sensor control method and related equipment
CN113299192B (en) * 2021-05-24 2023-08-22 维沃移动通信有限公司 Display assembly and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677559A (en) * 2012-08-28 2014-03-26 三星电子株式会社 Low power detection apparatus and method for displaying information
JP5750524B2 (en) * 2014-03-06 2015-07-22 東芝テック株式会社 Wireless tag communication method, wireless tag communication device, and wireless tag communication program
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN204834000U (en) * 2015-06-05 2015-12-02 厦门普丽特光电科技有限公司 Photochromic homogeneity correcting unit of LED display screen
EP2950596A1 (en) * 2014-05-30 2015-12-02 Apple Inc. Determination of device body location
CN106020423A (en) * 2016-05-25 2016-10-12 努比亚技术有限公司 Screen control device and method for terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8901778B2 (en) * 2008-09-27 2014-12-02 Witricity Corporation Wireless energy transfer with variable size resonators for implanted medical devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677559A (en) * 2012-08-28 2014-03-26 三星电子株式会社 Low power detection apparatus and method for displaying information
JP5750524B2 (en) * 2014-03-06 2015-07-22 東芝テック株式会社 Wireless tag communication method, wireless tag communication device, and wireless tag communication program
EP2950596A1 (en) * 2014-05-30 2015-12-02 Apple Inc. Determination of device body location
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN204834000U (en) * 2015-06-05 2015-12-02 厦门普丽特光电科技有限公司 Photochromic homogeneity correcting unit of LED display screen
CN106020423A (en) * 2016-05-25 2016-10-12 努比亚技术有限公司 Screen control device and method for terminal

Also Published As

Publication number Publication date
CN107968883A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN107968883B (en) Distance state detection method and device, storage medium and electronic equipment
CN107945769B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN107957294B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
AU2018370704B2 (en) Method for detecting ambient light intensity, storage medium and electronic device
CN107966209B (en) Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus
EP3562131B1 (en) Display screen state control method and apparatus, storage medium, and electronic device
CN107943345B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
KR20200144827A (en) Apparatus and method for driving display based on frequency operaion cycle set differntly according to frequency
CN109067983B (en) Information prompting method, storage medium and electronic equipment
CN107945733B (en) Brightness of display screen method of adjustment, device, storage medium and electronic equipment
CN108737652A (en) Luminance control method for display screen, device, storage medium and electronic equipment
CN107945747A (en) Environment light detection method, device, storage medium and electronic equipment
CN110661949A (en) Control method of display panel and electronic equipment
CN112229507A (en) Ambient light detection method and device, storage medium and mobile terminal
US11340781B2 (en) Electronic device for displaying execution screen of application and method of controlling the same
CN106097984A (en) The method of proximity transducer, device and mobile terminal is opened in backlight adjusts
CN108924360B (en) Display method, storage medium, and electronic device
CN109195206B (en) Control method of display screen state, storage medium and electronic equipment
CN107968939A (en) Processing method, device, storage medium and the electronic device of display picture
CN107665081A (en) Display screen condition control method, device, storage medium and terminal
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN108983950B (en) Display screen control method, storage medium and electronic device
CN107506049A (en) Display screen condition control method, device, storage medium and terminal
CN108365882B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN105892649A (en) Terminal searching method and device

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant