Summary of the invention
The technical problem that the present invention mainly solves is to provide 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 providing a kind of receiving terminal for digital television, this automatic test approach comprises: receive and On-board test instruction set, and test instruction collection comprises instruction set version number, instruction set type and at least one test instruction; Test instruction is performed according to instruction set type; Judge whether test instruction all performs; If so, generate executive logging file and store executive logging file; Wherein, the step receiving also On-board test instruction set comprises: obtain transport stream by frequency locking demodulation; Analyzing atransmission stream obtains test instruction collection, and 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 do not store, On-board test instruction set; If store, judge that instruction set version in test instruction is number with whether store sets of instructions version number is identical; If identical, the test instruction collection that then representative digit television receive terminal executed instructions collection version number is corresponding, does not need again to perform, if not identical, multiple different test instruction collection is configured with, On-board test instruction set in the transport stream that then representative digit television receive terminal sends; Wherein, when executive logging file display receiving terminal for digital television is in a certain test existing problems, manual removing is stored to the instruction set version number of receiving terminal for digital television, again can perform the test instruction collection of corresponding instruction set version number after making receiving terminal for digital television reparation.
Wherein, the step of analyzing atransmission stream acquisition test instruction collection comprises: analyzing atransmission stream obtains test instruction collection descriptor; Resolve test instruction collection descriptor acquiring test instruction collection.
Wherein, test instruction collects that descriptor configuration describes in the ground floor circulation programme information of the Program Map Table of transport stream, the second layer of Program Map Table circulates basic stream information describes, the ground floor recirculating network information of network information table describes, the second layer circle transmission stream information of network information table describes, the ground floor circulation business information of SDT Service Description Table describes, the ground floor circulation bouquet information of BAT bouquet association table describes and during at least one in the second layer circle transmission stream description of BAT bouquet association table describe.
Wherein, instruction set type comprises the execution of single instrction list, single instrction circulation performs, multiple instruction list performs and multiple instruction circulation execution.
For solving the problems of the technologies described above, another technical solution used in the present invention is: the Auto-Test System providing a kind of receiving terminal for digital television, 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 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 in transport stream; Sending module is 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 On-board test instruction set; Executive Module is used for performing test instruction according to instruction set type; First judge module is for judging whether test instruction all performs; Executive logging generation module is used for when the first judge module judges that test instruction all performs, and generates and stores executive logging file and store executive logging file; Wherein, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction; Wherein, receiver module comprises: acquiring unit, for obtaining transport stream by frequency locking demodulation; Resolution unit, obtains test instruction collection for transport stream; Whether the second judging unit, judges whether store sets of instructions version number, if store, judge number identical with the instruction set version that stores; If identical, then the test instruction collection that representative digit television receive terminal executed instructions collection version number is corresponding, does not need again to perform, if not identical, is then configured with multiple different test instruction collection in the transport stream that representative digit television receive terminal sends; Memory cell, when the second judging unit judges non-store sets of instructions version number or is number not identical with the instruction set version that stores, On-board test instruction set; Wherein, when executive logging file display receiving terminal for digital television is in a certain test existing problems, manual removing is stored to the instruction set version number of receiving terminal for digital television, again can perform the test instruction collection of corresponding instruction set version number after making receiving terminal for digital television reparation.
Wherein, resolution unit comprises: the first resolution unit, and analyzing atransmission stream obtains test instruction collection descriptor; Second resolution unit, resolves test instruction collection descriptor acquiring test instruction collection.
The invention has the beneficial effects as follows: compared with prior art, the configuration of test instruction collection is sent test instruction with realization to receiving terminal for digital television by the automatic test approach of receiving terminal for digital television of the present invention and Auto-Test System in the transport stream, it can realize testing the standardization of receiving terminal for digital television under the condition not increasing hardware, greatly reduces the cost of test.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
The system architecture that automatic test approach disclosed by the invention adopts comprises digital TV front-end and receiving terminal for digital television, test instruction collection configures in the transport stream and sends to receiving terminal for digital television by digital TV front-end, receiving terminal for digital television receives this test instruction collection and performs this test instruction collection, to realize the test to self.
In the present invention, 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 the multiple mutually different instruction set transmitted in transport stream.Instruction set type comprises the execution of single instrction list, single instrction circulation performs, multiple instruction list performs and multiple instruction circulation execution, for carrying out different type configuration according to actual testing requirement to test instruction.Test instruction is a mapping of remote command, specifically, and a corresponding remote control code of remote command, and test instruction maps mutually with this remote control code.
In the present invention, 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 transport stream other descriptor;
Descriptor_length represents test instruction collection descriptor length, the total amount of byte also namely shared by descriptor;
Collection version number of command_version presentation directives;
Command_type presentation directives collection type, as command_type==0x01, instruction set type is that single instrction list performs; As command_type==0x02, instruction set type is that single instrction circulation performs; As command_type==0x03, instruction set type is that single instrction circulation performs; During command_type==0x04, instruction type is that multiple instruction circulation performs;
Remote_control_command represents test instruction, such as, and shutdown command, start-up command, standby command etc.
Command_number represents the number of test instruction integrated test instruction;
Interval_time represents the interval time performing multiple test instruction, and interval_time artificially can set according to actual conditions;
Loop_number represents the number of times that test instruction circulates, and loop_number artificially can set according to actual conditions.
Fig. 1 is the flow chart of the 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 for digital TV front-end, specifically comprises the steps:
Step S11: the test instruction collection descriptor creating at least one corresponding test instruction collection, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and performs step S12.
Digital TV front-end creates the test instruction collection meeting above-mentioned test instruction collection descriptor format.Wherein, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.Specifically, test instruction collection can be one also can be multiple, can be distinguished according to instruction set version number.Test instruction concentrate test instruction also can comprise multiple instruction for single instruction, and test instruction can be set to single execution also can be set to the execution that repeatedly circulates.
Step S12: by test instruction collection descriptor configuration in transport stream, and perform step S13.
Digital TV front-end by test instruction collection descriptor configuration in transport stream.Specifically, the test instruction collection descriptor ground floor circulation programme information that can configure to the Program Map Table of transport stream describes, the second layer of Program Map Table circulates that basic stream information describes, the ground floor recirculating network information of network information table describes, the second layer circle transmission stream information of network information table describes, the ground floor circulation business information of SDT Service Description Table describes, the ground floor circulation bouquet information of BAT bouquet association table describes and during at least one in the second layer circle transmission stream description of BAT bouquet association table describe.
Step S13: send the transport stream being configured with instruction set descriptors.
Digital TV front-end transmission is configured with the transport stream of test instruction collection descriptor to receiving terminal for digital television, thus tests receiving terminal for digital television.Specifically, digital TV front-end circulation sends the transport stream being configured with test instruction collection descriptor, to ensure that this receiving terminal for digital television can receive this test instruction collection accurately and timely.Wherein, the send mode of digital TV front-end transmission transport stream can send (DVB-T) etc. for satellite send (DVB-S), wired transmission (DVB-C) or ground.
Fig. 2 is the flow chart of the 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 for receiving terminal for digital television, specifically comprises the steps:
Step S21: receive and On-board test instruction set, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and performs step S22.
The test instruction collection that receiving terminal for digital television receiving digital television front end sends, further, store in this test instruction collection to the flash memory of receiving terminal for digital television or in external storage, such as, this test instruction collection is stored in the external storage such as portable hard drive, USB flash disk (USB Flash Disk).Test instruction collection, in the existing description of a upper embodiment, repeats no more herein.
It is the flow chart receiving also On-board test instruction set in Fig. 2 please also refer to Fig. 3, Fig. 3.As shown in Figure 3, receive also On-board test instruction set specifically to comprise the steps:
Step S211: obtain transport stream by frequency locking demodulation, and perform step S212.
Digital TV front-end uses certain frequency modulating ligand to be equipped with the transport stream of test instruction collection descriptor and the signal after sending this modulation, receiving terminal for digital television locks this frequency, and carry out demodulation process to the received signal, to obtain the transport stream that this is configured with test instruction collection descriptor.
Step S212: analyzing atransmission stream obtains test instruction collection, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction, and performs step S213.
Receiving terminal for digital television is analyzing atransmission stream first, obtains test instruction collection descriptor, then resolves test instruction collection descriptor, obtains test instruction collection.Specifically, descriptor configuration is collected in the ground floor circulation programme information of the Program Map Table of transport stream describes for test instruction, receiving terminal for digital television analyzing atransmission stream, obtain Program Map Table, further parsing Program Map Table, check whether the programme information of Program Map Table exists the descriptor relevant to test instruction collection, i.e. test instruction collection descriptor in describing.When there is test instruction collection descriptor during the programme information of Program Map Table describes, receiving terminal for digital television resolves 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, perform step S216, if so, perform step S214.
In the present embodiment, instruction set version number can be stored to a fixed position, and such as, 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 reading this fixed address.
Step S214: judge that instruction set version in test instruction is number with whether store sets of instructions version number is identical.If not identical, then perform step S216, if identical, then perform step S215: abandon test instruction collection.
In the present embodiment, when step S213 judges receiving terminal for digital television Zhong Yi store sets of instructions version number, whether instruction set version that further judgement has stored number and instruction set version that step S212 acquires be number identical, if identical, this instruction set version of representative digit television receive terminal executed number corresponding test instruction collection, do not need again to perform, if different, multiple different test instruction collection is configured with in the transport stream that representative digit television headend sends, receiving terminal for digital television also needs to perform other the test instruction collection being different from test instruction collection corresponding to store sets of instructions version number.
Step S216: On-board test instruction set, and perform step S22.
In the flash memory that the instruction set version test instruction concentrated of receiving terminal for digital television number, instruction set type and test instruction are stored to receiving terminal for digital television or in external storage.
Step S22: perform test instruction according to instruction set type, and perform step S23.
Receiving terminal for digital television performs test instruction according to instruction set type, and such as, when instruction set type is that single instrction list performs, when test instruction is " start ", receiving terminal for digital television performs once " start " operation; When instruction set type is that single instrction circulation performs, when test instruction is " switching channels ", receiving terminal for digital television certain interval of time performs once " switching channels " operation, until reach predetermined cycle-index; When instruction set type is that multiple instruction list performs, when test instruction is " start ", " shutdown ", receiving terminal for digital television first performs once " start " operation, certain interval of time, then performs once " shutdown " operation; When instruction set type is that multiple instruction circulation performs, when test instruction is " switching channels ", " Video Quality Metric ", then receiving terminal for digital television certain interval of time performs once " switching channels " operation, until reach predetermined cycle-index, then certain interval of time performs once " Video Quality Metric " operation, until reach predetermined cycle-index.
Step S23: judge whether test instruction all performs.If so, then perform step S24, if not, then perform step S22.
In the present embodiment, can by judging that the command_number in test instruction collection descriptor judges whether test instruction all performs, also can by read be stored to receiving terminal for digital television flash memory in or test instruction in external storage whether be a fixed value, such as, setting this fixed value is 0XFF, judge whether test instruction all performs, when test instruction is fixed value 0XFF, then represent that test instruction all performs, when test instruction is other values differing from fixed value, then represent and also store pending test instruction.
When judging that the test instruction that test instruction is concentrated all does not perform, then continue to perform till all test instructions that test instruction is concentrated are all finished.
Step S24: generate executive logging file and store executive logging file.
In the present embodiment, when step S23 judges that test instruction all performs, then generate executive logging file, and executive logging file be stored to certain region of the flash memory of receiving terminal for digital television or be stored in external storage.Wherein, the Organization of Data form of executive logging file can define according to actual conditions.
Further, when executive logging file display receiving terminal for digital television is in a certain test existing problems, manual removing is stored to the instruction set version number of receiving terminal for digital television, can again perform after making receiving terminal for digital television reparation should the test instruction collection of instruction set version number.
Fig. 4 is the structural representation of the 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, first judge module 23 and executive logging generation module 24.
Creation module 11 is for creating the test instruction collection descriptor of at least one corresponding test instruction collection.Wherein, test instruction collection comprises instruction set version number, instruction set type and at least one test instruction.
Configuration module 12 is connected with creation module 11, for by test instruction collection descriptor configuration in transport stream.
Sending module 13 is connected with configuration module 12, for sending the transport stream being configured with test instruction collection descriptor.
Receiver module 21 is connected with sending module 13, for receiving and On-board test instruction set.
Executive Module 22 is connected with receiver module 21, for performing test instruction according to instruction set type.Specifically, instruction set type is that single instrction list performs, single instrction circulation performs, multiple instruction list performs or multiple instruction circulation performs
First judge module 23 is connected with Executive Module 22, for judging whether test instruction all performs.
Executive logging generation module 24 is connected with the first judge module 23, for when the first judge module 23 judges that test instruction all performs, generates executive logging file and stores executive logging file.
Please also refer to the structural representation that Fig. 5, Fig. 5 are receiver modules in Fig. 4.As shown in Figure 5, receiver module 21 comprises acquiring unit 211, resolution unit 212, second judging unit 213 and memory cell 214.
Acquiring unit 211, for obtaining transport stream by frequency locking demodulation.
Resolution unit 212 is connected with acquiring unit 211, obtains test instruction collection for analyzing atransmission stream.Specifically, resolution unit 212 comprises the first resolution unit 2121 and the second resolution unit 2122.First resolution unit 2121 is connected with acquiring unit 211, obtains test instruction collection descriptor for analyzing atransmission stream; Second resolution unit 2122 is connected with the first resolution unit 2121, for resolving test instruction collection descriptor acquiring test instruction collection.
Second judging unit 213 is connected with resolution unit 212.Specifically, the second judging unit 213 is connected with the second resolution unit 2122, for judging whether store sets of instructions version number, if store, then judges that instruction set version in test instruction is number with whether store sets of instructions version number is identical.
Memory cell 214 is connected with the second judging unit 213, for judging non-store sets of instructions version number when the second judging unit 213 or with when store sets of instructions version number is not identical, and On-board test instruction set.
The invention has the beneficial effects as follows: compared with prior art, the configuration of test instruction collection is sent test instruction with realization to receiving terminal for digital television by the automatic test approach of receiving terminal for digital television of the present invention and Auto-Test System in the transport stream, it can realize testing the standardization of receiving terminal for digital television under the condition not increasing hardware, greatly reduces the cost of test.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.