The present disclosure relates to testing technologies in relation to electronic devices, and more particularly to a testing device and a method capable of automatically obtaining performance parameters of a disc player to test the disc player according to the obtained performance parameters.
During production of a disc player, performance parameters of the disc player are obtained to detect whether the disc player is qualified or not. In a typical test method, a number of different types of discs are used to test the disc player. Generally, when the disc player reads data from the different types of discs, the performance parameters of the disc player are different.
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 the several 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.”
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software commands, written in a programming language, for example, Java, C, or assembly. One or more software commands in the modules may be embedded in firmware, such as in an EPROM. Modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage system. Embodiments of the present disclosure will be described with reference to the drawings.
The testing device 100 includes a storage 110, an inputting unit 120, a display 130, a detecting module 140, a type state detecting module 150, a parameter obtaining module 160, a determination module 170, and a control unit 180.
The storage 110 stores at least one sector table associated with a disc in the disc player 200. Each sector table records sector information corresponding to a number of physical sectors of the disc, a testing command associated with each physical sector, and a reference value range of each of performance parameters of the disc player 200. The disc player 200 can execute the testing command. The reference value range of each performance parameter of the disc player 200 is associated with a type of disc. In the present embodiment, the disc can be a digital versatile disc (DVD), a compact disc (CD), or a blue-ray disc (BD).
The inputting unit 120 can be a keyboard, a mouse, a touch screen, a touch pad, or a barcode scanner, for example, to receive manual operations.
The display 30 displays can be a liquid crystal display (LCD), a light emitting diode (LED) display, or other like display devices.
The type detecting module 140 detects a type of disc when the disc is put into the disc player 200. In the present embodiment, the type detecting module 140 reads data of the disc to detect the type of disc. In the other embodiments, the type of disc can be manually input from the inputting unit 120, and the type detecting module 140 can obtain the type of disc from the inputting unit 120.
The state detecting module 150 detects whether the disc player 200 is in a to-be-tested state or not. In the present embodiment, the disc player 200 generates a to-be-tested command when the disc player 200 is prepared to be tested. If the to-be-tested command is detected, the disc player 200 is determined to be in the to-be-tested state.
When the disc player 200 is in the to-be-tested state, the parameter obtaining module 160 obtains each testing command from the sector table corresponding to the type of the disc, and controls the disc player 200 to execute each testing command for controlling the disc player 200 to read data of the corresponding sector according to the sector information. When each testing command is executed by the disc player 200, a value of each performance parameter of the disc player 200 can be obtained by the parameter obtaining module 160.
The control module 170 controls the display 130 to display the value of each performance parameter of the disc player 200, and controls the storage 110 to store the performance parameters with the corresponding type of the disc.
The determination module 180 determines whether the obtained value of each performance parameter of the disc player 200 is within the reference value range of the corresponding performance parameter. When the value of each performance parameter is within the reference value range, the control module 170 controls the display 130 to display a first prompt message indicating that the disc player 200 is qualified. When the value of at least one performance parameter is not within the reference value range, the control module 170 controls the display 130 to display a second prompt message indicating that the disc player 200 is not qualified.
In block 302, the storage stores at least one sector table associated with a disc in the disc player. Each sector table records sector information corresponding to a number of physical sectors of the disc, a testing command associated with each physical sector, and a reference value range of each of performance parameters of the disc player. The disc player can execute the testing command. The reference value range of each performance parameter of the disc player is associated with a type of disc.
In block 304, the type detecting module detects a type of disc when the disc is put into the disc player. In the present embodiment, the type detecting module reads data of the disc in order to detect the type of disc. In the other embodiments, the type of disc can be manually input from the inputting unit, and the type detecting module can obtain the type of disc from the inputting unit.
In block 306, the state detecting module detects whether the disc player is in a to-be-tested state or not. In present embodiment, the disc player generates a to-be-tested command when the disc player 200 is prepared to be tested. If the to-be-tested command is detected, the disc player is determined to be in the to-be-tested state, block 308 is implemented. If the to-be-tested command is not detected, the state detecting module repeats the to-be-tested command.
In block 308, the parameter obtaining module obtains each from the sector table corresponding to the type of the disc, and controls the disc player to execute each testing command for controlling the disc player to read data of the corresponding sector according to the sector information.
In block 310, the parameter obtaining module obtains a value of each performance parameter of disc player.
In block 312, the control module controls the display to display the value of each performance parameter of the disc player, and controls the storage to store the performance parameters with the corresponding type of the disc.
In block 314, the determination module determines whether the obtained value of each performance parameter of the disc player is within the reference value range of the corresponding performance parameter. When the value of each performance parameter is within the reference value range of the corresponding performance parameter, block 316 is implemented. When the value of each performance parameter is not within the reference value range of the corresponding performance, block 318 is implemented.
In block 316, a first prompt message indicating that the disc player is qualified is displayed on the display
In block 318, a second prompt message indicating that the disc player is not qualified is displayed on the display.
Although information as to, 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, including 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 |
---|---|---|---|
201310200290X | May 2013 | CN | national |