With the development of computer control technology, the growth of electronic information communication technology, and the improvement of people's living standard, it is an irresistible general trend that the Smart Home will be go into home of the common customer.The embedded home gateway plays an important roles in Smart Home, it realizes the conversion between each kind of different communication protocol within the house, as well as data exhange function with the external communication network, besides, the home equipments can be monitored and controled through Internet.Firstly, the paper analyzes the research background of the subject and the status of the Smart Home at present. According to the requirements of the system, the overall structure of embedded home gateway is presented.The hardware platform, which includes the S3C2410 micro-process, power module, clock reset module, ethernet module, USB Bluetooth module, is introduced.The software platform based on embedded Linux is successfully ported to hardware platform;Secondly, the software design of Bluetooth wireless communication, which includes searching Bluetooth devices, advertising and searching Bluetooth service, establishing Bluetooth wireless communication, is completed after mading an intensive study of BlueZ under Linux.The concurrency process of the data is designed by multi-thread programming. A kind of data packet process algorithm based on priority is designed, and it improves the efficiency of monitoring to the home devices;Thirdly, the Embedded Web Server(EWS) is studied, the mode of B/S is used to realize the remote control.The CGI technology is used to realize the interaction between Web server and Web browser, and the protocol conversion between HTTP protocol and Bluetooth protocol is completed;Finally, the home gateway is verified.According to the test result, the embedded home gateway basically realizes the function of remote control.The paper's work is summarized and some suggestion are posed for future research in the last part of this paper. |