CN107526088B - Proximity sensor based error cancellation method and related product - Google Patents

Proximity sensor based error cancellation method and related product Download PDF

Info

Publication number
CN107526088B
CN107526088B CN201710613371.0A CN201710613371A CN107526088B CN 107526088 B CN107526088 B CN 107526088B CN 201710613371 A CN201710613371 A CN 201710613371A CN 107526088 B CN107526088 B CN 107526088B
Authority
CN
China
Prior art keywords
optical
noise
proximity sensor
parameter
receiving
Prior art date
Application number
CN201710613371.0A
Other languages
Chinese (zh)
Other versions
CN107526088A (en
Inventor
周意保
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201710613371.0A priority Critical patent/CN107526088B/en
Publication of CN107526088A publication Critical patent/CN107526088A/en
Application granted granted Critical
Publication of CN107526088B publication Critical patent/CN107526088B/en

Links

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
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • H04M1/72454
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention discloses an error elimination method based on a proximity sensor and a related product, wherein when first electrical parameters are used for providing electric energy to an emitting end of the proximity sensor, first optical parameters obtained by photometry of a receiving end of the proximity sensor are read, according to a noise gain model, when the electric energy is estimated to be provided to the emitting end of the proximity sensor by the first electrical parameters, estimated optical noise of the receiving end of the proximity sensor is estimated, and error elimination is carried out on the first optical parameters according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

Description

Proximity sensor based error cancellation method and related product

Technical Field

The invention relates to the technical field of mobile terminals, in particular to an error elimination method based on a proximity sensor and a related product.

Background

A proximity sensor is generally disposed on a mobile terminal to measure whether an object is close to the mobile terminal and obtain a proximity value representing a distance to the object.

In the prior art, the emitting end of the proximity sensor generally emits a detection light, which is reflected by the object to be measured, and the reflected light is received by the receiving end of the proximity sensor. The approach value is determined based on the light intensity received by the receiving end. However, this measurement method has a certain error.

When the proximity sensor is arranged in a mode that the front panel is not provided with holes, the light intensity of the detection light emitted by the emitting end is required to be larger so that the detection light can sufficiently penetrate through the front panel, but in this case, the error is increased along with the increase of the light intensity of the detection light, the error is more obvious, and the measurement accuracy of the proximity sensor is seriously influenced.

Disclosure of Invention

The invention provides an error elimination method based on a proximity sensor, which can be used for solving the technical problem of larger error of the proximity sensor in the prior art.

The invention also provides an error elimination device based on the proximity sensor.

The invention also provides the mobile terminal.

The invention also provides computer equipment.

The invention also provides a computer readable storage medium.

The embodiment of the first aspect of the invention provides an error elimination method based on a proximity sensor, which comprises the following steps:

when first electrical parameters are used for providing electric energy for the transmitting end of the proximity sensor, first optical parameters obtained by photometry of the receiving end of the proximity sensor are read;

estimating estimated optical noise of the receiving end when the first electrical parameter provides electrical energy to the transmitting end according to a noise gain model; the noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end;

and according to the estimated optical noise, carrying out error elimination on the first optical parameter.

According to the error elimination method based on the proximity sensor, when the first electrical parameter provides the electric energy to the transmitting end of the proximity sensor, the first optical parameter obtained by photometry of the receiving end of the proximity sensor is read, the estimated optical noise of the receiving end of the proximity sensor is estimated according to the noise gain model when the electric energy is provided to the transmitting end of the proximity sensor by the first electrical parameter, and the error elimination is carried out on the first optical parameter according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

The embodiment of the second aspect of the invention provides an error elimination device based on a proximity sensor, which comprises:

the reading module is used for reading a first optical parameter obtained by photometry at a receiving end of the proximity sensor when the first electrical parameter provides electric energy to the transmitting end of the proximity sensor;

the estimation module is used for estimating the estimated optical noise of the receiving end when the first electrical parameter provides the electric energy to the transmitting end according to a noise gain model; the noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end;

and the noise elimination module is used for eliminating errors of the first optical parameters according to the estimated optical noise.

According to the error elimination device based on the proximity sensor, when the first electrical parameter provides the electric energy to the transmitting end of the proximity sensor, the first optical parameter obtained by photometry of the receiving end of the proximity sensor is read, the estimated optical noise of the receiving end of the proximity sensor is estimated according to the noise gain model when the electric energy provided to the transmitting end of the proximity sensor by the first electrical parameter, and the error elimination is carried out on the first optical parameter according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

An embodiment of a third aspect of the present invention provides a terminal device, where the terminal device includes: the device comprises a shell, and a display screen, a proximity sensor, a processor and a memory which are positioned in the shell, wherein the processor is electrically connected with the display screen, the proximity sensor and the memory;

the proximity sensor comprises a transmitting end and a receiving end, wherein the transmitting end is used for transmitting detection light by using electric energy of a first electrical parameter, and the receiving end is used for receiving reflected light to obtain a first optical parameter; the reflected light is received by the receiving end after the probe light is reflected by the measured object;

the memory is used for storing a noise gain model, and the noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting terminal and the optical noise variation of the receiving terminal;

and the processor is used for estimating the estimated optical noise of the receiving end according to the noise gain model and eliminating the error of the first optical parameter according to the estimated optical noise.

According to the terminal device provided by the embodiment of the invention, when the first electrical parameter is used for providing the electric energy to the transmitting terminal of the proximity sensor, the first optical parameter obtained by photometry at the receiving terminal of the proximity sensor is read, and the estimated optical noise at the receiving terminal of the proximity sensor is estimated according to the noise gain model when the electric energy is provided to the transmitting terminal of the proximity sensor by the first electrical parameter, and the error elimination is carried out on the first optical parameter according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

An embodiment of a fourth aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for eliminating an error based on a proximity sensor according to the first aspect.

An embodiment of the fifth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the proximity sensor-based error elimination method of the first aspect.

Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.

Drawings

The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 is a schematic diagram of a proximity sensor 1116;

FIG. 2 is a schematic flow diagram of a proximity sensor based error mitigation method provided in accordance with one embodiment of the present invention;

FIG. 3 is a schematic flow diagram of a proximity sensor based error mitigation method according to another embodiment of the present invention;

FIG. 4 is one of the schematic structural views of the proximity sensor 1116;

FIG. 5 is a schematic diagram of a proximity sensor based error cancellation arrangement according to one embodiment of the present invention;

fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention; and

fig. 7 is a second schematic diagram of the structure of the proximity sensor 1116 in the terminal device.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.

For clarity of the present embodiment, the present embodiment first briefly describes the proximity sensor 1116. Fig. 1 is a schematic diagram of a proximity sensor 1116, and as shown in fig. 1, the proximity sensor 1116 includes two portions, one of which is an emitting terminal 1010, i.e., an LED lamp, that emits infrared light as detection light; a receiving end 1020 for receiving the reflected infrared light; when the object 1030 is in proximity, there is a reflection of infrared light. The chip processor in the receiving end 1020 includes an analog-to-digital converter, which can obtain the light intensity value of the specific infrared light. When there is no object to block, the value of the receiving end 1020 is the minimum, and when the measured object 1030 is approaching, the value is getting larger until the full scale.

For example: according to the difference of the chip inside the receiving end 1020, there are 8 bits, 10 bits and 12 bits, and the range of the light intensity value is different, which corresponds to 256, 1024, 4096, etc. For example, when there is no object shielding in the internal chip of the 10-bit receiving terminal 1020, the approach value is 50, and when the face is close to the proximity sensor, the infrared rays are all reflected to the receiving terminal 1020, and the full range is reached, that is, the approach value is 1024.

Typically set at 3-5cm from the object 1030, and begin to extinguish. In order to achieve the aim, in the bright screen state, the screen is turned off when the approach value is larger than 400; in the black screen state, the screen starts to be lit when the approach value is less than 300.

However, in the actual application process, a certain error exists in the approach value, so that the error elimination is needed to improve the accuracy of the measurement.

A proximity sensor-based error elimination method, apparatus, and terminal device according to embodiments of the present invention are described below with reference to the accompanying drawings.

Fig. 2 is a schematic flow chart of a proximity sensor-based error elimination method according to an embodiment of the present invention, as shown in fig. 2, the method includes:

step 101, when the first electrical parameter provides electrical energy to the transmitting end of the proximity sensor, reading a first optical parameter obtained by photometry at the receiving end of the proximity sensor.

The optical parameter is used to describe an optical property, where the first optical parameter is used to describe an optical property of the reflected light received by the receiving end, for example: the optical parameter may in particular be the light intensity or the luminous flux.

And 102, estimating the estimated optical noise of the receiving end when the first electrical parameter provides the electric energy to the transmitting end according to a noise gain model.

The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end.

As a possible implementation, the noise gain model is preset. Since the noise gain situation is approximately similar for the same model of terminal device, the noise gain model can be established. Specifically, in the noise gain model, a corresponding relationship between the electric energy variation of the transmitting end and the optical noise variation of the receiving end is a linear forward relationship.

When the noise gain model is obtained, it is estimated that the estimated optical noise at the receiving end of the proximity sensor is when power is supplied to the transmitting end of the proximity sensor with the first electrical parameter.

And 103, carrying out error elimination on the first optical parameter according to the estimated optical noise.

Specifically, when the measurement of the approach value is performed, the desired optical path is: the detection light emitted by the emitting end of the proximity sensor is reflected by the surface of the measured object, and the emitted light is received by the receiving end. However, in practice, a part of the detection light at the emitting end is not emitted to the subject normally, but is reflected inside the proximity sensor and received by the receiving end, which becomes optical noise. In this step, the error of the first optical parameter is eliminated according to the estimated optical noise, specifically, the light intensity value indicated by the first optical parameter may be subtracted by the light intensity value of the estimated optical noise, so that the accuracy of the first optical parameter is higher.

In this embodiment, when the first electrical parameter is used to provide the electric energy to the transmitting end of the proximity sensor, the first optical parameter obtained by photometry at the receiving end of the proximity sensor is read, and when the electric energy provided to the transmitting end of the proximity sensor by the first electrical parameter is estimated according to the noise gain model, the estimated optical noise at the receiving end of the proximity sensor is estimated, and the error elimination is performed on the first optical parameter according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

Fig. 3 is a schematic flow chart of an error elimination method based on a proximity sensor according to another embodiment of the present invention, in which the method of the present embodiment is mainly applied to a situation where the light intensity generated by the emitting end 1010 is larger than that of the previous embodiment.

This is because the noise is more noticeable when the light intensity is greater, and the accuracy of the error cancellation is more demanding. Therefore, in order to make the estimation of the optical noise more accurate, the corresponding relationship between the power variation of the transmitting terminal 1010 and the optical noise variation of the receiving terminal 1020 may be fitted in a manner of pre-measurement.

As a possible application scenario, the terminal device comprises a display 1113 and a proximity sensor 1116, the display 1113 covering the proximity sensor 1116.

The emitting end 1010 of the proximity sensor 1116 is configured to emit corresponding detection light when the emitting end 1010 of the proximity sensor 1116 is supplied with electric power with a predetermined electric parameter.

The receiving end 1020 of the proximity sensor 1116 receives the reflected light to obtain a corresponding optical parameter. The reflected light is received by the receiving end 1020 of the proximity sensor after the probe light is transmitted through the display screen 1113, reflected by the measured object 1030, transmitted by the display screen 1113 again.

Fig. 4 is a schematic structural diagram of the proximity sensor 1116, and as can be seen from fig. 4, the optical noise is mainly caused by the interference of the detection light emitted from the emitting end 1010 reflected by the display 1113 to the receiving end 1020. If the mode that the display screen 1113 is provided with the openings at the corresponding positions of the transmitting end 1010 and the receiving end 1020 in the prior art is adopted, the single transmittance can basically reach about 85 percent for the detection light of 850nm or 940 nm. However, if the design is to keep the appearance of the screen, a non-porous solution is adopted, that is, the opening is not provided for the display 1113 at the corresponding position of the emitting end 1010 and the receiving end 1020, and meanwhile, the display 1113 may also have an ink layer, and the emitting end 1010 and the receiving end 1020 are disposed under the ink layer and thus covered by the ink layer. When the pore-free schemes are adopted, the single transmittance of the probe light is only about 1-2% through tests. The intensity of the light received by the receiving end 1020 is greatly reduced, and in order to maintain the intensity of the light received by the receiving end 1020 at the level of the aperture solution, the current of the receiving end 1020 needs to be increased, so as to increase the intensity of the probe light emitted by the receiving end 1020.

As shown in fig. 4, since the emission end 1010 of the proximity sensor is covered with the display screen 1113, the light intensity of the emission end 1010 needs to be increased so that it can transmit out of the display screen 1113. At the same time, however, the optical noise increases, and the optical parameters of the receiving end 1020 also fluctuate by about 5% of the optical noise. That is, the larger the optical noise, the more pronounced the jitter, resulting in larger measurement errors and less stable performance. Therefore, it is necessary to eliminate optical noise.

Specifically, in this embodiment, an error elimination method based on a proximity sensor is provided, which is applicable when the light intensity of the detection light emitted by the receiving end 1020 is strong, as shown in fig. 3, the process of establishing the noise gain model includes:

step 201, the proximity sensor is measured for multiple times to determine a corresponding relationship f between the electrical energy variation of the transmitting end and the optical noise variation of the receiving end.

Specifically, under the condition that the distance between the object to be measured and the proximity sensor is infinite or the object to be measured does not exist, electric energy is provided to the transmitting end by different electric parameters, and optical parameters obtained by photometry of the receiving end are read. And fitting the corresponding relation between the electrical parameters and the optical parameters to obtain the corresponding relation f between the electrical energy variation of the transmitting end and the optical noise variation of the receiving end.

In general, f is a forward linear relationship.

It should be noted that, in step 201, the test may be performed in an environment such as a dark room, so as to avoid the interference of ambient stray light.

Step 202, providing electric energy to the transmitting terminal by the second electric parameter, and reading the second optical parameter measured by the receiving terminal.

And when the distance between the measured object and the proximity sensor changes, the second optical parameter is kept stable.

Specifically, if the distance between the object to be measured and the proximity sensor changes, the second optical parameter remains stable, and it can be determined that only a very small amount of reflected light of the probe light emitted from the emitting end is reflected by the object to be measured and received by the receiving end.

It can be seen that, in this case, the approach value cannot be determined according to the second optical parameter measured by the receiving end, but appears in the form of noise. Thus, a reference optical noise may be determined based on the second optical parameter, where the reference optical noise increases with increasing optical intensity at the transmitting end and decreases with decreasing optical intensity at the transmitting end.

In step 203, a noise gain model Δ P ═ f (Δ E) is created based on the second electrical parameter and the reference optical noise.

The optical noise variation Δ P is the estimated optical noise/the reference optical noise, and the electrical energy variation Δ E is the first electrical parameter/the second electrical parameter. The first electrical parameter is used for marking the first electrical parameter used when the proximity measurement is actually performed, and generally, the first electrical parameter is usually a fixed value, and the value of the first electrical parameter should be large enough to enable the first optical parameter to vary with the distance between the object to be measured and the proximity sensor.

For example: when f fitted in step 201 is a forward linear relationship with a coefficient of 1, Δ P ═ Δ E, we derive: the estimated optical noise is reference optical noise x (first electrical parameter/second electrical parameter).

Step 204, when the proximity measurement is actually performed and the first electrical parameter is used for providing electrical energy to the transmitting end of the proximity sensor, reading the first optical parameter obtained by photometry at the receiving end of the proximity sensor.

Step 205, estimating, according to the noise gain model Δ P ═ f (Δ E), estimated optical noise at the receiving end of the proximity sensor when the first electrical parameter provides electrical energy to the transmitting end of the proximity sensor, and subtracting the estimated optical noise from the first optical parameter to obtain the first optical parameter after error cancellation.

For example: when step 203 determines that: when the optical noise is estimated as reference optical noise x (first electrical parameter/second electrical parameter),

the error-eliminated first optical parameter-estimated optical noise is first optical parameter-reference optical noise x (first electrical parameter/second electrical parameter).

And step 206, taking the first optical parameter after the error elimination as an approximate value, and controlling the bright and dark state of the display screen.

Specifically, a threshold range of the approach value is generally set, and when the approach value belongs to the corresponding threshold range, the corresponding control strategy is executed.

As a possible implementation mode, the function of the proximity sensor is to control the display screen to be turned off when a call is made to be close to the face so as to prevent false triggering. For example, when a call comes, the face approaches, the display screen is controlled to be turned off, and when the mobile terminal is taken away and away from the face without shielding, the display screen is controlled to be turned on.

When the telephone receiver is used for calling, whether the mobile terminal is close to the face or not is judged by monitoring infrared light emitted by the emitting end, and the backlight of the display screen can be closed when the mobile terminal is close to the face, so that the power saving effect is achieved. Meanwhile, for the capacitive touch screen, misoperation can be prevented; multiple proximity sensors can also be used for simple gesture recognition and other applications.

For the sake of clarity of the foregoing embodiments, several specific error cancellation scenarios are further enumerated to describe the error cancellation method, specifically, the optical parameter is specifically determined to be light intensity, the electrical parameter is specifically determined to be current, and the first optical parameter after error cancellation is the first optical parameter — the estimated optical noise is the first optical parameter — the reference optical noise × (the first electrical parameter/the second electrical parameter).

In the first scene, in the scene without any object shielding, when the current of 100mA is input to the input end of the proximity sensor, the light intensity value of the receiving end (without any object shielding) is 5000; when the current of 10mA is inputted to the input end of the proximity sensor, and thus the light intensity value of the receiving end (without any object occlusion) is 500, the proximity value obtained by error elimination is 5000-.

In the second scenario, when an object approaches, for example, when the approach distance is about 3cm, the light intensity value at the receiving end is 5500 (the light intensity value changes with the approach distance) when 100mA current is input to the input end of the proximity sensor, and the light intensity value at the receiving end is 500 (the light intensity value does not change with the approach distance) when 10mA current is input to the input end of the proximity sensor. Then, the approach value obtained by error elimination is 5500-.

In the third scenario, when the mobile phone is attached with a protective film, such as a tempered film, a transparent film, etc. When 100mA current is input into the input end of the proximity sensor, the light intensity value of the receiving end is 6000 after film pasting, and the light intensity value of the receiving end is 5000 before film pasting. The optical noise is increased after the film is pasted. In the prior art, it is determined that an object is close, and thus an error is generated. At this time, no object is actually close to the device, and only the protective film is attached, so that the problem cannot be solved in the prior art. According to the error elimination method provided by the implementation, after the film is pasted, when the current of 10mA is input to the input end of the proximity sensor, the light intensity value of the receiving end is correspondingly increased and is changed from 500 to 600; thus, the approximate value obtained by error elimination is 6000-. It can be seen that the measured proximity value matches the situation where there is actually no object in proximity.

In this embodiment, when the first electrical parameter is used to provide the electric energy to the transmitting end of the proximity sensor, the first optical parameter obtained by photometry at the receiving end of the proximity sensor is read, and when the electric energy provided to the transmitting end of the proximity sensor by the first electrical parameter is estimated according to the noise gain model, the estimated optical noise at the receiving end of the proximity sensor is estimated, and the error elimination is performed on the first optical parameter according to the estimated optical noise. The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and noise estimation is carried out according to the corresponding relation, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

In order to implement the above embodiments, the present invention further provides an error elimination apparatus based on a proximity sensor, fig. 5 is a schematic structural diagram of the error elimination apparatus based on the proximity sensor according to an embodiment of the present invention, and as shown in fig. 5, the error elimination apparatus based on the proximity sensor includes: a reading module 51, an estimation module 52 and a noise cancellation module 53.

The reading module 51 is configured to read a first optical parameter measured by light at a receiving end of the proximity sensor when the first electrical parameter provides electrical energy to the transmitting end of the proximity sensor.

An estimating module 52, configured to estimate, according to a noise gain model, an estimated optical noise of the receiving end when the first electrical parameter provides electrical energy to the transmitting end.

The noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end.

And a noise elimination module 53, configured to perform error elimination on the first optical parameter according to the estimated optical noise.

Further, the estimation module 52 estimates, according to the noise gain model, that when the electric power is supplied to the transmitting terminal of the proximity sensor with the first electric parameter, before the estimated optical noise of the receiving terminal of the proximity sensor, the second optical parameter measured by the receiving terminal in light is read when the electric power is supplied to the transmitting terminal with the second electric parameter; if the distance between the measured object and the proximity sensor changes, the second optical parameter is kept stable, and reference optical noise is determined according to the second optical parameter; establishing a noise gain model delta P-f (delta E) according to the second electrical parameter and the reference optical noise; wherein, the optical noise variation Δ P is estimated optical noise/reference optical noise; the electrical energy variation Δ E is the first electrical parameter/the second electrical parameter.

As a possible implementation manner, before the estimation module 52 establishes the noise gain model, it is further configured to measure the proximity sensor multiple times to determine a corresponding relationship f between the power variation of the transmitting end and the optical noise variation of the receiving end.

Alternatively, as another possible implementation manner, before the estimating module 52 establishes the noise gain model, the method further includes:

and setting a corresponding relation f between the electric energy variation of the transmitting end and the optical noise variation of the receiving end in the noise gain model as a linear forward relation.

Further, the first optical parameter is used to indicate a light intensity value, and the noise cancellation module 53 is specifically configured to subtract the light intensity value indicated by the first optical parameter from the light intensity value of the estimated optical noise.

It should be noted that the foregoing description of the method embodiments is also applicable to the apparatus according to the embodiments of the present invention, and the implementation principles thereof are similar and will not be described herein again.

In order to implement the foregoing embodiment, the present invention further provides a terminal device, fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device 1000 includes: a housing 1100, and a display 1113, memory 1114, processor 1115, and proximity sensor 1116 located within the housing 1100.

Wherein, the processor 1115 is electrically connected with the display 1113, the proximity sensor 1116 and the memory 1114.

The proximity sensor 1116 includes an emitting end 1010 and a receiving end 1020, wherein the emitting end 1010 is configured to emit a probe light with an electrical energy of a first electrical parameter, and the receiving end 1020 is configured to receive the reflected light to obtain the first optical parameter.

The reflected light is received by the receiving end 1020 after the probe light is reflected by the measured object 1030.

A memory 1114, configured to store a noise gain model, where the noise gain model is used to indicate a correspondence between a power variation of the transmitting end 1010 and an optical noise variation of the receiving end 1020.

A processor 1115 configured to estimate an estimated optical noise of the receiving end 1020 according to the noise gain model, and perform error cancellation on the first optical parameter according to the estimated optical noise.

In particular, there are two possible arrangements of the proximity sensor 1116 for the terminal device provided in fig. 6.

As a first possible implementation, referring to one of the schematic structural diagrams of the proximity sensor 1116 as shown in fig. 4, the display screen 1113 covers the proximity sensor 1116.

Specifically, the emitting end 1010 of the proximity sensor 1116 is configured to emit corresponding detection light when the emitting end 1010 of the proximity sensor 1116 is supplied with electric energy with different electric parameters; the receiving end 1020 of the proximity sensor 1116 is configured to receive the reflected light to obtain a corresponding optical parameter; the reflected light is received by the receiving end 1020 of the proximity sensor 1116 after the probe light is transmitted through the display screen 1113, reflected by the object 1030, transmitted by the display screen 1113 again.

As a second possible implementation manner, fig. 7 is a second schematic structural diagram of the proximity sensor 1116 in the terminal device, and as shown in fig. 7, the display screen 1113 is provided with an opening corresponding to the position of the proximity sensor 1116, and the surface of the opening is covered with the film body 1117. The emitting end 1010 of the proximity sensor 1116 is configured to emit corresponding probe light when the emitting end 1010 of the proximity sensor 1116 is supplied with electrical energy with different electrical parameters. The receiving end 1020 of the proximity sensor 1116 receives the reflected light to obtain a corresponding optical parameter. The reflected light here is transmitted through the film 1117, reflected by the object to be measured 1030, transmitted again through the film 1117, and received by the receiving end 1020 of the proximity sensor 1116.

It should be noted that the foregoing description of the method embodiment is also applicable to the terminal device 1000 according to the embodiment of the present invention, and the implementation principle thereof is similar and will not be described herein again.

In summary, in the terminal device according to the embodiment of the present invention, when the first electrical parameter is used to provide the electric energy to the transmitting terminal 1010 of the proximity sensor, the first optical parameter obtained by measuring the light at the receiving terminal 1020 of the proximity sensor is read, and when the electric energy is estimated to be provided to the transmitting terminal 1010 of the proximity sensor by using the first electrical parameter according to the noise gain model, the estimated optical noise at the receiving terminal 1020 of the proximity sensor is estimated, and the error cancellation is performed on the first optical parameter according to the estimated optical noise. The noise gain model is used to indicate a corresponding relationship between the power variation of the transmitting terminal 1010 and the optical noise variation of the receiving terminal 1020, and noise estimation is performed according to the corresponding relationship, so that the estimated optical noise can be more accurate, and the technical problem in the prior art can be effectively solved.

In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the foregoing proximity sensor-based error elimination method.

In order to implement the above embodiments, the present invention also proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned proximity sensor-based error elimination method.

In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. An error elimination method based on a proximity sensor is characterized by comprising the following steps:
when first electrical parameters are used for providing electric energy for the transmitting end of the proximity sensor, first optical parameters obtained by photometry of the receiving end of the proximity sensor are read;
measuring the proximity sensor for multiple times to determine a corresponding relation f between the electric energy variation of the transmitting end and the optical noise variation of the receiving end;
when the second electrical parameter provides electric energy for the transmitting terminal, reading a second optical parameter measured by the receiving terminal;
if the distance between the measured object and the proximity sensor changes, the second optical parameter is kept stable, and reference optical noise is determined according to the second optical parameter;
establishing a noise gain model delta P-f (delta E) according to the second electrical parameter and the reference optical noise; wherein, the optical noise variation Δ P is the estimated optical noise/the reference optical noise; the electric energy variation delta E is the first electric parameter/the second electric parameter;
estimating estimated optical noise of the receiving end when the first electrical parameter provides electrical energy to the transmitting end according to a noise gain model; the noise gain model is used for indicating a corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and the corresponding relation is a linear forward relation;
and according to the estimated optical noise, carrying out error elimination on the first optical parameter.
2. The method of claim 1, wherein before the establishing the noise gain model, the method further comprises:
and setting a corresponding relation f between the electric energy variation of the transmitting end and the optical noise variation of the receiving end in the noise gain model as a linear forward relation.
3. The error concealment method according to any of claims 1-2, wherein the first optical parameter is used for indicating an optical intensity value, and the error concealment of the first optical parameter based on the estimated optical noise comprises:
subtracting the light intensity value of the estimated optical noise from the light intensity value indicated by the first optical parameter.
4. A proximity sensor based error cancellation apparatus, comprising:
the reading module is used for reading a first optical parameter obtained by photometry at a receiving end of the proximity sensor when the first electrical parameter provides electric energy to the transmitting end of the proximity sensor;
the estimation module is used for measuring the proximity sensor for multiple times so as to determine a corresponding relation f between the electric energy variation of the transmitting end and the optical noise variation of the receiving end; when the second electrical parameter provides electric energy for the transmitting terminal, reading a second optical parameter measured by the receiving terminal; if the distance between the measured object and the proximity sensor changes, the second optical parameter is kept stable, and reference optical noise is determined according to the second optical parameter; establishing a noise gain model delta P-f (delta E) according to the second electrical parameter and the reference optical noise; wherein, the optical noise variation Δ P is the estimated optical noise/the reference optical noise; the electric energy variation delta E is the first electric parameter/the second electric parameter; estimating estimated optical noise of the receiving end when the first electrical parameter provides electrical energy to the transmitting end according to a noise gain model; the noise gain model is used for indicating a corresponding relation between the electric energy variation of the transmitting end and the optical noise variation of the receiving end, and the corresponding relation is a linear forward relation;
and the noise elimination module is used for eliminating errors of the first optical parameters according to the estimated optical noise.
5. A terminal device, characterized in that the terminal device comprises: the device comprises a shell, and a display screen, a proximity sensor, a processor and a memory which are positioned in the shell, wherein the processor is electrically connected with the display screen, the proximity sensor and the memory;
the proximity sensor comprises a transmitting end and a receiving end, wherein the transmitting end is used for transmitting detection light by using electric energy of a first electrical parameter, and the receiving end is used for receiving reflected light to obtain a first optical parameter; the reflected light is received by the receiving end after the probe light is reflected by the measured object;
the memory is used for storing a noise gain model, the noise gain model is used for indicating the corresponding relation between the electric energy variation of the transmitting terminal and the optical noise variation of the receiving terminal, and the corresponding relation is a linear forward relation;
the processor is used for measuring the proximity sensor for multiple times to determine a corresponding relation f between the electric energy variation of the transmitting end and the optical noise variation of the receiving end; when the second electrical parameter provides electric energy for the transmitting terminal, reading a second optical parameter measured by the receiving terminal; if the distance between the measured object and the proximity sensor changes, the second optical parameter is kept stable, and reference optical noise is determined according to the second optical parameter; establishing a noise gain model delta P-f (delta E) according to the second electrical parameter and the reference optical noise; wherein, the optical noise variation Δ P is the estimated optical noise/the reference optical noise; the electric energy variation delta E is the first electric parameter/the second electric parameter; and estimating the estimated optical noise of the receiving end according to the noise gain model, and carrying out error elimination on the first optical parameter according to the estimated optical noise.
6. The terminal device of claim 5, wherein the display covers the proximity sensor;
the reflected light is received by the receiving end after the detection light is transmitted by the display screen, reflected by the measured object, transmitted by the display screen again.
7. The terminal device according to claim 5, wherein the display screen is provided with an opening corresponding to the position of the proximity sensor, and the surface of the opening is covered with a film body;
the reflected light is received by the receiving end after the detection light is transmitted by the film body, reflected by the object to be detected, and transmitted by the film body again.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing a proximity sensor based error mitigation method as claimed in any one of claims 1 to 3.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a proximity sensor based error concealment method according to any one of claims 1-3.
CN201710613371.0A 2017-07-25 2017-07-25 Proximity sensor based error cancellation method and related product CN107526088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710613371.0A CN107526088B (en) 2017-07-25 2017-07-25 Proximity sensor based error cancellation method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710613371.0A CN107526088B (en) 2017-07-25 2017-07-25 Proximity sensor based error cancellation method and related product

Publications (2)

Publication Number Publication Date
CN107526088A CN107526088A (en) 2017-12-29
CN107526088B true CN107526088B (en) 2020-01-17

Family

ID=60680088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710613371.0A CN107526088B (en) 2017-07-25 2017-07-25 Proximity sensor based error cancellation method and related product

Country Status (1)

Country Link
CN (1) CN107526088B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2129084A1 (en) * 2008-05-29 2009-12-02 Lg Electronics Inc. Transparent display and operation method thereof
CN102353395A (en) * 2011-06-26 2012-02-15 西安电子科技大学 Infrared proximity transducer capable of inhibiting environmental noise
CN103579015A (en) * 2012-07-18 2014-02-12 嘉盛马来西亚公司 Semiconductor package and method for forming the same
CN103957303A (en) * 2014-04-24 2014-07-30 上海优思通信科技有限公司 Method for automatic calibration of proximity optical sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2129084A1 (en) * 2008-05-29 2009-12-02 Lg Electronics Inc. Transparent display and operation method thereof
CN102353395A (en) * 2011-06-26 2012-02-15 西安电子科技大学 Infrared proximity transducer capable of inhibiting environmental noise
CN103579015A (en) * 2012-07-18 2014-02-12 嘉盛马来西亚公司 Semiconductor package and method for forming the same
CN103957303A (en) * 2014-04-24 2014-07-30 上海优思通信科技有限公司 Method for automatic calibration of proximity optical sensor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"环境噪声抑制的红外接近传感器设计";史凌峰等;《华中科技大学学报(自然科学版)》;20120228;第40卷(第2期);第71-76页 *

Also Published As

Publication number Publication date
CN107526088A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
US10067192B2 (en) System and method for battery monitoring and preservation
AU2017394423B2 (en) Method of controlling display screen statuses, and apparatus
CN105628081B (en) Method and apparatus for detecting immersion of a device in a liquid
US10643578B2 (en) Method of controlling display screen statuses, and apparatus
RU2645302C1 (en) Method and apparatus for setting screen brightness
US9967404B2 (en) Echo controller
US9459723B2 (en) Detection algorithm for an infrared proximity sensor of a touch screen mobile phone
JP5973069B2 (en) Portable electronic devices
US10606411B2 (en) Method and device for improved accuracy of proximity and touch detection in mobile devices
TWI445993B (en) Time of flight (tof) transceivers system and method for use in calibrating the same
CN107124484B (en) The method for handover control that mobile terminal and its display screen are lighted and extinguished
AU2014243666B2 (en) Terminal transmission power adjustment method, device, and terminal
US8536507B2 (en) Integrated proximity sensor and light sensor
US8130212B2 (en) Contact-sensing device, mobile information terminal, and capacitance calibration program and method
EP2713586B1 (en) Method and device for adjusting detecting threshold of infrared proximity sensor
CN101996002B (en) For the apparatus and method of optical attitude identification
KR101764256B1 (en) Electronic equipment, method, program and recording medium for using the same
US9799256B2 (en) Image processing device, image processing method, and image display device
JP6518667B2 (en) Thermal relaxation adaptation for mobile electronic devices
US6795458B2 (en) Laser diode control circuit and laser diode control method
WO2018161739A1 (en) Method and device for controlling state of display screen, storage medium, and terminal
US9807777B2 (en) Antenna switching method
KR101241676B1 (en) Proximity sensors and methods for sensing proximity
JP5209066B2 (en) Sensor device and electronic device
US7978087B2 (en) Fire 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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant