Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
In the embodiment of the invention, television set can be for possessing the television set of HDCP function, and it can be connected with dut terminal through the HDMI line.Dut terminal can be the high-definition digital terminal, and for example: the high-definition digital STB, this STB includes memory.Sense terminals can be for being used to control the terminal equipment that dut terminal carries out production test; It can be through serial ports (for example: the RS32 serial ports) be connected with dut terminal; For example: this sense terminals can be PC, preserves the HDCP Key of some in this PC, and the tool software of test usefulness is installed; The tool software of PC end is used for carrying out communication at production test procedure and STB, and HDCP Key is write the HDCP function of STB with the test machine top box.Except that specifying, the sense terminals of the embodiment of the invention is that example describes with the PC, and dut terminal is that example describes with the STB.
To combine Fig. 1-3 below, HDCP function test method provided by the invention will be described in detail.
See also Fig. 1, be the flow chart of an embodiment of HDCP function test method provided by the invention; The executive agent of present embodiment can be dut terminal, and this method can comprise:
S101 receives the HDCP Key that sense terminals is sent.
Sense terminals can be sent HDCP Key to dut terminal through serial ports, and this step then receives sense terminals through HDCP Key that serial ports sent.
S102 sends the HDCP check request according to said HDCP Key to television set, and receives the checking data that said television set returns.
Among the step S101, receive the HDCP Key that sense terminals sends after, dut terminal can be set to this HDCP Key in the application software of local terminal, and opens the HDCP function.In this step, sense terminals is sent the HDCP check request to television set, and receives the checking data that said television set returns.In concrete the realization, this checking procedure can not given unnecessary details at this with reference to the checking procedure of STB and television set in the use of existing HDCP function.
S103 confirms check results according to said checking data, and output HDCP state indication message.
Wherein, said check results comprises: verification succeeds or verification failure.Said HDCP state indication message can comprise: the Indication message of normal Indication message of HDCP state or HDCP abnormal state.In this step, the concrete processing procedure of dut terminal is: if the checking data that returns according to television set is confirmed verification succeeds, and then with said HDCP Key write memory, and to the normal Indication message of said sense terminals output HDCP state; If confirm the verification failure, then export the Indication message of HDCP abnormal state to said sense terminals according to television set back-checking data.It is understandable that dut terminal confirms that according to checking data the process of check results can not give unnecessary details at this with reference to prior art.
In the embodiment of the invention; HDCP Key and television set that dut terminal sends sense terminals carry out communication; Through with television set carry out HDCP Key verification alternately, can guarantee finally to deposit in the correctness of the HDCP Key of sense terminals, dut terminal is according to check results output HDCP state indication message simultaneously; Can judge intuitively that whether the HDCP function of dut terminal can normally be used, and has promoted the reliability of dut terminal.
See also Fig. 2, be the flow chart of another embodiment of HDCP function test method provided by the invention; The executive agent of present embodiment can be sense terminals, and this method can comprise:
S201 sends HDCP Key to dut terminal.
In this step, sense terminals can be sent HDCP Key to dut terminal through serial ports.
S202 receives the HDCP state indication message that said dut terminal is returned according to said HDCP Key.
Dut terminal can be exported the HDCP state indication message to sense terminals according to HDCP Key, and this HDCP state indication message comprises: the Indication message of normal Indication message of HDCP state or HDCP abnormal state.In this step, the Indication message that sense terminals then receives dut terminal to be returned.
S203 carries out test processes according to said Indication message.
In this step; The test processes process of sense terminals can comprise: if step S202 receives the normal Indication message of HDCP state; Then confirm the HDCP functional test success of said dut terminal, the sequence number and the said HDCP Key of the said dut terminal that storage has been bound; If step S202 receives the Indication message of HDCP abnormal state; Then cancel the sequence number of said dut terminal and the binding between the said HDCP Key; Sequence number and another idle HDCP Key of said dut terminal are bound, and the new HDCP Key that binds of sequence number of said dut terminal is sent to said dut terminal.
In the embodiment of the invention; Sense terminals is carried out test processes according to the HDCP state indication message that dut terminal returns; Can guarantee finally to deposit in the correctness of the HDCP Key of sense terminals; According to the HDCP state indication message, can judge intuitively whether the HDCP function of dut terminal can normally be used simultaneously, promote the reliability of sense terminals.
See also Fig. 3, be the flow chart of another embodiment of HDCP function test method provided by the invention; This method can comprise:
S301, sense terminals is sent reading command to dut terminal.
In this step, the tool software that sense terminals can adopt local terminal to install sends reading command to dut terminal, and the sequence number of dut terminal is read in instruction.
S302, dut terminal return the sequence number of local terminal to said sense terminals.
In this step, dut terminal can pass through serial ports, and RS232 serial ports for example returns the sequence number of dut terminal local terminal to sense terminals, and this sequence number is in order to the unique identification dut terminal.
S303, sense terminals is bound the sequence number of said dut terminal and the HDCP Key of a free time.
Whether because the sense terminals local terminal has been stored the HDCP Key of some in advance, in this step, sense terminals can be bound the sequence number of dut terminal with the HDCP Key of a free time mutually, normal in order to the HDCP function of test dut terminal.Wherein, idle HDCP Key representes that this HDCP Key is not in binding state, does not promptly bind with any sequence number mutually.
S304, sense terminals is sent HDCP Key to dut terminal.
S305, dut terminal sends the HDCP check request according to said HDCP Key to television set.
S306 if dut terminal is confirmed verification succeeds according to the checking data that the said television set that receives returns, changes S307 over to; Otherwise, change S311 over to.
S307, dut terminal is with HDCP Key write memory.
S308, dut terminal is to the normal Indication message of sense terminals output HDCP state.
S309, sense terminals is confirmed the HDCP functional test success of dut terminal.
S310, the sequence number and the HDCP Key of the dut terminal that the sense terminals storage has been bound; Change end over to.
S311 if the checking data that dut terminal returns according to the said television set that receives is confirmed the verification failure, changes S312 over to.
S312, dut terminal is to the Indication message of sense terminals output HDCP abnormal state.
In the present embodiment; Sense terminals is behind the Indication message of the HDCP abnormal state that receives dut terminal output; Can also comprise a determination step, that is: sense terminals judges whether the number of times that receives the Indication message of HDCP abnormal state from same dut terminal surpasses predetermined threshold; If judged result is for being the then HDCP functional test of definite said dut terminal failure.Wherein, Predetermined threshold can be set according to actual conditions; For example: can be set at 3, promptly judge the number of times that receives the Indication message of HDCP abnormal state from same STB and surpass three times, then can think the HDCP functional test failure of this STB when PC; Assert that this STB is a bad machine, needs repairing.
S313, the sequence number of sense terminals cancellation dut terminal and the binding between the HDCP Key.
S314, sense terminals is bound sequence number and another idle HDCP Key of dut terminal, and returns S304.
Description through the foregoing description; In the embodiment of the invention, HDCP Key and television set that dut terminal sends sense terminals carry out communication, through with television set carry out HDCP Key verification alternately; Can guarantee finally to deposit in the correctness of the HDCP Key of sense terminals; Dut terminal can judge intuitively according to check results output HDCP state indication message whether the HDCP function of dut terminal can normally be used simultaneously, has promoted the reliability of dut terminal.
Description corresponding to above-mentioned embodiment about the HDCP function test method will combine Fig. 4-6 below, and dut terminal provided by the invention is described in detail.
See also Fig. 4, be the structural representation of an embodiment of dut terminal provided by the invention; This dut terminal comprises:
Receiver module 101 is used to receive the HDCP Key that sense terminals is sent.
Sense terminals can be sent HDCP Key to dut terminal through serial ports, and 101 of receiver modules receive sense terminals through HDCP Key that serial ports sent.
Verification module 102 is used for sending the HDCP check request according to the HDCP Key that said receiver module 101 receives to television set, and receives the checking data that said television set returns.
Behind the HDCP Key that receives the sense terminals transmission, verification module 102 can be set to this HDCP Key in the application software of local terminal, and opens the HDCP function.Verification module 102 is sent the HDCP check request to television set, and receives the checking data that said television set returns.In concrete the realization, this checking procedure can not given unnecessary details at this with reference to the checking procedure of STB and television set in the use of existing HDCP function.
Output module 103 is used for the check results according to said verification module 102 acquisitions, output HDCP state indication message.
Wherein, said check results comprises: verification succeeds or verification failure.Said HDCP state indication message can comprise: the Indication message of normal Indication message of HDCP state or HDCP abnormal state.The concrete processing procedure of output module 103 is: if the checking data that returns according to television set is confirmed verification succeeds, and then with said HDCP Key write memory, and to the normal Indication message of said sense terminals output HDCP state; If the checking data according to said television set returns is confirmed the verification failure, then export the Indication message of HDCP abnormal state to said sense terminals.
See also Fig. 5, be the structural representation of another embodiment of dut terminal provided by the invention; The dut terminal of present embodiment comprises with embodiment illustrated in fig. 4 identical: receiver module 101, and verification module 102 and output module 103, alternatively, the dut terminal in the present embodiment further comprises:
Judge module 104 is used to judge whether to receive the reading command that sense terminals is sent.
Sequence number returns module 105, be used for when said judge module 104 judged results when being, return the sequence number of local terminal to said sense terminals.
Sequence number returns module 105 can pass through serial ports, and RS232 serial ports for example returns the sequence number of dut terminal local terminal to sense terminals, and this sequence number is the unique identification of local terminal.
See also Fig. 6, be the structural representation of an embodiment of the output module of dut terminal provided by the invention; This output module 103 comprises:
Confirm unit 311, be used for confirming check results that said check results comprises: verification succeeds or verification failure according to the checking data that said verification module 102 obtains.
R/w cell 312 is when being used for confirming verification succeeds in said definite unit 311, with said HDCP Key write memory.
First output unit 313 is when being used for confirming verification succeeds in said definite unit 311, to the normal Indication message of said sense terminals output HDCP state.
Second output unit 314 is used for when said definite unit 311 definite verifications are failed, to the Indication message of said sense terminals output HDCP abnormal state.
In the embodiment of the invention; HDCP Key and television set that dut terminal sends sense terminals carry out communication; Through with television set carry out HDCP Key verification alternately, can guarantee finally to deposit in the correctness of the HDCP Key of sense terminals, dut terminal is according to check results output HDCP state indication message simultaneously; Can judge intuitively that whether the HDCP function of dut terminal can normally be used, and has promoted the reliability of dut terminal.
Corresponding to the description of above-mentioned embodiment about the HDCP function test method, and the description of above-mentioned embodiment about dut terminal, will combine Fig. 7-9 below, sense terminals provided by the invention is described in detail.
See also Fig. 7, be the structural representation of an embodiment of sense terminals provided by the invention; This sense terminals comprises:
Transceiver module 201 is used for sending HDCP Key to dut terminal, and receives the HDCP state indication message that said dut terminal is returned according to said HDCP Key.
Transceiver module 201 can send HDCP Key to dut terminal through serial ports, and receives the HDCP state indication message that said dut terminal returns.This HDCP state indication message comprises: the Indication message of normal Indication message of HDCP state or HDCP abnormal state.
Processing module 202, the Indication message that is used for receiving according to said transceiver module 201 is carried out test processes.
The test processes process of processing module 202 can comprise: if receive the normal Indication message of HDCP state, then confirm the HDCP functional test success of said dut terminal, the sequence number and the said HDCP Key of the said dut terminal that storage has been bound; If receive the Indication message of HDCP abnormal state; Then cancel the sequence number of said dut terminal and the binding between the said HDCP Key; Sequence number and another idle HDCP Key of said dut terminal are bound, and the new HDCP Key that binds of sequence number of said dut terminal is sent to said dut terminal.
See also Fig. 8, be the structural representation of another embodiment of sense terminals provided by the invention; The sense terminals of present embodiment is identical with sense terminals embodiment illustrated in fig. 7, comprising: transceiver module 201 and processing module 202.Alternatively, the sense terminals of present embodiment further comprises:
Read module 203 is used for sending reading command to dut terminal, and receives the sequence number of the said dut terminal that said dut terminal returns according to said reading command.
Said processing module 202, the sequence number of the said dut terminal that also is used for said read module 203 is read and the HDCP Key of a free time bind.
Wherein, the HDCP Key of said free time representes that said HDCP Key is in the state of not bound.
Determination module 204 is used to judge whether said transceiver module 201 receives the Indication message of HDCP abnormal state from same dut terminal number of times surpasses predetermined threshold, and in judged result when being, confirm that the HDCP functional test of said dut terminal is failed.
Wherein, Predetermined threshold can be set according to actual conditions; For example: can be set at 3, promptly judge the number of times that receives the Indication message of HDCP abnormal state from same STB and surpass three times, then can think the HDCP functional test failure of this STB when determination module 204; Assert that this STB for badly wanting, needs repairing.
See also Fig. 9, be the structural representation of an embodiment of the processing module of sense terminals provided by the invention; This processing module 202 comprises:
First processing unit 221 is used for when said transceiver module 201 receives the normal Indication message of HDCP state, confirms the HDCP functional test success of said dut terminal, and stores the sequence number and the said HDCP Key of the said dut terminal of having bound.
Second processing unit 222; Be used for when said transceiver module 201 receives the Indication message of HDCP abnormal state; Then cancel the sequence number of said dut terminal and the binding between the said HDCP Key; Sequence number and another idle HDCP Key of said dut terminal are bound, and notify said transceiver module 201 that the new HDCP Key that binds of sequence number of said dut terminal is sent to said dut terminal.
In the embodiment of the invention; Sense terminals is carried out test processes according to the HDCP state indication message that dut terminal returns; Can guarantee finally to deposit in the correctness of the HDCP Key of sense terminals; According to the HDCP state indication message, can judge intuitively whether the HDCP function of dut terminal can normally be used simultaneously, promote the reliability of sense terminals.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.