Patent ID: 9350456
Filing Date: 2016-05-24
CPC Classification: G01J,H04B

Claim Text:
1. A method for improving luminous intensity adaptability of an optical signal collecting device, wherein the device controls a predetermined load resistor to conduct upon receiving a self-adaptability request, the device collects and sets a voltage upon being satisfied with a predetermined condition, and the load resistor has an influence on collecting of the voltage, the method comprising: Step a, determining whether a self-adaptability is failed, if yes, restoring modifications on flags, variables and load resistors, prompting error and quitting; otherwise, collecting a voltage value and if the device stores a last collected voltage value, going to Step b; otherwise going to Step c; Step b, comparing currently collected voltage value with the last collected voltage value, if difference between the currently collected voltage value and the last collected voltage value is smaller than a predetermined voltage value, going to Step c; otherwise replacing the last collected voltage value with the currently collected voltage value, clearing a voltage value buffer and going to Step c; Step c, adding the currently collected voltage value to the voltage value buffer and determining whether number of voltage values stored in the voltage value buffer reaches a first predetermined voltage value, if yes, going to Step d; otherwise, quitting and waiting for next entering; Step d, computing an average value of all voltage values stored in the voltage value buffer and determining whether a first voltage is reached, if yes, going to Step e; otherwise storing the computed average value as the first voltage and going to Step f; Step e, comparing the computed average value with the first voltage stored in the device, if difference between the computed average value and the first voltage is smaller than a second predetermined voltage value, replacing the first voltage stored in the device with the computed average value and going to Step f; if difference between the computed average value and the first voltage is not smaller than the second predetermined voltage value and the first voltage is greater than the computed average value, setting the voltage according to a first predetermined rule and going to Step f; if difference between the computed average value and the first voltage is not smaller than the second predetermined voltage value and the computed average value is greater than the first voltage, setting the voltage according to a second predetermined rule and going to Step f; Step f, determining whether the first voltage, a second voltage and a third voltage are all collected, if yes, going to Step g; otherwise, quitting and waiting for next entering; Step g, determining whether the first voltage, the second voltage and the third voltage stored in the device are all satisfied with a predetermined requirement, if yes, quitting and the device waiting for receiving data; otherwise going to Step h; and Step h, determining whether a predetermined condition of switching resistor is satisfied, if yes, checking for status of a current load resistor, switching into a next load resistor according to a third predetermined rule, quitting and waiting for next entering and collecting voltage according to the next load resistor; otherwise, the self-adaptability being failed, clearing the first voltage, the second voltage and the third voltage stored in the device and quitting; wherein the predetermined condition of switching resistor is that times of switching resistor does not reach the second predetermined voltage value.