CN102014302A - 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
CN102014302A
CN102014302A CN 201010567837 CN201010567837A CN102014302A CN 102014302 A CN102014302 A CN 102014302A CN 201010567837 CN201010567837 CN 201010567837 CN 201010567837 A CN201010567837 A CN 201010567837A CN 102014302 A CN102014302 A CN 102014302A
Authority
CN
China
Prior art keywords
module
agreement
quasi
data
top box
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
CN 201010567837
Other languages
Chinese (zh)
Other versions
CN102014302B (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 set-top box high-performance module schedules
[technical field]
The present invention relates to a kind of field of embedded technology, especially a kind of method of set-top box 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, senior functions such as video record playback more and more appear in the set-top box, this makes the software of set-top box become and becomes increasingly complex, particularly after the integration of three networks, the function of set-top box has extended to the Internet and telecommunications network from field of broadcast televisions originally quickly, video telephone, 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 digital TV set-top box, 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, 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 a large amount of time of expense and remove to understand the function interface and the method for calling of other modules as possible, greatly reduce the speed that module is write, module is directly called mutually and is caused module can't determine the invoked situation of synchronization simultaneously, may cause the deadlock or the other problems of inside modules program.
[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of method of set-top box 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 set-top box high-performance module schedules, may further comprise the steps:
A kind of method of set-top box high-performance module schedules is characterized in that: may further comprise the steps:
Step 10, in set-top box the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, described master agreement processor is used to finish the scheduling to institute's protocols having on the set-top box;
Step 20, in set-top box the agreement of definition set-top box each functional module, the agreement of described each functional module is a character string or a data sequence, the form of described 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, one request module is when the described agreement of set-top box quasi-protocol processor engine request, set-top box quasi-protocol processor engine monitors first module and has registered its described 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 by 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, described quasi-protocol processor engine judges whether that according to the attached option of described agreement the data result after the described request resume module is sent to second module and three module is handled.
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 finish by the quasi-protocol processor engine of set-top box, and the mode of the data of each module and quasi-protocol processor engine and function use agreement is handled, the direct complementation of each module is called, by the unified scheduling of engine, engine has good module access interface simultaneously, can expand various functions easily.The present invention has overcome the exploitation of functional module on traditional digital TV set-top box, 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 set-top box is called in the direct complementation of each module simultaneously.
[description of drawings]
Fig. 1 is the inventive method schematic flow sheet.
[embodiment]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings:
A kind of method of set-top box high-performance module schedules may further comprise the steps:
Step 10, in set-top box the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, described master agreement processor is used to finish the scheduling to institute's protocols having on the set-top box;
Step 20, in set-top box the agreement of definition set-top box each functional module, the agreement of described each functional module is a character string or a data sequence, the form of described 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, one request module is when the described agreement of set-top box quasi-protocol processor engine request, set-top box quasi-protocol processor engine monitors first module and has registered its described 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 by 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;
Finish the function of oneself when first module after, when data after handling are returned to the described request module, first module at first sends 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, whether the time of judge transmitting described data is greater than set-top box cpu running time, not, then give the described request module data passes by described master agreement processor, be that then the quasi-protocol processor engine distributes a functional module protocol processing unit, two modules are associated temporarily, carry out the mutual of data, after finishing 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, described quasi-protocol processor engine judges whether that according to the attached option of described agreement the data result after the described request resume module is sent to second module and three module is handled.
Wherein when the required data of the request module of set-top box want second module to provide, data after second resume module are sent to the quasi-protocol processor engine in the mode of described agreement, the request module that needs data by the inquiry of quasi-protocol processor engine, described agreement is sent to request module, 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 according to the priority of each module registration, this agreement is mass-sended all modules, when module can be handled this agreement, to return an information notice quasi-protocol processor engine, the agreement that the quasi-protocol processor engine can be handled dynamic registration.
The invention will be further described to lift a specific embodiment below.
Step 10, in set-top box 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, described master agreement processor is finished the scheduling to institute's protocols having on the set-top box, described functional module protocol processing unit be the data time that transmits between data processing module of request msg module and finishing greater than set-top box cpu during running time, the direct treatment channel that provides;
Step 20, in set-top box definition set-top box 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 described each functional module is a character string or a data sequence, the form of described agreement is: protocol type, protocol parameter, the attached option of agreement, follow the parameter of this agreement in the protocol type back, and the attached option of agreement, whether described self handling of request module in its attached option, still all have been registered modules 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 set-top box) 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, exactly agreement and processing function are associated one by one, when the quasi-protocol processor engine need be searched the processing module of agreement, as long as find the interface function of this agreement association, then the delivery of content of agreement is arrived this interface function, the module of that this function correspondence will have been handled corresponding protocol);
Step 30, as: the related content of showing relevant for pmt in the pat table (Program Association Table), when the front end channel changes, corresponding variation also can take place in the pat table, therefore the monitoring of the variation of pat table is used for realizing real-time response to channel update, be 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 needs to obtain the data of pat table, the pid information stores at the data message place in the data broadcasting function is in pat table, so the data broadcasting function also needs to 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 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 by the top-set hardware driving, and result fed back to the quasi-protocol processor engine, the quasi-protocol processor engine is given a resume module (pat monitoring module) data of b resume module; It is after b module (pat receiver module) is finished the function of oneself, when data after handling are returned to a resume module (pat monitoring module), b module (pat receiver module) at first sends respective request to the quasi-protocol processor engine, 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 described data is greater than set-top box cpu running time, not, then give the described request module data passes by described master agreement processor, be that then the quasi-protocol processor engine distributes a functional module protocol processing unit, a module and b module are associated temporarily, carry out the mutual of data, after finishing 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, described quasi-protocol processor engine judges whether that according to the attached option of x agreement the data result after a resume module is sent to the c module and the d module is handled, 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 only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.

Claims (4)

1. the method for a set-top box high-performance module schedules is characterized in that: may further comprise the steps:
Step 10, in set-top box the design quasi-protocol processor engine, described quasi-protocol processor engine comprises a master agreement processor, described master agreement processor is used to finish the scheduling to institute's protocols having on the set-top box;
Step 20, in set-top box the agreement of definition set-top box each functional module, the agreement of described each functional module is a character string or a data sequence, the form of described 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, one request module is when the described agreement of set-top box quasi-protocol processor engine request, set-top box quasi-protocol processor engine monitors first module and has registered its described 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 by 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, described quasi-protocol processor engine judges whether that according to the attached option of described agreement the data result after the described request resume module is sent to second module and three module is handled.
2. the method for a kind of set-top box high-performance module schedules according to claim 1, it is characterized in that: when the required data of the request module of set-top box want second module to provide, data after second resume module are sent to the quasi-protocol processor engine in the mode of described agreement, the request module that needs data by the inquiry of quasi-protocol processor engine, described agreement is sent to request module, 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 according to the priority of each module registration, this agreement is mass-sended all modules, when module can be handled this agreement, 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 set-top box high-performance module schedules according to claim 1, it is characterized in that: described quasi-protocol is handled and is comprised a plurality of functional module protocol processing unit, described functional module protocol processing unit be the data time that transmits between data processing module of request msg module and finishing greater than set-top box cpu during running time, the direct treatment channel that provides.
4. the method for a kind of set-top box high-performance module schedules according to claim 3, it is characterized in that: step 30 further comprises: finish the function of oneself when first module after, when data after handling are returned to the described request module, first module at first sends 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, whether the time of judge transmitting described data is greater than set-top box cpu running time, not, then give the described request module data passes by described master agreement processor, be that then the quasi-protocol processor engine distributes a functional module protocol processing unit, two modules are associated temporarily, carry out the mutual of data, after finishing 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 true CN102014302A (en) 2011-04-13
CN102014302B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131881A (en) * 2019-12-30 2020-05-08 深圳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

Cited By (1)

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

Also Published As

Publication number Publication date
CN102014302B (en) 2012-10-03

Similar Documents

Publication Publication Date Title
CA2546598C (en) Methods and apparatus for hardware registration in a network device
CN104871552B (en) Handle the apparatus and method of interactive service
US8572645B2 (en) IPTV and method for controlling emergency alert system widget in IPTV
CN101159830B (en) Apparatus for receiving adaptive broadcast signal and method thereof
JP5323919B2 (en) Method and apparatus for communication of notifications
US20110302274A1 (en) Architecture of a network device for processing applications, and control method for the network device
CN102098575B (en) Migration method compatible with multiple conditional access (CA) systems and CA method
WO2015134297A1 (en) Bandwidth aware digital video recording (dvr) scheduling
MX2015004730A (en) Apparatus and method for processing an interactive service.
CN1430838A (en) Apparatus and method for improved device interoperability
WO2007143933A1 (en) Network digital television middleware
Bae et al. Home server for home digital service environments
US20130182192A1 (en) Method for moving pointer in video display apparatus and video display apparatus thereof
CN105429958A (en) Enterprise application platform system based on Android development
CN102362506A (en) Request signal of an image program according to specific input sources based on the received list to the external display devices
CN101202919B (en) Digital television receiver and intermediate part
CN110519230A (en) A kind of monitoring system of smart television
US8176343B2 (en) Method for providing information for power management of devices on a network
WO2005109185A1 (en) A method for improving efficiency of events transmission and processing in digital television receiving device
CN111385593A (en) Cross-platform live content synchronization method and device, storage medium and server
CN102014302B (en) Method for high-performance module scheduling of set-top box
CN102316300A (en) Video call screen swinging method, system and device
CN110602558A (en) High-performance DVB program sharing method for terminal
US8923319B1 (en) Method and system for prioritizing initial maintenance of cable modems
CN107071508B (en) A kind of method and system for realizing double screen plug-flow in live streaming

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