With more and more investment in the sewage treatment plant,the manuallycontrol of the sewage treatment not only consumes huge human but also causes thelow accuracy of the result.So to design the monitoring system base on WSN tosolve the poor efficiency of the manually control is very necessary.The controller ofthe sewage treatment who uses the monitoring system of WSN can improve theefficiency and at the same time reduce the risk of operation.The monitoring system of WSN includes the host computer and several circuitboards.The circuit boards which locate in the scene of the sewage treatment plantcarry lots of sensor and actuator to collect the data of the sewage process, at thesame time the actuator can excute the command where the host computer sends.Thehost computer which locates in the central control room of the plant to send controlcommands to all circuit boards.This research is against the software of the hostcomputer.Firstly, the software uses the Three-tier C/S architecture which includesclient,server and database. Three-tier C/S architecture has many advantages,forexample easy to maintain and simplify and so on.In the design of the client,throughthe development of the industrial control library to assemable the each interface.The Developer uses Decorator Pattern to slove the problem of class explosion in theindustrial control library. In the design of the server,the developer slove twoproblem.The one is how to communicate between client and server,with ApacheMINA frame the developer can put more effort in dealing with the business of theproject instead of noting complex communication process.The other is how to dealwith how to use an object-oriented language to access relational databases.Thedeveloper uses Hibernate middleware technology which support HQL statement canperfect solute the problem of access.At last,the developer design an fuzzy controlalgorithm to control the biological oxygen in the biological filter. The simulationresults through MATLAB which shows the better control effect through twenty-onefuzzy control rules.The whole system uses Apache MINA frame and Hibernate middlewaretechnology greatly enhanced the server-side processing capacity. At the same time,the design pattern which includes the singleton pattern and decorator pattern are used throughout the client and server making whole system more efficiency.Fuzzycontrol algorithm applies to the unknow math model object.Moreover the controleffect is more accurate than the classic PID controller. |