The realization on embedded digital TV platform of a kind of GINGA digital TV middleware
Method
Technical field
The present invention relates to digital TV middleware field, particularly GINGA digital TV middleware is put down at multiple digital television
Implementation method on platform.
Background technology
Middleware is a kind of software running platform application program and the operating system of bottom, hardware details kept apart, and it leads to
Often being made up of virtual machine etc., the effect of middleware is that the general utility functions making Set Top Box basic carries with the form of application structure API
Supply Set Top Box manufacturer, to realize the standardization of digital television interactive function.
At present, there is three big main flow digital TV middleware standards: MHP, the DASE of the U.S. in Europe in the world, Japan
ARIB, and that these standards are done in terms of interactive mode is outstanding, the key component of MHP and DASE is based on JAVA skill
Art, motility and adaptability are inadequate, and the numerous and diverse redundancy of structure, ARIB is based primarily upon BML technology, embeds javascript
Expand interactive application.
GINGA digital TV middleware is the digital TV middleware standard that the multiple countries in South America area combine formulation, is used for
The content of multimedia that offer can be mutual with user in digital television broadcasting, promotes user and watches the experience of DTV.GINGA
The hardware details of digital TV middleware is abstract different digital TV hardware platform, applies for GINGA digital TV middleware
Program developer provides unified DLL so that the application program meeting GINGA digital TV middleware standard is permissible
Operate on different DTV hardware platforms.
The Reference Design of GINGA digital TV middleware be by Telemidia and LAViD laboratory (Brazilian standard) or
LIFIA laboratory (Argentina's standard) the open source code provided under GPL authorizes.Other developer can be according to this standard source
The GINGA digital TV middleware implementation of code development oneself.This method is a kind of GINGA digital TV middleware
Implementation method.
The Reference Design of GINGA digital TV middleware is based on PC (PC) platform development, and actually used number
Word TV and DTV STB major part are to be realized by various embedded digital TV hardware platforms, its hardware configuration and PC
Very different.Therefore the Reference Design of GINGA digital TV middleware is generally not capable of on embedded digital TV hardware platform
Direct compilation uses, it is necessary to it is modified the development environment of the adaptive embedded digital TV hardware platform of ability, will
GINGA digital TV middleware is transplanted on embedded digital TV platform and compiles by and runs.
Traditional implantation method is to find out all parts relevant with hardware in Reference Design, and rewrites these parts so that ginseng
Examining design can complete and hardware platform compatibility.Digital TV Receiving field of software development have accumulated a large amount of through life-time service,
It is verified as effective and stable software and software library, and the Reference Design of GINGA digital TV middleware is on stream
Neutral for realizing for equipment, do not use the software library of any DTV hardware platform supplier.Although so achieving
Equipment is neutral, but also creates huge to GINGA digital TV middleware is transplanted to any available DTV hardware platform
Big obstacle, finds and revises the source code of hardware relevant portion in all Reference Design and relate to huge workload so that meet
DTV and the DTV STB construction cycle of GINGA digital TV middleware standard are elongated, need to take a large amount of manpower
And code maintenance pressure is relatively big, it is unfavorable for product fast shaping and stablizes.
Summary of the invention
In view of this, a kind of relatively simple GINGA digital TV middleware flexibly of offer is provided
Implementation, be different from the cross-platform implantation method of traditional digital TV middleware need to find all with hardware the generation about part
Code also revises these codes to adapt to new hardware.This method is conceived to the fewest amendment GINGA digital TV middleware reference
Design source code, and the software library of mature and reliable on existing DTV hardware platform must be applied as far as possible, with interprocess communication
Mode be that GINGA digital TV middleware takes out one on DTV hardware platform and is similar to PC platform as far as possible
Software runtime environment, in order to GINGA digital TV middleware can Rapid transplant on existing DTV hardware platform, carry
The development rate of high-tech product, reduces maintenance cost.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of GINGA digital TV middleware implementation method on embedded digital TV platform, it is characterised in that the method bag
Include:
Step one: amendment GINGA digital TV middleware, deletes wherein relevant to digital TV platform hardware controls part;
Step 2: message and the message format thereof of a set of interprocess communication are set according to the actual application of digital TV platform;
Step 3: use a message center to forward control message between process;
Step 4: be sent to GINGA digital TV middleware after being changed by the original key set code of digital television remote controller;
Step 5: resolved from digital television signal code stream by basic Digital TV Receiving software and read corresponding data and be transmitted to GINGA
Digital TV middleware.
Further, described GINGA digital TV middleware can directly operate the process of hardware also by sending messages to other
Call this process function to realize operation to operate hardware.
Further, described GINGA digital TV middleware uses Brazilian standard Telemidia and LAViD, or Argentina
The GINGA canonical reference design source code that standard LIFIA provides recompilates on target platform;Wherein to Reference Design source
The amendment of code is only limitted to pass through for enabling Reference Design to compile on target hardware platform.
Further, described step 2 arranges the message of a set of interprocess communication according to the actual application of digital TV platform and disappears
Breath form, particularly as follows: arrange a set of for logical between GINGA digital TV middleware and other Digital TV Receiving unit process
Message needed for letter and form thereof, described message and form thereof are used for GINGA digital TV middleware and other DTV
Receive and transmit mutually control command, data and call operation between unit process.
Further, described message center is a process, in all described GINGA digital TV middleware Reference Design not
The operation that can be done directly, controls message by sending to this message center, and is transmitted to other by described message center and can complete
The process of required function, and then call the operation of other process described to complete required function.
Further, step 4 particularly as follows: employ an independent process simulation Linux IR remote controller equipment LIRCD,
From basic Digital TV Receiving software receipt original remote control button key, and convert thereof into GINGA digital TV middleware
Acceptable standard LIRCD form, relays to GINGA digital TV middleware.
Further, step 5 is specifically, the interprocess communication of the standard of use names pipeline FIFO, by basic Digital TV Receiving
Software sends the number needed for the application program run on other GINGA digital TV middleware to GINGA digital TV middleware
According to;Digital TV tuner DTV Tuner and demodulator is directly controlled not by GINGA digital TV middleware
Demodulator obtains desired data in Transport Stream from digital television signal transmission stream.
Further, described GINGA digital TV middleware can be connect by basic DTV as an independent process
Receive software transfer.
Further, described GINGA digital TV middleware can be by basic Digital TV Receiving as an independent process
Software transfer, and run with basic Digital TV Receiving software simultaneously.
Further, television receiver unit therein, can be realized by software completely.
Use method of the present invention, by being continuing with the mature and reliable provided by embedded digital TV platform supplier
Software library, and in the way of interprocess communication, take out the software runtime environment being similar to personal computer platform so that
GINGA digital TV middleware with on Rapid transplant to most of embedded digital TV hardware platforms, and can need not mark
Quasi-Reference Design makes a large amount of amendment.The method can very big must accelerate use GINGA digital TV middleware DTV with
And the development rate of DTV STB, increase code stability and reduce maintenance cost, being conducive to for different target market
Product fast custom.
Accompanying drawing explanation
Fig. 1 is that the method using the present invention to describe realizes GINGA digital TV middleware on embedded digital TV platform
Method flow diagram;
Fig. 2 is the digital TV receiving system software of the support GINGA digital TV middleware that the method using the present invention to describe realizes
Organization Chart;
Fig. 3 is an example of the inter-process communication message form defined in the present invention.
Detailed description of the invention
The basic thought of the present invention is: use the software library of the mature and reliable provided by embedded digital TV platform supplier,
By the way of interprocess communication, simulate the software runtime environment being similar to personal computer platform, make GINGA DTV
Middleware need not immediate operand word TV platform hardware, such that it is able to accomplish unrelated with DTV hardware platform, it is not necessary to do
A large amount of amendments just again can compile on target platform by and run.
Use the GINGA digital TV middleware of the present invention implementation method on embedded digital TV platform,
Development process needs following work: amendment GINGA canonical reference design makes it unrelated with digital TV platform hardware,
Communicate between the concrete condition design process according to DTV hardware platform required message and form thereof, designs and realizes one and disappear
Breath central program, designs and realizes a LIRCD simulator, and amendment GINGA canonical reference design can be by sending
The operation that other digital television function module of message call provides, establishment name pipeline is used for will from basic Digital TV Receiving software
Run data necessary to GINGA application program and be injected into GINGA digital TV middleware, create a task manager and use
In starting GINGA digital TV middleware;Wherein,
Amendment GINGA canonical reference design makes it unrelated with digital TV platform hardware, the GINGA Reference Design source unrelated with hardware
Code just can compile in any digital TV platform development environment being provided that standard Linux running environment and pass through.
Communicate between the concrete condition design process according to DTV hardware platform required message and form thereof, makes DTV
Each software function module on platform can design and realize a message center with the unified mutual call operation of interface, making
Obtain GINGA digital TV middleware to have only to directly communicate with message center, contribute to unified GINGA digital TV middleware
Interprocess communication interface, it is to avoid need GINGA digital TV middleware is made a large amount of amendment when increasing and decreasing other functional module.
Design and realize a LIRCD simulator, making GINGA digital TV middleware can receive various by unified mode
The remote controller key code in different agreement and source.
Amendment GINGA canonical reference design can be by sending what other digital television function module of message call provided
Operation, such as, call media player, changes screen resolution, adjusts volume etc..
Create name pipeline for data note necessary to GINGA application program will be run from basic Digital TV Receiving software
Enter to GINGA digital TV middleware, make GINGA digital TV middleware to conciliate by immediate operand word TV tuner
Adjust device, from the source code without amendment GINGA digital TV middleware with compatible different digital TV tuner and demodulator
The different operating interface that supplier provides.
Create a task manager to be used for starting GINGA digital TV middleware so that GINGA digital TV middleware
Can be started with different parameters by basic Digital TV Receiving software when needed as a single process, with the suitableeest
Answer different running environment.
The method realizing GINGA digital TV middleware on embedded digital TV platform that the present invention provides, such as Fig. 1
Shown in, comprise the following steps:
Step 101: amendment GINGA digital TV middleware, deletes wherein relevant to hardware controls part;
In this step, it is to develop in personal computer platform owing to the canonical reference of GINGA digital TV middleware designs, quotes
Xine, the less software library that can provide on embedded digital TV hardware platform such as FFMpeg, ALSA provides media to broadcast
Put with volume control etc. need operate multi-media processing hardware function.Make GINGA DTV intermediate standard Reference Design very
Difficulty is grafted directly on DTV hardware platform.This method is directly deleted in canonical reference design most of only individual to these
The application of software library used on computer platform, only stay its AVPlayer object as multimedia operations interface, with can
Most of DTV hardware platforms compile and passes through.
Step 102: make GINGA digital TV middleware compile on target platform and pass through;
In this step, owing to GINGA digital TV middleware canonical reference design source code is through the process of step 101, the most remaining
Platform independent software storehouse is called, it is possible to directly compile on most of embedded digital TV hardware platforms and pass through.The most right
Calling it is generally required to process especially of DirectFB and Xerces-C software library, but DirectFB is most of embedded digital TVs
The drawing engine that platform supplier can provide, and Xerces-C is the unrelated open source code of platform that GPL authorizes, Ke Yitong
Cross and obtain compiling acquisition voluntarily.
Step 103: according to communication information and form thereof between the concrete condition design process of DTV hardware platform;
In this step, the message of design definition and message format is needed to include but not limited to: funcall message, press key message, task
Message, control message.Wherein funcall message includes but not limited to: media play starts, stops, suspending, playlist
Set, volume controls, media information obtains, video window is arranged.Press key message includes but not limited to: sends key set code, obtain
Take key set code.Task message includes but not limited to: begin a task with, suspended task, stopping task.Control message includes but does not limits
In: response message.Message format can be arranged flexibly with the concrete condition of embedded digital TV platform, both can be binary system lattice
Formula can also be human-readable text formatting, but all has the general structure represented such as Fig. 3, includes but not limited to: one solid
The message synchronization identification field of measured length and content, a regular length but the indefinite message type field of content, a regular length but
The indefinite number of parameters territory of the indefinite message name territory of content, regular length content, indefinite disappearing of regular length content
Breath length field and multiple by the parameter field of number of parameters territory specified quantity.The most each parameter field is generally of following structure: one
Parameter length territory that the indefinite parameter type territory of individual regular length content, regular length content are indefinite and length are by same
The Parameters data field that the parameter length territory of parameter field is specified.
Step 104: design and realize a message center;
In this step, it is possible to use multiple method design message center, include but not limited to: use D-Bus pattern or designed, designed class
As pattern.
Step 105: design domain realizes a LIRCD simulator;
In this step, the design of LIRCD simulator is referred to Linux infrared remote controller finger daemon
(Linux Infrared Remote Controller Daemon) source code, this source code provides under GPL authorizes.But such as Fig. 2 institute
Show, LIRCD simulator directly from the IR remote controller original key of receptor hardware acceptance, but from message center receive by
The original key set code message that basic Digital TV Receiving software sends, and it is converted into LIRCD form by GINGA numeral electricity
Read from local socket depending on middleware.
Step 106: add message for GINGA digital TV middleware and other correlated digital TV software functional module and send out
Send and receiving interface;
In this step, the GINGA digital TV middleware standard source code processed through step 101 adds step 103 and defines
Message interface.Include but not limited to add the source code to message center sending function message call in AVPlayer object,
And interpolation processes the source code of this type of message in basic Digital TV Receiving software.
Step 107: create name pipeline FIFO and enable the functional module of control digital TV front-end by GINGA application journey
Data stream needed for sort run is injected into GINGA digital TV middleware;
In this step, the data being injected into GINGA digital TV middleware by FIFO are needed to include but not limited to: description of data stream
Symbol (Stream Descriptor), event descriptor (Event Descriptor) and DSMCC data.
Step 108: design and realize a task manager and start GINGA digital TV middleware for when needed;
In this step, task manager needs have the ability starting other process under task message control with different command line parameter,
Include but not limited to start GINGA digital TV middleware process.
The DTV of the support GINGA digital TV middleware that the method illustrated with the present invention realizes or digital television top
Box will have like the software architecture described in Fig. 2.
The above, the only preferable embodiment of the present invention, be not intended to limit protection scope of the present invention, all
Any amendment, equivalent and the improvement etc. made within the spirit and principles in the present invention, should be included in the present invention protection
Within the scope of.