In recent years smart home has become the development direction of home.It uses advanced computer technology,network communication technology,automation technology,works with home life of the organic seed systems combined,through co-ordinate the management,so that home life more comfortable,safe and effective.Smart home's terminal is the core of the smart home system.Through the terminal,the system completes information collection,information input,logic processing,information output,automatic control,etcCurrently a lot of smart home's terminals are constructed by 8-bit MCU,.There are many shortcomings,such as speed slow,little connecting resources etc.In order to meet the development trend of smart home,this thesis puts forward S3C2410A chip with the Embedded RTOS(μC/OS-Ⅱ) in the system.It overcomes the lack of the 8 bit CPU system.It not only can be in keeping with current the design request of the system function,ensuring system reliability and stability,but also can lay technique foundation for the system further development.This thesis designs a kind of smart terminal that adoptsμC/OS-Ⅱas the software develop plat.The ARM9 chip is adopted as CPU.The smart terminal includes 10 M/100 M Ethernet connect,PSTN connect,RS-485 connect,15 defence road,etc. According to the design,the family's smart terminal system can carry out the family defence,the synchronous action,the distant surveillance and control by telephone or Internet,the family amusement,the information service etc.First this article introduces the composition,functions and design principles of the smart home's terminal and compares the core characteristics and development trends of RTOS.This text proposes to use ARM9 chip-S3C2410A as the control core that is cost-effective,low-power,high-performance.And then,this text designs the expansion of the smart terminal's hardware.The smart home system of this article should have real-time,multi-tasking,high reliability,etc.But traditional operating system can no longer meet the requirements of the current system.This thesis puts forward to use embedded real-time operating system(μC/OS-Ⅱ) that is good stability and high reliability.By introducing the characteristics and the core structure ofμC/OS-Ⅱ,combined with transplantation conditions ofμC/OS-Ⅱ,finally,μC/OS-Ⅱis transplanted to S3C2410A that is the smart terminal's CPU,as the software develop plat.Based on the hardware designing of the smart home's terminal,various application programs are designed in the software develop plat ofμC/OS-Ⅱ.Among them,the main work is:breaking the restriction of the IPv4 address.That is,The system uses more complete Embedded IP stack ZLG/IP,reforms the Embedded TCP/IP stack and add IPv6 as a optional item in ZLG/IP stack.It provides technical support in IPv6 networks.In the early,the system's exterior bus is achieved mainly by PSTN.Because of bandwidth limitations and higher costs of phone network,smart home's system can not be used universally and effectively.In order to solve this problem,the system of this text uses the family exterior bus that includes the Ethernet and PSTN.Comparing only way PSTN,it not only can ensure the system real time,but also can lower using cost. |