CN101201755A - Method, system and equipment for managing software module of digital receiving terminal - Google Patents

Method, system and equipment for managing software module of digital receiving terminal Download PDF

Info

Publication number
CN101201755A
CN101201755A CNA2007100744064A CN200710074406A CN101201755A CN 101201755 A CN101201755 A CN 101201755A CN A2007100744064 A CNA2007100744064 A CN A2007100744064A CN 200710074406 A CN200710074406 A CN 200710074406A CN 101201755 A CN101201755 A CN 101201755A
Authority
CN
China
Prior art keywords
plug
message
unit
registration
module
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.)
Pending
Application number
CNA2007100744064A
Other languages
Chinese (zh)
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 Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CNA2007100744064A priority Critical patent/CN101201755A/en
Publication of CN101201755A publication Critical patent/CN101201755A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is applicable to the field of digital communication and provides a method, a system and a device for managing software modules of a digital receiving terminal, and the method comprises the following steps: registering a system plug-in; receiving a message registered by the plug-in; receiving a message of operation requirements, and forwarding the requirements message to the plug-in which registers the corresponding message; and finally the plug-in processes the requirements message. In the embodiment of the invention, each sub-functional module registers messages to a primary control module in a way of plug-in, and the primary control module manages plug-ins and forwards messages, thus the invention achieves that an added function does not affect prior system architecture of the digital receiving terminal, and coupling among the sub-functional modules is reduced and the invention supports a plurality of modules which are the same.

Description

A kind of software module management method, system and equipment of digit receiving terminal
Technical field
The invention belongs to the digital communication field, relate in particular to a kind of software module management method, system and equipment of digit receiving terminal.
Background technology
In the prior art, digit receiving terminal (comprise and refer to set-top box) comprises main control module and each function sub-modules, wherein main control module comprises each function sub-modules, and is in charge of each module, for example system resource, input/output module, mixed-media network modules mixed-media, browser and media player etc.After the start, each function sub-modules of master control module controls carries out initialization, and each function sub-modules sends requirement message to main control module, and according to the requirement message of each function sub-modules, each function sub-modules that needs this message is given this forwards in state machine control.After each function sub-modules basis received the message end of operation of main control module, master control module controls was closed each function sub-modules, and free system resources.Directly communicate between each function sub-modules in the prior art with message or function call mode.
There is very big defective in the software architecture of this digit receiving terminal, the new function of each increase, all need revise the original system framework, each function sub-modules relation coupling, interrelated more, can not support a plurality of equal modules, as graphical user interface (Graphical User Interface, GUI) player etc. is too tight with the binding of bottom hardware platform feature; And debugging and orientation problem difficulty relatively.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of software module management method of digit receiving terminal, is intended to solve the problem of revising original system framework difficulty in the prior art, the coupling association is more and does not support equal modules.
The embodiment of the invention is achieved in that a kind of software module management method of digit receiving terminal, and described method comprises the steps:
The Accreditation System plug-in unit;
Receive the registration message of plug-in unit;
Receive operational requirements message, and described requirement message is transmitted to the plug-in unit of registration corresponding message;
Described plug-in unit is handled described requirement message.
Another purpose of the embodiment of the invention is to provide a kind of management system of software module of digit receiving terminal, and described system comprises:
The plug-in registration module is used for the Accreditation System plug-in unit;
The registration message receiver module is used to receive the registration message of plug-in unit;
Requirement message receives forwarding module, is used to receive operational requirements message, and described requirement message is transmitted to the corresponding plug-in unit of the described message of registration; And
The requirement message processing module is used to handle described requirement message.
Another purpose of the embodiment of the invention is to provide a kind of digit receiving terminal, comprises main control module and each function sub-modules, and described digit receiving terminal also comprises the management system of the software module of a digit receiving terminal, and described system comprises:
The plug-in registration module places the main control module end, is used for the Accreditation System plug-in unit;
The registration message receiver module places the main control module end, is used to receive the registration message of plug-in unit;
Requirement message receives forwarding module, places the main control module end, is used to receive operational requirements message, and described requirement message is transmitted to the corresponding plug-in unit of the described message of registration; And
The requirement message processing module places each function sub-modules end, is used to handle described requirement message.
In embodiments of the present invention, each function sub-modules passes through the mode of plug-in unit to the main control module registration message, main control module management plug-in unit and forwarding message, thereby realize that what's new does not influence the system architecture of original digit receiving terminal, reduces the conjunction coupling between each function sub-modules and supports a plurality of equal modules.
Description of drawings
Fig. 1 is the software module management process flow diagram of the digit receiving terminal that provides of the embodiment of the invention;
Fig. 2 is the synoptic diagram of the management different business of the human-computer interaction interface that provides of the embodiment of the invention;
Fig. 3 is the software module management system construction drawing of the digit receiving terminal that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, main control module is registered the feature card of different demands, and each function sub-modules passes through the mode of plug-in unit to the main control module registration message, main control module management plug-in unit and forwarding message.
As shown in Figure 1, the detailed step of the digit receiving terminal software module management method of present embodiment is as follows:
In step S101, os starting starts all public resources, as each hardware device.
In step S102, registration and the required plug-in unit of start-up system.
In embodiments of the present invention, the registration structure agree as follows of plug-in unit:
typedef?struct?CSDO_Module_t
{
Void*pComponent; // module global variable
S_int32nModuleID; // module I D
Cs_int32nType; // module type
Cs_int32nLevel; // rank
Cs_int32nOption[MaxOptionLen]; // ability attribute
Cs_int32IsNeedStartup; // whether need to start
Cs_int32 (* fnOpen) (void**, void*); // startup function
Void (* fnClose) (void*); // close function
}CSDO_Module_t
Wherein:
PComponet is the data pointer that plug-in unit self need transmit;
NModuleID is ID number that system assignment is given plug-in unit;
NType and nLevel are the type and the rank of plug-in unit, are provided by plug-in unit itself;
NOption is the attribute of plug-in unit, is provided by plug-in unit itself;
Whether IsNeedStart needs behind the plug-in registration to start;
FnOpen and fnClose are the plug-in unit startup and close call back function, by main control module calls.
In an embodiment of the present invention,, and distribute nModuleID to give plug-in unit, the CSDO_Module_t data are added in the plug-in management chained list, and this plug-in unit is designated original state according to the automatic registered plug-ins of configuration parameter.If the IsNeedStart attribute of plug-in unit is true, then call the fnOpen function of plug-in unit, come the initialization plug-in unit.State is changed to starting state behind the initialization plug-in unit.
When main control module receives plug-in registration message, distribute nModuleID to give plug-in unit, the CSDO_Module_t data are added the plug-in management chained list, be designated original state; If the IsNeedStart attribute is true, then starts this plug-in unit, and board state is changed to starting state.
In step S103, the initiation message forwarding mechanism receives the information that the needs of this plug-in registration are handled.
In embodiments of the present invention, plug-in unit calls CSDO_RegisterEvent to be needed to receive the message of handling to the master control registration, and the structure of registration message is as follows:
typedef?struct?CSDO_RegisterEvent_t
{
Cs_int32nMsg; The type * of/* message/
CS_int32nModuleID; The plug-in unit ID* of/* registration/
CSIP_EventCallback_fn fnControl; / * message processing function */
}CSDO_RegisterEvent_t
The log-on data content is the type of message (nMsg) of registration, the plug-in unit ID (nModuleID) and the message processing function (fnEventCall) of registration, master control whether inquire about system definition type be the message of nMsg, if have, be to increase a node CSDO_RegisterEventNode_t among the registry entry chained list CSDO_RegisterEventEntry_t of nMsg then at type of message.
In embodiments of the present invention, main control module itself is also registered the message that needs processing.Wherein, each message can be registered a plurality of plug-in units, and different plug-in units can be registered identical processing request message.
In step S104, main control module receives user's operation processing request message, and this operation processing request comprises button operation, opens or closes certain plug-in unit etc.
In step S105, main control module is given the operation processing request forwards plug-in unit of this message of registration according to the registration message that is stored in the registration message formation.
Main control module is received non-registration message own, then calls CSDO_ProcessEvent and transmits message.Master control is found corresponding registry entry chained list CSDO_RegisterEventEntry_t according to type of message, calls all node processing function f nControl in this chained list successively, carries out forwards.
In step S106, each plug-in unit is handled this message as required, and result is sent to main control module.
In step S107, main control module pending plug-in unit such as feeds back to this result.
In step S108, close all registered plug-ins.Wherein shut off plug is the same with the mode of registered plug-ins, repeats no more herein.
As one embodiment of the present of invention, after user's all operations finished, main control module sent message for each plug-in unit, and each plug-in unit is registered to main control module is counter, and the process of this anti-registration is just closed the process of all registered plug-ins; When main control module receives anti-registered plug-ins message, expression has that plug-in unit is counter to be registered, if this board state is a starting state, then the fnClose function that calls this plug-in unit according to nModuleID is closed the task (or thread) of this plug-in component operation, and be designated original state, at last this plug-in's data is deleted from the plug-in management chained list, when main control module receives the message of shut off plug or shutdown, if plug-in unit starts then board state is set to closed condition, shut off plug.
As a preferred embodiment of the present invention, Fig. 2 shows the synoptic diagram of the management different business of the human-computer interaction interface that the embodiment of the invention provides, in system starting process, but main control module has been registered two user interface (User Interface that the identical function of type is different, UI) plug-in unit is respectively common GUI plug-in unit and browser plug-in; Also registered the media player plug-in unit in addition.Its detailed step is as follows:
1.1 user's start starts all public resources.
1.2 main control module is registered common GUI plug-in unit.
1.3 main control module registration browser plug-in.
1.4 main control module accredited media player plug-in unit.
1.5 common GUI plug-in unit is to the main control module registration message.
1.6 browser plug-in is to the main control module registration message.
1.7 the media player plug-in unit is to the main control module registration message.
1.8 main control module itself is registration message also.
Be meant the operation information that each plug-in unit need be handled as the message described in the above-mentioned step 1.5,1.6,1.7,1.8, for example button operation message etc.
1.9 the user sends request by button operation to main control module.
2.0 main control module sends to common GUI plug-in unit with this press key message.
2.1 after common GUI plug-in unit receives the press key message of main control module, find that current page is a browser, therefore abandon this message.
2.2 main control module sends to browser plug-in with this press key message.
2.3 after browser plug-in receives press key message, handle and send " playing request " message and give main control module.
2.4 main control module according to forwards mechanism, is given the media player plug-in unit with " playing request " forwards that browser plug-in sends.
2.5 the media player plug-in unit is broadcast program voluntarily.
2.6 finish when playing, the user sends " closing key " message to main control module.
2.7 known that by step 1.8 main control module is also registered " closing key " message, therefore, main control module sends to common GUI plug-in unit with " end " message.
After 2.8 common GUI plug-in unit receives end, to the anti-registered plug-ins of main control module.
2.9 main control module sends to browser plug-in with end.
3.0 after browser plug-in receives end, send out registered plug-ins to main control module.
3.1 main control module sends to the media player plug-in unit with end.
3.2 the media player plug-in unit is sent out registered plug-ins to main control module after receiving " end " message.
In embodiments of the present invention, the module of identical function is registered to master control with different plug-in units, but nType is identical in the dongle configuration, and master control is according to external demand, by nLevel class emblem in the dongle configuration and nOption ability attribute array, inquire about satisfactory plug-in unit and come processing messages.
As shown in Figure 3, for convenience of explanation, only show the part relevant with the embodiment of the invention.The software module management system of present embodiment is built in the unit of software unit, hardware cell or the soft or hard combination of digit receiving terminal.In embodiments of the present invention, digit receiving terminal comprises the finger set-top box.
Main control module 11 comprises that plug-in registration module 111, registration message receiver module 112, requirement message receive forwarding module 113 and the anti-Registering modules 114 of plug-in unit.
Plug-in registration module 111 Accreditation System plug-in units, plug-in registration module 111, can carry out plug-in registration according to the registration message of automatic registered plug-ins of configuration parameter or the transmission of each plug-in unit, the logon mode of this plug-in unit has automatic registration and registers dual mode by message mechanism; When system plugin registration is finished and state when being starting state, registration message receiver module 112 receives the registration message of plug-in unit, and this registration message is stored in the registration message formation, wherein, main control module 11 self is also registered the message that needs processing, and different plug-in units can be registered identical processing messages; Requirement message receives the operational requirements message that forwarding module 113 receives the user, and for example the user is to the associative operation of button; And with this requirement message be transmitted to the registration corresponding registration message plug-in unit; Requirement message processing module 12 is handled described requirement message, and in embodiments of the present invention, when the type of message and user's the operational requirements message of plug-in registration were inconsistent, then requirement message processing module 12 was abandoned the message of this main control module forwarding; If unanimity is then handled this message.
As of the present invention be an embodiment, when receiving anti-registered plug-ins message, if this board state is a starting state, then the anti-Registering modules 114 of the plug-in unit fnClose function that calls this plug-in unit according to nModuleID is closed the task (or thread) of this plug-in component operation, and be designated original state, at last this plug-in's data is deleted from the plug-in management chained list.
In embodiments of the present invention, each function sub-modules passes through the mode of plug-in unit to the main control module registration message, main control module management plug-in unit and forwarding message, thereby realize that what's new does not influence the system architecture of original digit receiving terminal, reduces the conjunction coupling between each function sub-modules and supports a plurality of equal modules.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the software module management method of a digit receiving terminal is characterized in that, described method comprises the steps:
The Accreditation System plug-in unit;
Receive the registration message of plug-in unit;
Receive operational requirements message, and described requirement message is transmitted to the corresponding plug-in unit of the described message of registration;
Described plug-in unit is handled described requirement message.
2. the software module management method of digit receiving terminal as claimed in claim 1 is characterized in that, described method also comprises the step of anti-registered plug-ins.
3. the software module management method of digit receiving terminal as claimed in claim 1 or 2 is characterized in that, described registered plug-ins comprises automatic registration and registers dual mode by message mechanism.
4. the management system of the software module of a digit receiving terminal is characterized in that, described system comprises:
The plug-in registration module is used for the Accreditation System plug-in unit;
The registration message receiver module is used to receive the registration message of plug-in unit;
Requirement message receives forwarding module, is used to receive operational requirements message, and described requirement message is transmitted to the corresponding plug-in unit of the described message of registration; And
The requirement message processing module is used to handle described requirement message.
5. the management system of the software module of digit receiving terminal as claimed in claim 4 is characterized in that, described system also comprises:
The anti-Registering modules of plug-in unit is used for anti-registered plug-ins.
6. as the management system of the software module of claim 4 or 5 described digit receiving terminals, it is characterized in that described registered plug-ins comprises automatic registration and by message mechanism registration dual mode.
7. a digit receiving terminal comprises main control module and each function sub-modules, it is characterized in that described digit receiving terminal also comprises the management system of the software module of a digit receiving terminal, and described system comprises:
The plug-in registration module places the main control module end, is used for the Accreditation System plug-in unit;
The registration message receiver module places the main control module end, is used to receive the registration message of plug-in unit;
Requirement message receives forwarding module, places the main control module end, is used to receive operational requirements message, and described requirement message is transmitted to the corresponding plug-in unit of the described message of registration; And
The requirement message processing module places each function sub-modules end, is used to handle described requirement message.
8. digit receiving terminal as claimed in claim 7 is characterized in that, described system also comprises:
The anti-Registering modules of plug-in unit is used for anti-registered plug-ins.
9. as claim 7 or 8 described digit receiving terminals, it is characterized in that described registered plug-ins comprises automatic registration and registers dual mode by message mechanism.
CNA2007100744064A 2007-05-10 2007-05-10 Method, system and equipment for managing software module of digital receiving terminal Pending CN101201755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100744064A CN101201755A (en) 2007-05-10 2007-05-10 Method, system and equipment for managing software module of digital receiving terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100744064A CN101201755A (en) 2007-05-10 2007-05-10 Method, system and equipment for managing software module of digital receiving terminal

Publications (1)

Publication Number Publication Date
CN101201755A true CN101201755A (en) 2008-06-18

Family

ID=39516929

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100744064A Pending CN101201755A (en) 2007-05-10 2007-05-10 Method, system and equipment for managing software module of digital receiving terminal

Country Status (1)

Country Link
CN (1) CN101201755A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN103001800A (en) * 2012-11-28 2013-03-27 华为技术有限公司 Automatic software entity discovering method, service node and device
CN104636190A (en) * 2013-11-06 2015-05-20 中国石油天然气集团公司 Software system and method for transmitting information between plug-ins
CN107783849A (en) * 2017-09-27 2018-03-09 武汉斗鱼网络科技有限公司 Event-handling method and client

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN102413115B (en) * 2011-08-12 2015-05-13 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN103001800A (en) * 2012-11-28 2013-03-27 华为技术有限公司 Automatic software entity discovering method, service node and device
CN103001800B (en) * 2012-11-28 2016-03-30 华为技术有限公司 Software entity automatic discovering method, service node and equipment
CN104636190A (en) * 2013-11-06 2015-05-20 中国石油天然气集团公司 Software system and method for transmitting information between plug-ins
CN104636190B (en) * 2013-11-06 2018-03-13 中国石油天然气集团公司 Message delivery method between software systems and plug-in unit
CN107783849A (en) * 2017-09-27 2018-03-09 武汉斗鱼网络科技有限公司 Event-handling method and client
CN107783849B (en) * 2017-09-27 2021-01-01 武汉斗鱼网络科技有限公司 Event processing method and client

Similar Documents

Publication Publication Date Title
CN102202289B (en) Method and system for remote calling software and hardware resources through mobile terminal
CN102510392B (en) Equipment room application sharing method and system, television and mobile terminal
CN103024504B (en) Based on the intelligent remote control system of digital TV set-top box
CN102421028B (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
US20110302274A1 (en) Architecture of a network device for processing applications, and control method for the network device
CN101227428B (en) Application server and remote control method thereof
CN102130900A (en) Method and device for realizing three-screen interaction
CN101350813A (en) Method and apparatus for providing WiFi access internet for digital household electrical appliance
CN103516882B (en) A kind of based on multi-screen interaction scene picture playing method and system
CN101201755A (en) Method, system and equipment for managing software module of digital receiving terminal
US10521240B2 (en) Digital device and method of processing screensaver thereof
CN108737529A (en) SCA waveform controlling methods, device, computer equipment and storage medium
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN108536492A (en) A kind of direct broadcasting room attribute information acquiring method, device, equipment and storage medium
CN1973282A (en) System and method for managing a change to a cluster configuration
CN101854401A (en) Data transmission equipment and method and data synchronization method
US8176343B2 (en) Method for providing information for power management of devices on a network
CN104363486A (en) Combined television and USB (universal serial bus) sharing method thereof
CN100518198C (en) Method for increasing handset starting response speed
CN101431659A (en) Interactive Web TV system and its processing method
CN100414994C (en) Method for realizing IGRS AV player device
CN104038511A (en) Resource management method and apparatus
CN101068351B (en) Mobile terminal digital television data transmitting method
CN100414993C (en) Method for realizing IGRS AV server device
CN101729510B (en) Storage service system for virtual network and method for establishing the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080618