| With the development of information technology and the living condition increasing, home information becomes an inevitable tendency. Home information define as the following: just a built home network, which connects the all kind of electric apparatus and electronic devices together with different ways, and it makes the digital devices visit to the internet through routing home Network to the outer network properly. Just given an authorization, people can visit and control the apparatus and device at home, and this ways can bring much convenience to people's lives. In the home network, gateway is the kernel to control the communication between different devices, and at same time it can provide a platform for every device inside the network.Recently, the research on home gateway has been prevailing in both inland and oversea for a long time, and there are many mature products in the market. Among so many products, most of them use the file system to manage data of the embedded system, so that it will lead to read FLASH with a high frequency and decrease the life span of FLASH. On the other hand, embedded database has been used in the embedded system more and more. It has come into practicality and product-stage in the embedded markets. It is a tendency to use embedded database to operate and manage data in the embedded system development.This dissertation describes a method how to construct a new home gateway based on embedded database. The embedded database is based on memory, it manage the data more efficient than file system and can avoid to reading FLASH in a high frequency. To accomplish the goal, the paper analyzed the development of embedded database and web Server today, and select the SQLite database and Boa Web Server to fit to the need of this embedded application. The paper resolve the following problems such as SQLite database transplant, application system development on the S3C2410 platform, data sampling function module, communication module, connection between communication module and SQLite embedded database, and connection between Web Server and data operating module etc. The advantages of the system is accomplished an integrity system with the data sampling, operating and maintaining function. It decreases the cost of the embedded system greatly, at the same time the embedded database can provide the real-time data so that the network traffics inside the system become a lower level. |