This application claims priority to Chinese Patent Application No. 201310218781.7 filed on Jun. 4, 2013 in the China Intellectual Property Office, the contents of which are incorporated by reference herein.
The present disclosure relates to detection apparatus, particularly to a detection apparatus for a peripheral device.
DVD players include a casing, a laser, and a photoelectric conversion chip pasted on the inside of the casing. The laser emits light on a disc received in the casing. The photoelectric conversion chip receives reflected light from the disc.
Implementations of the present disclosure will now be described, by way of example only, with reference to the attached figures, wherein:
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts can be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
The present disclosure is described in relation to a detection apparatus for detecting whether a peripheral device 20 is qualified.
The detecting apparatus 10 includes an input module 11, a non-transitory storage medium 12, a determining module 13, and a timing module 14, a detecting module 15, a converting module 16, a comparing module 17, and a control module 18, and a displaying module 19.
The input module 11 generates a corresponding command according to operations of the users. In one embodiment, the input module 11 can be a keyboard, a mouse, or a touch panel.
The non-transitory storage medium 12 stores a plurality of disc information in different formats, a plurality of testing programs corresponding to the disc information in one-to-one relationship, and a plurality of standard parameters corresponding to the disc information in one-to-one relationship. The testing programs are used for obtaining a feedback information of the peripheral device 20. In one embodiment, the non-transitory storage medium 12 can be a memory system of the device 1, and can be an external storage card, such as a smart media (SM) card, or secure digital (SD) card, for example. The standard parameters is a predetermined range or a predetermined value.
The determining module 13 determines whether disc information is received from the peripheral device 20 when the disc is contained in the peripheral device 20 or according to the command generated by the input module 11. When there is disc information, the determining module 13 further determines whether testing mode information is received from the peripheral device 20. When the testing mode information is not received from the peripheral device 20, the determining module 13 generates a timing signal.
The timing module 14 presets a predetermined time and times a detecting duration in response to the timing signal. The timing module 14 further generates a control signal when the detecting duration exceeds a predetermined time.
The control module 18 generates first prompting information in response to the first control signal. The first prompting information indicates that the detecting operation is greater than the predetermined time.
When the testing mode information is received from the peripheral device 20, the determining module 13 generates a detecting signal. The detecting module 15 transmits a testing program corresponding to the received disc information to the peripheral device 20 in response to the detecting signal, and determines whether feedback information from the peripheral device 20 is received by executing the transmitted testing program in the peripheral device 20. The feedback information is initial location information of the peripheral device 20 where reflected light from the disc is received. In one embodiment, the peripheral device 20 with a light sensor defines four quadrants, executes the received testing program to emit light on the disc, receives reflected light from the disc via a photoelectric conversion chip, and obtains the voltage change in the four quadrants, which is considered feedback information.
The detecting module 15 further determines whether feedback information from the peripheral device 20 is received in a predetermined time period. When no feedback information is received in the predetermined time period, the detecting module 15 further accumulates the number of failed times and determines whether the failed times exceeds a predetermined number. When the failed time does not exceed the predetermined number, the detecting module 15 continues to transmit the testing program corresponding to the received disc information. When the failed times exceeds the predetermined number, the detecting module 15 generates a second control signal.
The control module 18 further generates second prompting information in response to the second control signal. The second prompting information indicates that there is no feedback information received from the peripheral device 20.
When feedback information is received in the predetermined time period, the detecting module 15 generates a converting signal. The converting module 16 converts the feedback information into a parameter in response to the converting signal and generates a comparing signal.
The comparing module 17 compares the converted parameter with the standard parameter corresponding to the disc information in response to the comparing signal. When the converted parameter does not match the corresponding standard parameter, the comparing module 17 generates a third control signal. When the converted parameter matches the corresponding standard parameter, the comparing module 17 generates a fourth control signal.
The control module 18 further generates third prompting information in response to the third control signal, and generates fourth prompting information in response to the fourth control signal. The third prompting information indicates that the peripheral device 20 is unqualified. The fourth prompting information indicates that the peripheral device 20 is qualified and a disc changing operation is needed. The control module 18 further stores the converted parameter in the non-transitory storage medium 12.
The displaying module 19 displays the prompting information generated by the control module 18. In one embodiment, the prompting information can be, for example, video information, audio information, or text information for example.
At block 201, the determining module determines whether disc information is received from the peripheral device when the disc is contained in the peripheral device or according to the command generated by the input module. If the disc information is received, the procedure goes to 202. If there is no disc information received, the procedure returns to 201.
At block 202, the determining module further determines whether a testing mode information is received from the peripheral device. If a testing mode information is received from the peripheral device, a detecting signal is generated and the procedure goes to block 206. If the testing mode information is not received from the peripheral device, a timing signal is generated and the procedure goes to block 203.
At block 203, in response to the timing signal, the timing module times a detecting duration.
At block 204, the timing module further determines whether the detecting duration exceeds a predetermined time. If the detecting duration exceeds a predetermined time, a first control signal is generated and the procedure goes to block 205. If the detecting duration does not exceed a predetermined time, the procedure returns to block 202.
At block 205, in response to the first control signal, the control module generates first prompting information and procedure goes to block 215. The first prompting information indicates that the detecting operation is greater than the predetermined time.
At block 206, in response to the detecting signal, the detecting module transmits a testing program to the peripheral device corresponding to the received disc information.
At block 207, the detecting module further determines whether feedback information from the peripheral device is received in a predetermined time period by executing the transmitted testing program in the peripheral device. If there is no feedback information received in the predetermined time period, the procedure goes to block 208. If the feedback information is received in the predetermined time period, a converting signal is generated and the procedure goes to block 211.
At block 208, the detecting module further accumulates the number of failed times.
At block 209, the detecting module further determines whether the failed times exceeds a predetermined number. If the failed times exceeds the predetermined number, a second control signal is generated and the procedure goes to block 210. If the failed times does not exceed a predetermined number, the procedure returns to block 207.
At block 210, in response to the second control signal, the control module generates second prompting information and procedure goes to block 215. The second prompting information indicates that there is no feedback information received from the peripheral device.
At block 211, in response to the converting signal, the converting module converts the feedback information into a parameter, a comparing signal is generated and the procedure goes to block 212.
At block 212, in response to the comparing signal, the comparing module compares the converted parameter with the standard parameter corresponding to the disc information. If the converted parameter does not match the corresponding standard parameter, a third control signal is generated and the procedure goes to block 213. If the converted parameter matches the corresponding standard parameter, a fourth control signal is generated and the procedure goes to block 214.
At block 213, in response to the third control signal, the control module generates third prompting information and procedure goes to block 215. The third prompting information indicates that the peripheral device is unqualified.
At block 214, in response to the fourth control signal, the control module generates fourth prompting information in response to the fourth control signal and the method goes to block 215. The fourth prompting information indicates that the peripheral device is qualified and a disc changing operation is needed.
At block 215, the displaying module displays the prompting information generated by the control module.
In use, the detection apparatus 10 automatically detects an initial location of the peripheral device 20 and generates different prompting information for indicating different reasons. Thus, detecting operation convenience increases.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes can be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including, the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
2013102187817 | Jun 2013 | CN | national |