IP Library Granted Patent US 9,063,010
Granted Patent B2
US 9,063,010 · App. 14/138,647 · Granted Jun 23, 2015

Method and apparatus for adjusting sensing threshold of infrared proximity sensor

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,063,010
App. No.
14/138,647
Granted
Jun 23, 2015
Kind
B2
Abstract

A method and an apparatus for adjusting a sensing threshold of an infrared proximity sensor are provided. The method includes: obtaining, through the infrared proximity sensor, a reflected infrared ray intensity value in an environment of a current light intensity; comparing the obtained reflected infrared ray intensity value with a pre-stored reflected infrared ray intensity value, so as to obtain a first difference; and when the first difference is greater than a preset first threshold, modifying the sensing threshold. It avoid misjudge of blocking of the mobile phone because a light transmittance of a lens is reduced, and the fault is solved by modifying the sensing threshold, so that a proximity sensing function of the mobile phone can be automatically repaired without changing hardware.

Claims (52)

1. A method for adjusting a sensing threshold for an infrared proximity sensor, the method comprising:

obtaining, by the infrared proximity sensor, a first reflected infrared ray intensity value, the first reflected infrared ray intensity value corresponding to a current environment;

obtaining a difference value, wherein the difference value is based on comparing the first reflected infrared ray intensity value with a stored reflected infrared ray intensity value; and

modifying, in response to determining that the difference value is greater than a first difference threshold, the sensing threshold for the infrared proximity sensor;

wherein the sensing threshold is used to determine whether the infrared proximity sensor is blocked; and

wherein the first reflected infrared ray intensity value is a difference between a first infrared ray intensity value and a second infrared ray intensity value, the first infrared ray intensity value corresponding to a measurement obtained by the infrared proximity sensor without the infrared proximity sensor emitting an infrared ray, and the second infrared ray intensity value corresponding to a measurement obtained by the infrared proximity sensor based on the infrared proximity sensor emitting an infrared ray.

2. The method according to claim 1 , wherein obtaining the first reflected infrared ray intensity value is performed in a current environment where the infrared proximity sensor is not blocked; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the first reflected infrared ray intensity value.

3. The method according to claim 1 , wherein obtaining the first reflected infrared ray intensity value is performed in a current environment where the infrared proximity sensor is blocked; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the first reflected infrared ray intensity value.

4. The method according to claim 1 , wherein the sensing threshold comprises a range of values, and modifying the sensing threshold comprises:

adding the difference value to the upper limit and the lower limit of the range so as to obtain a modified sensing threshold.

5. The method according to claim 4 , wherein after the modified sensing threshold is obtained, the method further comprises:

adding the difference value to the stored reflected infrared ray intensity value to obtain a sum, and using the sum as a new stored reflected infrared ray intensity value.

6. The method according to claim 1 , wherein before obtaining the first reflected infrared ray intensity value, the method further comprises:

receiving an instruction from a user, wherein the instruction comprises an instruction to start a call or an instruction to obtain a reflected infrared ray intensity value.

7. The method according to claim 1 , further comprising:

obtaining multiple reflected infrared ray intensity values in a current environment where the infrared proximity sensor is not blocked, including the obtaining of the first reflected infrared ray intensity value; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the multiple obtained reflected infrared ray intensity values so as to obtain multiple differences; and averaging the multiple differences to obtain the difference value.

8. The method according to claim 1 , further comprising:

obtaining multiple reflected infrared ray intensity values in a current environment where the infrared proximity sensor is blocked, including the obtaining of the first reflected infrared ray intensity value; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the multiple obtained reflected infrared ray intensity values so as to obtain multiple differences; and averaging the multiple differences to obtain the difference value.

9. The method according to claim 1 , wherein the sensing threshold is a single value, and modifying the sensing threshold comprises:

adding the difference value to the single value so as to obtain a modified sensing threshold.

10. The method according to claim 9 , wherein after the modified sensing threshold is obtained, the method further comprises:

adding the difference value to the stored reflected infrared ray intensity value to obtain a sum and using the sum as a new stored reflected infrared ray intensity value.

11. An apparatus comprising an infrared proximity sensor, a processor, and a processor-readable medium having processor-executable instructions stored thereon for adjusting a sensing threshold for the infrared proximity sensor, wherein the processor executable instructions comprise instructions for:

obtaining a first reflected infrared ray intensity value, the first reflected infrared ray intensity value corresponding to a current environment;

obtaining a difference value, wherein the difference value is based on comparing the first reflected infrared ray intensity value with a stored reflected infrared ray intensity value; and

modifying, in response to determining that the difference value is greater than a first difference threshold, the sensing threshold for the infrared proximity sensor;

wherein the sensing threshold is used to determine whether the infrared proximity sensor is blocked; and

wherein the first reflected infrared ray intensity value is a difference between a first infrared ray intensity value and a second infrared ray intensity value, the first infrared ray intensity value corresponding to a measurement obtained by the infrared proximity sensor without the infrared proximity sensor emitting an infrared ray, and the second infrared ray intensity value corresponding to a measurement obtained by the infrared proximity sensor based on the infrared proximity sensor emitting an infrared ray.

12. The apparatus according to claim 11 , wherein the apparatus is configured to perform the obtaining the first reflected infrared ray intensity value performed in a current environment where the infrared proximity sensor is not blocked; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the first reflected infrared ray intensity value.

13. The apparatus according to claim 11 , wherein the apparatus is configured to perform the obtaining the first reflected infrared ray intensity value is performed in a current environment where the infrared proximity sensor is blocked; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the first reflected infrared ray intensity value.

14. The apparatus according to claim 11 , wherein the sensing threshold comprises a range of values, and modifying the sensing threshold comprises:

adding the difference value to the upper limit and the lower limit of the range so as to obtain a modified sensing threshold.

15. The apparatus according to claim 14 , wherein the processor-executable instructions further comprise instructions for:

after the modified sensing threshold is obtained, adding the difference value to the stored reflected infrared ray intensity value to obtain a sum, and using the sum as a new stored reflected infrared ray intensity value.

16. The apparatus according to claim 11 , wherein the processor-executable instructions further comprise instructions for:

before obtaining the first reflected infrared ray intensity value, receiving an instruction from a user, wherein the instruction comprises an instruction to start a call or an instruction to obtain a reflected infrared ray intensity value.

17. The apparatus according to claim 11 , wherein the processor-executable instructions further comprise instructions for:

obtaining multiple reflected infrared ray intensity values in a current environment where the infrared proximity sensor is not blocked, including the obtaining of the first reflected infrared ray intensity value; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the multiple obtained reflected infrared ray intensity values so as to obtain multiple differences; and averaging the multiple differences to obtain the difference value.

18. The apparatus according to claim 11 , wherein the processor-executable instructions further comprise instructions for:

obtaining multiple reflected infrared ray intensity values in a current environment where the infrared proximity sensor is blocked, including the obtaining of the first reflected infrared ray intensity value; and

wherein the difference value is further based on subtracting the stored reflected infrared ray intensity value from the multiple obtained reflected infrared ray intensity values so as to obtain multiple differences; and averaging the multiple differences to obtain the difference value.

19. The apparatus according to claim 11 , wherein the sensing threshold is a single value, and modifying the sensing threshold comprises:

adding the difference value to the single value so as to obtain a modified sensing threshold.

20. The apparatus according to claim 11 , wherein the processor-executable instructions further comprise instructions for:

after the modified sensing threshold is obtained, adding the difference value to the stored reflected infrared ray intensity value to obtain a sum and using the sum as a new stored reflected infrared ray intensity value.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI DEVICE CO.,LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 056413/0883 →
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 23, 2013
From: WU, ZHIHUI
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 031840/0646 →