Accompany with the development of economy and industrialization, the pollution of environment became outstanding. As the measurement of pollution, foundation of environmental decision and management, as well as the component of environmental enforcing law, environmental monitoring plays an important role in environmental protect.Nowadays the pollution monitoring system has to meet the needs of public services and professional research requirements. To solve these problems, this article proposed a mixed mode monitoring system in pollution sources on a low-budget 32 bit embedded server which is based on the AT91SAM7X series microprocessor. The system used an embedded web server based on B/S mode to provide services for the public services, which can produce a friendly system without any addition client software. At the same time, the system provided a monitoring and management server that based on C/S mode to communication with the client software, to complete various complex professional monitoring research works.The study focused on how to use embedded server to design and implement an auto monitoring system in the wide-area pollution sources. We adopted hierarchical thoughts to design the system framework, and transplanted an operation system, a file system and a network protocol stack for it. To improve system's scalability, control software were used to complete all related work of monitoring process. Finite state machine and the service thread pool technology were used to implement the HTTP protocol, to build up an efficient Web server. We used variety of strategies with Ajax technology and the symbol table to optimize its response performance. And by combining the TCP protocol and Ethernet frame, the system provided a management server, a monitoring server and a transparent communications gateway to work with the special client software, to complete a full range of monitoring.The test on function and performance shows that the system's function is complete and its stability, real-time and convenience are well in line with the requirements of pollution monitoring. What's more, it has high reference value for the development of similar systems. |