CN1635781A - A method for uniform processing of digital television receiver middleware messages - Google Patents

A method for uniform processing of digital television receiver middleware messages Download PDF

Info

Publication number
CN1635781A
CN1635781A CNA2003101103435A CN200310110343A CN1635781A CN 1635781 A CN1635781 A CN 1635781A CN A2003101103435 A CNA2003101103435 A CN A2003101103435A CN 200310110343 A CN200310110343 A CN 200310110343A CN 1635781 A CN1635781 A CN 1635781A
Authority
CN
China
Prior art keywords
message
node
queue
present node
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
CNA2003101103435A
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.)
BEIJING ZHONGSHILIAN DIGITAL SYSTEM Co Ltd
Original Assignee
BEIJING ZHONGSHILIAN DIGITAL SYSTEM 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 BEIJING ZHONGSHILIAN DIGITAL SYSTEM Co Ltd filed Critical BEIJING ZHONGSHILIAN DIGITAL SYSTEM Co Ltd
Priority to CNA2003101103435A priority Critical patent/CN1635781A/en
Publication of CN1635781A publication Critical patent/CN1635781A/en
Pending legal-status Critical Current

Links

Images

Abstract

This invention refers to a method for unify processing middleware message in digital television receiver, which contains the middleware embedded between operation and application program, middleware event generating module marking the message of event and packaging transmitted message and corresponded mark, transmitting packaged message to message unify processing module, receiving module applying message queue in registering to message unify processing module, the message unify processing module analyzing according to message mark to determining priority, distributing message to different message queue according to priority, receiving module inquiring registered message queue, if there is message in queue then extracting message according to firs-in first-out principle and processing by call-back function, deleting said message after processing, judging whether the message queue is empty, if it is not empty then continuing, otherwise ending the step. Said invention has a raised efficiency.

Description

A kind of digital television receiver middleware message is unified processing method
Technical field
The present invention relates to a kind of processing method of digital television software middleware message, particularly relate to a kind of unified processing method of digital television receiver middleware message.
Background technology
In apparatus of digital television receiving, middleware is meant one deck software configuration between operating system and application program, middleware is for the dependence of isolates application to hardware platform and operating system, makes application program have more excellent portability and cross-platform characteristic designs.In the prior art modal middleware structure as shown in Figure 1, middleware 3 has hierarchy and the modularization idea that typical characteristics are them.The interface API2 of two-layer interface definition such as application program 1 and bottom transplanting interface SPI5 embodied about the realization of its hierarchy was mainly leaned on, and third party's functional module such as CA module 7 are transplanted interface SPI5 by module interface 6 and bottom and be connected.Modularization idea mainly is meant: design is gone up and is regarded as whole middleware 3 as a whole on the one hand, constituted the software systems of whole receiver with upper level applications, lower floor's driver and third party's functional module 7, be meant on the other hand in the inside of middleware to be divided into each different standalone feature module by function.For satisfying the design of such demand, normally guarantee the independence of each module self, each module has the routine interface of himself and external module, and each module and interlayer have the message transfer mode of himself, thereby realizes the exchanges data and the event response of this module and other intermodule.So, according to the level of middleware with to modular demand, just can there be several different methods can realize the message transmission of intermodule, such as the method that typically can realize message transmission and data communication, use specific agreement and incident inquiry mode also can realize the transmission of message and data communication etc. by the call back function interface.
But, this structure can make each module of system that the message passing mechanism of self is externally all arranged, simultaneously, system itself also will adapt to the processing mode with the various different messages of other module of its interoperability, because middleware module is relatively disperseed and variation in the processing of message, make it carry out the influence that efficient also can be subjected to each resume module mode.
Summary of the invention
For overcoming above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of digital television receiver middleware message to unify processing method.
For finishing the foregoing invention purpose, the technical solution used in the present invention is: a kind of digital television receiver middleware message is unified processing method, and described middleware comprises incident generation module, receiver module, message unified management module, comprises the steps:
A. incident generation module identifies the message that incident takes place;
B. incident generation module message that will send and the message identifier packing corresponding with it, and the message of packing sent to message unified management module;
C. receiver module is unified the formation of processing module when registration solicitation message to message, and message is unified processing module and resolved according to message identifier, determines its priority, and according to priority message is distributed in the different message queues;
D. receiver module is inquired about registered message queue, as formation message is arranged, and then takes out message according to first in first out, calls call back function and handles this message, handles back this message of deletion from formation;
E. judge whether message queue is empty, not empty continuation execution in step d, otherwise finish.
Message identifier among the described step a comprises identification message type and message code, and type is represented informed source, the feature of coded representation message.
The message with packing among the described step b sends to message and unifies processing module employing first in first out message queue.
Parsing among the described step c specifically comprises the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether current thread ident value and message parameter are empty with the value coupling of present node, the messaging list of present node;
If coupling and be sky then the value of first message of the messaging list of present node is passed to the message queue of present node, and is returned the type of this message, otherwise is carried out next node;
If present node is last node of message queue, then return error code and end.
Different message queue that message is distributed among the described step c is meant the point-to-point transmission of message wiring journey, specifically may further comprise the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether input parameter thread identification value and message identifier surpass restriction with the value coupling of present node, the message count of present node;
If the message of mating and surpassing restriction then the message parameter of input is added to present node in the row, is returned the transmission successful information and is finished, otherwise carries out next node;
If present node is last node of message queue, then return error code and end.
Described message also includes the information of subject thread by the message of the point-to-point transmission of thread, after message is unified processing module and obtained this message, this message is distributed to given thread.
Different message queue that message is distributed among the described step c is meant the point-to-area broadcast transmission of message by thread, specifically may further comprise the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether the input message parameter surpass restriction with the value coupling of present node, the message religion of present node;
If coupling and surpass restriction then the message parameter of input is added in the message queue of present node, otherwise carry out next node;
If present node is last node of message queue then finishes.
The present invention takes all factors into consideration all modules of middleware, has tangible advantage and good effect.The present invention adopts the communication between unified message processing facility processing module, and message processing module separately as a functional module independently, the communication of all intermodules is all by this message module unified management, united and coordinating, middleware just organically links together each module of system by this message processing facility like this, both guaranteed the independence of intermodule better, and made system become an organic whole again.Simultaneously, unified management and the various message of scheduling can make the operational reliability of entire system be guaranteed and improve.
Description of drawings
Fig. 1 is a prior art digital television receiver middleware structure schematic diagram;
Fig. 2 is the main flow chart of the method for the invention;
Fig. 3 is the message parse flow chart among Fig. 2;
Fig. 4 is the point-to-point transmission process chart of message distribution;
Fig. 5 sends process chart for information broadcast.
Embodiment
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Consult Fig. 2, the main flow chart of the method for the invention, middleware at first judge whether the message that event occurs, if having, then incident generation module identifies message, one of type of message and code unique identification or the specific message of a class.Message and the message identifier corresponding with it that the module of incident generation afterwards will send are packed together, and the message of packing is sent to message and unifies processing module.
It is reception, classification, management, coordination and the distribution of carrying out message that message unifies that processing module mainly acts on.A message has two attributes: type and code, type are meant the source of message, and code is meant the feature of message.Message is unified processing module and mainly contained following function: 1. registration/logout message is adjusted back; 2. message sends and broadcasting; 3. Message Processing is promptly carried out the overall coordination processing by the priority of message.
Each will receive, at first to want the registered callbacks function be message to row to the thread of processing messages.The effect of registration is to unify the whole message of processing module to new information node of interpolation in being listed as to message, this node is to have set up a corresponding relation between type of message and message code and call back function, by this corresponding relation, message processing module can be distributed to message in the formation of each information node easily.After this message queue was used for message and is distributed to this formation, message had a buffering under the untimely situation handling.
Nullify readjustment, message is unified processing module and is identified in the message queue according to readjustment and searches for, search the node of coupling after, this node is deleted from message queue.
After message is unified processing module and is received message, resolve according to message identifier, determine its priority, and message is distributed in the different message queues according to priority.
Fig. 3 is the message parse process chart, the dissection process concrete steps are: judge whether present node is last node of message queue, if not judging further then whether current thread ident value and message parameter mate with the value of present node, whether the message queue of present node is empty, if the coupling and be the sky, then the call back function that the value of first message of the messaging list of present node is passed to present node, and return the type of this message, otherwise carry out next node, if present node is last node of message queue, then return error code and end.
Need send or incident when taking place as data, the module that sends message has dual mode to send message to the message management module: send to the receiver module in the specific thread 1.; 2. be broadcast to the receiver module of all threads.
The point-to-point transmission process chart that Fig. 4 sends for message, the message that sends to particular thread according to message except that carrying type of message and message code, also include the information of subject thread, after the message management module obtains this message, this message is distributed to given thread.Its concrete steps are: judge whether present node is last node of message queue, if not judging further then whether whether input parameter thread identification value and message parameter surpass restriction with the value coupling of present node, the message count of present node, if coupling and surpass restriction then the message parameter of input is added in the message queue of present node, return and send successful information and end, otherwise carry out next node, if present node is last node of message queue, then return error code and end.Therefore, have only this thread can receive this message, other threads can not obtain this message.So both guarantee the efficient that message is transmitted, guaranteed security of system again.
Broadcast is meant this incident and sends data issues all modules of system, and the module in any thread need be used all registrable this message of this message and obtain the message of the type and code.
Fig. 5 sends process chart for information broadcast.Broadcast transmission comprises the steps: to judge whether present node is last node of message queue, if not judging further then whether whether the input message parameter surpass restriction with the value coupling of present node, the message count of present node, if coupling and surpass restriction then the message parameter of input is added in the message queue of present node, otherwise carry out next node, if present node is last node of message queue then finishes.This makes some message send a plurality of modules in back all can get access to this message when need use this message in the message management module, also be broadcast to receiver module for this event information that once sends a plurality of receptions in mode the most efficiently.
Then, receiver module is inquired about registered message queue, as formation message is arranged, and then takes out message according to first in first out, calls call back function and handles this message, handles back this message of deletion from formation.
Message Processing is divided into two parts: one is the distribution processor that the message management module is carried out according to different modes and different priorities message; Another is to the information that the message transmission the comes processing of classifying, and after being used to complete this message is deleted from the formation of message management module.
It mainly is the high first allocation process of carrying out of priority to be realized the operation of the total message of system is guaranteed by the point-to-point transmission of thread, point-to-area broadcasting with according to priority by message that message unifies that processing module handles message unified.This message mechanism adopts the processing of message data is carried out at receiving thread respectively, to guarantee the efficient of message management module to message response, can not cause overstocking of message.The Message Processing of second portion is exactly that finger is received the processing procedure of the interface of module invokes message processing module to message.Message is unified processing module according to the formation of current thread ident value search message, search the node of coupling after, first message of the messaging list that this node comprised is passed to call back function handles.
At last, judge whether message queue is empty, not empty parsing, distribution and the processing messages of then continuing, otherwise finish.
Unify in the processing method in digital television receiver middleware message of the present invention, between middleware layer or intermodule adopt unified message passing mechanism, each layer or inside modules can have the message event mechanism of oneself, also can utilize this total message mechanism to realize inner message transmission.
Digital television receiver middleware message of the present invention is unified processing method, mainly is responsible for the message transmission and the event response of following several levels: 1. message transmission between application layer and middleware layer; 2. message transmission between the middleware module inside; 3. message transmission between bottom layer driving and the middleware layer.The present invention has the entire system allotment and the coordination ability, different according to the real-time of message and priority, and message processing module carries out Coordination Treatment to all message of system, has guaranteed the stable of system, has improved the overall operation efficiency of system.
It should be noted last that: above embodiment is the unrestricted technical scheme of the present invention in order to explanation only, although the present invention is had been described in detail with reference to the foregoing description, those of ordinary skill in the art is to be understood that: still can make amendment or be equal to replacement the present invention, for any modification or partial replacement that does not break away from the spirit and scope of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1. a digital television receiver middleware message is unified processing method, and described middleware comprises incident generation module, receiver module, message unified management module, it is characterized in that: comprise the steps:
A. incident generation module identifies the message that incident takes place;
B. incident generation module message that will send and the message identifier packing corresponding with it, and the message of packing sent to message unified management module;
C. receiver module is unified the formation of processing module when registration solicitation message to message, and message is unified processing module and resolved according to message identifier, determines its priority, and according to priority message is distributed in the different message queues;
D. receiver module is inquired about registered message queue, as formation message is arranged, and then takes out message according to first in first out, calls call back function and handles this message, handles back this message of deletion from formation;
E. judge whether message queue is empty, not empty continuation execution in step d, otherwise finish.
2. digital television receiver middleware message according to claim 1 is unified processing method, and it is characterized in that: the message identifier among the described step a comprises identification message type and message code, and type is represented informed source, the feature of coded representation message.
3. digital television receiver middleware message according to claim 1 is unified processing method, it is characterized in that: the message with packing among the described step b sends to message and unifies processing module employing first in first out message queue.
4. digital television receiver middleware message according to claim 1 is unified processing method, and it is characterized in that: the parsing among the described step c specifically comprises the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether current thread ident value and message parameter are empty with the value coupling of present node, the messaging list of present node;
If coupling and be sky then the value of first message of the messaging list of present node is passed to the message queue of present node, and is returned the type of this message, otherwise is carried out next node;
If present node is last node of message queue, then return error code and end.
5. digital television receiver middleware message according to claim 1 is unified processing method, it is characterized in that: the different message queue that message is distributed among the described step c is meant the point-to-point transmission of message by thread, specifically may further comprise the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether input parameter thread identification value and message identifier surpass restriction with the value coupling of present node, the message count of present node;
If the message of mating and surpassing restriction then the message parameter of input is added to present node in the row, is returned the transmission successful information and is finished, otherwise carries out next node;
If present node is last node of message queue, then return error code and end.
6. digital television receiver middleware message according to claim 5 is unified processing method, it is characterized in that: described message also includes the information of subject thread by the message of the point-to-point transmission of thread, after message is unified processing module and obtained this message, this message is distributed to given thread.
7. digital television receiver middleware message according to claim 1 is unified processing method, it is characterized in that: the different message queue that message is distributed among the described step c is meant the point-to-area broadcast transmission of message by thread, specifically may further comprise the steps:
Judge whether present node is last node of message queue, if not judging further then whether whether the input message parameter surpass restriction with the value coupling of present node, the message count of present node;
If coupling and surpass restriction then the message parameter of input is added in the message queue of present node, otherwise carry out next node;
If present node is last node of message queue then finishes.
CNA2003101103435A 2003-12-29 2003-12-29 A method for uniform processing of digital television receiver middleware messages Pending CN1635781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2003101103435A CN1635781A (en) 2003-12-29 2003-12-29 A method for uniform processing of digital television receiver middleware messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2003101103435A CN1635781A (en) 2003-12-29 2003-12-29 A method for uniform processing of digital television receiver middleware messages

Publications (1)

Publication Number Publication Date
CN1635781A true CN1635781A (en) 2005-07-06

Family

ID=34843203

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2003101103435A Pending CN1635781A (en) 2003-12-29 2003-12-29 A method for uniform processing of digital television receiver middleware messages

Country Status (1)

Country Link
CN (1) CN1635781A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832591B (en) * 2005-03-07 2010-05-26 Lg电子株式会社 Method for transmitting messages in mobile communications system and mobile communications terminal
CN101853348A (en) * 2010-05-17 2010-10-06 清华大学 Method and system for enhancing human-computer interaction security
CN101527644B (en) * 2009-04-17 2011-07-20 腾讯科技(深圳)有限公司 Method for sending notification message and device thereof
CN102402457A (en) * 2010-09-17 2012-04-04 希姆通信息技术(上海)有限公司 Method for processing mobile phone application program alterative events
CN101651631B (en) * 2008-08-12 2013-01-30 新奥特(北京)视频技术有限公司 Method for message access in system integration of global station network of television station
CN102970762A (en) * 2012-05-11 2013-03-13 深圳市创想网络系统有限公司 Processing method for scheduling in wireless network by combining tokens on basis of time slice rotation
CN101567873B (en) * 2008-04-25 2013-05-15 锐迪科微电子(上海)有限公司 Multitask Parallel processing method and multitask parallel processing system
CN103188140A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Service request processing system
CN101211275B (en) * 2007-12-25 2013-09-18 康佳集团股份有限公司 Message pumping method and system
CN103455332A (en) * 2013-08-28 2013-12-18 四川长虹电器股份有限公司 Method for implementing smart television middleware
CN104506948A (en) * 2014-12-25 2015-04-08 深圳市九洲电器有限公司 Message passing method and message passing system between middleware and user interfaces
CN104618432A (en) * 2014-12-30 2015-05-13 北京红马传媒文化发展有限公司 Event sending and receiving handling method and system
CN104753769A (en) * 2015-03-24 2015-07-01 新余兴邦信息产业有限公司 Method and device for issuing messages by message queue
CN103188140B (en) * 2011-12-31 2016-12-14 国民技术股份有限公司 A kind of service request processing system
CN108089932A (en) * 2017-12-06 2018-05-29 深圳进化动力数码科技有限公司 A kind of method, system and the camera of action event processing
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment
CN112099975A (en) * 2020-09-25 2020-12-18 Oppo广东移动通信有限公司 Message processing method and system, and storage medium
CN112328407A (en) * 2020-10-20 2021-02-05 北京空间飞行器总体设计部 Message transmission system suitable for coordination of development and management tasks of spacecraft

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832591B (en) * 2005-03-07 2010-05-26 Lg电子株式会社 Method for transmitting messages in mobile communications system and mobile communications terminal
CN101211275B (en) * 2007-12-25 2013-09-18 康佳集团股份有限公司 Message pumping method and system
CN101567873B (en) * 2008-04-25 2013-05-15 锐迪科微电子(上海)有限公司 Multitask Parallel processing method and multitask parallel processing system
CN101651631B (en) * 2008-08-12 2013-01-30 新奥特(北京)视频技术有限公司 Method for message access in system integration of global station network of television station
CN101527644B (en) * 2009-04-17 2011-07-20 腾讯科技(深圳)有限公司 Method for sending notification message and device thereof
CN101853348A (en) * 2010-05-17 2010-10-06 清华大学 Method and system for enhancing human-computer interaction security
CN101853348B (en) * 2010-05-17 2012-05-23 清华大学 Method and system for enhancing human-computer interaction security
CN102402457A (en) * 2010-09-17 2012-04-04 希姆通信息技术(上海)有限公司 Method for processing mobile phone application program alterative events
CN103188140B (en) * 2011-12-31 2016-12-14 国民技术股份有限公司 A kind of service request processing system
CN103188140A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Service request processing system
CN102970762A (en) * 2012-05-11 2013-03-13 深圳市创想网络系统有限公司 Processing method for scheduling in wireless network by combining tokens on basis of time slice rotation
CN103455332A (en) * 2013-08-28 2013-12-18 四川长虹电器股份有限公司 Method for implementing smart television middleware
CN103455332B (en) * 2013-08-28 2016-12-28 四川长虹电器股份有限公司 The implementation method of smart television middleware
CN104506948A (en) * 2014-12-25 2015-04-08 深圳市九洲电器有限公司 Message passing method and message passing system between middleware and user interfaces
CN104618432A (en) * 2014-12-30 2015-05-13 北京红马传媒文化发展有限公司 Event sending and receiving handling method and system
CN104753769A (en) * 2015-03-24 2015-07-01 新余兴邦信息产业有限公司 Method and device for issuing messages by message queue
CN108089932A (en) * 2017-12-06 2018-05-29 深圳进化动力数码科技有限公司 A kind of method, system and the camera of action event processing
CN108089932B (en) * 2017-12-06 2020-12-18 深圳进化动力数码科技有限公司 Method and system for processing operation event and camera
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment
CN108509184B (en) * 2018-03-28 2021-11-09 武汉斗鱼网络科技有限公司 Message distribution method, computer-readable storage medium and electronic device
CN112099975A (en) * 2020-09-25 2020-12-18 Oppo广东移动通信有限公司 Message processing method and system, and storage medium
CN112099975B (en) * 2020-09-25 2024-03-26 Oppo广东移动通信有限公司 Message processing method and system and storage medium
CN112328407A (en) * 2020-10-20 2021-02-05 北京空间飞行器总体设计部 Message transmission system suitable for coordination of development and management tasks of spacecraft

Similar Documents

Publication Publication Date Title
CN1635781A (en) A method for uniform processing of digital television receiver middleware messages
US8510410B2 (en) Method and device for access to a directory
CN1306430C (en) User self-defining event mechanism based on structure
CN1904885A (en) Database adapter
CN1225768A (en) Method and apparatus for processing data from multiple sources
CN101039212A (en) Fast data storage method
CN1933462A (en) A mobile middleware and a method for processing business logic using it
CN1182687C (en) Large capacity call centre system
CN101656622A (en) Alarm management system and alarm management method
CN1917669A (en) Control method for mobile station to remote killing/reviving operation in CDMA digital group system
CN1434942A (en) Abstract device driver model for the portability of device drivers across different operating system platforms
CN1314757A (en) Method for processing jam state of user part of news transmission part
CN1881895A (en) Apparatus operation method in network management system
CN1300979C (en) Fully dynamic distributed network service management system and service method thereof
CN1933619A (en) Short message group sending method and short message center
CN1955990A (en) Flow executing method and system of integral telecommunication platform
CN1705306A (en) A protocol automatic adapting method and apparatus
CN1518388A (en) Method and system for processing case of soft exchange open system
CN1317868C (en) Communication message treatment equipment based on class template like management apparatus and method
CN1411217A (en) Method of raising IP message forwarding speed utilizing slow storage technology
CN1866960A (en) Method for confirming mapping relation between cross-domain service domain interior domains
CN101031092A (en) Method for processing speech message and message processor
CN1773960A (en) Device for use in a communication network router to select routing information
CN1280750C (en) Transmission unit management system and method base-on CORBA
CN1764202A (en) Interlaminar signaling harmonizing system and method for realizing dynamic bandwidth adjustment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
C20 Patent right or utility model deemed to be abandoned or is abandoned