1. Technical Field
The present disclosure relates to a test device and a test method for testing focus function of an external device.
2. Description of Related Art
When a DVD player plays a disc, a light beam is emitted to the disc, and the light reflected beam is captured to read information recorded on the disc. A focus function of the DVD player is provided to test the emitted light beam and thus testing whether or not the DVD player can read the correct information from the disc. However, when testing the focus function of the DVD player, the user sometimes has to manually input a test instruction a number of times, which is complicated and time consuming.
Therefore, there is room for improvement in the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout two views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at “least one.”
The test device 10 includes a setting module 11, a first determining module 12, a focus module 13, a matching module 15, an accumulating module 16, a timing module 17, a second determining module 18, and a prompting module 19 which are a collection of software instructions.
The setting module 11 generates a setting signal and a checking signal in response to operations of a user. The setting signal is configured for controlling the external device 20 to set values of parameters in relation to the light beam emitted by the external device 20. In the embodiment, the parameters include, but not limited to, a swing range of a loader and a number of test times.
The first determining module 12 determines whether the test device 10 receives feedback information from the external device 20 in response to the checking signal. When the test device 10 receives feedback information from the external device 20, the first determining module 12 generates a trigger signal; when the test device 10 does not receive feedback information from the external device 20, the first determining module 12 generates a timing signal. In the embodiment, the feedback information indicates that the external device 20 has completely set the parameter based on the setting signal, and the feedback information is formatted in a predetermined character string and transmitted to the external device 20.
The focus module 13 generates a focus instruction for controlling the external device 20 to execute a focus function in response to the trigger signal, and receives reflect information from the external device 20 after executing the focus function.
The matching module 15 checks whether the received reflecting information matches standard information. When the received reflecting information matches the standard information, the matching module 15 generates a first control signal to indicate that a test of the focus function of the external device 20 is successful one time. When the received reflecting information does not match the standard information, the matching module 15 generates a second control signal to indicate that the test of the focus function of the external device 20 failed one time.
The accumulating module 16 accumulates the number of success times and generates a first determining signal in response to the first control signal. The accumulating module 16 further accumulates the number of failed times and generates a second determining signal in response to the second control signal.
The timing module 17 measures a duration of not receiving feedback information from the external device 20 and generates a third determining signal in response to the timing signal.
The second determining module 18 determines whether the success times exceed a first predetermined value in response to the first determining signal. When the success times exceed the first predetermined value, the second determining module 18 generates a first prompting signal. When the success times do not exceed the first predetermined value, the second determining module 18 generates a trigger signal. In the illustrated embodiment, the first predetermined value can be set by operations of the user.
The second determining module 18 further determines whether the failed times exceed a second predetermined value in response to the second determining signal. When the failed times exceed the second predetermined value, the second determining module 18 generates a second prompting signal. When the failed times do not exceed the second predetermined value, the second determining module 18 generates a trigger signal. In the embodiment, the second predetermined value can be set by operations of the user.
The second determining module 18 further determines whether the measured duration exceeds a predetermined period in response to the third determining signal. When the measured duration exceeds a predetermined period, the second determining module 18 generates a second prompting signal; when the measured duration does not exceed a predetermined period, the second determining module 18 generates the checking signal. In the embodiment, the predetermined period can be set by operations of the user.
The prompting module 19 outputs a first prompting information for indicating that the focus function of the external device 20 is in a normal state in response to the first prompting signal. In addition, the prompting module 19 outputs a second prompting information for indicating that the focus function of the external device 20 is in an abnormal state in response to the second prompting signal. In the embodiment, the first prompting information and the second prompting information can be video signal, audio signal, or text information for example.
In step S201, the setting module 11 generates a setting signal and a checking signal in response to an operation. The setting signal is configured for controlling the external device 20 to set values of parameters in relation to the light beam emitted by the external device 20. In the embodiment, the parameters include, but not limited to, a swing range of a loader and a number of test times.
In step S202, in response to the checking signal the first determining module 12 determines whether the test device 10 receives feedback information from the external device 20. If the test device 10 receives feedback information from the external device 20, a trigger signal is generated and the procedure goes to S203; if the test device 10 does not receive feedback information from the external device 20, a trigger signal is generated and the procedure goes to S211. In the embodiment, the feedback information indicates that the external device 20 has completely set the parameter based on the setting signal, and the feedback information is formatted in a predetermined character string and transmitted format the external device 20.
In step S203, in response to the trigger signal the focus module 13 generates a focus instruction for controlling the external device 20 to execute a focus function.
In step S204, the focus module 13 further receives reflect information from the external device 20 after the external device 20 executes the focus function.
In step S205, the matching module 15 checks whether the received reflecting information matches standard information. If the received reflecting information matches the standard information, a first control signal is generated for indicating that a test of the focus function of the external device 20 is successful one time and the procedure goes to S206. When the received reflecting information does not match the standard information, a second control signal is generated for indicating that the test of the focus function of the external device 20 failed one time and the procedure goes to S209.
In step S206, in response to the first control signal the accumulating module 16 accumulates a number of success times and generates a first determining signal.
In step 207, in response to the first determining signal the second determining module 18 determines whether the number of the success times exceeds a first predetermined value. If the success times exceed the second predetermined value, a first prompting signal is generated and the procedure goes to S208. If the success times do not exceed the first predetermined value, the trigger signal is generated and the procedure goes to S203.
In step S208, in response to the first prompting signal the prompting module 19 outputs a first prompting information for indicating that the focus function of the external device 20 is in a normal state.
In step S209, in response to the second control signal the accumulating module 16 accumulates a number of failed times and generates a second determining signal.
In step S210, in response to the second determining signal the second determining module 18 determines whether the number of the failed times exceeds a second predetermined value. If the failed times exceed the second predetermined value, a second prompting signal is generated and the procedure goes to S213. If the failed times do not exceed the second predetermined value, the trigger signal is generated and the procedure goes to S203.
In step S211, in response to the timing signal the timing module 17 measures a duration of not receiving feedback information and generates a third determining signal.
In step S212, in response to the third determining signal the second determining module 18 determines whether the measured duration exceeds a predetermined period. If the measured duration exceed the predetermined period, a second prompting signal is generated and the procedure goes to S213; if the measured duration does not exceed the predetermined period, the checking signal is generated and the procedure goes to S202.
In step S213, in response to the second prompting signal the prompting module 19 outputs a second prompting information for indicating that the focus function of the external device 20 is in an abnormal state.
In use, the test device 10 automatically generates focus instructions and tests the focus function of the external device 20 for times. Therefore, the testing operation is improved.
It is to be understood, however, that even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and changes may be made in detail, especially in the matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
2013101555192 | Apr 2013 | CN | national |