Patent ID: 9632179
Date: 2017-04-25
CPC Classifications: G01S,H03K,H04M

Claim:
1. A method of enhancing accuracy of outputs of a proximity sensor on an electronic device, the method comprising: generating proximity sensor data at the electronic device using the proximity sensor; determining a current value of an angle of the electronic device relative to the ground using an orientation sensor; comparing the current value of the angle with a predefined range of angles that is consistent with a state of the electronic device in which there is no object proximal to a first face of the electronic device; determining that no object is proximal to the first face of the electronic device based on both the generated proximity sensor data and the comparison of the current value of the angle of the electronic device with the predefined range of angles; in response to determining that no object is proximal to the first face of the electronic device, setting the proximity sensor to obtain a sample of proximity sensor data at the electronic device by gathering at least one burst of a predetermined number of proximity sensor readings; obtaining an estimate of the current baseline of the proximity sensor using the obtained sample, and resetting the baseline of the proximity sensor based on the estimate of the current baseline.