Software development for water quality's monitoring centre of wireless sensor network

Similar documents
Design of Remote data acquisition system based on Internet of Things

A Design of Greenhouse Remote Monitoring System Based on WSN and WEB

Design of Environmental Parameters Monitoring System for Watermelon Seedlings Based on Wireless Sensor Networks

Design of WSN-Based Remote Monitoring System for Environmental Parameters in Substation

Journal of Chemical and Pharmaceutical Research, 2014, 6(5): Research Article

A Monitoring and Control System for Aquaculture via Wireless Network and Android Platform

Wireless Sensor Network Based Low Power Embedded System Design For Automated Irrigation System Using MSP430

BROWSER-BASED HOME MONITOR USING ZIGBEE SENSORS

Wireless Sensor Networks Database: Data Management and Implementation

Sensor network infrastructure for intelligent building monitoring and management system

The design and implementation of the environment monitoring system of smart home based on EnOcean technology

Customer Specific Wireless Network Solutions Based on Standard IEEE

DEVELOPMENT OF A WEB-BASED WIRELESS TELEMONITORING SYSTEM FOR AGRO- ENVIRONMENT

Application of Wireless Sensor Network and GSM Technology: A Remote Home Security System

Transmitter Station Remote Monitor System Based on Browser/Server Structure

CDMA-based network video surveillance System Solutions

Open Access Research and Design for Mobile Terminal-Based on Smart Home System

Premium Server Client Software

Design of Fuzzy Drip Irrigation Control System Based on ZigBee Wireless Sensor Network

A REMOTE HOME SECURITY SYSTEM BASED ON WIRELESS SENSOR NETWORK AND GSM TECHNOLOGY

e s p i o n s.com. V680 GPS Watch User s Manual

Online Communication of Critical Parameters in Powerplant Using ZIGBEE

A Study of Low Cost Meteorological Monitoring System Based on Wireless Sensor Networks

Development of cloud computing system based on wireless sensor network protocol and routing

DEVELOPMENT OF VIBRATION REMOTE MONITORING SYSTEM BASED ON WIRELESS SENSOR NETWORK

EFFECTIVE QUERY RETRIEVAL SYSTEM IN MOBILE BUSINESS ENVIRONMENT

NanoMon: An Adaptable Sensor Network Monitoring Software

NETWORK ENABLED EQUIPMENT MONITOR

Demystifying Wireless for Real-World Measurement Applications

Modern Agricultural Digital Management Network Information System of Heilongjiang Reclamation Area Farm

ZIGBEE BASED MINE SAFETY MONITORING SYSTEM WITH GSM

XBee Wireless Sensor Networks for Temperature Monitoring

Water Quality Monitoring System Using Zigbee Based Wireless Sensor Network

STRUCTURAL HEALTH MONITORING AT ROME UNDERGROUND, ROMA, ITALY

F2103 GPRS DTU USER MANUAL

A Routing Algorithm Designed for Wireless Sensor Networks: Balanced Load-Latency Convergecast Tree with Dynamic Modification

Network Management Card. User Manual

Figure 1. The Example of ZigBee AODV Algorithm

Real-time observation monitoring and analysis network

Overview. 1. GPS data tracking via GSM SMS / GPRS. 2. GPS data logging in internal memory. 3. Alarm alert via GSM SMS / Dialing / GPRS

Design of Greenhouse Environment Remote Monitoring System Based on Android Platform

packet retransmitting based on dynamic route table technology, as shown in fig. 2 and 3.

Radiological Assessment Display and Control System

Remote Instant Interactive of Smart Building Home Equipment Based on Dynamic IP

NortechCommander Software Operating Manual MAN R6

TSX ETY 110 Module 8

Memory Database Application in the Processing of Huge Amounts of Data Daqiang Xiao 1, Qi Qian 2, Jianhua Yang 3, Guang Chen 4

A Transport Protocol for Multimedia Wireless Sensor Networks

Cover. White Paper. (nchronos 4.1)

IDD-213T User Manual. (Rev. 1.0) China Aerospace Telecommunications Limited

A Satellite Network Management Architecture based on Mobile Agents and SNMP

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

Kokii BatteryDAQ. BMS Software Manual. Battery Analyzer Battery DAS

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Design of UPS Battery Remote Monitoring System

CRE Monitor Instructions Manual

CHAPTER - 4 CHANNEL ALLOCATION BASED WIMAX TOPOLOGY

Wireless monitoring system for temperature and humidity based on ZigBee

2.0 System Description

Research on Operation Management under the Environment of Cloud Computing Data Center

Implementation of Wireless Gateway for Smart Home

Product Introduction and Setup Examples. RS232 to WIFI Converter

GPS Vehicle and personal location tracker. User manual

OPNET Network Simulator

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Smart Queue Management System Using GSM Technology

Progress Record. Course 21 (V) Associate of Applied Science in Computer Information Technology and Systems Management

Ultimate Server Client Software

SMS GSM Alarm Messenger

The Remote Monitoring System Based on GPRS for the Health State of

The Technology System Framework of the Internet of Things and its Application Research in Agriculture

Network Enabled Battery Health Monitoring System

Remote Area Tracking and Mapping

Investigation on Remote Monitoring System for Heat-Supply Thermal Characters Based GPRS

Monitoring Software using Sun Spots. Corey Andalora February 19, 2008

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Remote Monitoring and Controlling System Based on ZigBee Networks

The Research in Remote and Real-time Monitoring System of Digitized Earthquake Omen Instrument

User Manual (UDTTV01 V 1.6

mysensors mysensors Wireless Sensors and Ethernet Gateway Quick Start Guide Information to Users Inside the Box mysensors Ethernet Gateway Quick Start

Construction of Library Management Information System

Development of a Kind of Mine Staff Management System

High rate and Switched WiFi. WiFi QoS, Security 2G. WiFi a/b/g. PAN LAN Cellular MAN

HomeReACT a Tool for Real-time Indoor Environmental Monitoring

Real Time Water Quality Monitoring System

Chapter 6 Using Network Monitoring Tools

WIRELESS INSTRUMENTATION TECHNOLOGY

Wireless Soil Moisture and Weather Monitoring System Caipos

PITE 3921 Battery Monitoring System User Manual P V1.0

Content of smart wireless sensor network security and its network security policy

The Research on Industrial Information Monitoring System Based on B/S Structure Xuexuan ZHU1, a

TimePictra Release 10.0

Energy Effective Routing Protocol for Maximizing Network Lifetime of WSN

Remote Monitoring in Telecom: A brief Review

The design of an open laboratory information management system based upon a browser/server (B/S) architecture

Application of Android Mobile Platform in Remote Medical Monitoring System

AutoLog ControlMan. Remote Monitoring & Controlling Service

Hytera dispatch system. Transportation Public Safety. Utilities. Commercial & Industrial.

Hytera dispatch system

Cloud Services Supporting Plant Factory Production for the Next Generation of Agricultural Businesses

Transcription:

Software development for water quality's monitoring centre of wireless sensor network Abstract Liang Li Jiangsu Institute of Commerce, Nanjing, Jiangsu, 211168, China Received 12 May, 2014, www.cmnt.lv Water quality's monitoring centre software of wireless sensor network is designed through applying C#.net and SQL base technology. The monitoring and querying of sensor is realized through adopting C/S (Client/Server) pattern. Standard structured query language (SQL) and ADO.NET base access technology are adopted to realize the rapid operation and efficient management on base. Graphical interfaces could display the topology and status of sensor network, as well as the real-time and history parameters collected by each sensor and so on. The practice has proved that this software could satisfy the collection, as well as monitoring and management requirements of wireless sensor network monitoring system. Keywords: wireless sensor network, water quality parameters, base, c#.net 1 Introduction Traditional methods of water quality monitoring mainly contain following 2 points: (1) Record analysis is performed through artificial sampling laboratory or collection is made through adopting portable monitor. (2) Automatic monitoring station of water quality is constructed.the former has low sampling frequency and intense automatic monitoring station; it could not reflect the continuous dynamic changes of water environment. The latter has high investment cost and long construction period. Laying cable and land acquisition for constructing station have influence on the environment of tested waters. In recent years, as the rapid developed technology of wireless sensor network has advantages of flexible configuration, rapid ad-hoc network, low cost and low power consumption etc, they are very suitable for monitoring outdoor environment parameters [1, 3]. Through aiming at the requirement of wireless sensor network s water quality monitoring system, this paper has developed water quality monitoring centre software on the basis of wireless sensor network technology. C#.net and SQL base have developed water quality monitoring centre software, which is linked with wireless sensor network, and realize network status monitoring, storage of water quality parameters measured by each and real-time dynamic display. Meanwhile the alarm level of water quality status is set up according to the anomaly degree of.control strategy is collected in accordance with corresponding parameters,by which to realize the requirements of intelligent sampling and security control. 2 Introduction of wireless sensor network Wireless sensor network [1] (Wireless Sensor Network, WSN) is composed of sensor s in different function and quantity, and it has wireless self-organizing ability. The sensor has wireless communication module, sensor unit, processing unit and power module etc. Each acquisition which is dispersed in examination area of wireless sensor network obtains corresponding environmental monitoring through sensor, such as temperature and humidity, light intensity, and pressure etc. Then corresponding computing process is performed on collected, and these sensors have the ability of communicating information with their neighbour s at the same time [2, 3]. A typical system architecture in wireless sensor network is shown as Figure 1. We could see clearly from figure that it is composed of sensor, PC computer, aggregation, Internet or satellite network and task management. PC clientside PC server Internet Satellite/China mobile communication network(cmnet) GPRS Conv erge Examination area Sensor FIGURE 1 Typical architecture of sensor network system Generally speaking, sensor s have relatively weak ability of processing and storing collected due to its characteristics of structure miniaturization, and F E D C B A Corresponding author e-mail: llliliang_1@163.com 132

communication capability is also restricted by that[4]. Its main function includes (1) taking charge of obtaining the information in physical environment. (2) Routing function. It stores the forwarded by other s, performs integration, management and processing. (3) Accomplishing task with other task collaboratively [5]. Integrating ability of processing, storage and communication is stronger relative to the sensor s; it does not needs the ability of physical environment as sensor. Its responsible task contains (1) connecting with sensor network through wireless approach, the collected sensor would be passed on to external network (PC computer) through wireless network cable or network with high reliable communication quality (PC computer). (2) The detection task of management station equipment (it is generally PC computer) would be sent to sensor s.as the scale and the covering scope of wireless sensor network is not restricted, intensively distributed sensor could be composed of various sensor, and it has characteristics of miniaturization and micromation. The overall network is self-organizing and reliable, and it could be used in unattended, extremely hostile environment due to its advantage of taking the as the core. Wireless sensor network has changed the traditional interactive mode between human and environment. As a kind of comprehensively new method of information acquisition and processing method, it has been widely applied in human activities, such as intelligent furniture and intelligent living environment [6], medical health monitoring and treatment [7], urban transportation and so on in various fields. For example, corresponding number of wireless sensors could be deployed in the place which is easy to occur forest fire for detecting the real-time information in this region, the feedback information could effectively avoid and reduce the loss of human being. Wireless sensor network could also monitor the change of climate and soil environment in farmland, farmers could ensure the crop harvest through timely taking appropriate measures according to this information. 3 The water quality monitoring system construction of wireless sensor network Water environment monitoring system of wireless sensor network is shown as Figure 2, it includes wireless sensor networks and monitoring centre. Wireless sensor network installed on the monitoring waters is composed of various water parameters sensor s (sensor ), wireless router s (routing ) and aggregation (sink ) with the capacity of sensing, computing and transmitting wireless, IEEE802.15.4/ZigBee protocol is adopted to realize self-organizing network between s, the quantity of sensor s and routing s could be set up according to the actual size and monitoring requirements of measured area. Sensor s adopt the construction approach of embedded technology, which could configure sensors like temperature, PH value, DO (Dissolved Oxygen) and so on. Local processing is first performed on the collected by sensor, distributed measurement of various sensor would connect with monitoring centre through the approach of asynchronous serial mode or GPRS remote communication way after simple processing at aggregation. The monitoring centre software receives the wireless sensor network packets sent by aggregation, and the would be stored in base after analysis and processing. Analysis result will be represented in the form of graphic interface through analysing. At the same time, comparison among the received this time, history and water quality standard stored in base are performed to determine whether the is reasonable and abnormal change would occur or not. Abnormal warning level of water quality status is set up according to the abnormal degree, and control strategy would be gathered according to corresponding parameters [8]. g area a g area b g area c sensor Wireless router s Aggregation Wireless router s The remote monitoring center Internet FIGURE 2 Structure of water quality monitoring system in wireless sensor network 4 Function modules of monitoring center software As the system shown in Figure 2, the sensor s send the collected through adopting ZigBee protocol based on the triggering mode of combing timing and events. Sink s send the to local monitoring centre in real time through RS232 serial port trunk, the monitoring centre receives and makes analytical processing on the sent from Sink s, send it to local base for storage or remote client-side through Internet, and answer the query from users or application. Compared with the information collection system constructed by B/S (Browser/Server) [9], such C/S (Client/Server) query mode has gotten rid of the frequent confirmation time of sensor network during customer search, and avoid network congestion etc when simultaneously sending a large number of sensing information, it has the characteristic of fast response speed and strong real-time property. Data monitoring centre software requires to realize following function: (1) monitoring the serial port, acquisition parameters, state, residual energy, network topology and other information would be obtained from Sink s. (2) Check, parse, store and chart shows will be performed on the received. (3) 133

Updating, management and maintenance of base (4) Management function of client user: querying and displaying network status, querying and printing or history in certain period of time etc. (5) Analysis, judgment and evaluation would be performed on the water environment of monitoring area through combing with water quality standard base. (6) Parameter settings and system synchronization: such as sampling interval, alarming threshold, releasing synchronization information of system time etc. When performing system s functional division, would be taken as the main line, modular design method would be adopted to divide the whole procedure into serial port communication module, processing module, base module, human-computer interaction module and so on, each module would complete the corresponding function. The monitoring centre software adopts C# language and SQL DBD (Database Design) under Visual Studi environment. The procedure flow charts of wireless sensor s are shown as Figure 3. Initialization connection with the gateway Receive water quality packet network sent by gateway decoding, extract water quality parameters of single, warehousing entry Update the graphical interface, display the, comparison analysis would be made among single point, distribution, historical and the standard library Is water quality abnormal Is there feedback from user Handle user feedback Does it fulfills the requirements of warning Set up the new sampling frequency according to abnormal level send setup instructions of new sampling frequency to gateway would send such order to the broadcasting of wireless sensor networks, then wait to receive the packets of each sensor. After collecting the package of all s, the would be converged and integrated into network monitoring packets and sent to monitoring centre. The application layer protocol could be formulated according to the actual size and monitoring parameter of wireless sensor network. The main frame format: (1) Information frame of wireless sensor network topology is composed of start code(1 byte), information source address (2 bytes), the number of s passing through the information (1byte), the passed routing number of information (10 bytes), check code (l byte), epilogue code (1 byte). (2) The collection command frame sent by monitoring centre is composed of starting byte (1 byte), slave computer address (1 byte), identifier (1 byte), sample time interval (2 bytes), check code (1 byte) and end byte (l byte). (3) Parameter frame of monitoring centre sent by Sink s is composed of start code (l byte), sampling time (6 bytes), numbering (1 byte), and PH value (2 bytes), dissolved oxygen (4 bytes), temperature (3 bytes), and check code (1 byte), epilogue code (1 byte). The design of serial port communication program applies serial port control, and it is composed of serial port setup, open port, sending command of serial port as well as reading of serial port. The reading of serial adopts interrupt mode. After monitoring centre has received, check and parsing would be made on package, useful would be extracted and turned into displaying at the end. 5.2 DATABASE MODULE FIGURE 3 Program flow chart of wireless sensor 5 Implementation technique of key function module 5.1 SERIAL PORT COMMUNICATION MODULE AND DATA PROTOCOL Communication connection between monitoring centre software and wireless sensor network would be constructed first. Its process is as following: link order would be sent to sink s from monitoring centre software. Sink contains the topology information of wireless sensor network. After constructing communication connection, monitoring centre would send acquisition order according to set acquisition interval. Sink s would send confirmation information to monitoring centre after receiving the connection instructions; such information contains the topology information of wireless sensor network. After constructing communication connection, monitoring centre would send the acquisition order to aggregation according to set sampling interval. After Sink s receiving collection order, it The design objective of base module is security (base storage structure would be of foreign shielding), universality (all kinds of services would be provided externally through port), high efficiency (efficiency of storage and query is enhanced internally). The main module has base structure design module, which mainly takes charge of building up backend base. The base management module takes charge of managing daily base, including establishment of the log, maintenance of the base etc. Database query and analysis module is used to optimize the query of big table and enhance access efficiency etc. (1) 1Database structure design The design of base structure is the key of base module, it focuses on the design table structure and the relationship between tables, which is to store the possibly involved and related information.in our system, base storage information could be divided into two types: sheet and the information table. The sheet is used to store collected. Table of information is 134

used to store some basic information, such as temperature, PH, solubility. (2) The storage and query of. This system adopts the technology of ADO. NET base access [10].ADO.NET has two core components: ADO.NET Dataset and ADO.NET Data Provider, namely the provider class (Provider) and the user class (Consumer). The provider class would accomplish the source reading and write in etc, after the is read to storage medium, function like access and manipulating of base would be completed by the user class. The main code of reading source and write in is as following: StringContr= DataSoure=CHINA- D3CD2701A\\SQLEX-PRESS; Initial Catalog=db1; Integrated Security=True ;//declare a string, it acts as linking base auditing the password SqlConnection conn=new SqlConnection(Contr); conn.open();//open the connection channel; System.Data.SqlClient.SqlCommand cmd=new System.Data.SqlClient.SqlCommand(); cmd.commandtype=system.data.commandtype.te xt; cmd.commandtext= insert into sensor(ph temperature,temperature,time) values( +SteA+, +StrB+, +StrC+, +Time+ );c md.connection=conn; cmd.executenquery();// would be placed into base through performing SQL interposition predict 5.3 SOFTWARE FUNCTION INTRODUCTION The monitoring centre software structure is shown as figure 4. Parameter setting wat er qual ity para met ers com mun icati ons para met ers Real-time monitoring acq uisit ion real - time mon itori ng User login Detection system of water quality parameters offlimit alar m Data processing anal ysis early warn ing of water quali ty Data management stati stics Dat a quer y grap hica l disp lay User management Mod ifica tion of infor mati on FIGURE 4 Structured flowchart of the monitoring centre software 5.4 THE TEST OF EXPERIMENTAL RESULT auth orit y man age men t PH value, temperature, dissolved oxygen degree in experimental design is shown as Table 1, the scope is within the range of pond water quality, the collection interval is 1h. Specific design of experimental design is shown as Table 1, the results of wireless sensor network monitoring is shown as Table 2. The real time monitoring interface of monitoring centre is shown as Figure 5. serial number time Water temperature PH value DO battery voltage child Upper and lower limit upper temperatur e limit upper limit of PH value upper limit of DO lower temperatur e limit lower limit of PH value lower limit of DO off-limit alarm The main function of the software is briefly introduced as follows: (1) Warning function: When there is some abnormity detected among temperature, PH, DO (Dissolved Oxygen), the system software will start alarm function immediately and send out a warning message to remind the staff of detection software centre, who could also start off-limit alarm button for sending out warning notice. (2) Set sampling rate: changing sampling rate is to adjust the time scale of observation. Under normal status, in order to reduce energy consumption, wireless sensor network could perform acquisition with low sampling rate. When there is abnormality in parameters, the system would publish anomalous event, sensor would increase sampling frequency, and then the resolution ratio of would be enhanced. (3) Synchronizing function: as the sampling frequency of system is not high, sampling interval is 1 minute at least, thus local computer clock is taken as master clock, and time synchronization information would be sent to other s in WSN through aggregation at regular intervals, the transmission delaying between two s would be not more than 100ms and could satisfy the requirement of synchronization. 3 pond PH value Real time trend curve Pond : The water temperature curve stop collection log out FIGURE 5 Real-time monitoring interfaces TABLE 1 Artificial simulation test results PH curve Start collecting warm prompt Dissolved oxygen graph Number 1 2 3 4 5 6 7 PH 7.5 7.7 7.2 6.7 8.5 7.9 6.4 Temperature 21 25 23 18 26 27 24 Dissolved oxygen degree % 19 16 27 21 23 14 17 TABLE 2 the actual test results Number 1 2 3 4 5 6 7 PH 7.1 7.5 6.8 6.9 8.9 7.6 7.2 Temperature ( ) 23.5 26.8 24 19.4 25.4 28.6 23.7 Dissolved oxygen degree (%) 20.5 17.3 26.6 20.3 24.3 15.7 16.2 Comparison would be performed on the measured actual and from monitoring system, the relative error is limited within 5 %, thus the system has good quantitative detection performance. preserve 135

6 Conclusion This software has realized the collection of sensor through adopting the technology of wireless sensor network, serial port programming techniques and ADO.NET base access based on c# language. Graphical interface display is realized through Cl Chart module. Integrating this software and wireless sensors network at the front end could be applied in aquaculture References water quality detection, and has obtained better detection effect. The water quality inspection system based on wireless sensor network could realize the online collection and safety inspection of real time in twodimensional space and time within certain water areas under low cost condition. This would provide a kind of reliable security technology for water quality analysis and management. [1] Pattichis C S, Kyriacou E, Voskarides S, et.al. (2002) Wireless telemedicine systems: An overview IEEE Antennas and Propagation Magazine 44(02) 143-5 [2] David E C, Hong W. et al 2004 Wireless sensor networks Communication of ACM 47(6) 30-3 [3] Jiang Peng, Xia Hongbo, He Zhiye, et al 2009 Design of a Water Environment g System Based on Wireless Sensor Network Sensors 9(8) 6411-34 [4] Liming Sun, Jianzhong Li et al 2005 Wireless sensor network Beijing: Tsinghua university press (in Chinese) [5] Boqi Mai, Jiapin Chen et al 2009 Test platform of wireless sensor s localization function Computer Engineering and Design 13 (in Chinese) [6] Li J, Lazarou G, et al 2004 A bit-map-assisted energy-efficient MAC scheme for wireless sensor networks The 3rd Int'l Symp. On Information Processing in Sensor Networks (IPSN04) [7] Xu Y, Bien S, Mori Y, et al 2003 Topology control protocols to conserve energy in wireless ad hocnetworks [8] Sai Zou, Changming Liu, Faping Li, et al 2010 Water environment monitoring system based on wireless sensor network Sensor and micro system 29(9) 104-9 (in Chinese) [9] JieZhang, Weiren Shi, Qiaoling Tu et al 2009 Information detection system design based on wireless sensor network Journal of transducer technology 22(6) 861-4 (in Chinese) [10] Renpeng Sun 2010 Research for the application of ADO.NET under multi-layer mode Computer Engineering and Design 31(16) 3621-4 (in Chinese) Authors Liang Li, born in 1976, Anhui Province of China Current position, grades: lecturer University studies: Master degree was earned in major of computer application technology, Southeast University in 2004. Scientific interest: software engineering, mining 136