Smart Water Meter System For User-Centric Consumption Measurement
Smart Water Meter System For User-Centric Consumption Measurement
net/publication/282643910
CITATIONS READS
111 10,183
2 authors, including:
Adnan M. Abu-Mahfouz
Council for Scientific and Industrial Research, South Africa
229 PUBLICATIONS 4,494 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Algorithm development for optimum leakage detection and localisation in large scale water distribution networks View project
All content following this page was uploaded by Adnan M. Abu-Mahfouz on 08 December 2017.
Abstract²- Water scarcity and water stress issues pose a Sensor systems for monitoring have to an increasing extent
serious threat to the global population. The traditional way of been applied in the manufacturing industries, environmental
manual meter reading is furthermore inconvenient and time sector [3], Life Sciences [4-6], and electrical power systems
consuming, and it wastes resources. This method is also unable to [7]. It is part of the growing Internet-of-Things trend that aims
manage the sustainable water resources effectively since it to connect all aspects of our lives [8, 9], and allows for any
requires efficient, accurate and reliable monitoring techniques application ± from surveillance to home automation. The
that enable the utilities sector and consumers to know the level of sensors can be strategically deployed on the ground, inside the
water consumption in real-time. Real-time smart water meters investigated objects (vehicles, mobile phones), under water or
that can be monitored by the user are essential and constitute a
around volcanic areas, while the military deploys them
key component of the water management system. A smart water-
monitoring system will make users mindful of their water
especially for tracking and sensing threats [10]. Network-based
consumption and help them to reduce their water usage. At the sensor nodes, coupled with a visual application, facilitate real-
same time, users will be alerted to abnormal water usage to time analysis and the execution of the designated event. These
reduce water loss. This paper introduces the water management nodes furthermore do not require large bandwidth for
system based on wireless sensor networks (WSN). The system communication, because of their low data rate.
uses the IEEE 802.15.4 standard embedded in ContikiOS The current paper focuses on implementing a smart water
LibCoAP as an open-source application to create a robust and management system to assist users in obtaining real-time data
intelligent system. Visualisation and monitoring of the system is
for real-time analysis. The system provides the user with real-
achieved following the development of a web-based system and
through Pandora FMS.
time data for water consumption since it monitors consumption
as a whole. It also creates various visual graphs of the collected
Keywords² Smart water-monitoring system, IEEE 802.15.4, data and represents them in a readable manner to the customer.
Automatic Meter Reading, LibCoAP, 6LoWPAN, sensor interface The scope of the paper does not allow for it to focus on the
node, WSN. continuous development of analogue water meters for greater
accuracy [11] or to consider how the raw data can be linked to
the billing utility system.
I. INTRODUCTION
The importance of water sustainability has been well There are plenty of reasons for introducing smart water
documented. Numerous initiatives addressing the challenges meter systems. Previously data was collected by hand by a
posed by its dwindling quantity and declining quality are representative of a company using pen and paper, but lately the
currently under way and many of these are supported by use of hand-held computers (also known as meter readers) or
substantial funding investments. Despite a technology and data drive-by vehicles that collect data has become common.
³ELJEDQJ´QRWPXFKLPPHGLDWHLPSDFWKDVEHHQGHPRQVWUDWHG However, the increase in the population, which results in more
for the case of more effective and efficient water usage. residential areas being constructed, industry sites constantly
expanding and utility companies seeking billing systems for
South Africa, like most other countries, relies to a large residential and industrial environments to require less human
extent on analogue and manually read water-metering systems interaction, necessitates a reduction in the cost of implementing
to manage water usage and supply. Such readings are labour a water-metering system. Smart water meter systems increase
intensive and often inaccurate, since they lag in time or are time efficiency and adequacy, since bills are delivered timely
estimates based on historical data. Locally, there is a clear need and more accurately. Another advantage is that the system can
for improved water use efficiency, particularly for be adapted for use in other domains such as gas or electricity
municipalities with a goal of building smart cities supported by [12-14]
smart grid networks [1, 2]. This requires the development of a
suitable technology for a relatively low-cost and highly Section II highlights several techniques that can be used to
scalable solution for near real-time water consumption build a smart meter-reading system. The smart water meter
monitoring. interface is introduced in Section III. Section IV concludes the
paper and highlights some future work.
This work is funded mainly by the South African Department of Science
and Technology (DST).
l-)))
II. RELATED WORK rendered. Fig. 1 depicts the entire implemented smart water
One possible technique to obtain the meter reading and management system. The developed system enables the mesh
send it to a gateway device (concentrator) is by using a networking among the meter interface nodes within a radius of
dedicated serial line. However, the water meter should have a 100m. The gateway collects the data sent by the meter interface
suitable physical connector (e.g. RS232, RS485 or USB). node and sends it directly to the server. As an addition to this
Although a wired system may provide low levels of system, Pandora Flexible Monitoring Software (FMS) is used
interference and high data security, the time and cost of its as a monitoring application, while a web-based visual tool for
installation and maintenance make it impractical in various analysis is developed. A web-based application is also
scenarios. User-driven reading collection by means of a mobile designed to provide more graphical meaning to the collected
device may be convenient [15] in some applications, but it is data, which also can be extended to build a billing system and
not suitable for autonomous systems, regular readings or real- other services. However the current paper focuses more on the
time monitoring. meter interface node and the monitoring application.
meter interface sensor node was designed and attached to a MSP430G2231 will enable the inclusion of the wired and
digital water meter, as shown in Fig. 1. The node itself is wireless m-bus protocol to communicate with other hand-held
attached to the analogue Reed switch, which generates pulses water meter readers. The MSP430G2231 has an internal
from the meter each time a specific volume of water flows programmable flash memory that could store enough data for
through the water meter. two months, which eliminates the need to include an external
flash memory.
As shown in Fig. 3, the meter interface node consists
mainly of the Dizic module (transceiver module) [32], 32-Mbit The processor would be in a dormant stage, while the
serial flash (AT25DF321) and the power system. The Dizic external interrupt triggered with pulses generated from the
module is an IEEE 802.15.4 compliant RF module that consists water meter. The processor would only be activated when the
of an STM32W108 processor with an integrated 2.4 GHz data was stored on the internal Flash or when the STM
transceiver. The Dizic module is a System on Chip (SoC) that requested the data via the I2C data line. Once we had a better
has a 32-bit ARM Cortex processor, 128 KB of flash, 8KB of understanding of Contiki OS on the STM processor, we could
Ram memory, 128-bit AES encryption, accelerator and the 2.4 allocate and control some of the peripherals without making
GHz CCS transceiver. This module can be used on the ZigBee the processor halt or disrupt the normal functionality. We
supporting network. subsequently decided to discard the usage of the MSP
processor and use a serial flash for data storage, and also
incorporated a firmware that would synchronise the reading
and writing of the serial flash and the control of the external
interrupts from the Reed switch.
B. Communication system
The communication infrastructure connects various
components of the system. The meter interface nodes are
attached to the digital water meter through a Reed switch as
they collect data and send it to the gateway. The data is sent to
Fig. 3. The PCB of the meter interface node the back-end system for further analysis and visualisation
application. On the other hand, new firmware or configuration
We ported Contiki OS on the meter interface node as a Real parameters can be transmitted from the monitoring application
Time Operating System (RTOS). Contiki OS is an open source to the sensor interface node.
operating system [33] that incorporates a 6LowPAN (IPv6 over
Low Power Wireless Area Network) protocol stack intended The gateway device [37] is the core of the communication
for devices that conform with the IEEE 802.15.4 standard with infrastructure, as it provides data exchange between the back-
short transmission range, low power usage, low bit rate and a end system and the sensor node. The gateway implements the
low expense cost [34]. 6LoWPAN is intended for devices with 802.11 and the 802.15.4 communication interface, while it uses
constrained resources (memory, power consumption, the 802.15.4 for wireless communication with the meter
processing speed, range of data transmission and bandwidth); interface node. This gateway provides the means to translate
hence we used a protocol that is designed for lightweight the short IPv6 data packets sent from the node to full IPv6, so
applications such as CoAP [35]. as to be used by CoAP or HTTP.
technique also increases the longevity of the sensor interface some kind of monitoring system, such leakage could be left for
node. Without considering the solar system, the battery¶V life several weeks and, if it was invisible, it could easily remain
cycle ± from fully charged at 4.2 V to 2.4 V ± lasts for unfixed for several months or even years.
approximately six weeks of constant usage (i.e. every ten
minutes by the web application and every five minutes by the
Pandora FMS console. This means that if the data were to be
polled once every month, the battery would last for a period of
over three years.
Solar panel Interface Meter Node
Gateway
STM32W108
Pandora
GPIO FMS agent
ĂƚƚĞƌLJ
ƐƚĂƚƵƐ
Microcontroller
Battery
MCP73871 ĂƚƚĞƌLJ
ƐƚĂƚƵƐ
Serial flash
AT25DF321
currently running on the gateway itself (see Fig. 6. For The CoAP web-based application interacts with the sensor
communication and monitoring between the meter interface node interface through a gateway. The application enables the
node and the gateway, LibCoAP was installed on the gateway user to detect when the sensor node is connected to the network
as a client to the meter interface node. The gateway agent was and when not. The REST application for routing is modified to
modified to interact with the LibCoAP and monitor the needed enable all sensor nodes belonging to the same network to be
elements in the meter interface node, such as network registered and listed for viewing. Several commands can be
connectivity, battery charging status and the last meter reading used to provide functions such as memory reading, offset-
logged. 7KHDJHQW¶VHOHPHQWVWKDWDUHPRQLWRUHGDUHUHDGE\WKH reading, raw data reading, etc. Running the PONG command
FMS console and the user can select specifically how often the (ping command on CoAP) showed that the response time from
data should be retrieved from the sensor node. The console also the sensor node to the gateway was roughly 51msec.
provides the time stamp to show when last the node interacted
with the console and for which element.
[8] C.P. Kruger and GP.Hancke. "Implementing the Internet of Things [27] A. M. Abu-Mahfouz and G. P. Hancke, "Ns-2 extension to simulate
vision in industrial Wireless Sensor Networks", IEEE International localization system in wireless sensor networks," in Proceedings of the
Conference Industrial Informatics, pp.627-632, July 2014. IEEE AFRICON 2011 Conference, 13-15 September, Livingstone,
[9] C.P. Kruger and G.P Hancke. "Benchmarking Internet of Things Zambia, 2011, pp. 1-7.
Devices", IEEE International Conference on Industrial Informatics, [28] A. Dludla, A.M. Abu-0DKIRX] &3 .UXJHU DQG 6- ,VDDF ³:LUHOHVV
pp.611-616, July 2014. 6HQVRU1HWZRUNV7HVW%HG$617EHG´LQ Proceeding of the IST-Africa
[10] C. Chee-Yee and S.P. Kumar, "Sensor networks: evolution, 2013 Conference, 29-31 May, Nairobi, Kenya, 2013, pp. 1-10.
opportunities, and challenges," in Proceedings of the IEEE, vol.91, no.8, [29] A.M. Abu-Mahfouz, L.P. Steyn, S.J. Isaac and G.P. Hancke, "Multi-
Aug. 2003, pp.1247-1256. level Infrastructure of Interconnected Testbeds of Large Scale Wireless
[11] Zhijia Zhang; Yuan Li, "Research on the Pre-processing Method of Sensor Network (MI2T-WSN)," in Proceedings of the International
Automatic Reading Water Meter System," in Proceedings of the IEEE Conference on Wireless Networks ² ICWN '12, 16±19 July, Las Vegas,
International Conference on Artificial Intelligence and Computational Nevada, USA, 2012, pp. 445-450.
Intelligence (AICI '09), vol.3, 7-8 Nov. 2009, pp. 549-553. [30] C.P. Kruger, A.M. Abu-0DKIRX] DQG 6- ,VDDF ³0RGXOR $ PRGXODU
[12] F. Benzi, N. Anglani, E. Bassi and L. Frosini, "Electricity Smart Meters VHQVRUQHWZRUNQRGHRSWLPLVHGIRUUHVHDUFKDQGSURGXFWGHYHORSPHQW´
Interfacing the Households," IEEE Transactions on Industrial in Proceedings of the IST-Africa 2013 Conference, 29 - 31 May, airobi,
Electronics, vol.58, no.10, pp.4487,4494, Oct. 2011. Kenya, 2013, pp. 1-9.
[13] M. Li and Hung-Ju Lin, "Design and Implementation of Smart Home [31] H. Hinkelmann, A. Reinhardt, S. Varyani and M. Glesner, "A
Control Systems Based on Wireless Sensor Networks and Power Line Reconfigurable Prototyping Platform for Smart Sensor Networks," in:
Communications," IEEE Transactions on Industrial Electronics, vol.PP, Proceedings of IEEE 4th Southern Conference on Programmable Logic,
no.99, 2014 26-28 March 2008, pp. 125-130.
[14] A. M. Abu-Mahfouz, T.O. Olwal, A.M. Kurien, J.L. Munda and K. [32] DiZiC Co., Ltd, IEEE 802.15.4 / ZigBee Module, [Online]. Available:
'MRXDQL ³7RZDUG 'HYHORSLQJ D 'LVWULEXWHG $XWRQRPRXV (QHUJ\ http://dizic.com/product_details.php?id=1
0DQDJHPHQW6\VWHP'$(06´6XEPLWWHGIRUSXEOLFDWLRQ [33] Contiki: The Open Source OS for the Internet of Things, [Online].
[15] &$ 2SSHUPDQ DQG *3 +DQFNH ³$ *HQHULF 1)&-enabled Available: http://www.contiki-os.org/
Measurement System for Remote Monitoring and Control of Client-side [34] Shelby, Zach, and Carsten Bormann. 6LoWPAN: The wireless embedded
EquipmenW´ ,((( Workshop on Near Field Communication, pp. 44 ± Internet. Vol. 43. John Wiley & Sons, 2011, [Online]. Available:
49, February 2011. http://elektro.upi.edu/pustaka.elektro/Wireless%20Sensor%20Network/6
[16] Jianpo Li; Xuning Zhu; Ning Tang; Jisheng Sui, "Study on ZigBee LoWPAN.pdf
network architecture and routing algorithm," in Proceedings of the IEEE [35] CoAP: RFC 7252 Constrained Application Protocol, [Online].
International Conference on Signal Processing Systems (ICSPS), vol.2,. Available: http://coap.technology/
5-7 July 2010, pp. V2-389-V2-393. [36] Paolo Baronti, Prashant Pillai, Vince W.C. Chook, Stefano Chessa,
[17] A. Bahramiazar, "Automated Meter Reading using RF technology," in Alberto Gotta, Y. Fun Hu, ³Wireless sensor networks: A survey on the
IEEE PES Innovative Smart Grid Technologies Conference Europe state of the art and the 802.15.4 and ZigBee standards,´ Computer
(ISGT Europe), 11-13 Oct. 2010, pp. 1-5. Communications, vol. 30, no. 7, pp. 1655-1695, 26 May 2007.
[18] Baoding Zhang; Jialei Liu, "A Kind of Design Schema of Wireless [37] C.P. Kruger, A.M. Abu-Mahfouz and G.P. Hancke, " Rapid Prototyping
Smart Water Meter Reading System Based on Zigbee Technology," in of a Wireless Sensor Network Gateway for the Internet of Things Using
Proceedings of the IEEE International Conference on E-Product E- off-the-shelf Components," The IEEE International Conference on
Service and E-Entertainment (ICEEE), 7-9 Nov. 2010, pp. 1-4. Industrial Technology, 17-19 March, 2015.
[19] A.H. Primicanta, M.Y. Nayan and M. Awan, "Hybrid Automatic Meter [38] Panadora FMS: Flexible Monitoring Software for networks, servers,
Reading System," in Proceedings of the IEEE International Conference applications and virtual environments, [Online]. Available:
on Computer Technology and Development (ICCTD '09), vol.2, 13-15 http://pandorafms.com/?lng=en
Nov. 2009, pp. 264-267. [39] AXSEM, AX8052F143: SoC Ultra-low Power RF-Microcontroller for
[20] T. Khalifa, K. Naik and A. Nayak, "A Survey of Communication the 27-1050 MHz bands, [Online]. Available:
Protocols for Automatic Meter Reading Applications," IEEE http://www.axsem.com/www/micros/ultra-low-power-rf/ax8052f143.
Communications Surveys & Tutorials, vol.13, no.2, pp. 168-182, 2011. [40] A. Abu-0DKIRX] DQG *3 +DQFNH ³'LVWDQFH %RXQGLQJ $ 3UDFWLFDO
[21] A.H. Primicanta, M.Y. Nayan and M. Awan, "ZigBee-GSM based Security Solution for Industrial Real-time Location Systems?´ ,(((
Automatic Meter Reading system," in Proceedings of the IEEE Transactions on Industrial Informatics, Vol. 9, No. 1, pp. 16-27, 2013
International Conference on Intelligent and Advanced Systems (ICIAS), [41] A.M. Abu-Mahfouz and G.P. Hancke, "Evaluating ALWadHA for
15-17 June 2010, pp. 1-5. providing secure localisation for wireless sensor networks," in
[22] V.C Gungor and G.P. Hancke, "Industrial Wireless Sensor Networks: Proceedings of the IEEE AFRICON 2013 Conference, 9-12 Sept. 2013,
Challenges, Design Principles, and Technical Approaches," IEEE pp.1-5
Transactions on Industrial Electronics, vol.56, no.10, pp.4258,4265, [42] *3+DQFNH.0DUNDQWRQDNLVDQG.(0D\HV ³6HFXULW\&KDOOHQJHV
Oct. 2009. for User-2ULHQWHG 5),' $SSOLFDWLRQV ZLWKLQ WKH
,QWHUQHW RI 7KLQJV
´
[23] Qingyang Liu; Bingzhen Zhao; Yirong Wang; Jing Hu, "Experience of Journal of Internet Technology, Vol. 11, No. 3, 2010.
AMR systems based on BPL in China," in Proceedings of the IEEE
International Symposium on Power Line Communications and Its
Applications (ISPLC), 29 March ± 1 April 2009, pp. 280-284.
[24] C. Beal, and J. Flynn,. The 2014 Review of Smart Metering and
Intelligent Water Networks in Australia and New Zealand. Report
prepared for WSAA by the Smart Water Research Centre, Griffith
University, 2014.
[25] Hongfei Li; Dongping Fang, S. Mahatma and A. Hampapur, "Usage
analysis for smart meter management," in Proceedings of the 8th
International Conference and Expo on Emerging Technologies for a
Smarter World (CEWIT), 2-3 Nov. 2011, pp.1-6
[26] A. M. Abu-Mahfouz, G. P. Hancke and S. J. Isaac, "Positioning system
in wireless sensor networks using NS-2," Software Engineering, vol. 2,
no. 4, pp. 91-100. 2012.