Digital TV technology are rapidly developing, that leading to digital TV set-top box market gradually expanding, accompanied by a set-top box hardware differences and the diversification of its functions. How to reduce development costs and shorten the development cycle of software development has become the main topic. Therefore middleware is used in digital television set-top box software architecture. In recent years Ginga by Brazil's latest digital TV middleware standards, to other middleware standards are very high compatibility, has the potential to become the next generation of digital television middleware global standards. However, the realization of the Ginga standards have not improved, especially for Ginga-J has not exactly part of the realization of the programme, based on Ginga-J for the design and implementation of middleware becoming imperative.Through the introduction of Ginga architecture, with the Ginga-J API (Application Programming Interface)interface standard, designed and implemented based on the Ginga-J digital set-top box middleware. Middleware is designed into the low level stream module, the elementary stream processing module, the user interface module, the communication module, the management module, the persistence module and the conditional access module. Select the persistence module to achieve a specific, the persistence module through the JNI technology to PTI (Programmable Transport Stream Interface) module package to get the transmission of data packets. The persistence module use object to store data, to provide interface so that the upper application to create access to data at the request of recording data of the serial number. The persistence module also provides a view of navigation, through a series of interfaces to facilitate rapid application of the upper deck to find data. In order to display persistence service information, also achieved a graphical user module in some components, so intuitive for the user to view the result will be displayed.ST7109 chip-based development platform, transplanted the Java Virtual Machine to STLinux on the embedded operating system for comparative testing. Comparative test results showed that the persistence service module will function on the realization of the transport stream packet crawling, analysis, storage and display process. And without the support of similar middleware software of iwed compared to grasp the efficiency of data packets increased 50 percent, the time for the index will be lower by 25 per cent. |