CN111781577A - Light detection method, light detection device and electronic equipment - Google Patents

Light detection method, light detection device and electronic equipment Download PDF

Info

Publication number
CN111781577A
CN111781577A CN202010516694.XA CN202010516694A CN111781577A CN 111781577 A CN111781577 A CN 111781577A CN 202010516694 A CN202010516694 A CN 202010516694A CN 111781577 A CN111781577 A CN 111781577A
Authority
CN
China
Prior art keywords
frequency
light
infrared light
signal
reflected light
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.)
Granted
Application number
CN202010516694.XA
Other languages
Chinese (zh)
Other versions
CN111781577B (en
Inventor
杨茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010516694.XA priority Critical patent/CN111781577B/en
Publication of CN111781577A publication Critical patent/CN111781577A/en
Application granted granted Critical
Publication of CN111781577B publication Critical patent/CN111781577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/481Constructional features, e.g. arrangements of optical elements
    • G01S7/4811Constructional features, e.g. arrangements of optical elements common to transmitter and receiver
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/04Systems determining the presence of a target
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • G01V8/12Detecting, e.g. by using light barriers using one transmitter and one receiver

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, the infrared light receiver determines the light intensity of the received reflected light and the frequency difference between the light emitting frequency of the infrared light emitter and the light frequency of the received reflected light at the moment when the infrared light receiver receives the reflected light of the linear sweep frequency infrared light, and judges whether the received reflected light is the reflected light of an external object or interference light according to the frequency difference and the light intensity. It can be seen that this embodiment can discern whether the reflected light that receives is external object reverberation or interference light, has got rid of the interference of interference light, has solved among the prior art and has detected unable discernment interference light when being close to the object, reduces the problem of object detection precision.

Description

Light detection method, light detection device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a light detection method, a light detection device and an electronic device
Background
The comprehensive screen mobile phone is a trend of mobile phone development at present, and the comprehensive screen mobile phone detects whether an object is close to a main infrared detection technology under a screen. In the infrared detection technology under the screen, infrared lamp and infrared receiver are provided with below the mobile phone screen, the infrared lamp is at CPU's control down to the transmission infrared ray of screen top, most infrared ray passes the mobile phone screen after, takes place the reflection when meetting the object, the infrared light after the reflection can pass the mobile phone screen again, and by infrared receiver receipt, infrared receiver carries out photoelectric conversion processing with the signal of telecommunication to CPU after to the light signal that receives, CPU carries out corresponding operation again.
In the process of implementing the present application, the applicant finds that at least the following problems exist in the prior art: due to the problems of the material and the structure of the screen of the mobile phone, interference light can be generated in the process that infrared light penetrates through the screen and is transmitted to the outside of the mobile phone, the interference light can be generated by reflecting the infrared light from the inner surface of the screen inside the mobile phone, the interference light cannot be identified, and the interference light can be received and processed by an infrared receiver, so that the object detection precision is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a light detection method, a light detection device and electronic equipment, and the problems that interference light cannot be identified and object detection precision is reduced when an object is detected to be close to by using infrared rays in the prior art can be solved.
In order to solve the technical problem, the present application is implemented 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 emitter and an infrared light receiver are disposed inside the electronic device, and the method includes:
controlling the infrared light emitter to emit linear swept-frequency infrared light to the outside of the electronic equipment; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
when the infrared light receiver receives reflected light of the linear frequency sweep infrared light, determining a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at the moment of receiving, and determining a light intensity of the reflected light;
and judging the reflected light to be external object reflected light or judging the reflected light to be 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 device, which is applied to an electronic device, an infrared light emitter and an infrared light receiver are disposed inside the electronic device, and the device includes:
the control module is used for controlling the infrared light transmitter to transmit linear swept-frequency infrared light to the outside of the electronic equipment; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
a determining module, configured to determine, when the infrared light receiver receives reflected light of the linear frequency sweep infrared light, a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at a receiving time, and determine a light intensity of the reflected light;
and the judging module is used for judging the reflected light as external object reflected light or judging the reflected light as interference light according to the frequency difference and the light intensity.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, an infrared light emitter and an infrared light receiver are arranged inside an electronic device, the infrared light emitter is controlled to emit linear sweep infrared light to the outside of the electronic device, when the infrared light receiver receives reflected light of the linear sweep infrared light, the light intensity of the received reflected light and the frequency difference between the light emitting 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 of an external object or interference light is judged according to the frequency difference and the light intensity. In this embodiment, it can be seen that, 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, whether the received reflected light is the reflected light of the external object or the interference light can be identified, the interference of the interference light is eliminated, and the problems that the interference light cannot be identified and the object detection accuracy is reduced in the prior art are solved.
Drawings
Fig. 1 is a schematic flowchart of a light detection method according to an embodiment of the present application;
fig. 2 is a time-frequency diagram of a frequency sweep signal according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an embodiment 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 detecting device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in 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 through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart 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 emitter and an infrared light receiver are disposed inside the electronic device. As shown in fig. 1, the process includes the following steps:
step 102, controlling an infrared light emitter to emit linear swept-frequency infrared light to the outside of the electronic equipment; the infrared emission device comprises an infrared emitter, a linear sweep frequency infrared light emitter, a linear sweep frequency control unit, a frequency control unit and a frequency control unit, wherein the instantaneous light frequency of the linear sweep frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
104, when the infrared light receiver receives the reflected light of the linear sweep frequency 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 106, judging the reflected light to be external object reflected light or judging the reflected light to be interference light according to the frequency difference and the light intensity.
In the embodiment of the application, an infrared light emitter and an infrared light receiver are arranged inside an electronic device, the infrared light emitter is controlled to emit linear sweep infrared light to the outside of the electronic device, when the infrared light receiver receives reflected light of the linear sweep infrared light, the light intensity of the received reflected light and the frequency difference between the light emitting 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 of an external object or interference light is judged according to the frequency difference and the light intensity. In this embodiment, it can be seen that, 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, whether the received reflected light is the reflected light of the external object or the interference light can be identified, the interference of the interference light is eliminated, and the problems that the interference light cannot be identified and the object detection accuracy is reduced in the prior art are solved.
In the step 102, the infrared light emitter is controlled to emit the linear swept frequency infrared light to the outside of the electronic device, wherein an instantaneous light frequency when the linear swept frequency infrared light is emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period. The light emitting time of the infrared emitter refers to the emitting time of the linear frequency sweep infrared light, and after the linear frequency sweep infrared light is emitted, the light frequency does not change any more and is always the same as the instantaneous light frequency at the emitting time. Specifically, referring to fig. 2, the function relationship between the instantaneous light frequency when the linear swept-frequency infrared light is emitted and the emitted time may be represented by that the instantaneous light frequency when the linear swept-frequency infrared light is emitted is periodic with time T and linearly changes on the function image in proportion to the emitted time.
In this embodiment, step 102 includes: and sending the linear frequency sweeping signal to the infrared light emitter so as to control the infrared light emitter to emit linear frequency sweeping infrared light to the outside of the electronic equipment according to the linear frequency sweeping signal.
In this embodiment, the processor of the electronic device transmits the linear sweep signal to the infrared light emitter, and the processor includes a Central Processing Unit (CPU) or other devices having a control processing function, which is not limited herein. The infrared light emitter and the infrared light receiver are arranged below a screen of the electronic equipment and are connected with the processor through a circuit. The linear sweep frequency signal can refer to the 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 transmitter to transmit the linear sweep frequency infrared light with the same frequency change rule. The processor outputs a linear frequency sweeping signal, one path of the linear frequency sweeping signal controls the infrared light emitter to emit infrared light with the instantaneous frequency changing linearly along with time, and the other path of the linear frequency sweeping signal is used as a local oscillation signal to be output to the infrared light receiver.
In step 104, when the infrared light receiver receives the reflected light of the linear frequency 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 time, and determining the light intensity of the reflected light;
in this embodiment, 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 includes the following steps:
(a1) acquiring a linear sweep frequency signal transmitted to an infrared light emitter at a receiving moment, and acquiring an electric signal obtained by performing photoelectric conversion on received reflected light;
(a2) performing frequency mixing processing on the acquired linear frequency sweeping signal and the acquired electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal;
(a3) low-pass filtering the frequency mixing signal to filter the sum frequency signal to obtain a difference frequency signal;
(a4) and performing 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.
Specifically, in one case, the above-described steps (a1) to (a3) may be performed by an infrared light receiver. Because the processor sends out the linear frequency sweep signal, one way controls the infrared light emitter to emit the infrared light whose instantaneous frequency changes linearly with time, and the other way is output to the infrared light receiver as the local oscillation signal, in the step (a1), the infrared light receiver acquires the local oscillation signal emitted to the infrared light receiver by the processor at the receiving time, which is equivalent to acquiring the linear frequency sweep signal emitted to the infrared light emitter by the processor at the receiving time.
In the step (a1), the infrared receiver further receives reflected light generated by the infrared light emitted by the infrared emitter via different reflection paths, and the infrared receiver may use hardware devices such as an infrared light receiving tube to photoelectrically convert the received reflected light into an electrical signal.
In the step (a2), 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 frequency mixing processing on the electrical signal of the reflected light and a local oscillator signal received at the same time as the reflected light is received to obtain a frequency mixing signal of the two signals, and the frequency mixing signal includes a sum frequency signal and a difference frequency signal.
In the step (a3), a low-pass filter in the infrared light receiver performs low-pass filtering on the obtained mixed signal, and filters out a sum frequency signal in the mixed signal to obtain a difference frequency signal and outputs the difference frequency signal to the processor.
In the step (a4), after the processor receives the difference frequency signal, the processor performs fourier transform on the difference frequency signal to obtain amplitude-frequency characteristics of the difference frequency signal, analyzes the amplitude-frequency characteristics to obtain the frequency of the difference frequency signal, and determines the frequency of the difference frequency signal as the frequency difference between the received reflected light and the light emitting frequency of the infrared light emitter at the receiving time.
In the above steps (a1), (a2) and (a3), there is another case that the processor includes a mixer and a low-pass filter. In this case, the infrared light receiver receives the reflected light, performs photoelectric conversion, outputs the obtained electrical signal to the processor, ignores the photoelectric conversion time and the time for transmitting the electrical signal, the processor performs mixing processing on the received electrical signal and a linear sweep frequency signal transmitted to the infrared light transmitter or the infrared light receiver at the same time as the received electrical signal to obtain a sum frequency signal and a difference frequency signal, performs low-pass filtering to obtain a difference frequency signal, performs fourier analysis on the difference frequency signal by the processor to obtain the frequency of the difference frequency signal, and determines the frequency of the difference frequency signal as the frequency difference, which has the same specific principle as that described in the above step (a2) (a 3).
In this embodiment, determining the light intensity of the reflected light includes: and acquiring an electric signal obtained by performing photoelectric conversion on the received reflected light, and performing 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, after the processor receives the electric signal obtained by performing photoelectric conversion on the reflected light by the infrared light receiver, the electric signal is subjected to fourier analysis to obtain the amplitude-frequency characteristic of the electric signal, the amplitude-frequency characteristic is analyzed to obtain the signal amplitude, and the signal amplitude is the light intensity of the reflected light.
In step 106, it is determined that the reflected light is the external object reflected light or the reflected light is the disturbance light, based on the frequency difference and the light intensity.
In this embodiment, step 106 includes: when the frequency difference is greater than the preset frequency and the light intensity is greater than the preset intensity, the reflected light is confirmed to be the reflected light of the external object; otherwise, the reflected light is confirmed as interference light.
Specifically, the processor compares the obtained frequency difference with a preset frequency threshold, and determines that the frequency difference meets a preset frequency requirement if the frequency difference is greater than the preset frequency threshold. 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 greater than the intensity threshold, the light intensity of the reflected light is determined to meet the preset light intensity requirement, if the two size requirements are met, the processor judges that the reflected light received by the infrared light receiver is the reflected light of the external object, and if the two size requirements are met or not met, the processor judges that the reflected light received by the infrared light receiver is the interference light. The disturbing light may be light formed by infrared light emitted by the infrared light emitter being reflected by a device inside the electronic device. The preset frequency threshold and the preset intensity threshold are obtained by manually testing in advance.
The following describes an implementation principle of the embodiment of the present application with reference to fig. 2 and fig. 3, and fig. 2 is a time-frequency diagram of a frequency sweep signal provided in the embodiment of the present application. Fig. 3 is a diagram illustrating an embodiment of a light detection method according to an embodiment of the present disclosure.
As shown in fig. 2, the frequency of the linear frequency sweep signal output by the processor varies periodically with time, and in an embodiment, the frequency of the linear frequency sweep signal is f (t) ═ f0+t/T*fBW(0. ltoreq. T. ltoreq.T), where f0Representing the initial frequency of the swept frequency signal, T representing the frequency modulation period, fBWIndicating maximum sweepFrequency.
As shown in fig. 3, the infrared light emitter emits infrared light whose frequency changes linearly with the emission time under the control of the CPU, and the change rule of the instantaneous frequency of the emitted infrared light is the same as the change rule of the frequency of the linear frequency sweep signal as shown in fig. 2. Two propagation paths of the emitted infrared light are assumed: a and B. The a path is a light emitting path of infrared light and a propagation path of external object reflected light when an approaching object is detected. The path B is a light emitting path of the infrared light and a propagation path of the interference light when the near object is detected, and in a specific embodiment, the path a is a path formed by the infrared light passing through the screen to reach the near object of the electronic device and reflecting the infrared light, and the external object reflected light returns to the infrared receiver to be received. The path B is a path formed by that infrared light does not pass through the screen, interference light is generated by reflecting the infrared light on the inner surface of the screen, and the interference light returns to the infrared receiver to be received.
Combining FIG. 2 and FIG. 3, let t1At the moment, the frequency of the sweep frequency signal output by the CPU is f1At this time, the infrared light emitter emits linear sweep-frequency infrared light under the control of the CPU, and the transmission time of the infrared light through the paths A and B is delta t2And Δ t3Wherein the transmission distances of the A and B paths are L respectively1And L2Since the refractive index of light in air is 1, then:
Δt2=L1/c、Δt3=L2c (c is light speed)
When infrared light passes by delta t2And Δ t3When the time returns to the infrared receiver end, the output frequencies of the corresponding linear sweep signals are respectively f2And f3In one embodiment, f (t) ═ f0+t/T*fBW(0. ltoreq. T. ltoreq. T), so that:
f2=f1+(t1+Δt2)/T*fBW(0≤t≤T)、f3=f1+(t1+Δt3)/T*fBW(0≤t≤T)
as can be seen from the above description, at t1Electric signal of infrared light emitted at any moment after photoelectric conversionHas a frequency of f1,t1The infrared light emitted at time passes through path A, at t1+Δt2The time is received by the infrared light receiver and is photoelectrically converted to obtain an electric signal, and the electric signal is mixed by a mixer and t1+Δt2Local oscillator signal f of time2After mixing, a sum frequency signal (f) is obtained1+f2) And difference frequency signal (f)2-f1) The low-pass filter filters the sum frequency signal to finally obtain the difference frequency signal (f)2-f1). Similarly, the infrared light emitted at time t1 passes through the B path at t1+Δt3After the time is received by the infrared light receiver and is subjected to frequency mixing filtering operation, the obtained difference frequency signal is (f)3-f1)。
In conjunction with fig. 2 and the real-world situation, 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, close object, i.e., L2<L1Thus Δ t3<Δt2Corresponding to f3<f2Therefore there is (f)3-f1)<(f2-f1). Therefore, the frequency of the difference frequency signal corresponding to the interference light is smaller than the frequency of the difference frequency signal corresponding to the external object reflected light, whether the received reflected light is the interference light or the reflected light when the external object approaches can be distinguished by reasonably setting a frequency threshold and comparing the frequency with the obtained frequency of the difference frequency signal, and if the received reflected light is the reflected light when the external object approaches, the frequency of the obtained difference frequency signal is larger than the preset frequency. And because most infrared light can be transmitted out 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 reflected by an external object, so that whether the received reflected light is interference light or reflected light when the external object approaches can be distinguished and judged by reasonably setting an intensity threshold value and comparing the intensity with the light intensity of the received reflected light, and if the received reflected light is reflected light when the external object approaches, 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 the electric signal to obtain the amplitude-frequency characteristics of the difference frequency signal and the electric signal, and performs analysis processing to obtain the frequency of the difference frequency signal and the amplitude of the electric signal of the reflected light, and the signal amplitude obtained by performing fourier analysis after photoelectric conversion of the reflected light is the light intensity of the reflected light. According to the above description, if the difference frequency signal frequency and the amplitude of the electrical signal of the reflected light are both greater than the preset frequency threshold and intensity threshold, the reflected light is determined to be the external object reflected light, otherwise, the reflected light is determined to be the interference light.
In this embodiment, the obtained difference frequency signal frequency and the amplitude of the reflected light electric signal are respectively compared with the set frequency threshold and the set intensity threshold, and whether the infrared light received by the infrared receiver is the reflected light of the external object or the interference light is distinguished according to the comparison result, so that the problem that the interference light cannot be distinguished in the existing under-screen infrared detection technology is solved, and the precision of detecting the approach of the external object is improved.
It should be noted that in the light detecting method provided in the embodiment of the present application, the executing main body may be a light detecting device, or a control module in the light detecting device for executing the loaded light detecting method. In the embodiment of the present application, a light detection device is taken as an example to execute a loading light detection method, and the light detection method provided in the embodiment of the present application is described.
Fig. 4 is a schematic diagram illustrating a module composition of a light detecting device according to an embodiment of the present application, where the light detecting device is applied to an electronic device, and an infrared light emitter and an infrared light receiver are disposed inside the electronic device. As shown in fig. 4, the apparatus includes:
a control module 41, configured to control the infrared light emitter to emit linear swept-frequency infrared light to the outside of the electronic device; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
a determining module 42, configured to determine, when the reflected light of the linear frequency sweep infrared light is received by the infrared light receiver, a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at a receiving time, and determine a light intensity of the reflected light;
and a determining module 43, configured to determine, according to the frequency difference and the light intensity, that the reflected light is external object reflected light or that the reflected light is interference light.
Optionally, the control module 41 is specifically configured to: and sending the linear frequency sweeping signal to the infrared light emitter so as to control the infrared light emitter to emit linear frequency sweeping infrared light to the outside of the electronic equipment according to the linear frequency sweeping signal.
Optionally, the determining module 42 is specifically configured to: acquiring a linear sweep frequency signal transmitted to an infrared light emitter at a receiving moment, and acquiring an electric signal obtained by performing photoelectric conversion on received reflected light; performing frequency mixing processing on the acquired linear frequency sweeping signal and the acquired electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal; low-pass filtering the frequency mixing signal to filter the sum frequency signal to obtain a difference frequency signal; and performing 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.
Optionally, the determining module 43 is specifically configured to: when the frequency difference is greater than a preset frequency and the light intensity is greater than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, confirming the reflected light as interference light.
The light detection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The light detection device provided in the embodiment of the present application can implement each process implemented by the light detection device in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
In the embodiment of the application, an infrared light emitter and an infrared light receiver are arranged inside an electronic device, the infrared light emitter is controlled to emit linear sweep infrared light to the outside of the electronic device, when the infrared light receiver receives reflected light of the linear sweep infrared light, the light intensity of the received reflected light and the frequency difference between the light emitting 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 of an external object or interference light is judged according to the frequency difference and the light intensity. In this embodiment, it can be seen that, 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, whether the received reflected light is the reflected light of the external object or the interference light can be identified, the interference of the interference light is eliminated, and the problems that the interference light cannot be identified and the object detection accuracy is reduced in the prior art are solved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes 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 is executed by the processor 510 to implement each process of the foregoing light ray detection method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like. In this embodiment, the electronic device may further include an infrared light receiver and an infrared light emitter. 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 supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of 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 those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 510 is configured to control the infrared light emitter to emit linear swept frequency infrared light to the outside of the electronic device; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period; when the infrared light receiver receives reflected light of the linear frequency sweep infrared light, determining a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at the moment of receiving, and determining a light intensity of the reflected light; and judging the reflected light to be external object reflected light or judging the reflected light to be interference light according to the frequency difference and the light intensity.
In the embodiment of the application, an infrared light emitter and an infrared light receiver are arranged inside an electronic device, the infrared light emitter is controlled to emit linear sweep infrared light to the outside of the electronic device, when the infrared light receiver receives reflected light of the linear sweep infrared light, the light intensity of the received reflected light and the frequency difference between the light emitting 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 of an external object or interference light is judged according to the frequency difference and the light intensity. In this embodiment, it can be seen that, 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, whether the received reflected light is the reflected light of the external object or the interference light can be identified, the interference of the interference light is eliminated, and the problems that the interference light cannot be identified and the object detection accuracy is reduced in the prior art are solved.
Optionally, the processor 510 controls the infrared light emitter to emit linear swept frequency infrared light to the outside of the electronic device, including: and sending the linear frequency sweeping signal to the infrared light emitter so as to control the infrared light emitter to emit linear frequency sweeping infrared light to the outside of the electronic equipment according to the linear frequency sweeping 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 emitter at a receiving moment, and acquiring an electric signal obtained by performing photoelectric conversion on received reflected light; performing frequency mixing processing on the acquired linear frequency sweeping signal and the acquired electric signal to obtain a frequency mixing signal, wherein the frequency mixing signal comprises a sum frequency signal and a difference frequency signal; low-pass filtering the frequency mixing signal to filter the sum frequency signal to obtain a difference frequency signal; and performing 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.
Optionally, the processor 510 determines, according to the frequency difference and the light intensity, that the reflected light is external object reflected light or that the reflected light is interference light, including: when the frequency difference is greater than a preset frequency and the light intensity is greater than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, confirming the reflected light as 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 the processes of the embodiment of the light detection method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the 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 (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the light detection method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A light detection method is applied to electronic equipment, an infrared light emitter and an infrared light receiver are arranged inside the electronic equipment, and the method is characterized by comprising the following steps:
controlling the infrared light emitter to emit linear swept-frequency infrared light to the outside of the electronic equipment; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
when the infrared light receiver receives reflected light of the linear frequency sweep infrared light, determining a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at the moment of receiving, and determining a light intensity of the reflected light;
and judging the reflected light to be external object reflected light or judging the reflected light to be interference light according to the frequency difference and the light intensity.
2. The method of claim 1, wherein controlling the infrared light emitter to emit linear swept frequency infrared light outside the electronic device comprises:
and sending a linear frequency sweeping signal to the infrared light emitter so as to control the infrared light emitter to emit linear frequency sweeping infrared light to the outside of the electronic equipment according to the linear frequency sweeping signal.
3. The method of claim 2, wherein determining a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at a time of reception comprises:
acquiring a linear sweep frequency signal transmitted to the infrared light transmitter at a receiving moment, and acquiring an electric signal obtained by performing photoelectric conversion on the received reflected light;
performing frequency mixing processing on the obtained linear frequency sweeping 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;
low-pass filtering the frequency mixing 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. The method according to claim 1, wherein determining that the reflected light is external object reflected light or that the reflected light is interference light according to the frequency difference and the light intensity comprises:
when the frequency difference is greater than a preset frequency and the light intensity is greater than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, confirming the reflected light as interference light.
5. The utility model provides a light detection device, is applied to electronic equipment, electronic equipment's inside is provided with infrared light transmitter and infrared light receiver, its characterized in that, the device includes:
the control module is used for controlling the infrared light transmitter to transmit linear swept-frequency infrared light to the outside of the electronic equipment; the instantaneous light frequency of the linear swept frequency infrared light when being emitted is periodically changed along with the light emitting time of the infrared light emitter, and the instantaneous light frequency is linearly changed along with the light emitting time in a change period;
a determining module, configured to determine, when the infrared light receiver receives reflected light of the linear frequency sweep infrared light, a frequency difference between a light emitting frequency of the infrared light emitter and a light frequency of the received reflected light at a receiving time, and determine a light intensity of the reflected light;
and the judging module is used for judging the reflected light as external object reflected light or judging the reflected light as interference light according to the frequency difference and the light intensity.
6. The apparatus of claim 5, wherein the control module is specifically configured to:
and sending a linear frequency sweeping signal to the infrared light emitter so as to control the infrared light emitter to emit linear frequency sweeping infrared light to the outside of the electronic equipment according to the linear frequency sweeping signal.
7. The apparatus of claim 6, wherein the determining module is specifically configured to:
acquiring a linear sweep frequency signal transmitted to the infrared light transmitter at a receiving moment, and acquiring an electric signal obtained by performing photoelectric conversion on the received reflected light;
performing frequency mixing processing on the obtained linear frequency sweeping 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;
low-pass filtering the frequency mixing 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.
8. The apparatus of claim 5, wherein the determining module is specifically configured to:
when the frequency difference is greater than a preset frequency and the light intensity is greater than a preset intensity, confirming that the reflected light is reflected light of an external object; otherwise, confirming the reflected light as interference light.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the light detection method according to claims 1-4.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the light detection method according to claims 1-4.
CN202010516694.XA 2020-06-08 2020-06-08 Light detection method, light detection device and electronic equipment Active CN111781577B (en)

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 true CN111781577A (en) 2020-10-16
CN111781577B 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)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060055939A1 (en) * 2004-09-15 2006-03-16 Kabushiki Kaisha Topcon Optical image measuring apparatus
CN101031814A (en) * 2004-09-28 2007-09-05 秦内蒂克有限公司 Frequency modulated continuous wave (FMCW) radar having improved frequency sweep linearity
CN101356451A (en) * 2005-12-05 2009-01-28 塞德斯股份公司 Sensor array and sensor device for a sensor array
CN101393263A (en) * 2008-11-05 2009-03-25 上海科勒电子科技有限公司 Anti mirror processing method of distance detecting induction system
CN102822643A (en) * 2010-12-30 2012-12-12 罗斯蒙特储罐雷达股份公司 Radar level gauging using frequency modulated pulsed wave
US20140307248A1 (en) * 2011-11-04 2014-10-16 Leica Geosystems Ag Distance-measuring device
CN105190350A (en) * 2013-03-19 2015-12-23 三菱电机株式会社 Laser device
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
CN106502464A (en) * 2016-11-04 2017-03-15 京东方科技集团股份有限公司 Encapsulation cover plate, touch-control display panel, display device and touch-control driving method
CN106918804A (en) * 2016-11-27 2017-07-04 西南电子技术研究所(中国电子科技集团公司第十研究所) Radar chaff recognizes signal processing system
CN108776329A (en) * 2018-04-20 2018-11-09 南京理工大学 Based on chaotically coding frequency agility linear frequency modulation continuous wave system and its application process
DE102017213729A1 (en) * 2017-08-08 2019-02-14 Robert Bosch Gmbh Method for providing a detection signal for objects to be detected
CN110133617A (en) * 2019-04-17 2019-08-16 深圳市速腾聚创科技有限公司 A kind of laser radar system
WO2019234034A1 (en) * 2018-06-07 2019-12-12 Robert Bosch Gmbh Operating method for a lidar system, control unit, lidar system, and device
US20200088838A1 (en) * 2018-09-18 2020-03-19 Infineon Technologies Ag System and Method for Determining Interference in a Radar System

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060055939A1 (en) * 2004-09-15 2006-03-16 Kabushiki Kaisha Topcon Optical image measuring apparatus
CN101031814A (en) * 2004-09-28 2007-09-05 秦内蒂克有限公司 Frequency modulated continuous wave (FMCW) radar having improved frequency sweep linearity
CN101356451A (en) * 2005-12-05 2009-01-28 塞德斯股份公司 Sensor array and sensor device for a sensor array
CN101393263A (en) * 2008-11-05 2009-03-25 上海科勒电子科技有限公司 Anti mirror processing method of distance detecting induction system
US20100108892A1 (en) * 2008-11-05 2010-05-06 Jian Zhang Mirror reflection processing method for position sensitive detector device
CN102822643A (en) * 2010-12-30 2012-12-12 罗斯蒙特储罐雷达股份公司 Radar level gauging using frequency modulated pulsed wave
US20140307248A1 (en) * 2011-11-04 2014-10-16 Leica Geosystems Ag Distance-measuring device
CN105190350A (en) * 2013-03-19 2015-12-23 三菱电机株式会社 Laser device
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
CN106502464A (en) * 2016-11-04 2017-03-15 京东方科技集团股份有限公司 Encapsulation cover plate, touch-control display panel, display device and touch-control driving method
CN106918804A (en) * 2016-11-27 2017-07-04 西南电子技术研究所(中国电子科技集团公司第十研究所) Radar chaff recognizes signal processing system
DE102017213729A1 (en) * 2017-08-08 2019-02-14 Robert Bosch Gmbh Method 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
WO2019234034A1 (en) * 2018-06-07 2019-12-12 Robert Bosch Gmbh Operating method for a lidar system, control unit, lidar system, and device
US20200088838A1 (en) * 2018-09-18 2020-03-19 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

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘俊岩等: "线性调频激励的红外热波成像检测技术", 红外与激光工程, vol. 41, no. 6 *
周新;姚富强;牛英滔;: "一种线性扫频干扰信号的参数估计方法", 通信技术, no. 12 *
李淑华;黄晓刚;刘平;: "复杂电磁环境下雷达抗干扰技术研究", 现代雷达, no. 04 *

Also Published As

Publication number Publication date
CN111781577B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
US10962637B2 (en) Radar data processing using neural network classifier and confidence metrics
CN108958490B (en) Electronic device, gesture recognition method thereof and computer-readable storage medium
CN107404358B (en) Radio frequency channel detection method, terminal and computer readable storage medium
CN107690823A (en) A kind of communication quality detection method, device and equipment
CN106791120B (en) Control method and device for screen-off of mobile terminal
CN113691273B (en) Radio frequency control method and device and electronic equipment
CN111901788A (en) Bluetooth connection method, device, equipment and storage medium
CN106936827B (en) A kind of broadcast recipients' queue regulation method, device and terminal
CN114521012B (en) Positioning method, positioning device, terminal equipment, base station and position management server
CN103139368A (en) Prompt method and device
CN111781577B (en) Light detection method, light detection device and electronic equipment
CN107965236A (en) Vehicle, window lifting control method, apparatus and system
WO2021212944A1 (en) Antenna transmission signal adjusting method, apparatus and system, and medium
US20140363158A1 (en) Fiber-optic communication apparatus capable of operating in a normal mode and a power calibration mode, and communication device used within the same
CN111970024A (en) Communication network control method and device and electronic equipment
CN115236653B (en) Radar detection method, device, equipment and medium
CN106686222A (en) Ambient light sensor control method, ambient light sensor control device and terminal
CN113866761A (en) Body movement detection method and device
US20180217247A1 (en) A Proximity Detector
CN106092130B (en) Step-recording method, device and the mobile terminal of pedometer
US20210373119A1 (en) Control device and non-transitory storage medium
CN111050351B (en) LORA frequency band testing method and device
CN115883037A (en) Method, device and terminal for detecting beam failure
JP2009253839A (en) Rfid reader/writer
Zhang et al. A spectrum sensing scheme based on second-order variable step energy detection for detecting 3bit passive wireless RFID tag antenna

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