CN111781577B - Light detection method, light detection device and electronic equipment - Google Patents
Light detection method, light detection device and electronic equipment Download PDFInfo
- Publication number
- CN111781577B CN111781577B CN202010516694.XA CN202010516694A CN111781577B CN 111781577 B CN111781577 B CN 111781577B CN 202010516694 A CN202010516694 A CN 202010516694A CN 111781577 B CN111781577 B CN 111781577B
- Authority
- CN
- China
- Prior art keywords
- light
- frequency
- infrared light
- difference
- infrared
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000012545 processing Methods 0.000 claims description 17
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000001914 filtration Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 abstract description 6
- 230000005540 biological transmission Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000010355 oscillation Effects 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/48—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
- G01S7/481—Constructional features, e.g. arrangements of optical elements
- G01S7/4811—Constructional features, e.g. arrangements of optical elements common to transmitter and receiver
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/04—Systems determining the presence of a target
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V8/00—Prospecting or detecting by optical means
- G01V8/10—Detecting, e.g. by using light barriers
- G01V8/12—Detecting, e.g. by using light barriers using one transmitter and one receiver
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Geophysics (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
The application discloses a light detection method, a light detection device and electronic equipment, and belongs to the technical field of communication. The method is applied to electronic equipment, an infrared light emitter and an infrared light receiver are arranged in the electronic equipment, the infrared light emitter emits linear sweep frequency infrared light to the outside of the electronic equipment under the control of the electronic equipment, when the infrared light receiver receives reflected light of the linear sweep frequency infrared light, the light intensity of the received reflected light and the frequency difference between the luminous frequency of the infrared light emitter and the light frequency of the received reflected light at the moment are determined, and whether the received reflected light is reflected light or interference light of an external object is judged according to the frequency difference and the light intensity. It can be seen that this embodiment can identify whether the received reflected light is reflected light by an external object or interference light, eliminates interference of the interference light, and solves the problem that the interference light cannot be identified when detecting an approaching object in the prior art, and reduces object detection accuracy.
Description
Technical Field
The application belongs to the technical field of communication, and in particular relates to a light detection method, a light detection device and electronic equipment
Background
Full-screen mobile phones are a trend of current mobile phone development, and full-screen mobile phones detect whether an object approaches to a main use of an under-screen infrared detection technology. In the infrared detection technology under the screen, an infrared lamp and an infrared receiver are arranged below the mobile phone screen, the infrared lamp emits infrared rays to the upper side of the screen under the control of a CPU (central processing unit ), most of the infrared rays are reflected when passing through the mobile phone screen, the reflected infrared rays pass through the mobile phone screen again and are received by the infrared receiver, the infrared receiver performs photoelectric conversion processing on received optical signals and then transmits electric signals to the CPU, and the CPU performs corresponding operation.
In carrying out the present application, the applicant has found that at least the following problems exist in the prior art: due to the problems of the screen material and the structure of the mobile phone, the infrared light can generate interference light in the process of transmitting the infrared light to the outside of the mobile phone through the screen, the interference light can be exemplified as light generated by reflecting the infrared light on the inner surface of the screen in the mobile phone, the interference light cannot be identified, and the interference light can be received and processed by the infrared receiver, so that the object detection precision is reduced.
Disclosure of Invention
An object of the embodiment of the application is to provide a light detection method, a light detection device and electronic equipment, which can solve the problem that interference light cannot be identified when an infrared ray is used for detecting whether an object is close or not in the prior art, and the object detection precision is reduced.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a light detection method, which is applied to an electronic device, where an infrared light transmitter and an infrared light receiver are disposed inside the electronic device, and the method includes:
controlling the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time;
when the infrared light receiver receives the reflected light of the linear sweep infrared light, determining a frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the receiving moment, and determining the light intensity of the reflected light;
and judging that the reflected light is reflected light of an external object or the reflected light is interference light according to the frequency difference and the light intensity.
In a second aspect, an embodiment of the present application provides a light detection apparatus, which is applied to an electronic device, and an infrared light transmitter and an infrared light receiver are disposed in the electronic device, where the apparatus includes:
the control module is used for controlling the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time;
the determining module is used for determining the frequency difference between the luminous frequency of the infrared light emitter and the received light frequency of the reflected light at the receiving moment when the infrared light receiver receives the reflected light of the linear sweep infrared light, and determining the light intensity of the reflected light;
and the judging module is used for judging that the reflected light is reflected light of an external object or the reflected light is interference light according to the frequency difference and the light intensity.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In this application embodiment, electronic equipment is inside to be provided with infrared light transmitter and infrared light receiver, controls infrared light transmitter to the outside transmission linear sweep infrared light of electronic equipment, when infrared light receiver received the reflection light of linear sweep infrared light, confirms the luminous intensity of the reflection light of receipt and the frequency difference between the luminous frequency of infrared light transmitter and the optical frequency of the reflection light of receipt this moment to according to frequency difference and luminous intensity, judge whether the reflection light of receipt is external object reflection light or interference light. In this embodiment, it can be seen that the received reflected light is reflected light or interference light by analyzing the light intensity of the received reflected light and the frequency difference between the light frequency of the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time, so as to eliminate the interference of the interference light, solve the problem that the interference light cannot be identified in the prior art, and reduce the object detection accuracy.
Drawings
FIG. 1 is a flow chart of a light detection method according to an embodiment of the present disclosure;
FIG. 2 is a time-frequency diagram of a swept frequency signal according to an embodiment of the present application;
FIG. 3 is a specific implementation diagram of a light detection method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a module composition of a light detection device according to an embodiment of the present disclosure;
fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The light detection method and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Fig. 1 is a flow chart of a light detection method according to an embodiment of the present application, where the method is applied to an electronic device, and an infrared light transmitter and an infrared light receiver are disposed inside the electronic device. As shown in fig. 1, the process includes the steps of:
step 102, controlling an infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the instantaneous light frequency of the linear sweep infrared light is periodically changed along with the light emitting time of the infrared light emitter, and in a change period, the instantaneous light frequency is linearly changed along with the light emitting time;
104, when the infrared light receiver receives the reflected light of the linear sweep infrared light, determining a frequency difference between the light emitting frequency of the infrared light emitter at the receiving time and the light frequency of the received reflected light, and determining the light intensity of the reflected light;
and step 106, judging that the reflected light is reflected by an external object or is interference light according to the frequency difference and the light intensity.
In this application embodiment, electronic equipment is inside to be provided with infrared light transmitter and infrared light receiver, controls infrared light transmitter to the outside transmission linear sweep infrared light of electronic equipment, when infrared light receiver received the reflection light of linear sweep infrared light, confirms the luminous intensity of the reflection light of receipt and the frequency difference between the luminous frequency of infrared light transmitter and the optical frequency of the reflection light of receipt this moment to according to frequency difference and luminous intensity, judge whether the reflection light of receipt is external object reflection light or interference light. In this embodiment, it can be seen that the received reflected light is reflected light or interference light by analyzing the light intensity of the received reflected light and the frequency difference between the light frequency of the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time, so as to eliminate the interference of the interference light, solve the problem that the interference light cannot be identified in the prior art, and reduce the object detection accuracy.
In the step 102, the infrared light emitter is controlled to emit the linear sweep infrared light to the outside of the electronic device, wherein the instantaneous light frequency when the linear sweep infrared light is emitted varies periodically with the light emitting time of the infrared light emitter, and the instantaneous light frequency varies linearly with the light emitting time in one variation period. The luminous time of the infrared emitter refers to the emitted time of the linear sweep infrared light, and after the linear sweep infrared light is emitted, the light frequency is not changed any more and is always the same as the instantaneous light frequency at the emitted time. Specifically, referring to fig. 2, the function relationship between the instantaneous light frequency of the linear sweep infrared light when being emitted and the emitted time can be referred to that the instantaneous light frequency of the linear sweep infrared light when being emitted changes proportionally and linearly on the function image with the time T as the period.
In this embodiment, step 102 includes: and sending a linear sweep frequency signal to the infrared light emitter so as to control the infrared light emitter to emit the linear sweep frequency infrared light to the outside of the electronic equipment according to the linear sweep frequency signal.
In this embodiment, the processor of the electronic device transmits the linear sweep signal to the infrared light transmitter, and the processor includes a CPU (central processing unit ) or other device having a control processing function, which is not limited herein. The infrared light transmitter and the infrared light receiver are arranged below the screen of the electronic equipment and are connected with the processor through a circuit. The linear sweep frequency signal can refer to the above description of the linear sweep frequency infrared light, is a signal with the frequency changing linearly in a certain time period, and can modulate the infrared emitter to emit the linear sweep frequency infrared light with the same frequency changing rule. The processor outputs a linear sweep signal, one path of the linear sweep signal controls the infrared transmitter to transmit infrared light with the instantaneous frequency linearly changed along with time, and the other path of the linear sweep signal is used as a local oscillation signal to be output to the infrared receiver.
In step 104, when the infrared light receiver receives the reflected light of the linear sweep infrared light, a frequency difference between the light emitting frequency of the infrared light emitter at the receiving time and the light frequency of the received reflected light is determined, and the light intensity of the reflected light is determined;
in this embodiment, determining the frequency difference between the light emitting frequency of the infrared light emitter at the receiving time and the light frequency of the received reflected light includes the steps of:
(a1) Acquiring a linear sweep frequency signal transmitted to an infrared light transmitter at a receiving moment, and acquiring an electric signal obtained by photoelectric conversion of received reflected light;
(a2) Carrying out frequency mixing processing on the obtained linear sweep frequency signal and the obtained electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal;
(a3) Performing low-pass filtering processing on the mixed signal to filter the sum frequency signal to obtain a difference frequency signal;
(a4) And carrying out Fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determining the frequency of the difference frequency signal as a frequency difference.
Specifically, in one case, the above steps (a 1) to (a 3) may be performed by an infrared light receiver. When the processor sends out the linear sweep signal, one path of the infrared light emitter is controlled to emit infrared light with the linear change of the instantaneous frequency along with time, and the other path of the infrared light emitter is used as a local oscillation signal to be output to the infrared light receiver, so that in the step (a 1), the infrared light receiver obtains the local oscillation signal emitted by the receiving moment processor to the infrared light receiver, which is equivalent to obtaining the linear sweep signal emitted by the receiving moment processor to the infrared light emitter.
In step (a 1), the infrared receiver further receives reflected light generated by the infrared light emitted by the infrared emitter through different reflection paths, and the infrared receiver may use a hardware device such as an infrared light receiving tube to obtain an electrical signal by photoelectric conversion of the received reflected light.
In step (a 2), the infrared light receiver further includes a mixer and a low-pass filter, after the infrared light receiving tube performs photoelectric conversion on the received reflected light to obtain an electrical signal, the mixer performs mixing processing on the electrical signal of the reflected light and a local oscillator signal received at the same time as the received reflected light to obtain mixed signals of the two signals, where the mixed signals include a sum frequency signal and a difference frequency signal.
In the step (a 3), the low-pass filter in the infrared light receiver performs low-pass filtering processing on the obtained mixed signal, filters out the sum frequency signal in the mixed signal, obtains a difference frequency signal and outputs the difference frequency signal to the processor.
In step (a 4), after receiving the difference frequency signal, the processor performs fourier transform on the difference frequency signal to obtain an amplitude-frequency characteristic of the difference frequency signal, analyzes the amplitude-frequency characteristic to obtain a frequency of the difference frequency signal, and determines the frequency of the difference frequency signal as a frequency difference between the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time.
The steps (a 1), (a 2) and (a 3) may be another case, that is, the processor includes a mixer and a low-pass filter. In this case, the infrared light receiver receives the reflected light, performs photoelectric conversion and outputs the obtained electric signal to the processor, ignoring the photoelectric conversion time and the time for transmitting the electric signal, the processor mixes the received electric signal with the linear sweep signal transmitted to the infrared light transmitter or to the infrared light receiver at the same time when the electric signal is received to obtain a sum frequency signal and a difference frequency signal, performs low-pass filtering to obtain the difference frequency signal, and the processor performs fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determines the frequency of the difference frequency signal as the frequency difference, where the specific principle is the same as that described in the step (a 2) (a 3).
In this embodiment, determining the light intensity of the reflected light includes: and acquiring an electric signal obtained by photoelectric conversion of the received reflected light, and carrying out Fourier analysis on the electric signal to obtain the light intensity of the reflected light.
Specifically, the infrared light receiver performs photoelectric conversion on the reflected light to obtain an electric signal, the electric signal is sent to the processor, the processor receives the electric signal obtained by photoelectric conversion on the reflected light by the infrared light receiver, performs fourier analysis on the electric signal to obtain amplitude-frequency characteristics of the electric signal, and analyzes the amplitude-frequency to obtain a signal amplitude, wherein the signal amplitude is the light intensity of the reflected light.
In step 106, it is determined that the reflected light is reflected by an external object or that the reflected light is disturbance light based on the frequency difference and the light intensity.
In this embodiment, step 106 includes: when the frequency difference is larger than the preset frequency and the light intensity is larger than the preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, the reflected light is confirmed as the disturbing light.
Specifically, after obtaining the frequency difference, the processor compares the frequency difference with a preset frequency threshold, and if the frequency difference is larger than the preset frequency threshold, determines that the frequency difference meets the preset frequency requirement. The processor also compares the light intensity of the reflected light with a preset intensity threshold, if the light intensity of the reflected light is larger than the intensity threshold, the processor determines that the light intensity of the reflected light meets the preset light intensity requirement, if the two requirements are met, the processor determines that the reflected light received by the infrared light receiver is reflected by an external object, and if one or both of the two requirements are met, the processor determines that the reflected light received by the infrared light receiver is interference light. The disturbing light may be light formed by reflection of infrared light from an infrared light emitter by a device inside the electronic device. The preset frequency threshold and intensity threshold are obtained by manually testing in advance.
The following describes the implementation principle of the embodiment of the present application with reference to fig. 2 and 3, and fig. 2 is a time-frequency diagram of a sweep signal provided in an embodiment of the present application. Fig. 3 is a specific implementation diagram of a light detection method according to an embodiment of the present application.
As shown in fig. 2, the frequency of the linear sweep signal output by the processor varies periodically with time, in one embodiment, the frequency f (t) =f of the linear sweep signal 0 +t/T*f BW (0.ltoreq.t.ltoreq.T) where f 0 Represents the initial frequency of the sweep frequency signal, T represents the frequency modulation period, f BW Representing the swept highest frequency.
As shown in fig. 3, the infrared light emitter emits infrared light with the frequency linearly changing along with the emission time under the control of the CPU, and the instantaneous frequency change rule of the emitted infrared light is the same as the change rule of the frequency of the linear sweep signal shown in fig. 2. It is assumed that the emitted infrared light has two propagation paths: a and B. The a path is a light emission path of infrared light and a propagation path of reflected light from an external object when an approaching object is detected. The path B is a light emitting path of infrared light and a propagation path of interference light when detecting an approaching object, and in a specific embodiment, the path a is a path formed by that infrared light passes through a screen to reach an object approaching an electronic device and is reflected, and reflected light of an external object returns to an infrared receiver to be received. The path B is a path formed by the fact that infrared light does not pass through a screen, interference light is generated by reflecting the infrared light on the inner surface of the screen, and the interference light returns to an infrared receiver to be received.
Combining fig. 2 and 3, let t be 1 At moment, the frequency of the sweep frequency signal output by the CPU is f 1 At this time, the infrared light emitter emits linear sweep infrared light under the control of the CPU, and the infrared light is transmitted through the A path and the B path for a period of Δt respectively 2 And Deltat 3 Wherein the transmission distances of the A and B paths are L respectively 1 And L 2 Since the refractive index of light in air is 1, then there are:
Δt 2 =L 1 /c、Δt 3 =L 2 /c (c is the speed of light)
When the infrared light passes by delta t 2 And Deltat 3 When the time returns to the infrared receiver end, the output frequency of the corresponding linear sweep frequency signal is f 2 And f 3 In one embodiment there is f (t) =f 0 +t/T*f BW (0.ltoreq.t.ltoreq.T), so there are:
f 2 =f 1 +(t 1 +Δt 2 )/T*f BW (0≤t≤T)、f 3 =f 1 +(t 1 +Δt 3 )/T*f BW (0≤t≤T)
from the above description, at t 1 The frequency of the electric signal of the infrared light emitted at the moment after photoelectric conversion is f 1 ,t 1 The infrared light emitted at the moment passes through the A path and at t 1 +Δt 2 The time is received by an infrared light receiver and is subjected to photoelectric conversion to obtain an electric signal, and the electric signal is mixed with t by a mixer 1 +Δt 2 Time local oscillation signal f 2 After mixing, a sum signal (f) 1 +f 2 ) And the difference frequency signal (f 2 -f 1 ) The low-pass filter filters out the sum frequency signal and finally obtains the difference frequency signal (f 2 -f 1 ). Similarly, the infrared light emitted at time t1 passes through the B path at t 1 +Δt 3 The time is received by the infrared light receiver and the obtained difference frequency signal is (f) 3 -f 1 )。
In combination with fig. 2 and the reality, it can be seen that the transmission distance of the disturbing light is generally shorter than the transmission distance of the reflected light reflected on the external approaching object, i.e. L 2 <L 1 Thus Δt 3 <Δt 2 Corresponding f 3 <f 2 Therefore there is (f) 3 -f 1 )<(f 2 -f 1 ). Therefore, the frequency of the difference frequency signal corresponding to the interference light is smaller than that of the difference frequency signal corresponding to the reflected light of the external object, the received reflected light is the interference light or the reflected light when the external object is close to the interference light can be distinguished by reasonably setting a frequency threshold value and comparing the frequency threshold value with the obtained difference frequency signal frequency, and if the received reflected light is the reflected light when the external object is close to the interference light, the obtained difference frequency signal frequency is larger than the preset frequency. And because most of infrared light is transmitted in the process of passing through the electronic equipment to the outside, the light intensity of interference light generated in the process is smaller than the light intensity of reflected light of an external object, so that the received reflected light is distinguished and judged to be interference light or reflected light when the external object is close by reasonably setting an intensity threshold and comparing the intensity threshold with the light intensity of the received reflected light, and if the received reflected light is reflected light when the external object is close, the obtained light intensity is larger than the preset light intensity.
As shown in fig. 3, after the infrared light receiver obtains the difference frequency signal, the difference frequency signal and the electric signal of the infrared light are transmitted to the CPU, the CPU performs fourier transform on the received difference frequency signal and electric signal, obtains the amplitude-frequency characteristics of the difference frequency signal and electric signal, performs analysis processing, obtains the frequency of the difference frequency signal and the amplitude of the electric signal of the reflected light, and performs fourier analysis after the photoelectric conversion of the reflected light, thus obtaining the signal amplitude of the reflected light. According to the above description, if both the difference frequency signal frequency and the amplitude of the electric signal of the reflected light are larger than the frequency threshold value and the intensity threshold value set in advance, the reflected light is judged to be reflected by an external object, otherwise, the reflected light is judged to be disturbance light.
In this embodiment, the frequency of the obtained difference frequency signal and the amplitude of the reflected photoelectric signal are compared with the set frequency threshold and the set intensity threshold respectively, and the infrared light received by the infrared receiver is distinguished as the reflected light or the interference light of the external object according to the comparison result, so that the problem that the interference light cannot be distinguished in the existing infrared detection technology under the screen is solved, and the precision of detecting the approach of the external object is improved.
It should be noted that, in the light detection method provided in the embodiment of the present application, the execution body may be a light detection device, or a control module in the light detection device for executing the loading light detection method. In the embodiment of the present application, the light detection device executes the loaded light detection method as an example, and the light detection method provided in the embodiment of the present application is described.
Fig. 4 is a schematic block diagram of a light detection device according to an embodiment of the present application, where the device is applied to an electronic device, and an infrared light transmitter and an infrared light receiver are disposed inside the electronic device. As shown in fig. 4, the apparatus includes:
the control module 41 is used for controlling the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time;
a determining module 42, configured to determine, when the infrared light receiver receives the reflected light of the linearly swept infrared light, a frequency difference between a light emitting frequency of the infrared light emitter at a receiving time and a light frequency of the received reflected light, and determine a light intensity of the reflected light;
and the judging module 43 is configured to judge that the reflected light is reflected by an external object or that the reflected light is interference light according to the frequency difference and the light intensity.
Optionally, the control module 41 is specifically configured to: and sending a linear sweep frequency signal to the infrared light emitter so as to control the infrared light emitter to emit the linear sweep frequency infrared light to the outside of the electronic equipment according to the linear sweep frequency signal.
Optionally, the determining module 42 is specifically configured to: acquiring a linear sweep frequency signal transmitted to an infrared light transmitter at a receiving moment, and acquiring an electric signal obtained by photoelectric conversion of received reflected light; carrying out frequency mixing processing on the obtained linear sweep frequency signal and the obtained electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal; performing low-pass filtering processing on the mixed signal to filter the sum frequency signal to obtain a difference frequency signal; and carrying out Fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determining the frequency of the difference frequency signal as a frequency difference.
Optionally, the judging module 43 is specifically configured to: when the frequency difference is larger than a preset frequency and the light intensity is larger than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, the reflected light is confirmed to be interference light.
The light detection device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The light detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The light detection device provided in this embodiment of the present application can implement each process implemented by the light detection device in the method embodiments of fig. 1 to 3, and in order to avoid repetition, a detailed description is omitted here.
In this application embodiment, electronic equipment is inside to be provided with infrared light transmitter and infrared light receiver, controls infrared light transmitter to the outside transmission linear sweep infrared light of electronic equipment, when infrared light receiver received the reflection light of linear sweep infrared light, confirms the luminous intensity of the reflection light of receipt and the frequency difference between the luminous frequency of infrared light transmitter and the optical frequency of the reflection light of receipt this moment to according to frequency difference and luminous intensity, judge whether the reflection light of receipt is external object reflection light or interference light. In this embodiment, it can be seen that the received reflected light is reflected light or interference light by analyzing the light intensity of the received reflected light and the frequency difference between the light frequency of the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time, so as to eliminate the interference of the interference light, solve the problem that the interference light cannot be identified in the prior art, and reduce the object detection accuracy.
Optionally, the embodiment of the present application further provides an electronic device, including a processor 510, a memory 509, and a program or an instruction stored in the memory 509 and capable of running on the processor 510, where the program or the instruction implements each process of the embodiment of the light detection method when executed by the processor 510, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510. In this embodiment, the electronic device may further include an infrared light receiver and an infrared light transmitter. The infrared light receiver is used for emitting infrared light to the outside, and the infrared light receiver is used for receiving reflected light of the infrared light so as to detect whether an object approaches.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 510 is configured to control the infrared light emitter to emit linear sweep infrared light to the outside of the electronic device; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time; when the infrared light receiver receives the reflected light of the linear sweep infrared light, determining a frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the receiving moment, and determining the light intensity of the reflected light; and judging that the reflected light is reflected light of an external object or the reflected light is interference light according to the frequency difference and the light intensity.
In this application embodiment, electronic equipment is inside to be provided with infrared light transmitter and infrared light receiver, controls infrared light transmitter to the outside transmission linear sweep infrared light of electronic equipment, when infrared light receiver received the reflection light of linear sweep infrared light, confirms the luminous intensity of the reflection light of receipt and the frequency difference between the luminous frequency of infrared light transmitter and the optical frequency of the reflection light of receipt this moment to according to frequency difference and luminous intensity, judge whether the reflection light of receipt is external object reflection light or interference light. In this embodiment, it can be seen that the received reflected light is reflected light or interference light by analyzing the light intensity of the received reflected light and the frequency difference between the light frequency of the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time, so as to eliminate the interference of the interference light, solve the problem that the interference light cannot be identified in the prior art, and reduce the object detection accuracy.
Optionally, the processor 510 controls the infrared light emitter to emit linear sweep infrared light to the outside of the electronic device, including: and sending a linear sweep frequency signal to the infrared light emitter so as to control the infrared light emitter to emit the linear sweep frequency infrared light to the outside of the electronic equipment according to the linear sweep frequency signal.
Optionally, the processor 510 determines a frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the receiving time, including: acquiring a linear sweep frequency signal transmitted to an infrared light transmitter at a receiving moment, and acquiring an electric signal obtained by photoelectric conversion of received reflected light; carrying out frequency mixing processing on the obtained linear sweep frequency signal and the obtained electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal; performing low-pass filtering processing on the mixed signal to filter the sum frequency signal to obtain a difference frequency signal; and carrying out Fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determining the frequency of the difference frequency signal as a frequency difference.
Optionally, the processor 510 determines that the reflected light is reflected by an external object or determines that the reflected light is interference light according to the frequency difference and the light intensity, including: when the frequency difference is larger than a preset frequency and the light intensity is larger than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, the reflected light is confirmed to be interference light.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above embodiment of the light detection method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so that each process of the embodiment of the light detection method can be implemented, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
Claims (8)
1. A light detection method applied to an electronic device, wherein an infrared light emitter and an infrared light receiver are arranged inside the electronic device, and the method is characterized by comprising the following steps:
controlling the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time;
when the infrared light receiver receives the reflected light of the linear sweep infrared light, determining a frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the receiving moment, and determining the light intensity of the reflected light;
judging that the reflected light is reflected light of an external object or the reflected light is interference light according to the frequency difference and the light intensity; the interference light is generated by reflecting infrared light on the inner surface of the electronic equipment;
according to the frequency difference and the light intensity, the method for judging the reflected light to be reflected by an external object or judging the reflected light to be interference light comprises the following steps:
when the frequency difference is larger than a preset frequency and the light intensity is larger than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, the reflected light is confirmed to be interference light.
2. The method of claim 1, wherein controlling the infrared light emitter to emit linearly swept infrared light to an exterior of the electronic device comprises:
and sending a linear sweep frequency signal to the infrared light emitter so as to control the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment according to the linear sweep frequency signal.
3. The method of claim 2, wherein determining the frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the time of reception comprises:
acquiring a linear sweep frequency signal transmitted to the infrared light transmitter at the receiving moment, and acquiring an electric signal obtained by photoelectric conversion of the received reflected light;
carrying out frequency mixing processing on the obtained linear sweep frequency signal and the obtained electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal;
performing low-pass filtering processing on the mixed signal to filter the sum frequency signal to obtain the difference frequency signal;
and carrying out Fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determining the frequency of the difference frequency signal as the frequency difference.
4. A light detection device applied to an electronic device, wherein an infrared light emitter and an infrared light receiver are arranged inside the electronic device, the device comprising:
the control module is used for controlling the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment; the linear sweep infrared light is emitted, wherein the instantaneous light frequency changes periodically along with the light emitting time of the infrared light emitter, and in a changing period, the instantaneous light frequency changes linearly along with the light emitting time;
the determining module is used for determining the frequency difference between the luminous frequency of the infrared light emitter and the received light frequency of the reflected light at the receiving moment when the infrared light receiver receives the reflected light of the linear sweep infrared light, and determining the light intensity of the reflected light;
the judging module is used for judging that the reflected light is reflected light of an external object or the reflected light is interference light according to the frequency difference and the light intensity; the interference light is generated by reflecting infrared light on the inner surface of the electronic equipment;
the judging module is specifically configured to:
when the frequency difference is larger than a preset frequency and the light intensity is larger than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, the reflected light is confirmed to be interference light.
5. The apparatus of claim 4, wherein the control module is specifically configured to:
and sending a linear sweep frequency signal to the infrared light emitter so as to control the infrared light emitter to emit linear sweep frequency infrared light to the outside of the electronic equipment according to the linear sweep frequency signal.
6. The apparatus of claim 5, wherein the determining module is specifically configured to:
acquiring a linear sweep frequency signal transmitted to the infrared light transmitter at the receiving moment, and acquiring an electric signal obtained by photoelectric conversion of the received reflected light;
carrying out frequency mixing processing on the obtained linear sweep frequency signal and the obtained electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal;
performing low-pass filtering processing on the mixed signal to filter the sum frequency signal to obtain the difference frequency signal;
and carrying out Fourier analysis on the difference frequency signal to obtain the frequency of the difference frequency signal, and determining the frequency of the difference frequency signal as the frequency difference.
7. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the light detection method according to any one of claims 1-3.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the light detection method according to any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010516694.XA CN111781577B (en) | 2020-06-08 | 2020-06-08 | Light detection method, light detection device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010516694.XA CN111781577B (en) | 2020-06-08 | 2020-06-08 | Light detection method, light detection device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111781577A CN111781577A (en) | 2020-10-16 |
CN111781577B true CN111781577B (en) | 2023-12-22 |
Family
ID=72753408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010516694.XA Active CN111781577B (en) | 2020-06-08 | 2020-06-08 | Light detection method, light detection device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111781577B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114681085B (en) * | 2022-03-28 | 2024-08-13 | 上海飞象健康科技有限公司 | Oral cavity cleaner based on intelligent light sense start-stop control, start-stop control method and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101356451A (en) * | 2005-12-05 | 2009-01-28 | 塞德斯股份公司 | Sensor array and sensor device for a sensor array |
CN102822643A (en) * | 2010-12-30 | 2012-12-12 | 罗斯蒙特储罐雷达股份公司 | Radar level gauging using frequency modulated pulsed wave |
CN105528117A (en) * | 2016-01-28 | 2016-04-27 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring scanning frequency of touch panel |
CN106226755A (en) * | 2016-08-30 | 2016-12-14 | 北京小米移动软件有限公司 | Robot |
CN106918804A (en) * | 2016-11-27 | 2017-07-04 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Radar chaff recognizes signal processing system |
WO2019234034A1 (en) * | 2018-06-07 | 2019-12-12 | Robert Bosch Gmbh | Operating method for a lidar system, control unit, lidar system, and device |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4633423B2 (en) * | 2004-09-15 | 2011-02-16 | 株式会社トプコン | Optical image measuring device |
GB0421520D0 (en) * | 2004-09-28 | 2004-10-27 | Qinetiq Ltd | Frequency modulated continuous wave (FMCW) radar having improved frquency sweep linearity |
CN101393263B (en) * | 2008-11-05 | 2011-08-03 | 上海科勒电子科技有限公司 | Anti mirror processing method of distance detecting induction system |
EP2589980A1 (en) * | 2011-11-04 | 2013-05-08 | Leica Geosystems AG | Distance sensor |
CN105190350A (en) * | 2013-03-19 | 2015-12-23 | 三菱电机株式会社 | Laser device |
CN106502464B (en) * | 2016-11-04 | 2019-05-28 | 京东方科技集团股份有限公司 | Encapsulation cover plate, touch-control display panel, display device and touch-control driving method |
DE102017213729B4 (en) * | 2017-08-08 | 2020-12-24 | Robert Bosch Gmbh | Method and device for providing a detection signal for objects to be detected |
CN108776329A (en) * | 2018-04-20 | 2018-11-09 | 南京理工大学 | Based on chaotically coding frequency agility linear frequency modulation continuous wave system and its application process |
US11175376B2 (en) * | 2018-09-18 | 2021-11-16 | Infineon Technologies Ag | System and method for determining interference in a radar system |
CN110133617A (en) * | 2019-04-17 | 2019-08-16 | 深圳市速腾聚创科技有限公司 | A kind of laser radar system |
-
2020
- 2020-06-08 CN CN202010516694.XA patent/CN111781577B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101356451A (en) * | 2005-12-05 | 2009-01-28 | 塞德斯股份公司 | Sensor array and sensor device for a sensor array |
CN102822643A (en) * | 2010-12-30 | 2012-12-12 | 罗斯蒙特储罐雷达股份公司 | Radar level gauging using frequency modulated pulsed wave |
CN105528117A (en) * | 2016-01-28 | 2016-04-27 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring scanning frequency of touch panel |
CN106226755A (en) * | 2016-08-30 | 2016-12-14 | 北京小米移动软件有限公司 | Robot |
CN106918804A (en) * | 2016-11-27 | 2017-07-04 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Radar chaff recognizes signal processing system |
WO2019234034A1 (en) * | 2018-06-07 | 2019-12-12 | Robert Bosch Gmbh | Operating method for a lidar system, control unit, lidar system, and device |
Non-Patent Citations (3)
Title |
---|
一种线性扫频干扰信号的参数估计方法;周新;姚富强;牛英滔;;通信技术(第12期);全文 * |
复杂电磁环境下雷达抗干扰技术研究;李淑华;黄晓刚;刘平;;现代雷达(第04期);全文 * |
线性调频激励的红外热波成像检测技术;刘俊岩等;红外与激光工程;第41卷(第6期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111781577A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220026544A1 (en) | Ranging Method, Apparatus, and Device | |
CN108958490B (en) | Electronic device, gesture recognition method thereof and computer-readable storage medium | |
CN107393548B (en) | Method and device for processing voice information collected by multiple voice assistant devices | |
US20060244654A1 (en) | Programmable method and test device for generating target for FMCW radar | |
CN107404358B (en) | Radio frequency channel detection method, terminal and computer readable storage medium | |
US10205817B2 (en) | Method, device and storage medium for controlling screen state | |
CN112383857B (en) | Earphone control method, control device and earphone | |
CN111781577B (en) | Light detection method, light detection device and electronic equipment | |
CN114389648A (en) | Signal transmission method and device, terminal equipment, intelligent equipment and electronic equipment | |
CN109074177A (en) | A kind of method and touch screen, stylus of determining stylus target operating frequency | |
CN103139368A (en) | Prompt method and device | |
CN103885590A (en) | Method and user equipment for obtaining user instructions | |
CN108924908B (en) | WiFi scanning method and device and electronic device | |
CN101881833A (en) | Electro-optical distance measurement device | |
EP2239596A2 (en) | System and method for generating a reference signal for phase calibration of a system | |
US20150338900A1 (en) | Method and system for detecting an object or body based on changes in signal phases | |
CN108832944A (en) | Power compensating method, device, terminal device and storage medium | |
KR102679276B1 (en) | Lidar sensor apparatus and control method thereof | |
US10761185B2 (en) | Signal processing device, signal processing method, recording medium, target detection device, and target detection method | |
WO2011022894A1 (en) | Method for controlling communication distance and radio frequency reading device | |
CN108923866A (en) | antenna calibration method, device, terminal device and storage medium | |
CN113866761A (en) | Body movement detection method and device | |
CN112987127B (en) | Detection processing method and device of specific absorption rate sensor and electronic equipment | |
CN112399012A (en) | Proximity sensor setting method, device and storage medium | |
EP3338467A1 (en) | A proximity detector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |