Movatterモバイル変換


[0]ホーム

URL:


CN106961600A - Set top box demultiplexer method for testing pressure and system - Google Patents

Set top box demultiplexer method for testing pressure and system
Download PDF

Info

Publication number
CN106961600A
CN106961600ACN201710210420.6ACN201710210420ACN106961600ACN 106961600 ACN106961600 ACN 106961600ACN 201710210420 ACN201710210420 ACN 201710210420ACN 106961600 ACN106961600 ACN 106961600A
Authority
CN
China
Prior art keywords
tables
data
pid
pressure
global
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710210420.6A
Other languages
Chinese (zh)
Other versions
CN106961600B (en
Inventor
王华泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jiuzhou Electric Appliance Co LtdfiledCriticalShenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201710210420.6ApriorityCriticalpatent/CN106961600B/en
Publication of CN106961600ApublicationCriticalpatent/CN106961600A/en
Priority to PCT/CN2018/074586prioritypatent/WO2018177017A1/en
Application grantedgrantedCritical
Publication of CN106961600BpublicationCriticalpatent/CN106961600B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present invention relates to a kind of set top box demultiplexer method for testing pressure and system, marked in global enable of main thread definition, the tables of data for needing to filter is set, the PID and each filter table PID of each tables of data need the number of times filtered, one group of global aray variable, which is defined, in sub-line journey records the number of times that each tables of data PID is filtered to, the number of times that each tables of data PID is filtered to meets setting range compared with the number of times for needing to filter, then the tables of data pressure test passes through, the number of times that main thread is filtered to according to each tables of data PID in setting cycle period detection sub-line journey, all tables of data pressure tests are detected in main thread by the way that overall situation enable mark then is set into 0 demux pressure test by 1 immediately to pass through, terminate test, test can thus be terminated after test passes through, without waiting for fixing duration, and testing result is accurate, it is with a high credibility, greatly meet test request.

Description

Set top box demultiplexer method for testing pressure and system
Technical field
The present invention relates to digital TV field, more particularly to a kind of set top box demultiplexer (demux) method for testing pressureAnd system.
Background technology
Set top box to demux (demultiplexer) in process of production, it is necessary to carry out pressure test.Demultiplexer pressure testAt present use filter tables of data mode for:
Main thread and sub-line journey are set, tables of data, the tables of data PID (process identification (PID)s for needing to filter are set in main threadSymbol) and the number of times of filtering is needed, and filtering mark (filter.Enable) is set to 1, it is then medium to be fixed in main threadDuration (enough for a long time, such as 5s, 30s), filtering mark (filter.Enable) is set to 0 by fixed duration after reaching, i.e., eventuallyThe only filtering of the tables of data.
A global variable mark (pass_flag) defined in sub-line journey, in main thread waiting process, if demultiplexingWhen device has been filled into corresponding data table PID, global variable mark will be set to 1 in sub-line journey, when global variable mark willPressure test when being set to 1 then to the tables of data passes through.
Above method mainly has two kinds of drawbacks:
One:Because signal transmission is unstable, or some it is abnormal when, it would be possible to cause demux filter tables of data whenIt is long than length during the fixation of defined in main thread.1 is so set to already in the global variable mark of sub-line journey, that is, has been connectReceive filtering tables of data, then also need to wait main thread fixation duration to terminate.
For example, it is assumed that a length of 30s when fixed, and actual demux filters out tables of data and has only used 15s, when this large amount ofBetween will be wasted in the time delay of main thread, finally reduce testing efficiency.
Second, when demux carries out pressure test, such as identical PID tables of data needs continuous reception multiple, such as threeIt is secondary, then as long as getting a tables of data PID in sub-line journey, the global variable mark in subprogram will be set to 1, i.e.,Just having be not filled into tables of data PID many times and final testing result still passes through, and so results in final demux pressure and surveysThe confidence level of examination drastically declines, and even fails.
Therefore it is existing time-consuming serious to demux pressure tests, and it is not high enough to test confidence level, is unsatisfactory for test request.
The content of the invention
In view of this, it is necessary to there is time-consuming serious and confidence level to demultiplexer (demux) pressure test for above-mentionedNot high the problem of, there is provided a kind of set top box demultiplexer method for testing pressure and system.
A kind of set top box demultiplexer method for testing pressure that the present invention is provided, comprises the following steps:
S10:Global enables marks defined in main thread, and sets the tables of data for needing filtering, each tables of dataPID and each filter table PID need the number of times that filters, the global mark that enables is set to 1 when starting test;
S20:One group of global aray variable mark defined in sub-line journey, global aray variable mark is used for recording every numberThe number of times being filtered to according to table PID, is set to the PID that sub-line journey if 1 starts filtering tables of data if the global mark that enables, is filled into oneIt is secondary, record once;
S30:The number of times that main thread is filtered to according to each tables of data PID in setting cycle period detection sub-line journey, ifThe number of times that each tables of data PID is filtered to meets setting range compared with the number of times for needing to filter, then the data meter pressure is surveyedPinged;
S40:If main thread detect all tables of data pressure tests if by the overall situation enable mark be set to 0 by 1 immediately,Terminate test and demux pressure tests pass through.
Further, the step S10 is specially:Setting needs the tables of data of filtering for pat table, SDT tables, NIT tables threeIndividual tables of data.
Further, setting cycle period, which is less than main thread fixation duration divided by all tables of data PID, needs the total of filteringNumber of times.
Further, the setting range is to be not less than to need the 95% of number of times.
A kind of set top box demultiplexer pressure testing system that the present invention is provided, including:
Main thread setup module, defined in main thread one it is global enable mark, and set need to filter tables of data,The PID and each filter table PID of each tables of data need the number of times filtered, and the global mark that enables is set to 1 when starting test;
Sub-line journey setup module, one group of global aray variable mark defined in sub-line journey, global aray variable mark is usedTo record the number of times that each tables of data PID is filtered to, it is set to sub-line journey if 1 if global enable mark and starts to filter tables of dataPID, is filled into and once then records once;
PID filtering times detection modules, main control line journey is according to each tables of data in setting cycle period detection sub-line journeyThe number of times that PID is filtered to, if the number of times that each tables of data PID is filtered to meets setting model compared with the number of times for needing to filterEnclose, then the tables of data pressure test passes through;
Terminate module is tested, detecting all tables of data pressure tests if main thread marks overall situation enable immediately if0 is set to by 1, terminates test and demux pressure tests passes through.
Further, setting needs the tables of data of filtering for pat table, SDT tables, three tables of data of NIT tables.
Further, the setting cycle period, which is less than main thread fixation duration divided by all tables of data PID, needs filteringTotal degree.
Further, the setting range is to be not less than to need the 95% of number of times.
Set top box demultiplexer method for testing pressure of the present invention and system, mark in global enable of main thread definition, setNeeding tables of data, the PID of each tables of data and each filter table PID of filtering needs the number of times filtered, in the definition of sub-line journeyOne group of global aray variable records the number of times that each tables of data PID is filtered to, time that each tables of data PID is filtered toNumber meets setting range compared with the number of times for needing to filter, then the tables of data pressure test passes through, and main thread is circulated according to settingThe number of times that each tables of data PID is filtered in cycle detection sub-line journey, all tables of data pressure tests are detected in main threadPassed through by the way that overall situation enable mark then is set into 0 demux pressure test by 1 immediately, terminate test, can thus led in testLater test is terminated, it is not necessary to wait duration to be fixed, and testing result is accurate, it is with a high credibility, greatly meet test request.
Brief description of the drawings
Fig. 1 is the flow chart of the set top box demultiplexer method for testing pressure in one embodiment;
Fig. 2 is the structure chart of the set top box demultiplexer pressure testing system in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and ExamplesThe present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, notFor limiting the present invention.
Fig. 1 is the flow chart of the set top box demultiplexer method for testing pressure in one embodiment, as shown in figure 1, the partyMethod comprises the following steps:
S10:Global enables marks defined in main thread, and sets the tables of data for needing filtering, each tables of dataPID and each filter table PID need the number of times that filters, the global mark that enables is set to 1 when starting test.
To enable main thread to be controlled pressure test, an overall situation makes defined in main thread in the embodimentEnergy mark is used for the beginning and end that control pressure is tested, and overall situation enable mark is set to 1 test and started, and the overall situation enables mark and putTerminate for 0 test.Then tables of data, the PID of each tables of data and each filter table PID that setting needs filtering neededThe number of times of filter, global enable mark is set to 1 and starts to test after setting.
Further, for convenience of test, the step is specially:Setting needs the tables of data of filtering for pat table (programming associationTable), SDT tables (service describing table), three tables of data of NIT tables (network information table).
S20:One group of global aray variable mark defined in sub-line journey, global aray variable mark is used for recording every numberThe number of times being filtered to according to table PID, is set to the PID that sub-line journey if 1 starts filtering tables of data if the global mark that enables, is filled into oneIt is secondary, record once.
Due to that will be filtered repeatedly for each tables of data, and the number of times being filled into meets and requires that tables of data test is just calculatedPass through, to avoid one group of global aray variable mark defined in sub-line journey in the insecure problem of test result, the step, entirelyInning group variable label is used for recording the number of times that each tables of data PID is filtered to, and each tables of data thus is filled into PIDNumber of times record and accurately judged.
S30:The number of times that main thread is filtered to according to each tables of data PID in setting cycle period detection sub-line journey, ifThe number of times that each tables of data PID is filtered to meets setting range compared with the number of times for needing to filter, then the data meter pressure is surveyedPinged.
After sub-line journey starts filtering tables of data PID, to save the testing time, main thread is detected according to setting cycle periodThe number of times that each tables of data PID is filtered in sub-line journey, grasps PID filtering situation in real time.In sub-line journey filter process,If the number of times that each tables of data PID is filtered to meets setting range compared with the number of times for needing to filter, the data meter pressureTest passes through.
Further, setting cycle period, which is less than main thread fixation duration divided by all tables of data PID, needs the total of filteringNumber of times.
Setting range is to be not less than to need the 95% of number of times.
S40:If main thread detect all tables of data pressure tests if by the overall situation enable mark be set to 0 by 1 immediately,Terminate test and demux pressure tests pass through.
In main thread detection process, if detecting all tables of data pressure tests all meets requirement, to demux pressureTest passes through, and the overall situation is enabled mark and is set to 0 by 1 immediately by main thread, terminates test.Thus in all tables of data pressure testsAll to meet and just complete test after requiring, test is completed again after terminating without waiting for fixed duration.
The set top box demultiplexer method for testing pressure, is marked, setting needs what is filtered in global enable of main thread definitionTables of data, the PID of each tables of data and each filter table PID need the number of times filtered, and one group of global number is defined in sub-line journeyGroup variable label records the number of times that each tables of data PID is filtered to, and the number of times that each tables of data PID is filtered to was with needingThe number of times of filter is compared to setting range is met, then the tables of data pressure test passes through, and main thread is according to setting cycle period detectionThe number of times that each tables of data PID is filtered in thread, detects all tables of data pressure tests in main thread and passes through then by entirelyOffice's enable mark is set to 0 demux pressure test by 1 immediately and passed through, and terminates test, can thus terminate to survey after test passes throughExamination, it is not necessary to wait duration to be fixed, and testing result is accurate, it is with a high credibility, greatly meet test request.
Meanwhile, the present invention also provides a kind of set top box demultiplexer pressure testing system, as shown in Fig. 2 the system includes:
Main thread setup module 100, global enables marks defined in main thread, and sets the data for needing to filterTable, the PID of each tables of data and each filter table PID need the number of times filtered, and the global mark that enables is set to when starting test1。
To enable main thread to be controlled pressure test, main thread setup module 100 is in main line in the embodimentA global mark that enables is used for the beginning and end that control pressure is tested defined in journey, and the overall situation enables mark and is set to 1 testStart, overall situation enable mark, which is set to 0 test, to be terminated.Then main thread setup module 100 sets the tables of data, every for needing to filterThe number of times that the PID of individual tables of data and each filter table PID needs are filtered, global enable mark is set to 1 and starts to survey after settingExamination.
Further, for convenience of testing, the tables of data that main thread setup module 100 sets needs to filter is pat table (programContingency table), SDT tables (service describing table), three tables of data of NIT tables (network information table).
Sub-line journey setup module 200, one group of global aray variable mark defined in sub-line journey, global aray variable markFor recording the number of times that each tables of data PID is filtered to, enable sub-line journey if mark is set to 1 if the overall situation and start to filter tables of dataPID, be filled into and once then record once.
Due to that will be filtered repeatedly for each tables of data, and the number of times being filled into meets and requires that tables of data test is just calculatedPass through, to avoid the insecure problem of test result, the one group of global array defined in sub-line journey of sub-line journey setup module 200 becomesAmount mark, global aray variable mark is used for recording the number of times that each tables of data PID is filtered to, thus by each tables of dataThe number of times for being filled into PID is recorded and accurately judged.
PID filtering times detection module 300, main control line journey is according to each data in setting cycle period detection sub-line journeyThe number of times that table PID is filtered to, if the number of times that each tables of data PID is filtered to meets setting compared with the number of times for needing to filterScope, then tables of data pressure test passes through.
After sub-line journey starts filtering tables of data PID, to save the testing time, PID filtering times detection module 300 is controlledThe number of times that main thread is filtered to according to each tables of data PID in setting cycle period detection sub-line journey, grasps PID mistake in real timeFilter situation.In sub-line journey filter process, if the number of times that each tables of data PID is filtered to is full compared with the number of times for needing to filterSufficient setting range, then tables of data pressure test passes through.
Further, setting cycle period, which is less than main thread fixation duration divided by all tables of data PID, needs the total of filteringNumber of times.
Setting range is to be not less than to need the 95% of number of times.
Terminate module 400 is tested, detecting all tables of data pressure tests if main thread marks overall situation enable if0 is set to by 1 immediately, terminates test and demux pressure tests passes through.
In main thread detection process, if detecting all tables of data pressure tests all meets requirement, to demux pressureTest passes through, and the overall situation is enabled mark and is set to 0 by 1 immediately by the test main control line journey of terminate module 400, terminates test.ThusTest is just completed after all tables of data pressure tests all meet requirement, test is completed again after terminating without waiting for fixed duration.
The set top box demultiplexer pressure testing system, main thread setup module 100 is marked in global enable of main thread definitionNote, sets the number of times for needing the tables of data filtered, the PID of each tables of data and each filter table PID needs to filter, sub-line journeySetup module 200 defines one group of global aray variable in sub-line journey and records the number of times that each tables of data PID is filtered to, oftenThe number of times that individual tables of data PID is filtered to meets setting range compared with the number of times for needing to filter, then the tables of data pressure testPass through, the main control line journey of PID filtering times detection module 300 is according to each tables of data in setting cycle period detection sub-line journeyThe number of times that PID is filtered to, test terminate module 400 detects all tables of data pressure tests in main thread and passed through then by the overall situationEnable mark is set to 0 demux pressure test by 1 immediately and passed through, and terminates test, can thus terminate to survey after test passes throughExamination, it is not necessary to wait duration to be fixed, and testing result is accurate, it is with a high credibility, greatly meet test request.
These are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit andAny modification, equivalent and improvement for being made within principle etc., should be included within the scope of the present invention.

Claims (8)

CN201710210420.6A2017-03-312017-03-31Set-top box demultiplexer method for testing pressure and systemExpired - Fee RelatedCN106961600B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201710210420.6ACN106961600B (en)2017-03-312017-03-31Set-top box demultiplexer method for testing pressure and system
PCT/CN2018/074586WO2018177017A1 (en)2017-03-312018-01-30Set top box demultiplexer pressure testing method, system, and testing device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710210420.6ACN106961600B (en)2017-03-312017-03-31Set-top box demultiplexer method for testing pressure and system

Publications (2)

Publication NumberPublication Date
CN106961600Atrue CN106961600A (en)2017-07-18
CN106961600B CN106961600B (en)2018-10-19

Family

ID=59483254

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710210420.6AExpired - Fee RelatedCN106961600B (en)2017-03-312017-03-31Set-top box demultiplexer method for testing pressure and system

Country Status (2)

CountryLink
CN (1)CN106961600B (en)
WO (1)WO2018177017A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018177017A1 (en)*2017-03-312018-10-04深圳市九洲电器有限公司Set top box demultiplexer pressure testing method, system, and testing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1567205A (en)*2003-06-252005-01-19英业达股份有限公司 How to stop multiple execution threads at the same time
EP2506147A2 (en)*2011-03-312012-10-03Solarflare Communications IncEpoll optimisations
CN102768637A (en)*2011-05-052012-11-07阿里巴巴集团控股有限公司Method and device for controlling test execution
CN103544098A (en)*2012-07-102014-01-29百度在线网络技术(北京)有限公司Method and device for testing pressure
CN106294177A (en)*2016-08-222017-01-04腾讯科技(深圳)有限公司The method for testing pressure of a kind of interface and test equipment
CN106412568A (en)*2016-09-262017-02-15四川长虹电器股份有限公司Automatic pressure test method of intelligent television

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2010016553A (en)*2008-07-022010-01-21Alps Electric Co LtdTuner testing apparatus and tuner testing method
CN104639938A (en)*2015-03-112015-05-20浪潮软件集团有限公司 Method and device for testing set-top box equipment
CN105357578B (en)*2015-12-242018-07-24深圳市九洲电器有限公司A kind of set-top box test method and device
CN106961600B (en)*2017-03-312018-10-19深圳市九洲电器有限公司Set-top box demultiplexer method for testing pressure and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1567205A (en)*2003-06-252005-01-19英业达股份有限公司 How to stop multiple execution threads at the same time
EP2506147A2 (en)*2011-03-312012-10-03Solarflare Communications IncEpoll optimisations
CN102768637A (en)*2011-05-052012-11-07阿里巴巴集团控股有限公司Method and device for controlling test execution
CN103544098A (en)*2012-07-102014-01-29百度在线网络技术(北京)有限公司Method and device for testing pressure
CN106294177A (en)*2016-08-222017-01-04腾讯科技(深圳)有限公司The method for testing pressure of a kind of interface and test equipment
CN106412568A (en)*2016-09-262017-02-15四川长虹电器股份有限公司Automatic pressure test method of intelligent television

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018177017A1 (en)*2017-03-312018-10-04深圳市九洲电器有限公司Set top box demultiplexer pressure testing method, system, and testing device

Also Published As

Publication numberPublication date
CN106961600B (en)2018-10-19
WO2018177017A1 (en)2018-10-04

Similar Documents

PublicationPublication DateTitle
CN101646098B (en)Automatic test method and automatic test system
CN101247293B (en)Automatic test approach and system
CN110245083A (en)A kind of automatic interface testing method based on python
CN105137218B (en)A kind of system and method for recognizing test product
CN103823145A (en)Automation test platform for hardware
CN106407108B (en)A kind of test method and system of train network logout software
CN105808417A (en)Automated testing method and proxy server
CN104038821A (en)Method for uniformly gathering fault information of each functional module of Android television
CN112446442A (en)Sample analysis system, information matching method and computer storage medium
CN109508276A (en)The method for improving equipment factory detection efficiency in Android platform
CN106961600B (en)Set-top box demultiplexer method for testing pressure and system
CN109116263B (en)Multi-power supply product load test equipment and test method
CN104038388B (en)Based on distributed Internet of Things Auto-Test System and method of testing
CN115357494A (en)Automatic generation method and device of function coverage rate code
US20130231888A1 (en)Test apparatus and test module
CN104346243A (en)System for automatic adjustment of main board testing process and implement method thereof
CN105262644A (en)General test system based on protocol configuration and method
US20130231885A1 (en)Test apparatus and test module
CN113691804A (en)Detection function verification method, device, equipment and medium
CN113312426A (en)Data synchronization method, device, equipment and medium
CN116755953B (en) Test result grouping method, device, electronic equipment and readable storage medium
CN107888910A (en)A kind of TV signal transmitter signal board function testing station and method of testing
CN110261758B (en)Device under test verification device and related product
CN105306928A (en) Method and device for testing set-top box browser
KR20230068704A (en)Learning data integrated management platform system based on artificial intelligence

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20181019

Termination date:20190331


[8]ページ先頭

©2009-2025 Movatter.jp