Scheme capable of calibrating value of sampling precision of optical sensor for tracking
10379192 ยท 2019-08-13
Assignee
Inventors
Cpc classification
B41J29/38
PERFORMING OPERATIONS; TRANSPORTING
B41J19/205
PERFORMING OPERATIONS; TRANSPORTING
International classification
B41J29/38
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A method for calibrating a value of sampling precision of an optical sensor for tracking includes: reading a precision variance and a setting precision value from a memory device; measuring the sampling precision of the optical sensor under a normal mode to generate an actually measured precision value; calculating a normalized value that is proportional to the actually measured precision value according to the precision variance, the actually measured precision value, and the setting precision value; and, calibrating the actually measured precision value by using the normalized value.
Claims
1. A method for calibrating a value of sampling precision of an optical sensor for tracking a mouse device, comprising: reading a precision variance and a setting precision value from a memory device; measuring the sampling precision of the optical sensor under a normal mode to generate an actually measured precision value; calculating a normalized value according to the precision variance, the actually measured precision value, and the setting precision value, wherein the normalized value is proportional to the actually measured precision value and is inversely proportional to the precision variance; and reporting and sending the normalized value as a result of a motion of the mouse device to a remote host device to make the remote host device control the mouse device based on the normalized value.
2. The method of claim 1, further comprising: obtaining the setting precision value; measuring the sampling precision of the optical sensor under a test mode to generate a test precision value; calculating a difference between the setting precision value and the test precision value, to obtain the precision variance; and storing the precision variance and the setting precision value in the memory device.
3. The method of claim 1, wherein the memory device is located within the optical sensor, and the method is performed by the optical sensor.
4. The method of claim 1, wherein the optical sensor is coupled to the remote host device in which the memory device is located, and the method is performed by the remote host device.
5. The method of claim 1, wherein the optical sensor is used for tracking movement of an optical mouse or movement of a laser mouse.
6. The method of claim 1, being performed each time when the optical sensor starts up.
7. The method of claim 1, wherein the normalized value is generated based on an equation:
8. An optical sensor capable of calibrating a value of sampling precision of the optical sensor for tracking a mouse device, comprising: a memory device storing a precision variance and a setting precision value; a detecting circuit, for measuring the sampling precision of the optical sensor under a normal mode to generate an actually measured precision value; and a controller, coupled to the memory device and the detecting circuit, for calculating a normalized value according to the precision variance, the actually measured precision value, and the setting precision value, and for reporting and sending the normalized value as a result of a motion of the mouse device to a remote host device to make the remote host device control the mouse device based on the normalized value; wherein the normalized value is proportional to the actually measured precision value and is inversely proportional to the precision variance.
9. The optical sensor of claim 8, wherein the detecting circuit is arranged to measure the sampling precision of the optical sensor under a test mode to generate a test precision value; the controller is arranged to calculate a difference between the setting precision value and the test precision value, to obtain the precision variance; and, the controller stores the precision variance and the setting precision value into the memory device.
10. The optical sensor of claim 8 is used for tracking movement of an optical mouse or movement of a laser mouse.
11. The optical sensor of claim 8, wherein the controller is arranged to calibrate the actually measured precision value each time when the optical sensor starts up.
12. The optical sensor of claim 8, wherein the normalized value is generated based on an equation:
13. A host device remotely connected to an optical sensor and capable of calibrating a value of sampling precision of the optical sensor for tracking a mouse device, comprising: a memory device storing a precision variance and a setting precision value; a controller, coupled to the memory device, for controlling the optical sensor to measure the sampling precision of the optical sensor under a normal mode to generate an actually measured precision value, for calculating a normalized value according to the precision variance, the actually measured precision value, and the setting precision value, and for receiving the normalized value reported and sent from the optical sensor and for controlling the mouse device based on the normalized value; wherein the normalized value is proportional to the actually measured precision value and is inversely proportional to the precision variance.
14. The host device of claim 13, wherein the controller is arranged to control the optical sensor to measure the sampling precision of the optical sensor under a test mode to generate a test precision value; and, the controller is arranged to calculate a difference between the setting precision value and the test precision value, to obtain the precision variance, and to store the precision variance and the setting precision value into the memory device.
15. The host device of claim 13, wherein the optical sensor is used for tracking movement of an optical mouse or movement of a laser mouse.
16. The host device of claim 13, wherein the controller is arranged to calibrate the actually measured precision value each time when the optical sensor starts up.
17. The host device of claim 13, wherein the normalized value is generated based on an equation:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
DETAILED DESCRIPTION
(4) Please refer to
(5) Step 105: Start;
(6) Step 110: Read a precision variance and a setting precision value from a memory device;
(7) Step 115: Measure the sampling precision of the optical sensor under a normal mode to generate an actually measured precision value;
(8) Step 120: Calculate a normalized value that is proportional to the actually measured precision value according to the precision variance, the actually measured precision value, and the setting precision value;
(9) Step 125: Calibrate the actually measured precision value by using the normalized value;
(10) Step 130: End.
(11) For example, the setting precision value is configured as 1000 CPI/DPI, and this value can be obtained from the optical sensor and/or from a host device remotely connected to the optical sensor. The optical sensor is arranged to enter a test mode, and under the test mode it is arranged to measure the sampling precision of the optical sensor to generate a test precision value; the measurement operation can be triggered and performed by the host device or the optical sensor itself. In this case, an actually reported sampling precision (resolution) of the optical sensor for example is at 1088 CPI/DPI (i.e. the test precision value), and the host device or optical sensor is arranged for calculating a difference between the setting precision value (e.g. 1000 CPI/DPI) and the test precision value (1088 CPI/DPI), to obtain the precision variance. The precision variance is calculated and determined as 88 CPI/DPI, and the setting precision value and precision variance can be stored in the memory device such as a programmable memory or a register circuit. For instance, the precision variance, 88, can be stored in the register circuit as the hexadecimal value 58.
(12) In Step 110, the setting precision value (e.g. 1000 CPI/DPI) and precision variance (e.g. 88 CPI/DPI) are read from the memory device mentioned above. The optical sensor enters a normal mode. In Step 115, under the normal mode the sampling precision of the optical sensor is measured to generate the actually measured precision value such as 1091 CPI/DPI. In Step 120, the host device or optical sensor is arranged to calculate the normalized value that is proportional to the actually measured precision value (e.g. 1091 CPI/DPI) according to the precision variance (88 CPI/DPI), the actually measured precision value (1091 CPI/DPI), and the setting precision value (1000 CPI/DPI). This can be represented by the following equation:
(13)
(14) wherein NR represents the normalized value of the sampling precision (resolution) of the optical sensor, AR represents the actually reported precision value, SR represents the setting precision value, and V represents the precision variance. For example, based on the above-mentioned values, the normalized value of the resolution is calculated and determined as 1003 CPI/DPI. The actually reported precision value AR can be calibrated and adjusted by using the normalized value NR accordingly.
(15) In another example, the precision variance V may include a negative sign. For example, if the precision variance V is calculated and determined as 63 CPI/DPI under the test mode and the actually reported precision value AR under the normal mode is equal to 1011 CPI/DPI, then the normalized value NR of resolution is calculated based on the above equation and determined as 1079 CPI/DPI. The actually measured precision value AR is calibrated or adjusted by using the normalized value NR mentioned above.
(16) In one embodiment, the above-mentioned memory device is located within the optical sensor, and the method and corresponding steps can be performed by the optical sensor.
(17) Additionally, in another embodiment, the optical sensor is coupled to a remote host device in which the memory device is located, and the method and corresponding steps can be performed by the remote host device.
(18) Further, it should be noted that the method and corresponding steps can be triggered and performed each time when the optical sensor starts up or can be trigger by the optical sensor or the host device. In addition, the optical sensor can be used for tracking movement of a printer head, movement of an optical mouse, and/or movement of a lase mouse; this is not intended to be a limitation of the invention.
(19) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.