Summary of the invention
The technical problem that the present invention mainly solves provides automatic test approach and the Auto-Test System of the receiving terminal for digital television that a kind of testing cost is low, test specification is strong.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: the automatic test approach that a kind of receiving terminal for digital television is provided, this automatic test approach comprises: create the test instruction collection descriptor of at least one corresponding test instruction collection, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction; With test instruction collection descriptor configuration to transport stream; The transport stream of instruction set descriptor is disposed in transmission.
Wherein, test instruction collection descriptor configuration to the step in the transport stream is specially: test instruction collection descriptor configuration to the ground floor circulation programme information of the Program Map Table of transport stream is described, circulate basic stream information of the second layer of Program Map Table is described, the ground floor recirculating network information of network information table is described, the second layer circle transmission stream information of network information table is described, the ground floor circulation business information of SDT Service Description Table is described, during in the ground floor circulation bouquet information description of BAT bouquet association table and the second layer circle transmission stream description of BAT bouquet association table at least one described.
For solving the problems of the technologies described above, another technical solution used in the present invention is: the automatic test approach that a kind of receiving terminal for digital television is provided, this automatic test approach comprises: receive also storage test instruction collection, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction; Carry out test instruction according to the instruction set type; Judge whether test instruction is all carried out; If generate the executive logging file and store the executive logging file.
Wherein, the step of reception and storage test instruction collection comprises: obtain transport stream by the frequency locking demodulation; Analyzing atransmission stream is obtained the test instruction collection, and the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction; Judge whether store sets of instructions version number; If not storage, storage test instruction collection; If store, judge instruction set version in the test instruction is number with whether store sets of instructions version number is identical; If not identical, then store the test instruction collection.
Wherein, the analyzing atransmission stream step of obtaining the test instruction collection comprises: analyzing atransmission stream is obtained test instruction collection descriptor; Resolve test instruction collection descriptor acquiring test instruction collection.
Wherein, test instruction collect descriptor configuration in the ground floor circulation programme information of the Program Map Table of transport stream describe, the second layer of Program Map Table circulate that basic stream information is described, the ground floor recirculating network information of network information table is described, the second layer circle transmission stream information of network information table is described, the ground floor circulation business information of SDT Service Description Table is described, the ground floor circulation bouquet information of BAT bouquet association table is described and the second layer circle transmission stream description of BAT bouquet association table at least one describe.
Wherein, the instruction set type comprises that the single instrction list is carried out, the single instrction circulation is carried out, the multiple instruction list is carried out and the multiple instruction circulation is carried out.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is: the Auto-Test System that a kind of receiving terminal for digital television is provided, this Auto-Test System comprises: digital TV front-end and receiving terminal for digital television, wherein, digital TV front-end comprises: creation module, configuration module and sending module; Creation module is used for creating the test instruction collection descriptor of at least one corresponding test instruction collection; Configuration module is used for test instruction collection descriptor configuration to transport stream; Sending module is used for sending transport stream; Receiving terminal for digital television comprises: receiver module, Executive Module, the first judge module and executive logging generation module; Receiver module is used for receiving and storage test instruction collection; Executive Module is used for carrying out test instruction according to the instruction set type; The first judge module is used for judging whether test instruction is all carried out; The executive logging generation module is used for generating storage executive logging file and storing the executive logging file when the first judge module judges that test instruction is all carried out; Wherein, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.
Wherein, receiver module comprises: acquiring unit is used for obtaining transport stream by the frequency locking demodulation; Resolution unit is used for analyzing atransmission stream and obtains the test instruction collection; Whether the second judging unit judges whether store sets of instructions version number, if store, judge number identical with the instruction set version of having stored; Memory cell is when the second judgment unit judges store sets of instructions version number or when number not identical with the instruction set version of having stored not, storage test instruction collection.
Wherein, resolution unit comprises: the first resolution unit, analyzing atransmission stream are obtained test instruction collection descriptor; The second resolution unit is resolved test instruction collection descriptor acquiring test instruction collection.
The invention has the beneficial effects as follows: compared with prior art, the automatic test approach of receiving terminal for digital television of the present invention and Auto-Test System are configured in the transport stream test instruction collection to realize that receiving terminal for digital television is sent test instruction, the standardization test that it can be realized under the condition that does not increase hardware receiving terminal for digital television has greatly reduced the cost of testing.
Embodiment
The present invention is described in detail below in conjunction with drawings and embodiments.
The system architecture that automatic test approach disclosed by the invention adopts comprises digital TV front-end and receiving terminal for digital television, digital TV front-end is configured in the test instruction collection in the transport stream and sends to receiving terminal for digital television, receiving terminal for digital television receives this test instruction collection and carries out this test instruction collection, to realize the test to self.
In the present invention, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.Wherein, instruction set version number is the identification number of instruction set version, in order to distinguish a plurality of mutually different instruction set of transmitting in the transport stream.The instruction set type comprises that the single instrction list is carried out, the single instrction circulation is carried out, the multiple instruction list is carried out and the multiple instruction circulation is carried out, and is used for according to actual testing requirement different type configuration being carried out in test instruction.Test instruction is a mapping of remote command, specifically, and the corresponding remote control code of remote command, and test instruction is shone upon mutually with this remote control code.
In the present invention, the test instruction collection sends to receiving terminal for digital television with the form of test instruction collection descriptor by transport stream.Shown in the structure of test instruction collection descriptor is specific as follows:
Wherein:
Descriptor_tag represents test instruction collection descriptor tag, in order to distinguish in the transport stream other descriptor;
Descriptor_length represents test instruction collection descriptor length, also is the shared total amount of byte of descriptor;
Collection version number of command_version presentation directives;
Command_type presentation directives collection type, when command_type==0x01, the instruction set type is that the single instrction list is carried out; When command_type==0x02, the instruction set type is that the single instrction circulation is carried out; When command_type==0x03, the instruction set type is that the single instrction circulation is carried out; During command_type==0x04, instruction type is that the multiple instruction circulation is carried out;
Remote_control_command represents test instruction, for example, and shutdown command, start-up command, standby command etc.
Command_number represents the number of test instruction integrated test instruction;
Interval_time represents to carry out the blanking time of a plurality of test instructions, and interval_time can artificially set according to actual conditions;
Loop_number represents the number of times of test instruction circulation, and loop_number can artificially set according to actual conditions.
Fig. 1 is the flow chart of automatic test approach of the receiving terminal for digital television of first embodiment of the invention.As shown in Figure 1, the automatic test approach of present embodiment is described as an example of digital TV front-end example, specifically comprises the steps:
Step S11: create the test instruction collection descriptor of at least one corresponding test instruction collection, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and execution in step S12.
Digital TV front-end creates the test instruction collection that meets above-mentioned test instruction collection descriptor format.Wherein, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.Specifically, the test instruction collection can for one also can be for a plurality of, can number be distinguished according to instruction set version.The test instruction that test instruction is concentrated can also can comprise a plurality of instructions for single instruction, and test instruction can be set to single and carries out and also can be set to the execution that repeatedly circulates.
Step S12: with test instruction collection descriptor configuration to transport stream, and execution in step S13.
Digital TV front-end with test instruction collection descriptor configuration to transport stream.Specifically, test instruction collection descriptor can dispose to the ground floor circulation programme information of the Program Map Table of transport stream describe, the second layer of Program Map Table circulate that basic stream information is described, the ground floor recirculating network information of network information table is described, the second layer circle transmission stream information of network information table is described, the ground floor circulation business information of SDT Service Description Table is described, the ground floor circulation bouquet information of BAT bouquet association table is described and the second layer circle transmission stream description of BAT bouquet association table at least one describe.
Step S13: send the transport stream that disposes the instruction set descriptor.
Digital TV front-end send dispose test instruction collection descriptor transport stream to receiving terminal for digital television, thereby receiving terminal for digital television is tested.Specifically, the digital TV front-end circulation sends the transport stream that disposes test instruction collection descriptor, can receive accurately and timely this test instruction collection to guarantee this receiving terminal for digital television.Wherein, the send mode of digital TV front-end transmission transport stream can send for satellite (DVB-S), wired transmission (DVB-C) or ground transmission (DVB-T) etc.
Fig. 2 is the flow chart of automatic test approach of the receiving terminal for digital television of second embodiment of the invention, and as shown in Figure 2, the automatic test approach of present embodiment is described as an example of receiving terminal for digital television example, specifically comprises the steps:
Step S21: receive also storage test instruction collection, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and execution in step S22.
The test instruction collection that receiving terminal for digital television receiving digital television front end sends, further, store this test instruction collection to the flash memory of receiving terminal for digital television or in the external storage, for example, this test instruction collection is stored in the external storage such as portable hard drive, USB flash disk (USB Flash Disk).The test instruction collection repeats no more in the existing description of a upper embodiment herein.
Please in the lump with reference to figure 3, Fig. 3 is the flow chart that receives and store the test instruction collection among Fig. 2.As shown in Figure 3, receiving and store the test instruction collection specifically comprises the steps:
Step S211: obtain transport stream by the frequency locking demodulation, and execution in step S212.
Digital TV front-end use certain frequency modulating ligand to be equipped with the transport stream of test instruction collection descriptor and send this modulation after signal, receiving terminal for digital television locks this frequency, and carry out to the received signal demodulation process, the transport stream that disposes test instruction collection descriptor to obtain this.
Step S212: analyzing atransmission stream is obtained the test instruction collection, and the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and execution in step S213.
Receiving terminal for digital television is analyzing atransmission stream at first, obtains test instruction collection descriptor, then resolves test instruction collection descriptor, obtains the test instruction collection.Specifically, with test instruction integrate descriptor configuration in the ground floor circulation programme information of the Program Map Table of transport stream is described as example, the receiving terminal for digital television analyzing atransmission stream, obtain Program Map Table, further resolve Program Map Table, whether the programme information of inspection Program Map Table exists the descriptor relevant with the test instruction collection in describing, i.e. test instruction collection descriptor.When having test instruction collection descriptor in the programme information of Program Map Table is described, receiving terminal for digital television is resolved test instruction collection descriptor acquiring instruction set version number, instruction set type and test instruction.
Step S213: judge whether store sets of instructions version number.If not, execution in step S216, if, execution in step S214.
In the present embodiment, instruction set version number can be stored to a fixed position, for example, a certain fixed address of the flash memory of receiving terminal for digital television, receiving terminal for digital television judges whether store sets of instructions version number by the value that reads this fixed address.
Step S214: judge instruction set version in the test instruction is number with whether store sets of instructions version number is identical.If not identical, execution in step S216 then, if identical, execution in step S215 then: abandon the test instruction collection.
In the present embodiment, when step S213 judges in the receiving terminal for digital television store sets of instructions version number, further whether the instruction set version that acquires of the judgement instruction set version of having stored number and step S212 is number identical, if identical, the test instruction collection of this instruction set version correspondence of representative digit television receive terminal executed, do not need again to carry out, if different, dispose a plurality of different test instruction collection in the transport stream that the representative digit television headend sends, receiving terminal for digital television also needs to carry out other the test instruction collection that is different from test instruction collection corresponding to store sets of instructions version number.
Step S216: storage test instruction collection, and execution in step S22.
The instruction set version that receiving terminal for digital television is concentrated test instruction number, instruction set type and test instruction are stored in the flash memory of receiving terminal for digital television or in the external storage.
Step S22: carry out test instruction according to the instruction set type, and execution in step S23.
Receiving terminal for digital television is carried out test instruction according to the instruction set type, and for example, when the instruction set type is that the single instrction list is carried out, when test instruction be " start ", receiving terminal for digital television execution once " start " operated; When the instruction set type is that single instrction circulation is carried out, when test instruction be " switching channels ", the receiving terminal for digital television certain interval of time was carried out once " switching channels " and is operated, until reach predetermined cycle-index; Carry out when the instruction set type is that multiple instruction is single, when test instruction was " start ", " shutdown ", receiving terminal for digital television was carried out first once " start " operation, and certain interval of time is carried out once " shutdown " operation again; When the instruction set type is that the multiple instruction circulation is carried out, when test instruction is " switching channels ", " video conversion ", then the receiving terminal for digital television certain interval of time is carried out once " switching channels " operation, until reach predetermined cycle-index, then certain interval of time is carried out once " video conversion " operation, until reach predetermined cycle-index.
Step S23: judge whether test instruction is all carried out.If, execution in step S24 then, if not, execution in step S22 then.
In the present embodiment, can judge whether test instruction is all carried out by judging the command_number in the test instruction collection descriptor, also can be by reading in the flash memory that is stored to receiving terminal for digital television or whether the test instruction in the external storage is a fixed value, for example, setting this fixed value is 0XFF, judge whether test instruction is all carried out, when test instruction is fixed value 0XFF, represent that then test instruction all carries out, when test instruction is other values that differ from fixed value, then represent also to store pending test instruction.
When judging that the test instruction that test instruction is concentrated all carries out, then continue to carry out until till all test instructions that test instruction is concentrated all are finished.
Step S24: generate the executive logging file and store the executive logging file.
In the present embodiment, all carries out when step S23 judges test instruction, then generate the executive logging file, and it is regional or be stored in the external storage executive logging file to be stored to certain of flash memory of receiving terminal for digital television.Wherein, the Organization of Data form of executive logging file can define according to actual conditions.
Further, when the executive logging file shows receiving terminal for digital television in a certain test existing problems, clearance by hand is stored to the instruction set version number of receiving terminal for digital television, so that can again carry out after the receiving terminal for digital television reparation test instruction collection that should instruction set version number.
Fig. 4 is the structural representation of Auto-Test System of the receiving terminal for digital television of first embodiment of the invention.As shown in Figure 4, Auto-Test System comprises digital TV front-end 100 and receiving terminal for digital television 200, and wherein, digital TV front-end 100 comprises creation module 11, configuration module 12 and sending module 13; Receiving terminal for digital television 200 comprises receiver module 21, Executive Module 22, the first judge module 23 and executive logging generation module 24.
Creation module 11 is used for creating the test instruction collection descriptor of at least one corresponding test instruction collection.Wherein, the test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.
Configuration module 12 links to each other with creation module 11, is used for test instruction collection descriptor configuration to transport stream.
Sending module 13 links to each other with configuration module 12, is used for sending the transport stream that disposes test instruction collection descriptor.
Receiver module 21 is connected with sending module 13, is used for receiving and storage test instruction collection.
Executive Module 22 links to each other with receiver module 21, is used for carrying out test instruction according to the instruction set type.Specifically, the instruction set type is that the single instrction list is carried out, the single instrction circulation is carried out, the multiple instruction list is carried out or the multiple instruction circulation is carried out
The first judge module 23 links to each other with Executive Module 22, is used for judging whether test instruction is all carried out.
Executive logging generation module 24 links to each other with the first judge module 23, is used for generating the executive logging file and storing the executive logging file when the first judge module 23 judges that test instruction is all carried out.
Please in the lump with reference to figure 5, Fig. 5 is the structural representation of receiver module among Fig. 4.As shown in Figure 5, receiver module 21 comprises acquiring unit 211, resolution unit 212, the second judging unit 213 and memory cell 214.
Acquiring unit 211 is used for obtaining transport stream by the frequency locking demodulation.
Resolution unit 212 links to each other with acquiring unit 211, is used for analyzing atransmission stream and obtains the test instruction collection.Specifically, resolution unit 212 comprises the first resolution unit 2121 and the second resolution unit 2122.The first resolution unit 2121 links to each other with acquiring unit 211, is used for analyzing atransmission stream and obtains test instruction collection descriptor; The second resolution unit 2122 links to each other with the first resolution unit 2121, is used for resolving test instruction collection descriptor acquiring test instruction collection.
The second judging unit 213 links to each other with resolution unit 212.Specifically, the second judging unit 213 links to each other with the second resolution unit 2122, is used for judging whether store sets of instructions version number, if store, judges then instruction set version in the test instruction is number with whether store sets of instructions version number is identical.
Memory cell 214 links to each other with the second judging unit 213, is used for judging not store sets of instructions version number or when store sets of instructions version number is not identical, storing the test instruction collection when the second judging unit 213.
The invention has the beneficial effects as follows: compared with prior art, the automatic test approach of receiving terminal for digital television of the present invention and Auto-Test System are configured in the transport stream test instruction collection to realize that receiving terminal for digital television is sent test instruction, the standardization test that it can be realized under the condition that does not increase hardware receiving terminal for digital television has greatly reduced the cost of testing.
The above only is embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.