RS-485 based intelligent community alarm system is incapability in some aspects including flexibility, integrity and long distance controllability. Besides, such systems can be heavily disturbed and give a number of incorrect reports. As a result, the development and spreading of such systems has been limited heavily by these characteristics described before. Therefore, it' s necessary to develop an IP based alarm system to take advantage of its many good characteristics, such as generic cabling, multi-protocols compatibility, and digitalization, network and intelligence. Now, as the IP network technology developing quickly and the network facilities getting improved, it' s feasible and benefit of assuring the safety of intelligent community by using the community Ethernet.A community alarm system based on the intelligent community Ethernet is designed and implemented in this dissertation, in which the Embedded Internet accessing technology, database and network programming technology is applied. This dissertation consists of the following content.After analyzing the functionality requirements of community alarm system, the system architecture and composition is introduced. After comparing TCP and UDP, TCP is selected to transport the alarm data to guarantee the reliability of system. Furthermore, in order to implement the alarm functionality of system, the communication protocol for communicating between the underlying controlleres and upper management center is designed. After comparing and analyzing the current embedded Internet accessing technologies, an alarm controller based on the network microcontroller DS80C400 is developed, which can provide the security guarding and urgent assisting functionality as well as the HTTP service. The implementation of several modules are described, such as the detector status collecting and processing module, network communication module and HTTP service module, etc.,and some technology involved are also described including the network programming, multithreading, Web Service technology. After the introduction of B/S and C/S architecture, the architecture of the upper alarm information management software with the core of alarm information database is proposed. And, the functionality and implementation of every module of this software is further explained with more details. In addition, the network and database programming technology with Visual C++ is also introduced. Finally, the network security of this system is discussed, and security architecture based on the firewall and data encryption technology for this alarm system is proposed. |