Method of dynamically adjusting threshold values and related electronic device
First Claim
Patent Images
1. A method of adjusting an electronic device having a processing unit and a sensor sensing proximity of an object, the method comprising:
- setting a base proximity value to a maximum value in a mapping table by the processing unit;
when a call is received or conducted by the electronic device, enabling a proximity function of the sensor by the processor and generating a detected proximity value by the sensor according to the proximity of the object to the sensor, after enabling the sensor;
determining a first range from the mapping table according to the detected proximity value by the processing unit;
setting the base proximity value to a largest value of the first range by the processing unit;
determining a high threshold value and a low threshold value according to the base proximity value by the processing unit comprising;
setting the high threshold as the base proximity value by adjusting with a high value and setting the low threshold value as the base proximity value by adjusting with a low value; and
determining whether the proximity function of the sensor is disabled, wherein if the proximity function of the sensor is not disabled, the above steps are performed again, wherein if the proximity function of the sensor is disabled, resetting the base proximity value, the low threshold and the low threshold to default values.
2 Assignments
0 Petitions
Accused Products
Abstract
A method of dynamically adjusting threshold values for an electronic device is disclosed. The method comprises setting the base proximity value to a maximum proximity value; polling a detected proximity value; determining a first range where the detected proximity value falls according to a mapping table; setting the base proximity value to a largest value of the first range; determining a high threshold value and a low threshold value according to the base proximity value; and resetting the base proximity value to a default value when the proximity function is disabled.
10 Citations
16 Claims
-
1. A method of adjusting an electronic device having a processing unit and a sensor sensing proximity of an object, the method comprising:
-
setting a base proximity value to a maximum value in a mapping table by the processing unit; when a call is received or conducted by the electronic device, enabling a proximity function of the sensor by the processor and generating a detected proximity value by the sensor according to the proximity of the object to the sensor, after enabling the sensor; determining a first range from the mapping table according to the detected proximity value by the processing unit; setting the base proximity value to a largest value of the first range by the processing unit; determining a high threshold value and a low threshold value according to the base proximity value by the processing unit comprising; setting the high threshold as the base proximity value by adjusting with a high value and setting the low threshold value as the base proximity value by adjusting with a low value; and determining whether the proximity function of the sensor is disabled, wherein if the proximity function of the sensor is not disabled, the above steps are performed again, wherein if the proximity function of the sensor is disabled, resetting the base proximity value, the low threshold and the low threshold to default values. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An electronic device comprising:
-
an application unit for enabling a proximity function; a sensor coupled to the application unit, for sensing an object around the electronic device and generating a detected proximity value; and a processing unit coupled to the sensor, for executing a process to adjust threshold values; and a memory coupled to the processing unit for storing a mapping table, the detected proximity value, a base proximity value, a high threshold value and a low threshold value; wherein the process comprise; setting the base proximity value to a maximum value in the mapping table by the processing unit; when a call is received or conducted by the electronic device, enabling the proximity function of the sensor by the processor and generating the detected proximity value by the sensor according to the proximity of the object to the sensor, after enabling the sensor; determining a first range from the mapping table according to the detected proximity value by the processing unit; setting the base proximity value to a largest value of the first range by the processing unit; determining the high threshold value and the low threshold value according to the base proximity value by the processing unit, setting the high threshold as the base proximity value by adjusting with a high value and setting the low threshold value as the base proximity value by adjusting with a low value; and determining whether the proximity function of the sensor is disabled, wherein if the proximity function of the sensor is not disabled, the above steps are performed again, wherein if the proximity function of the sensor is disabled, resetting the base proximity value, the low threshold and the low threshold to default values. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification