Electronic device and display screen control method thereof

By combining infrared light and ultrasonic proximity sensors in electronic devices, the detection method dynamically adjusts to the scene, solving the problems of detection accuracy and power consumption, and improving the accuracy and battery life of electronic devices in close and far away states.

CN113986034BActive Publication Date: 2024-11-29HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111093806.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-26
Publication Date
2024-11-29
Estimated Expiration
2039-11-26

AI Technical Summary

Technical Problem

When existing electronic devices detect external objects approaching or away, they lack accuracy and high power consumption, especially during calls, which is prone to misoperation, affecting the user experience.

Method used

Combining infrared light proximity sensor and ultrasonic proximity sensor, ultrasonic proximity detection is turned on or off according to different scenarios, improving detection accuracy and reducing power consumption. Specific methods include combining infrared light and ultrasonic detection results to determine the proximity or distance state when the infrared light proximity sensor is normal; when the infrared light proximity sensor is abnormal, it only depends on the ultrasonic detection results to make judgments; in specific scenarios, such as calling or instant communication When the software is used, infrared light and ultrasonic detection are turned on simultaneously; in other scenarios, only infrared light detection is used to reduce power consumption.

Benefits of technology

It improves the accuracy of detecting the close and far away states of external objects, reduces misjudgment, reduces the power consumption introduced by ultrasonic detection, and improves the user experience and battery life of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986034B_ABST
    Figure CN113986034B_ABST
Patent Text Reader

Abstract

The present application relates to the field of electronic technology, and discloses an electronic device and a display screen control method thereof. The display screen control method applied to the electronic device of the present application comprises: in response to a proximity detection trigger condition, the electronic device uses an infrared light proximity sensor to perform infrared light proximity detection, and determines whether the current use state of the electronic device satisfies the ultrasonic proximity detection activation condition; when the current use state satisfies the ultrasonic proximity detection activation condition, the electronic device activates the ultrasonic proximity detection to detect whether an external object is approaching or moving away from the electronic device. The display screen control method of the electronic device of the present application controls the display screen state of the electronic device through infrared light proximity detection technology and ultrasonic detection technology, which can effectively improve the detection accuracy of external objects approaching or moving away from the electronic device, more accurately control the display screen state of the electronic device, and reduce misjudgment of the display screen state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to an electronic device and a display screen control method thereof. Background Art

[0002] With the rapid development of science and technology, more and more users choose to use touch-screen mobile terminals. In order to prevent users from making erroneous operations due to touching the display screen of the mobile terminal during a call, a proximity sensor is usually built into the mobile terminal to control the display screen of the mobile terminal. Proximity sensors generally use infrared proximity sensors. For example, when a user makes a call, the infrared proximity sensor in the mobile terminal is triggered to start working. Based on the detection results of the infrared proximity sensor, it can be determined whether the user is close to or away from the mobile terminal. When the user is close to the mobile terminal, the display screen of the mobile terminal is turned off, and when the user is away from the mobile terminal, the display screen of the mobile terminal is lit. Summary of the invention

[0003] The embodiments of the present application provide an electronic device and a display screen control method thereof, which can improve the accuracy of detecting the approach and distance states of external objects and effectively control the power consumption introduced by ultrasonic proximity detection.

[0004] In the first aspect, the embodiment of the present application discloses a display screen control method for an electronic device, wherein the electronic device has an infrared light proximity detection function and an ultrasonic proximity detection function, and the method comprises: in response to a proximity detection trigger condition, the electronic device uses an infrared light proximity sensor to perform infrared light proximity detection, and determines whether the current use state of the electronic device satisfies the ultrasonic proximity detection start condition; when the current use state satisfies the ultrasonic proximity detection start condition, the electronic device turns on the ultrasonic proximity detection to detect whether an external object is approaching or moving away from the electronic device. That is, in some scenarios, the method can realize the detection of an external object approaching or moving away from the electronic device by the infrared light proximity detection and the ultrasonic proximity detection at the same time, so as to improve the detection accuracy and reduce the misjudgment of the screen state of the electronic device; and in other scenarios where the proximity detection time requirement is large, the detection of an external object approaching or moving away from the electronic device is realized only by infrared light proximity detection, thereby reducing the power consumption introduced by the ultrasonic proximity detection.

[0005] In an implementation of the first aspect, the display screen control method of the electronic device further includes: the electronic device detects whether the infrared light proximity sensor is normal; the electronic device determines whether an external object is approaching or moving away based on the infrared light proximity detection result and the ultrasonic proximity detection result when the infrared light proximity sensor is normal; the electronic device determines whether an external object is approaching or moving away based on the ultrasonic proximity detection result when the infrared light proximity sensor is abnormal. That is, when the infrared light proximity sensor is abnormal, it is determined whether an external object is approaching or moving away from the electronic device only based on the ultrasonic proximity detection result (not based on the infrared light proximity detection result) to achieve control of the display screen state of the electronic device.

[0006] In another implementation of the first aspect, judging whether an external object is approaching or moving away according to the infrared light proximity detection result and the ultrasonic proximity detection result includes:

[0007] When at least one of the infrared light proximity detection result and the ultrasonic proximity detection result indicates that an external object is approaching the electronic device, the electronic device determines that an external object is approaching; when both the infrared light proximity detection result and the ultrasonic proximity detection result indicate that an external object is moving away from the electronic device, the electronic device determines that the external object is moving away.

[0008] In another implementation of the first aspect, the ultrasonic proximity detection enabling condition includes: the electronic device is in a telephone call state or the electronic device initiates a telephone call.

[0009] In another implementation of the first aspect, the ultrasonic proximity detection enabling condition includes: the electronic device is in a telephone call state and a receiver of the electronic device is turned on, or the electronic device initiates a telephone call and the receiver of the electronic device is turned on.

[0010] In another implementation of the first aspect, the ultrasonic proximity detection enabling condition includes: the electronic device is in a call state of an instant messaging software or the electronic device initiates a call of an instant messaging software.

[0011] In another implementation of the first aspect, the ultrasonic proximity detection enabling condition includes: the electronic device is in a call state of an instant messaging software, and a receiver or a speaker of the electronic device is turned on.

[0012] In another implementation of the first aspect, the ultrasonic proximity detection enabling condition includes: the electronic device initiates a call via an instant messaging software, and a receiver or a speaker of the electronic device is turned on.

[0013] In another implementation of the first aspect, the ultrasonic proximity detection enable condition includes: a current digital signal processor mode of the electronic device satisfies a digital signal processor mode of the ultrasonic enable condition.

[0014] In another implementation of the first aspect, the ultrasonic proximity detection enable condition includes: a current digital signal processor mode of the electronic device satisfies a first digital signal processor mode of an ultrasonic enable condition; and a handset of the electronic device is turned on.

[0015] When the current digital signal processor mode of the electronic device is the first digital signal processor mode that meets the ultrasonic activation condition, it is not necessary to enable ultrasonic proximity detection. For example, when a user uses a headset or a speaker to make a call, there is no need to determine the distance of an external object. Therefore, this solution determines whether the earpiece is turned on while determining the digital signal processor mode to reduce the power consumption caused by ultrasonic proximity detection.

[0016] In another implementation of the first aspect, the ultrasonic proximity detection activation condition includes: a current digital signal processor mode of the electronic device satisfies a second digital signal processor mode of the ultrasonic activation condition; and a receiver or a speaker of the electronic device is turned on.

[0017] When the current digital signal processor mode of the electronic device is the first digital signal processor mode that meets the ultrasonic activation condition, it is not necessary to enable ultrasonic proximity detection. For example, when a user uses headphones or speakers to make an audio call or video call using instant messaging software, there is no need to determine the distance to an external object. Therefore, this solution determines whether the earpiece or speaker is turned on while determining the digital signal processor mode to reduce power consumption caused by ultrasonic proximity detection.

[0018] In a second aspect, an embodiment of the present application discloses a machine-readable medium, on which instructions are stored, and when the instructions are executed on a machine, the machine executes the display screen control method of an electronic device according to the first aspect.

[0019] In a third aspect, an embodiment of the present application discloses a terminal, including:

[0020] one or more processors; and

[0021] A memory for storing instructions;

[0022] Infrared light proximity sensor, used to detect the approach and distance of external objects through infrared light;

[0023] Ultrasonic proximity sensors are used to detect the approach and distance of external objects through ultrasonic waves;

[0024] When the instructions are executed by the one or more processors, the terminal controls the infrared proximity sensor and the ultrasonic proximity sensor to execute the display screen control method of the electronic device according to the first aspect.

[0025] In an implementation of the third aspect above, the ultrasonic proximity sensor is a receiver and a microphone of the terminal; the receiver sends ultrasonic waves, and the microphone receives ultrasonic waves reflected by external objects.

[0026] In a fourth aspect, an embodiment of the present application provides an electronic device having a function of implementing the behavior of the electronic device in the above-mentioned electronic device display screen control method. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned function. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 According to some embodiments of the present application, a schematic diagram of the structure of a mobile phone 10 is shown;

[0028] Figure 2 According to some embodiments of the present application, a scenario of detecting whether an external object 20 approaches or moves away from a mobile phone 10 is shown;

[0029] Figure 3 According to some embodiments of the present application, a schematic diagram of the mobile phone 10 registering ultrasonic proximity detection and infrared light proximity detection is shown;

[0030] Figure 4 According to some embodiments of the present application, a schematic diagram of the mobile phone 10 coupling the ultrasonic proximity detection result and the infrared proximity detection result is shown;

[0031] Figure 5 According to some embodiments of the present application, a schematic diagram of a process for determining the state of a mobile phone display screen by combining infrared light proximity detection and ultrasonic proximity detection is shown;

[0032] Figure 6 According to some embodiments of the present application, a schematic diagram of a process of detecting the approach or distance of an external object according to ultrasonic proximity detection results and infrared light proximity detection results is shown;

[0033] Figure 7 A structural block diagram of a terminal is shown. Specific embodiments

[0034] The embodiments of the present application include but are not limited to electronic devices and display screen control methods, media and systems thereof.

[0035] It will be understood that, as used herein, the term "module" may refer to or include an application specific integrated circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and / or memory that executes one or more software or firmware programs, a combinational logic circuit, and / or other appropriate hardware components that provide the described functionality, or may be part of these hardware components.

[0036] The embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.

[0037] The control method of a display screen of an electronic device provided in the present application can be applied to any electronic device with a display screen, including but not limited to mobile phones, tablet computers, laptop computers, desktop computers, wearable devices, head-mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, personal digital assistants, virtual reality or augmented reality devices, televisions in which one or more processors are embedded or coupled, and other electronic devices.

[0038] The following describes the technical solution of the present application by taking mobile phone 10 as an example according to some embodiments of the present application.

[0039] like Figure 1 As shown, the mobile phone 10 may include a processor 110, a power supply 120, a memory 130, a mobile communication module 140, a wireless communication module 150, a sensor module 160, an audio module 170, and a display screen 180, etc.

[0040] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 10. In other embodiments of the present application, the mobile phone 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0041] The processor 110 may include one or more processing units, for example, a central processing unit CPU (Central Processing Unit), a graphics processor GPU (Graphics Processing Unit), a digital signal processor DSP, a microprocessor MCU (Micro-programmed Control Unit), an AI (Artificial Intelligence) processor or a programmable logic device FPGA (Field Programmable Gate Array) and other processing modules or processing circuits. Among them, different processing units can be independent devices or integrated in one or more processors. A storage unit can be set in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory.

[0042] The power module 120 may include a power source, a power management component, etc. The power management component is used to manage the charging of the power source and the supply of power to other modules.

[0043] The mobile communication module 140 may include, but is not limited to, an antenna, a power amplifier, a filter, an LNA (Low noise amplifier), etc. The mobile communication module 140 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 10. The mobile communication module 140 may receive electromagnetic waves through an antenna, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 140 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna. In some embodiments, at least some of the functional modules of the mobile communication module 140 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 140 may be arranged in the same device as at least some of the modules of the processor 110. Wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT (Bluetooth), GNSS (Global Navigation Satellite System), WLAN (Wireless Local Area Networks), NFC (Near Field Communication), FM (Frequency Modulation), and / or IR (Infrared) technology, etc.The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0044] The wireless communication module 150 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 150 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the mobile phone 10. The mobile phone 10 can communicate with the network and other devices through wireless communication technology.

[0045] In some embodiments, the mobile communication module 140 and the wireless communication module 150 of the mobile phone 10 may also be located in the same module.

[0046] The display screen 180 is used to display a human-computer interaction interface, images, videos, etc. The display screen 180 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.

[0047] The sensor module 160 may include an infrared proximity sensor for detecting whether an external object is close to or away from the mobile phone 10 by emitting and receiving infrared light. In some embodiments, the sensor module 160 may also include at least one ultrasonic proximity sensor for detecting the distance between the external object and the mobile phone 10 by emitting and receiving ultrasonic waves, thereby determining whether the external object is close to or away from the mobile phone 10. Of course, the embodiments of the present application do not limit the specific working principles of the infrared proximity sensor and the ultrasonic proximity sensor. As long as the sensor detects the approach or distance of an external object by infrared light or ultrasonic waves, it can be used to implement the embodiments of the present application. In some embodiments, the sensor module may also include an accelerometer, a gyroscope, an ambient light sensor, a fingerprint sensor, etc.

[0048] The audio module 170 is used to convert digital audio information into analog audio signal output, or convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0049] like Figure 1 As shown, the audio module 170 may include a speaker 171, an earpiece 172, a microphone 173, and an earphone interface 174. The speaker 171 is used to convert an audio signal into a sound signal and then output it. The mobile phone 10 can listen to music or listen to a hands-free call through the speaker 170A. The earpiece 172, also known as a "receiver", is used to convert an audio electrical signal into a sound signal and then output it. When the mobile phone 10 answers a call, makes an Internet voice call, or outputs a voice message, the earpiece 172 can be placed close to the human ear to answer the voice. The earpiece 172 can emit ultrasonic waves. The microphone 173 is used to convert the collected sound signal into an electrical signal. In some embodiments, the microphone 173 may include a main microphone and a secondary microphone, the main microphone is arranged at the bottom of the mobile phone 10, and the secondary microphone is arranged at the top of the mobile phone 10. In some embodiments, the earpiece 172 and the secondary microphone can realize the function of the above-mentioned ultrasonic proximity sensor, that is, the ultrasonic wave emitted by the earpiece 172 can be collected by the secondary microphone after being reflected by an external object, so that it can be judged whether the external object is close to or away from the mobile phone 10. The earphone interface 174 is used to connect a wired headset.

[0050] The following is a detailed description of the process of controlling the display screen of the mobile phone 10.

[0051] In some embodiments of the present application, a method for controlling the display screen 180 of the mobile phone 10 is disclosed. In this method, the mobile phone 10 determines whether to turn on the ultrasonic proximity detection function according to different scenarios, wherein the mobile phone 10 implements the function of the ultrasonic proximity sensor through the earpiece 172 and the secondary microphone of the microphone 173, that is, the earpiece 172 transmits the ultrasonic wave, and the secondary microphone of the microphone 173 collects the ultrasonic wave reflected back by the external object.

[0052] Specifically, for example, in some scenarios, when the mobile phone 10 is close to an external object or an external object is close to the mobile phone 10, it can be determined based on the infrared light proximity detection result reported by the infrared light proximity sensor and the ultrasonic proximity detection result reported by the audio module 170 at the same time whether the external object is far away from or close to the mobile phone 10 (such as Figure 2 In other scenarios, in order to reduce the power consumption caused by turning on ultrasonic proximity detection, external objects are detected only through the infrared proximity detection results reported by the infrared proximity sensor. Finally, the state of the display screen 180 is controlled according to the determined results.

[0053] For another example, when the mobile phone 10 uses an application that automatically adjusts the brightness of the display screen 180, the display screen 180 of the mobile phone 10 can register infrared proximity detection as soon as the screen is turned on, and obtain the infrared proximity detection result, so as to avoid erroneously dimming the brightness of the display screen 180 when an external object blocks the display screen 180 of the mobile phone 10. In this application scenario, if ultrasonic proximity detection is turned on at the same time, it will introduce greater power consumption. Therefore, whether an external object is approaching can be detected only by the infrared proximity detection result reported by the infrared proximity sensor.

[0054] For example Figure 2 As shown, when the user of the mobile phone 10 uses the handset to answer a call or make a call, in order to prevent the external object 20 from accidentally touching the function keys on the display screen 180 of the mobile phone 10, the external object can be detected simultaneously through the infrared light proximity detection result reported by the infrared light proximity sensor and the ultrasonic proximity detection result reported by the audio module 170 to improve the accuracy of proximity and distance detection.

[0055] Specifically, in some embodiments, the infrared light proximity sensor can detect the approach and distance of the external object 20 relative to the mobile phone 10 in the following manner:

[0056] During detection, infrared light L1 is emitted, and based on the intensity of the infrared light reflected back by the external object 20, it is determined whether the external object 20 is approaching or moving away from the mobile phone 10. For example, when the intensity of the infrared light is greater than a preset threshold, it is determined that an object is approaching; when the intensity of the infrared light is less than another preset threshold, it is determined that the object is moving away.

[0057] Furthermore, in some embodiments, the audio module 170 can detect the approach and distance of the external object 20 relative to the mobile phone 10 in the following manner:

[0058] When measuring, the earpiece 172 emits ultrasonic waves A1, and the secondary microphone of the microphone 173 collects ultrasonic waves within a predefined frequency band range (such as 24kHz-36kHz, 38kHz) reflected by the external object 20, and determines the distance between the mobile phone 10 and the external object 20 based on the collected ultrasonic waves, and then determines whether the external object 20 is close to or far away from the mobile phone 10 based on the determined distance between the mobile phone 10 and the external object 20.

[0059] After combining the detection results of the infrared proximity sensor and the audio module 170 , the mobile phone 10 can finally determine whether the external object 20 is approaching or moving away from the mobile phone 10 , and then control the display screen 180 of the mobile phone 10 to enter a light-off state or a light-on state.

[0060] Continue to refer Figure 2 The infrared light proximity sensor detects external objects 20 by emitting infrared light L1. This detection method has high requirements on the device position setting of the infrared light proximity sensor. In order to maximize the screen size, the infrared light proximity sensor can be set on the top of the mobile phone 10. That is, the light emitting surface of the infrared light proximity sensor is not in the plane where the screen is located, but on the top surface perpendicular to the screen. When the light emitting surface of the sensor is set on the top of the mobile phone 10, the angle between the light emitted or received by the sensor and the screen is greater than 90°. Therefore, when using the infrared light proximity sensor for proximity detection, misjudgment is prone to occur. For example, the user holds the mobile phone 10 close to the ear, but due to the setting orientation of the sensor, the approach of the face may not be detected, resulting in misjudgment. Therefore, in order to improve the detection accuracy, the present application adds the function of ultrasonic proximity detection. As Figure 2 As shown, the ultrasonic wave A1 propagates forward along the spherical surface, and has a larger detection area than the infrared light proximity sensor, and the requirements for the setting position are relatively low. Therefore, combining the ultrasonic detection result with the infrared light proximity detection result of the infrared light proximity sensor to determine the distance of the external object 20 relative to the mobile phone 10 can effectively improve the misjudgment caused by the inaccurate detection result of the infrared light proximity sensor, thereby reducing the erroneous control of the state of the display screen 180 due to the erroneous state information reported by the infrared light proximity sensor, for example, the display screen 180 is in a lit state when it should be turned off, thereby causing a false touch.

[0061] Since turning on ultrasonic proximity detection will introduce power consumption issues. Therefore, in order to reduce the power consumption of the mobile phone 10, as described above, the use scenarios of the mobile phone 10 can be distinguished according to the specific situation, so that ultrasonic proximity detection and infrared light proximity detection can be turned on at the same time in some use scenarios, and in some use scenarios, ultrasonic proximity detection is not turned on, and only the infrared light proximity detection of the infrared light proximity sensor is turned on. For example, for the mobile phone 10, the mobile phone 10 can be set to turn on ultrasonic proximity detection and infrared light proximity detection at the same time when making or answering a call or making a voice call or video chat through an instant messaging software (for example, the instant messaging software can be WeChat or QQ). For applications such as automatic brightness adjustment of the display screen and AOD (Always on Display), the ultrasonic proximity detection function is not turned on, and only the infrared light proximity sensor is used for detection.

[0062] It can be understood that the distinction between usage scenarios can be set according to specific circumstances and is not limited to the distinction method mentioned in this application.

[0063] In the case where the ultrasonic proximity detection and the infrared proximity detection need to be turned on at the same time, the detection results of the two need to be coupled to determine the state of the display screen 180. For example, in some embodiments, as shown in Table 1 below, when the information of the infrared proximity detection result reported by the infrared proximity sensor is normal, as long as one of the infrared proximity detection result and the ultrasonic proximity detection result indicates that the external object 20 is in a close state relative to the mobile phone 10, for example, the infrared proximity detection result or the ultrasonic proximity detection result indicates that the external object 20 (such as an ear or a face) is close to the mobile phone 10, it is determined that the external object 20 is in a close state relative to the mobile phone 10, so that the display screen 180 is controlled to be in a state corresponding to the close state, for example, in a light-off state, so that each function key on the display screen 180 is in a locked state. Only when both the infrared proximity detection result and the ultrasonic proximity detection result indicate that the obstacle 20 is in a far away state relative to the mobile phone 10, it is determined that the external object 20 is in a far away state relative to the mobile phone 10, and at this time, the display screen 180 is controlled to be in a state corresponding to the far away state, for example, the display screen 180 is lit up, so that each function key on the display screen 180 is in a triggerable state.

[0064] Table 1

[0065]

[0066] It is understandable that in other embodiments of the present application, the distance between the external object and the mobile phone can also be determined based on other coupling methods, which is not limited here.

[0067] It can be understood that in each embodiment of the present application, the proximity state indicates that the distance of the external object relative to the mobile phone is less than the proximity distance threshold, and the display screen needs to be controlled to enter or maintain a state corresponding to the proximity state, for example, the display screen is made to enter or be in a light-off state, each function key on the display screen is in a locked state, or the display screen enters AOD (Always on Display). The distance state indicates that the distance of the external object relative to the mobile phone is greater than the distance distance threshold, and the display screen needs to be controlled to enter or maintain a state corresponding to the distance state, for example, the display screen is made to enter or be in a light-on state, each function key on the display screen is in a triggerable state, or the display screen ends AOD.

[0068] In addition, it can be understood that in some embodiments of the present application, after completing infrared light proximity detection and ultrasonic proximity detection, when the display screen of the mobile phone is in an off state, if it is detected that a physical button on the mobile phone is triggered, the display screen will be lit.

[0069] The following is a detailed description of the implementation method of controlling the state of the display screen 180 using a mobile phone 10 using an Android system. It can be understood that the following description is only for illustrative purposes and does not constitute a limitation on the display screen control method of the present application. For mobile phones or other electronic devices using other operating systems, the control method of the display screen 180 of the present application is still applicable.

[0070] First, in order to implement the above-mentioned mobile phone 10 to call the ultrasonic proximity detection of the audio module 170, in some embodiments, when the application registers for proximity detection, the proximity detection registration information of the application can be passed to the audio driver layer. As shown in Figure 3, the process of passing the proximity detection registration information to the audio driver layer includes: APK (Android Package) meets the preset conditions to register for proximity detection, and FWK (framework) receives the proximity detection registration request of APK, and passes the proximity detection registration information to the infrared light proximity sensor (for example, located at the top of the mobile phone 10, emitting top infrared light) and the audio driver layer through the logic judgment code in the sensor service (Sensor Service) of FWK. It should be noted that one or more applications in the mobile phone can use proximity data. When the trigger conditions for these applications to use proximity data are met, these applications will register for proximity detection, that is, these applications request to use proximity data.

[0071] It is understandable that other methods can also be used to connect the proximity and distance function of the mobile phone 10 or an electronic device using other operating systems with the ultrasonic proximity detection function of the device in the audio module 170, or with other devices in the electronic device that provide ultrasonic proximity detection function, for example, with an ultrasonic sensor, without limitation here.

[0072] In addition, it can be understood that in some embodiments, other judgment results can also be added to determine the proximity and distance state of external objects relative to the mobile phone. For example, a posture judgment function can be added. When registering proximity detection information, the proximity detection registration information is transmitted to the gyroscope and accelerometer (A+G) in the sensor module through the SensorService function in FWK, so as to judge the user's posture when using the mobile phone after receiving the proximity detection start instruction, and combine the posture judgment result and the proximity detection judgment result to generate proximity detection result information.

[0073] In addition, after the proximity detection registration information is passed to the audio driver layer, it is necessary to add judgment logic to the audio driver layer so that in certain usage scenarios, ultrasonic proximity detection is turned on in response to the proximity detection turn-on instruction, thereby avoiding power consumption caused by turning on ultrasonic proximity detection for a long time or turning on and off ultrasonic proximity detection frequently. For example, the judgment logic can determine whether to turn on ultrasonic waves by introducing DSP_MODE. In some embodiments, the definition of DSP_MODE is shown in Table 2 below:

[0074] Table 2

[0075]

[0076] Based on the above definition of DSP_MODE, after receiving a proximity detection request for an external object (i.e., a proximity detection start instruction), the audio driver will determine whether DSP_MODE is MODE2 or MODE3, and if the judgment result is yes, the ultrasonic emission function of the earpiece 172 is turned on. At the same time, after receiving the proximity detection start instruction, the infrared light proximity sensor will emit infrared light to measure the external object. When the judgment result is that DSP_MODE does not belong to MODE2 or MODE3, the ultrasonic emission function of the earpiece 172 will not be turned on, and only the infrared light proximity sensor will emit infrared light to measure the distance of the external object relative to the mobile phone 10.

[0077] However, as mentioned above, it is not necessary for the mobile phone 10 to turn on ultrasonic proximity detection in MODE2 or MODE3. The reason is that when the mobile phone 10 uses wired headphones, Bluetooth headphones, speakers, speakers and other devices to make calls, there is no need to judge the distance of external objects. At this time, turning on ultrasonic proximity detection will introduce power consumption problems. For this reason, in some embodiments, based on the above-mentioned scene judgment based on DSP_MODE, it is combined with the use status of the audio device to determine whether to turn on ultrasonic proximity detection. Specifically, as shown in Table 3 below, the ultrasonic proximity detection function is turned on when DSP_MODE=MODE2 and the handset is turned on, and the ultrasonic proximity detection function is turned on when DSP_MODE=MODE3 and the handset or speaker is turned on.

[0078] Table 3

[0079]

[0080] In some embodiments, the opening and closing of the ultrasonic proximity detection function can be specifically implemented in an audio codec chip (such as Hi6405). When the audio codec chip receives the ultrasonic start instruction, it superimposes the ultrasonic signal on the original audio path and sends it through the earpiece 172. After being reflected by an external object, the ultrasonic wave is collected by the secondary microphone in the microphone 173. The audio codec chip will perform stripping processing on the ultrasonic wave received by the secondary microphone. If an ultrasonic signal within a defined frequency band (such as 24k-36k, 38k) is intercepted, it indicates that the sound collection is successful, and the collected ultrasonic wave is judged, and then the ultrasonic proximity detection result (approaching or moving away) is reported; if the ultrasonic signal within the defined frequency band is not intercepted, it indicates that the sound collection is unsuccessful and no processing is performed.

[0081] In addition, it can be understood that in other embodiments of the present application, other methods can be used to control the opening and closing of the ultrasonic proximity detection function of the mobile phone 10, which is not limited to DSP_MODE, as long as the purpose of turning on the ultrasonic proximity detection function in a specific application scenario can be achieved. In addition, in addition to the earpiece, the mobile phone 10 or other electronic devices can also use other devices to generate ultrasonic waves and perform ultrasonic proximity detection, such as ultrasonic sensors, which are not limited here.

[0082] In addition, if Figure 4As shown, when ultrasonic proximity detection and infrared proximity detection are used simultaneously, for example, the mobile phone 10 is making a call, and the handset is turned on, while other devices such as the speaker are turned off. At this time, after receiving the proximity detection start instruction, the sensor hub will perform coupling analysis on the infrared proximity detection result reported by the infrared proximity sensor and the ultrasonic proximity detection result reported by the audio module 170. As shown in Table 1, as long as one of the information reported by the two indicates that the external object is in a close state relative to the mobile phone 10, it is determined that the external object is in a close state relative to the mobile phone 10. When the information reported by both indicates that the external object is in a far state relative to the mobile phone, it is determined that the external object is in a far state relative to the mobile phone. Then the Sensor Hub transmits the coupled state to the FWK, so that the application of the application layer turns off the display screen of the mobile phone 10 when the coupled state is the close state, so that the function keys on the display screen are in a locked state to prevent the false triggering of the function keys on the display screen; and the application of the application layer lights up the display screen of the mobile phone 10 when the coupled state is the far state, and the function keys on the display screen are in an available state.

[0083] It can be understood that in other embodiments of the present application, the infrared proximity detection results reported by the infrared proximity sensor and the ultrasonic proximity detection results reported by the audio module 170 can also be coupled and analyzed in other devices or other layers, and are not limited to being performed in the sensor hub.

[0084] According to some embodiments of the present application, combined with the above description of the mobile phone 10, Figure 5 The following is a schematic diagram of the process of combining infrared light proximity detection and ultrasonic proximity detection to detect whether an external object is close to a mobile phone. The specific details described above are also applicable to this process, and will not be repeated here to avoid repetition. Specifically, Figure 5 As shown, the process includes:

[0085] 1) The sensor driver and audio driver of the mobile phone 10 receive the proximity detection start instruction (500) respectively. That is, when the mobile phone is in certain usage scenarios, it is necessary to detect whether an external object is approaching or moving away. One or more applications in the mobile phone need to use proximity data in certain scenarios (proximity detection trigger conditions) and perform corresponding actions based on the proximity data. For example: for a call application, when the user is in a call process or initiates a call or answers an incoming call, it is necessary to cooperate with proximity data to control the screen of the mobile phone to turn on and off. Therefore, when the mobile phone is in a call process or initiates a call or answers an incoming call (i.e., proximity detection trigger condition), the call application will register proximity detection. In other words, in response to the proximity detection trigger condition, the mobile phone 10 starts proximity detection. At this time, as for the above-mentioned mobile phone 10, the application layer will have a proximity detection start instruction sent to the sensor driver of the driver layer of the mobile phone 10 to instruct to turn on the corresponding detection function. It is understandable that although the above description of the mobile phone 10 is based on the original detection start instruction of triggering the infrared light proximity sensor to trigger the ultrasonic proximity detection, in other embodiments of the present application, other instructions can also be used to trigger the ultrasonic proximity detection, for example, sending detection instructions to the drivers of the infrared light proximity sensor and the ultrasonic proximity sensor respectively, so no limitation is made here. It should be noted that the embodiment of the present application does not limit the order in which the sensor driver and the audio driver receive the detection start instruction.

[0086] 2) The sensor driver of the mobile phone 10 turns on the infrared proximity detection function of the infrared proximity sensor, and the audio driver determines whether the current usage scenario of the mobile phone meets the conditions for turning on the ultrasonic proximity detection (502).

[0087] For example, when the infrared light proximity sensor receives an infrared light proximity detection start instruction, the infrared light can be periodically sent outward by the light-emitting diode in the infrared light proximity sensor, and the infrared light returned by the external object can be received by the photosensitive diode, and whether the external object is approaching or far away can be determined based on the returned infrared light.

[0088] In addition, for the mobile phone 10, the conditions for enabling ultrasonic proximity detection can refer to the description of Table 2 and Table 3. It can be understood that the distinction of usage scenarios can be set according to specific circumstances and is not limited to the distinction method mentioned in this application.

[0089] In addition, it can be understood that the order of the infrared proximity sensor turning on the infrared proximity detection and the audio driver judging whether the turning-on conditions of the ultrasonic proximity detection are met can be one first and the other later, or they can be performed simultaneously, which is not limited here.

[0090] 3) If the audio driver determines that the current usage scenario does not meet the conditions for enabling ultrasonic proximity detection, ultrasonic proximity detection is not enabled, and the state of the external object relative to the mobile phone 10 is determined based only on the infrared light proximity detection result (510).

[0091] 4) If the audio driver determines that the conditions for enabling ultrasonic proximity detection are met, it sends an instruction to enable ultrasonic proximity detection to the audio module 170 so that the audio module 170 performs ultrasonic proximity detection. Specifically, the earpiece 172 in the audio module 170 sends ultrasonic waves, and the secondary microphone receives the ultrasonic waves returned by the external object (504).

[0092] For example, for the mobile phone 10 described above, an instruction to turn on ultrasonic proximity detection is sent to the audio module 170. When the audio codec chip receives the ultrasonic turn-on instruction, the ultrasonic signal is superimposed on the original audio path and sent through the earpiece 172. After the ultrasonic wave is reflected by an external object, it is received by the secondary microphone at the bottom of the mobile phone 10. The codec chip will strip the ultrasonic wave received by the secondary microphone. If an ultrasonic signal within a defined frequency band (such as 24k-36k, 38k) is intercepted, it indicates that the sound collection is successful, and the external object is judged to be close to or away from the mobile phone 10 based on the collected ultrasonic wave.

[0093] 5) After receiving the ultrasonic proximity detection result and the infrared light proximity detection result, the sensor hub of the mobile phone 10 determines whether the external object is close or far away from the mobile phone 10 according to the ultrasonic proximity detection result and the infrared light proximity detection result (506).

[0094] In some embodiments, the process of the sensor hub determining whether the state of the external object relative to the mobile phone 10 is close or far away according to the ultrasonic proximity detection result and the infrared light proximity detection result is as follows: Figure 6 Specifically, it includes:

[0095] a) The sensor hub determines whether the state of the infrared light proximity sensor is normal (600). Whether the state of the infrared light proximity sensor is normal can be determined by various technical means. For example, it is determined whether the data received from the infrared light proximity sensor is legal data. If the type of data received is different from the type of data representing the infrared light proximity detection result, it means that the data sent by the infrared light proximity sensor is not legal data. For another example, if only an infrared light proximity detection result representing a close state is received from the infrared light proximity sensor within a predetermined time, but no infrared light proximity detection result representing a far state is received, or only an infrared light proximity detection result representing a far state is received from the infrared light proximity sensor, but no infrared light proximity detection result representing a close state is received, it means that the state of the infrared light proximity sensor is abnormal.

[0096] b) If the judgment result of the sensor hub is that the state of the infrared light proximity sensor is normal, it is judged whether at least one of the ultrasonic proximity detection result and the infrared light proximity detection result indicates a proximity state (602). If the judgment result is that at least one indicates a proximity state, it is determined that the external object is in a proximity state relative to the mobile phone (604); if the judgment result is that both the ultrasonic proximity detection result and the infrared light proximity detection result indicate a distance state, it is determined that the external object is in a distance state relative to the mobile phone (606).

[0097] In some embodiments, the judgment logic for determining the state of the display screen according to the ultrasonic proximity detection result and the infrared light proximity detection result may refer to the description of Table 1 above.

[0098] c) If the judgment result is that the state of the infrared light proximity sensor is abnormal, then the state of the external object relative to the mobile phone 10 is determined to be a close state or a far state only based on the ultrasonic proximity detection result (608). That is, if the ultrasonic proximity detection result indicates a close state, then the state of the external object relative to the mobile phone 10 is determined to be a close state, and if the ultrasonic proximity detection result indicates a far state, then the state of the external object relative to the mobile phone 10 is determined to be a far state.

[0099] 6) The FWK of the mobile phone 10 receives the determined state of the external object relative to the mobile phone 10 from the sensor hub, and the application of the application layer of the mobile phone 10 can control the state of the mobile phone display screen according to the state received by the FWK (508). For example, when the state received by the FWK is a proximity state, the application controls the mobile phone display screen to enter or maintain a state corresponding to the proximity state; when the state received by the FWK is a distance state, the application controls the display screen to enter or maintain a state corresponding to the distance state.

[0100] Reference now Figure 7 , shown is a block diagram of a terminal 700 according to an embodiment of the present application. Figure 7 An example terminal 700 according to various embodiments is schematically shown. In one embodiment, the terminal 700 may include one or more processors 704, a system control logic 708 connected to at least one of the processors 704, a system memory 712 connected to the system control logic 708, a non-volatile memory (NVM) 716 connected to the system control logic 708, and a network interface 720 connected to the system control logic 708.

[0101] In some embodiments, the processor 704 may include one or more single-core or multi-core processors. In some embodiments, the processor 704 may include any combination of a general-purpose processor and a dedicated processor (e.g., a graphics processor, an application processor, a baseband processor, etc.). In an embodiment where the terminal 700 uses an eNB (Evolved Node B, enhanced base station) 101 or a RAN (Radio Access Network, radio access network) controller 102, the processor 704 may be configured to execute various embodiments, such as Figure 1-6 One or more of the multiple embodiments shown.

[0102] In some embodiments, system control logic 708 may include any suitable interface controller to provide any suitable interface to at least one of processors 704 and / or any suitable device or component in communication with system control logic 708 .

[0103] In some embodiments, the system control logic 708 may include one or more memory controllers to provide an interface to a system memory 712. The system memory 712 may be used to load and store data and / or instructions. In some embodiments, the memory 712 of the terminal 700 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).

[0104] NVM / memory 716 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM / memory 716 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of a HDD (Hard Disk Drive), a CD (Compact Disc) drive, and a DVD (Digital Versatile Disc) drive.

[0105] NVM / storage 716 may include a portion of storage resources on the device on which terminal 700 is installed, or it may be accessible to the device but not necessarily a portion of the device. For example, NVM / storage 716 may be accessed over a network via network interface 720.

[0106] In particular, system memory 712 and NVM / storage 716 may include, respectively, a temporary copy and a permanent copy of instructions 724. Instructions 724 may include instructions that, when executed by at least one of processors 704, cause terminal 700 to implement the following: Figure 5 In some embodiments, the instructions 724, hardware, firmware and / or software components thereof may additionally / alternatively be placed in the system control logic 708, the network interface 720 and / or the processor 804.

[0107] The network interface 720 may include a transceiver for providing a radio interface for the terminal 700, thereby communicating with any other suitable device (such as a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 720 may be integrated with other components of the terminal 700. For example, the network interface 720 may be integrated with at least one of the processor 704, the system memory 712, the NVM / storage 716, and a firmware device (not shown) having instructions. When at least one of the processors 704 executes the instructions, the terminal 700 implements the following. Figure 5 and 6 The method shown.

[0108] The network interface 720 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 720 may be a network adapter, a wireless network adapter, a telephone modem and / or a wireless modem.

[0109] In one embodiment, at least one of the processors 704 may be packaged together with logic for one or more controllers of the system control logic 708 to form a system in package (SiP). In one embodiment, at least one of the processors 704 may be integrated on the same die with logic for one or more controllers of the system control logic 708 to form a system on a chip (SoC).

[0110] The terminal 700 may further include: an input / output (I / O) device 732. The I / O device 732 may include a user interface to enable a user to interact with the terminal 700; the design of the peripheral component interface enables the peripheral components to interact with the terminal 700. In some embodiments, the terminal 700 also includes a sensor for determining at least one of environmental conditions and location information related to the terminal 700. The sensor of the terminal 700 may include an infrared proximity sensor for detecting whether an external object is close to or away from the terminal by emitting and receiving infrared light. The sensor of the terminal 700 may also include at least one ultrasonic proximity sensor for detecting the distance between an external object and an electronic device by emitting and receiving ultrasonic waves, thereby determining whether the external object is close to or away from the terminal.

[0111] In some embodiments, the user interface may include, but is not limited to, a display (e.g., a liquid crystal display, a touch screen display, etc.), an earpiece, a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., a light-emitting diode flash), and a keyboard. The earpiece can emit ultrasonic waves. The microphone is used to convert the collected sound signals into electrical signals. In some embodiments, the ultrasonic waves emitted by the earpiece can be collected by the secondary microphone after being reflected by an external object, thereby determining the distance between the external object and the terminal.

[0112] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.

[0113] In some embodiments, the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with the network interface 720 to communicate with components of a positioning network (e.g., global positioning system (GPS) satellites).

[0114] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0115] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0116] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0117] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0118] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0119] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0120] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A display screen control method applied to an electronic device, characterized in that: The electronic device has an infrared light proximity detection function and an ultrasonic proximity detection function, and the method comprises: In response to the proximity detection trigger condition, the electronic device uses an infrared light proximity sensor to perform infrared light proximity detection, and determines whether the current use state of the electronic device meets the ultrasonic proximity detection activation condition; When the current use state satisfies the ultrasonic proximity detection activation condition, the electronic device activates the ultrasonic proximity detection and detects whether an external object approaches or moves away from the electronic device based on the infrared light proximity detection result and the ultrasonic proximity detection result; When at least one of the infrared light proximity detection result and the ultrasonic proximity detection result indicates that an external object is approaching the electronic device, the electronic device determines that an external object is approaching; When the infrared light proximity detection result and the ultrasonic proximity detection result both indicate that the external object is moving away from the electronic device, the electronic device determines that the external object is moving away.

2. The method according to claim 1, characterized in that Also includes: The electronic device detects whether the infrared light proximity sensor is normal; The electronic device determines whether an external object is approaching or moving away according to the infrared light proximity detection result and the ultrasonic proximity detection result when the infrared light proximity sensor is normal; When the infrared light proximity sensor is abnormal, the electronic device determines whether an external object is approaching or moving away based on the ultrasonic proximity detection result.

3. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The electronic device is in a telephone call state or the electronic device initiates a telephone call.

4. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The electronic device is in a telephone call state and the receiver of the electronic device is turned on, or The electronic device initiates a telephone call and a handset of the electronic device is turned on.

5. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The electronic device is in a call state of the instant messaging software or the electronic device initiates a call of the instant messaging software.

6. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The electronic device is in a call state of an instant messaging software, and the receiver or speaker of the electronic device is turned on.

7. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The electronic device initiates a call using an instant messaging software, and a receiver or a speaker of the electronic device is turned on.

8. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The current digital signal processor mode of the electronic device satisfies the digital signal processor mode of the ultrasonic start condition.

9. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: The current digital signal processor mode of the electronic device satisfies the first digital signal processor mode of the ultrasonic start condition; The earpiece of the electronic device is turned on.

10. The method according to any one of claims 1-2, characterized in that: The ultrasonic proximity detection start-up conditions include: A second digital signal processor mode in which the current digital signal processor mode of the electronic device satisfies an ultrasonic start condition; The receiver or speaker of the electronic device is turned on.

11. A machine-readable medium, characterized in that The machine-readable medium stores instructions, which, when executed on a machine, cause the machine to perform the method according to any one of claims 1 to 10.

12. A terminal, comprising: one or more processors; A memory for storing instructions; Infrared light proximity sensor, used to detect the approach and distance of external objects through infrared light; Ultrasonic proximity sensors are used to detect the approach and distance of external objects through ultrasonic waves; When the instructions are executed by the one or more processors, the terminal controls the infrared proximity sensor and the ultrasonic proximity sensor to perform the method according to any one of claims 1 to 10.

13. The terminal according to claim 12, characterized in that: The ultrasonic proximity sensor is an earpiece and a microphone of the terminal; the earpiece sends ultrasonic waves, and the microphone receives ultrasonic waves reflected by external objects.

Citation Information

Patent Citations

  • Proximity detection method and mobile terminal

    CN110471068A