| With the rapid development of digital television technology, the characteristics of digital TV STB(set-top-box) has toward multi-functional change from the original simple digital TV receiving signal. The USB has many advantages such as small volume, flexible, low cost and so on. So it is the inevitable choice of new generation of STB. Because of the USB multimedia automatic playing system's design and implementation, the function of set-top box can be greatly expanded, and the digital television's interactive entertainment can be enhanced.The purpose of this dissertation is to design and develop the set-top box USB multimedia automatic playing system. So the users can download multimedia files to the USB device from the compter, and then plug the USB device to the set-top-box. After that, they can play the multimedia files and watch them on TV.This dissertation is based on STi7109 high definition set-top box project, which uses ST's STi7109 as the main chip, and STLinux embedded real time operating system as the software development platform. Based on the hardware and software platform, this dissertation makes needs analysis and framework design. The framework design uses layers, including the hardware layer, the software system layer, the basic module layer, and the application layer.The hardware layer and software system layer are introduced and built. For the basic module layer, USB communication and detection module, graphic display module, the text display module, and the video play module in STLinux operating system are analyzed and realized. The related driver, API and implementation methods are studied. For the application layer, the user interface and the player and the main part of the application are designed and implemented. This dissertation doesn't use the usual methods which draw OSD interface, but uses GTK+ graphics library for the user interface design, and uses mplayer as the player engine. Based on the ultimate Linux-based system interface and GTK+ graphical library interface, this dissertation achieves the purpose of a USB multimedia automatic playing system. Functions as automatic detection of U disk, displaying the file list, selecting the U disk multimedia file and playing it are accomplished. |