CN102014302B - Method for high-performance module scheduling of set-top box - Google Patents

Method for high-performance module scheduling of set-top box Download PDF

Info

Publication number
CN102014302B
CN102014302B CN201010567837A CN201010567837A CN102014302B CN 102014302 B CN102014302 B CN 102014302B CN 201010567837 A CN201010567837 A CN 201010567837A CN 201010567837 A CN201010567837 A CN 201010567837A CN 102014302 B CN102014302 B CN 102014302B
Authority
CN
China
Prior art keywords
module
agreement
quasi
data
processor engine
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.)
Expired - Fee Related
Application number
CN201010567837A
Other languages
Chinese (zh)
Other versions
CN102014302A (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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication Science Technology 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN201010567837A priority Critical patent/CN102014302B/en
Publication of CN102014302A publication Critical patent/CN102014302A/en
Application granted granted Critical
Publication of CN102014302B publication Critical patent/CN102014302B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for the high-performance module scheduling of a set-top box. In the method, a class protocol processing mechanism is designed, interaction of using the data and functions of each module is finished by a class protocol processor engine of the set-top box, the data and functions of each module and the class protocol processor engine are processed in a protocol way, all modules are directly complementarily called and are uniformly called by the engine, and simultaneously, the engine has good module access interfaces so as to conveniently expand various functions. The method solves problems on the conventional development of the functional modules on the set-top box of a digital television, realizes the calling of the functions by using a great number of functional application programming interfaces (api), greatly increases the module writing speed, and improves the performance of the set-top box as the modules are directly complementarily called.

Description

A kind of method of STB high-performance module schedules
[technical field]
The present invention relates to a kind of field of embedded technology, especially a kind of method of STB high-performance module schedules particularly belongs to the field of set-top technology.
[background technology]
Current set-top box functionality develops towards the direction of diversification, USB wherein, network; Video request program; Premium Features are increasing appears in the STB in video record playback etc., and this makes the software of STB become and becomes increasingly complex, particularly after the integration of three networks; The function of STB has extended to internet and telecommunications network from field of broadcast televisions originally quickly; Videophone, home gateway, new functions such as family's security protection become increasingly complex; This makes the original software architecture that comes based on microcontroller embedded system development can't satisfy the current and following software requirement far away, and what this was just very urgent requires us to seek the demand that a kind of new software architecture satisfies growing set-top box software.
The exploitation of functional module on traditional DTV STB; A large amount of use api function interfaces are realized calling of function, cause each module to need other modules that a large amount of api function interfaces is provided, and must understand the effect of other modules api function interface simultaneously in advance; And method of calling; After module is more and more, cause the developer need send out function interface and method of calling that the expense great amount of time goes to understand other modules as possible, greatly reduce the speed that module is write; Module is directly called each other and is caused module can't confirm the invoked situation of synchronization simultaneously, possibly cause the deadlock or the other problems of inside modules program.
[summary of the invention]
The technical matters that the present invention will solve is to provide a kind of method of STB high-performance module schedules, has overcome the deficiency of conventional art, has improved the speed that module is write.
The present invention is achieved in that a kind of method of STB high-performance module schedules, may further comprise the steps:
A kind of method of STB high-performance module schedules is characterized in that: may further comprise the steps:
Step 10, in STB the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, said master agreement processor is used to accomplish the scheduling of STB being attend institute's protocols having;
Step 20, in STB the agreement of definition STB each functional module, the agreement of said each functional module is a character string or a data sequence, the form of said agreement is: protocol type, protocol parameter, the attached option of agreement; During set-top-box opening, in the quasi-protocol processor engine, first module has been registered its agreement that can handle to all functional modules with its protocol registration that can handle of correspondence, and second module and three module have been registered this agreement that result is received;
Step 30, a request module are when the agreement of STB quasi-protocol processor engine request first module registration; STB quasi-protocol processor engine monitors first module and has registered its said agreement that can handle; Then the quasi-protocol processor engine sends to first resume module with this agreement; After first module receives this agreement of quasi-protocol processor engine request, obtain the required data of described request module through the top-set hardware driving, and data are transferred to first resume module; Result after first resume module feeds back to the quasi-protocol processor engine, and the quasi-protocol processor engine is given the described request resume module data of first resume module;
Step 40, after the intact required data of described request resume module, said quasi-protocol processor engine judges whether the data result after the described request resume module is sent to second module and three module is handled according to the attached option of the agreement of first module registration.
The present invention has following advantage: the present invention has designed the mechanism that quasi-protocol is handled; Use the data and the mutual of function of each module all to accomplish through the quasi-protocol processor engine of STB; And the mode of the data of each module and quasi-protocol processor engine and function use agreement is handled, and the direct complementation of each module is called, by the engine uniform dispatching; Engine has good module access interface simultaneously, can expand various functions easily.The present invention has overcome the exploitation of functional module on traditional DTV STB, and a large amount of use api function interfaces are realized calling of function, have improved the speed that module is write greatly, and the performance that has improved STB is called in the direct complementation of each module simultaneously.
[description of drawings]
Fig. 1 is the inventive method schematic flow sheet.
[embodiment]
Combine embodiment that the present invention is further described with reference to the accompanying drawings:
A kind of method of STB high-performance module schedules may further comprise the steps:
Step 10, in STB the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, said master agreement processor is used to accomplish the scheduling of STB being attend institute's protocols having;
Step 20, in STB the agreement of definition STB each functional module, the agreement of said each functional module is a character string or a data sequence, the form of said agreement is: protocol type, protocol parameter, the attached option of agreement; During set-top-box opening, in the quasi-protocol processor engine, first module has been registered its agreement that can handle to all functional modules with its protocol registration that can handle of correspondence, and second module and three module have been registered this agreement that result is received;
Step 30, a request module are when the said agreement of STB quasi-protocol processor engine request; STB quasi-protocol processor engine monitors first module and has registered its said agreement that can handle; Then the quasi-protocol processor engine sends to first resume module with this agreement; After first module receives this agreement of quasi-protocol processor engine request, obtain the required data of described request module through the top-set hardware driving, and data are transferred to first resume module; Result after first resume module feeds back to the quasi-protocol processor engine, and the quasi-protocol processor engine is given the described request resume module data of first resume module;
Accomplish the function of oneself when first module after, when returning to the described request module to data after handling, first module is at first sent respective request to the quasi-protocol processor engine; Notice for this agreement complete operation need return data; At this moment the size of data after the quasi-protocol processor engine respective request judgment processing of sending according to module judges that the time of transmitting said data is whether greater than STB cpu working time, not; Then give the described request module data transfer through said master agreement processor; Be that then the quasi-protocol processor engine distributes a functional module protocol processing unit, associate two modules temporarily, carry out the mutual of data; After accomplishing data interaction, the quasi-protocol processor engine reclaims the functional module protocol processing unit;
Step 40, after the intact required data of described request resume module, said quasi-protocol processor engine judges whether the data result after the described request resume module is sent to second module and three module is handled according to the attached option of said agreement.
Wherein when the required data of the request module of STB want second module to provide; Send to the quasi-protocol processor engine to the data after second resume module with the mode of said agreement, need the request module of data, send to request module to said agreement by the inquiry of quasi-protocol processor engine; If this request module is not before to carrying out the location registration process mistake to this agreement; The quasi-protocol processor engine will be mass-sended all modules to this agreement, when module can be handled this agreement according to the priority of each module registration; To return an information notice quasi-protocol processor engine, the agreement that the quasi-protocol processor engine can be handled dynamic registration.
Lifting a specific embodiment below is described further the present invention.
Step 10, in STB the design quasi-protocol processor engine; Described quasi-protocol processor engine comprises a master agreement processor and a plurality of functional module protocol processing unit; Said master agreement processor is accomplished the scheduling of STB being attend institute's protocols having; Said functional module protocol processing unit be the data time that transmits between data processing module of request msg module and accomplish greater than STB cpu during working time, the direct treatment channel that provides;
Step 20, in STB definition STB each functional module agreement (for example: the cannel broadcast agreement; Wherein protocol type is a cannel broadcast; That channel such as the cctv-1 of protocol parameter for playing; The attached option of agreement is the module ability deal with data that only there is something special, and other modules can not be handled its data; Pat table Data Receiving agreement or the like); The agreement of said each functional module is a character string or a data sequence; The form of said agreement is: protocol type, protocol parameter, the attached option of agreement, and in the parameter of this agreement of protocol type followed, and the attached option of agreement; Whether described self handling of request module in its attached option, still all have been registered the module that the protocol processes result is received and all sent processing; During set-top-box opening; All functional modules are with its agreement that can handle (as: " next current bar of request epg " agreement of correspondence; " pat shows Data Receiving " agreement, " cannel broadcast " agreement, these agreements all are can be handled by the certain module of STB) be registered to that (for example being directed to each agreement all has a function to handle: this function is the external interface function of this protocol process module in the quasi-protocol processor engine; When quasi-protocol processor engine initialization log-in protocol; Associate agreement and processing function one by one exactly, when the quasi-protocol processor engine need be searched the processing module of agreement, as long as find the related interface function of this agreement; Arrive this interface function to the delivery of content of agreement then, the module that this function is corresponding will have been handled corresponding protocol);
Step 30, as in: the pat table (Program Association Table) relevant for the related content of pmt table; When the front end channel changes; Corresponding variation also can take place in pat table, and therefore the monitoring to the variation of pat table is used for realizing the real-time response to channel update, is used for realizing that the module of this function is exactly " a pat monitoring module "; Contain with condition in the pat table simultaneously and receive relevant information; Therefore the condition receiving function also need obtain the data of pat table, and the pid information stores at the data message place in the data broadcasting function is in the pat table, so the data broadcasting function also need obtain the pat data and comes updates self information;
Therefore in the postulated mechanism top box a module, b module, c module, d module, x agreement are arranged, the b module has been registered its x agreement that can handle, and c module and d module have been registered the x agreement that result is received; It can the handled x agreement of a module be " a pat table Data Receiving agreement ", and a module is " a pat monitoring module ", and the b module is " a pat receiver module ", and the c module is " Conditional Access Module ", and the d module is " a data broadcasting module ";
A module (pat monitoring module, i.e. request module) regularly to quasi-protocol processor engine request x agreement (pat table Data Receiving agreement), is used for analyzing pat table data and judges whether program has renewal; The quasi-protocol processor engine monitors b module (pat receiver module) and has registered the processing to x agreement (pat table Data Receiving agreement); The quasi-protocol processor engine sends to b module (pat receiver module) to the x agreement and handles; After b module (pat receiver module) receives the x agreement of quasi-protocol processor engine request; Acquire the pat data through the top-set hardware driving; And feeding back to the quasi-protocol processor engine to result, the quasi-protocol processor engine is given a resume module (pat monitoring module) data of b resume module; After it accomplishes the function of oneself when b module (pat receiver module); When returning to a resume module (pat monitoring module) to data after handling; B module (pat receiver module) is at first sent respective request to the quasi-protocol processor engine, and notice x agreement (pat table Data Receiving agreement) complete operation needs return data, at this moment the size of data after the quasi-protocol processor engine respective request judgment processing of sending according to b module (pat receiver module); Whether the time of judge transmitting said data is greater than STB cpu working time; Not, then giving the described request module data transfer through said master agreement processor, is that then the quasi-protocol processor engine distributes a functional module protocol processing unit; Associate a module and b module temporarily; Carry out the mutual of data, after accomplishing data interaction, the quasi-protocol processor engine reclaims the functional module protocol processing unit;
Step 40, after the intact required data of a resume module; Said quasi-protocol processor engine judges whether the data result after a resume module is sent to the c module and the d module is handled according to the attached option of x agreement; When the attached option of x agreement (pat table Data Receiving agreement) be to be " other resume module pat shows data ", then the data result after a module (pat monitoring module) processing sends to c module (Conditional Access Module) and d module (data broadcasting module) is handled.
The above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (4)

1. the method for a STB high-performance module schedules is characterized in that: may further comprise the steps:
Step 10, in STB the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, said master agreement processor is used to accomplish the scheduling of STB being attend institute's protocols having;
Step 20, in STB the agreement of definition STB each functional module, the agreement of said each functional module is a character string or a data sequence, the form of said agreement is: protocol type, protocol parameter, the attached option of agreement; During set-top-box opening, in the quasi-protocol processor engine, first module has been registered its agreement that can handle to all functional modules with its protocol registration that can handle of correspondence, and second module and three module have been registered this agreement that result is received;
Step 30, a request module are when the agreement of STB quasi-protocol processor engine request first module registration; STB quasi-protocol processor engine monitors first module and has registered its said agreement that can handle; Then the quasi-protocol processor engine sends to first resume module with this agreement; After first module receives this agreement of quasi-protocol processor engine request, obtain the required data of described request module through the top-set hardware driving, and data are transferred to first resume module; Result after first resume module feeds back to the quasi-protocol processor engine, and the quasi-protocol processor engine is given the described request resume module data of first resume module;
Step 40, after the intact required data of described request resume module, said quasi-protocol processor engine judges whether the data result after the described request resume module is sent to second module and three module is handled according to the attached option of the agreement of first module registration.
2. the method for a kind of STB high-performance module schedules according to claim 1; It is characterized in that: when the required data of the request module of STB want second module to provide; Send to the quasi-protocol processor engine to the data after second resume module with the mode of the agreement of first module registration, need the request module of data by the inquiry of quasi-protocol processor engine, the agreement of registering first module sends to request module; If this request module was not before carried out the location registration process mistake to this agreement; The quasi-protocol processor engine will be mass-sended all modules to this agreement, when module can be handled this agreement according to the priority of each module registration; To return an information notice quasi-protocol processor engine, the agreement that the quasi-protocol processor engine can be handled dynamic registration.
3. the method for a kind of STB high-performance module schedules according to claim 1; It is characterized in that: described quasi-protocol processor engine comprises a plurality of functional module protocol processing unit; Said functional module protocol processing unit be the data time that transmits between data processing module of request msg module and accomplish greater than STB cpu during working time, the direct treatment channel that provides.
4. the method for a kind of STB high-performance module schedules according to claim 3; It is characterized in that: step 30 further comprises: accomplish the function of oneself when first module after, when returning to the described request module to data after handling, first module is at first sent respective request to the quasi-protocol processor engine; Notice for this agreement complete operation need return data; At this moment the size of data after the quasi-protocol processor engine respective request judgment processing of sending according to module judges that the time of transmitting said data is whether greater than STB cpu working time, not; Then give the described request module data transfer through said master agreement processor; Be that then the quasi-protocol processor engine distributes a functional module protocol processing unit, associate two modules temporarily, carry out the mutual of data; After accomplishing data interaction, the quasi-protocol processor engine reclaims the functional module protocol processing unit.
CN201010567837A 2010-12-01 2010-12-01 Method for high-performance module scheduling of set-top box Expired - Fee Related CN102014302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010567837A CN102014302B (en) 2010-12-01 2010-12-01 Method for high-performance module scheduling of set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010567837A CN102014302B (en) 2010-12-01 2010-12-01 Method for high-performance module scheduling of set-top box

Publications (2)

Publication Number Publication Date
CN102014302A CN102014302A (en) 2011-04-13
CN102014302B true CN102014302B (en) 2012-10-03

Family

ID=43844287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010567837A Expired - Fee Related CN102014302B (en) 2010-12-01 2010-12-01 Method for high-performance module scheduling of set-top box

Country Status (1)

Country Link
CN (1) CN102014302B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131881B (en) * 2019-12-30 2022-09-02 深圳Tcl数字技术有限公司 PVR (personal video recorder) recording method, smart television and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546584A (en) * 1992-07-01 1996-08-13 Lundin; Kenneth System and method for establishing communication protocols between application programs
US5946487A (en) * 1996-06-10 1999-08-31 Lsi Logic Corporation Object-oriented multi-media architecture
CN101135889A (en) * 2007-09-30 2008-03-05 重庆邮电大学 EPA on-site controller based on SOPC
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546584A (en) * 1992-07-01 1996-08-13 Lundin; Kenneth System and method for establishing communication protocols between application programs
US5946487A (en) * 1996-06-10 1999-08-31 Lsi Logic Corporation Object-oriented multi-media architecture
CN101135889A (en) * 2007-09-30 2008-03-05 重庆邮电大学 EPA on-site controller based on SOPC
CN101604259A (en) * 2009-06-10 2009-12-16 深圳市共进电子有限公司 A kind of method of the multi-process synchronous scheduling based on embedded system

Also Published As

Publication number Publication date
CN102014302A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
US20200245021A1 (en) Reception apparatus, reception method, program, and information processing system
CN101159830B (en) Apparatus for receiving adaptive broadcast signal and method thereof
US8572645B2 (en) IPTV and method for controlling emergency alert system widget in IPTV
CN104412603B (en) It handles the method for interactive service and receives the device of interactive service
KR101874142B1 (en) Apparatus and method for providing an application service in a broadcast system
KR20150090049A (en) Apparatus and method for processing an interactive service
CN102075728A (en) Method and system for sharing audio and/or video data
US20130182192A1 (en) Method for moving pointer in video display apparatus and video display apparatus thereof
US20060053460A1 (en) Transmission communications management
CN104410917A (en) Realization method for cable interactive television cross-domain video service connection system
CN1579090A (en) Digital broadcast reception apparatus and communication information transmission method
WO2005109185A1 (en) A method for improving efficiency of events transmission and processing in digital television receiving device
CN102014302B (en) Method for high-performance module scheduling of set-top box
CN102149013B (en) Data processing system and method for digital television as well as digital television receiving terminal
CN103685303A (en) Method and system for processing connection content delivery network
CN101765005A (en) Method for realizing data transmission by utilizing TS-packet continuous null bytes in DVB
CN101453654A (en) Method for obtaining service map information, apparatus therefor, and method for fast performing application in service according to the service map information
CN1572074A (en) Controlling multiple nodes to execute messages only once, which are divided into groups, or using SNMP, or a combination thereof
CN110602558A (en) High-performance DVB program sharing method for terminal
CN102438114A (en) Relevant information display system and method of digital television
US8923319B1 (en) Method and system for prioritizing initial maintenance of cable modems
CN101217661A (en) Inter-network packet modifier and related method thereof
CN103384348B (en) A kind of GINGA digital TV middleware implementation method on embedded digital TV platform
CN107071508B (en) A kind of method and system for realizing double screen plug-flow in live streaming
US20050286861A1 (en) Method of managing auxiliary programs and a corresponding receiver and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121003

Termination date: 20191201

CF01 Termination of patent right due to non-payment of annual fee