Microsoft Word - 7-2556_s1 Engineering, Technology & Applied Science Research Vol. 9, No. 2, 2019, 3905-3908 3905 www.etasr.com Gorenekli & Becerikli: Development of Electronic Water Meter Based on Wireless Network and RF Development of Electronic Water Meter Based on Wireless Network and RF Kasim Gorenekli ISU General Head Office IT Department, Kocaeli Metropolitan Municipality, Kocaeli, Turkey kgorenekli@isu.gov.tr Yasar Becerikli Computer Engineering Department, Engineering Faculty, Kocaeli University, Kocaeli, Turkey ybecerikli@kocaeli.edu.tr Abstract—The global need for water is increasing. Water must be used more economically in order to be sustainable. Water consumption per capita in Turkey is below the world regarding its geographical location. Manual reading water meters are inconvenient and time-consuming, they have low accuracy, they are very slow and resource wasting. Using wireless communication will mitigate these unwanted states. Consumers will be able to observe their water consumption in real time and be able to compare with the average water consumption in their district. With this system water pressure of whole pipes could be observed. Keywords-remote meter reading; sustainable and qualified service; water loss; wireless and RF network; smart water meter; accurate and high performance I. INTRODUCTION In accordance with regulations issued by the Ministry of Water Affairs, municipalities are responsible for 30% of drinking water losses, and in the following 4 years they should reduce them to 25%. The first project initiated to pursue these regulations throughout Turkey is the Kocaeli, Izmit District Drinking Water Project for Reduction of Loss. The increase in population, which results in more residential areas being constructed, constantly expanding industry sites, and utility companies seeking billing systems for residential and industrial environments to require less human interaction, necessitates the reduction in the cost of implementing a water-metering system. Smart water meter systems increase time efficiency and adequacy, since bills are delivered timely and more accurately. Another advantage is that the system can be adapted for use in other domains such as gas or electricity [1-3]. Water distribution network monitoring provides the opportunity for automatic billing data collection, rejecting unauthorized connections, infrastructure security (tampering), leak detection [4], and water quality monitoring. In real life scenarios, the drive-by scenario is problematic as the readout procedure might fail and urbanized area range limitations due to signal attenuation are present, resulting in the need for a repeated drive-by. The target of authors in [5] was to optimize energy consumption of all these components. The optimization will give a positive impact on cost minimization and on the prolongation of battery life time. It will simplify the deployment of wireless sensor networks for monitoring the water distribution networks. Simplified packet repeater principle showed great results during trial network deployment and reduced overall installation costs by minimizing the required gateway nodes that need direct network connections. The proposed case does not consider such a solution. A pseudo autonomous system is tuned for minimal operational costs, including maximization of non-stoppable service uptime by maximization of battery lifetime. In [6], authors focused on implementing a smart water management system to assist users in obtaining real-time data for real-time analysis. The system provides the user with real- time data for water consumption. It also creates various visual graphs of the collected data and represents them in a readable manner to the customer. The scope of the paper does not allow it to focus on the continuous development of analogue water meters for greater accuracy or to consider how the raw data can be linked to the billing utility system. Automatic measurement systems make life easier for science and technology. The use of these systems saves time, minimizes human error factors, reduces costs, and provides ease of analysis and management. The economic use of water consumption and the reduction of leaks are inevitable. The automatic measuring system is the development of a radio frequency based water meter or a module to be connected to the measuring device. In this way, instantaneous water consumption, and device intervention will be monitored remotely and the necessary intervention will be made immediately. II. RELATED WORK Authors in [5] showed the use of wireless sensors in water distribution networks and focused on the energy consumption and the consistency of data in wireless communications. Communication is achieved by adding fixed electric routers to the points where meters cannot be reached. Improved protocol was used for low energy consumption compared to mobile ad hoc network. Despite the traditional point-to-point communication, the wireless sense network (WSN) is able to save data by sending only data that needs to be moved to the external network using its own account capability [7]. The work done in [6] about the Advanced Sense Network Research Group is focused on the economical use of water. One solution is to retrieve data via physical cable. It is observed that this is not practical in terms of time and cost. Alternatively, the Corresponding author: K. Gorenekli Engineering, Technology & Applied Science Research Vol. 9, No. 2, 2019, 3905-3908 3906 www.etasr.com Gorenekli & Becerikli: Development of Electronic Water Meter Based on Wireless Network and RF wireless communication is used between water meter and gateways. LDBRS (low data bit rate sense) proposes the use of Zigbee [8] using IEEE 802.15.4 protocol. Modbus-RTU and IEC 61107 Mode C communication protocols are used frequently in remote meter reading systems [9]. III. COMMUNICATION NETWORKING Smart water meters must be accurate and fast enough to serve a large number of subscribers. Bidirectional communication should be used. Utility companies should therefore implement smart water metering which should be capable to support geographically spread modules. Remedy of latency, fastness, accuracy, security and reliability are the specifications which are compulsory. Network topology refers to the physical and logical placement of computers in the local area network (LAN). Physical topology specifies how all devices in the network are connected to each other and what kind of cable is used. There are several network topologies. Five common topologies are described below. A. Bus Topology All devices are connected to each other via a main cable and all devices have access to it. The cable used is usually a coaxial cable. Devices on the line must make sure that the line is completely empty before sending data, otherwise there will be conflicts. Data are sent to all devices connected to the line, but only the target device receives them. It is the topology with the lowest performance [10]. B. Star Topology In star topology, each device on the network is connected directly to central connectors called switches or hubs. Data go through the central connector (switch or hub) to the destination. It is the central connector that manages and controls all functions of the network. C. Mesh Topology In mesh topology all nodes in the network are connected to each other. This topology is also called complex topology. Mesh does not need to use any distributors. On the other hand, the routing process has a significant share in the mesh. That is, the paths of the data packets should be defined in advance. This is the most secure network topology. Since there is a connection between each point, data transfer can be hidden. For example, while two computers are exchanging data among themselves, others cannot see these data. Mesh-type networks are always in communication. The corruption of any connection doesn’t affect the other connections. If any cable breaks, the network will continue to run by using another path and no computer will be out of the network. Therefore, this network is preferred when communication breakdown is dangerous. The mesh also provides short response time. Mesh has and some disadvantages. As the number of computers to be connected increases, the number of cables increases exponentially. This increases the complexity and cost because each new computer will need to establish new separate lines with the other computers on the network. Therefore, mesh connection is not preferred in large-scale networks. It is mostly used in special places and small networks. It has a limited usage area. D. Tree Topology It is often used to link networks in star topology. The networks can thus be enlarged. The branches of a tree represent networks in different topologies, and they are interconnected with the tree's body. Many working groups can be put together. When the backbone cable is broken, network traffic on the partitions is affected. It is difficult to install and edit [11]. E. Ring Topology All devices in the ring topology are connected to each other in a ring shape and each device has two separate neighbors. The devices on the line are visited one by one with the help of a token until data reach the target [12]. IV. PROPOSED ALGORITHM AND SENSOR NETWORK STRUCTURE A Wi-Fi based network is created with 3 Raspberry Pi’s [10]. One of them is also used as a hotspot. Another Raspberry Pi is used as a gateway to which the network is connected through RF (radio frequency). RASBIAN (based on Linux) is used on these Raspberry Pi’s. For easiness to learn and compatibility reasons, PYTHON language is used. Time periods mentioned below are saved in a file and can be changed by the user. The block diagram is shown in Figure 1 and the flowchart in Figure 2. Fig. 1. Block diagram of the system Fig. 2. Flow chart of the system The implemented software steps from the flow chart have the following functions: • IPs of the active modules in the network are searched and saved for future use. This is done by all modules daily. • Getting and saving in a file the track of current water meter index (every 30 minutes) Engineering, Technology & Applied Science Research Vol. 9, No. 2, 2019, 3905-3908 3907 www.etasr.com Gorenekli & Becerikli: Development of Electronic Water Meter Based on Wireless Network and RF • Sharing index data with neighbor modules through Wi-Fi (or RF) every 3 hours. By this way every module saves the data from all modules in the same network. • The collected data from the modules are sent to the gateway through RF once per day. • If there is a problem in the transmission between the central module in the network and the gateway, another path is used according to the closest IP from the central module. • The result’s data are displayed on web pages (Figure 3). Fig. 3. Displaying indexes of all three Raspberry Pi’s in web pages. Fig. 4. Debian installed on Raspberry Pi 3 module with RF added The energy consumption in wireless communication is important. The lifetime of the battery can be calculated according to the equations below [5]: ���� � ����.� � ����. � ����. ��� � (1) ���� � ������������ � ���� 1000 � ���� �������� � � �� 1000 � ����. ��� � (2) ��� .� � � !�"�#$ � 1000 � ���%&�%'()*' !�+���� �������� � ������()*"�#$ (3) where: Tawm : Average working time of microcontroller, (ms) Iavg.m : Average current of the microcontroller, (mA) Iavg.t : Average current of transmitter, (mA) Iavg.losses: Average losses of circuit, (mA) Tmc : Microcontroller working cycle, (ms) Imc : Microcontroller current at working cycle, (ms) Itc : Transmitter current at working cycle, (mA) Tawt : Average transmitting time of transmitter, (ms) Ttc : Transmitter working cycle, (ms) Cnew : Capacity of fully charged battery, (mAh) C10y : Estimated capacity of new battery after 10 years caused by self-discharge, (mAh) Tbath : Estimated sensor node lifetime, (h) As an example, package size is 23 bytes, baud rate is 4800bps and time period is 15 minutes. By using the above equations the battery lifetime is calculated as follows: ��, � -.�/0/�� � 1000 � 38 34 (4) � � � 24 7 � 900.000 34 (5) ��, 9 40 34 (6) ����. 9 80 3: (7) ��,� 9 20 34 (8) ��� 9 16 34 (9) ��� 9 3 3: (10) ����. ��� � 9 5=: (11) ���� � -��>����� � 3 � 1000 � 0� ?����� � 80 � 1000 � 5 9 12.25 =: (12) ��� .� 9 ���� � --@��-.-@ 9 183673 7 9 21 BCDE4 (13) 4800 baud rates with the package size of 23 bytes converted into bits shown in (4). If the above equations are processed the lifetime of this battery will be about 21 years as shown in (13). V. CONCLUSION In this paper, four modules are used to create a network. A WiFi network is created among the modules in the same building. An extra module for hotspot is not used. According to the mesh topology, the data of all modules are sent among themselves in the same network. The module with the lowest IP sends the whole data to the gateway via RF. In case of transmission failure the module which has the next IP takes this responsibility over. There are some technologies like Sigfox, Zigbee, GSM, LTE and LORA with their own advantages and disadvantages. Three parameters are considered which are low energy, long distance and license. In our case LORA technology was used. It is possible to detect the water leaks by using this system. The amount of leakage is the difference between the amount of water supplied and the total amount of water used. The less the water consumption, the easier the Engineering, Technology & Applied Science Research Vol. 9, No. 2, 2019, 3905-3908 3908 www.etasr.com Gorenekli & Becerikli: Development of Electronic Water Meter Based on Wireless Network and RF detection of water leakage. Minimum use of water is observed during night hours. The hourly recordings at the night make the detection of the water leakage easier. This study covers the district of Izmit, which has 160.000 subscribers. VI. FUTURE WORK This work can be adapted to the IOT (Internet of Things) technology. By using this technology the number of gateways will be decreased. In addition, temperature, pressure and humidity data might be detected. Energy might be supplied by adding tribunes before water meter. Tank levels can be increased to keep the water pressure of subscribers at the same level. If there is water consumption when the subscriber is outside, the system may inform him and also turn the water meter off automatically. REFERENCES [1] F. Benzi, N. Anglani, E. Bassi, L. Frosini, “Electricity Smart Meters Interfacing the Households”, IEEE Transactions on Industrial Electronics, Vol. 58, No. 10, pp. 4487-4494, 2011 [2] M. Li, H. J. Lin, “Design and Implementation of Smart Home Control Systems Based on Wireless Sensor Networks and Power Line Communications”, IEEE Transactions on Industrial Electronics, Vol. 62, No. 7, pp. 4430-4442, 2015 [3] A. M. Abu-Mahfouz, T. O. Olwal, A. M. Kurien, J. L. Munda, K. Djouani, “Toward developing a distributed autonomous energy management system (DAEMS)”, AFRICON 2015, Addis Ababa, Ethiopia, September 14-17, 2015 [4] A. Nasirian, M. F. Maghrebi, S. Yazdani, “Leakage Detection in Water Distribution Network Based on a New Heuristic Genetic Algorithm Model”, Journal of Water Resource and Protection, Vol. 5, No. 3, pp. 294-303, 2013 [5] K. Kondratjevs, A. Zabasta, N. Kunicina, L. Ribickis, “Development of pseudo autonomous wireless sensor monitoring system for water distribution network”, IEEE 23rd International Symposium on Industrial Electronics (ISIE), Istanbul, Turkey, June 1-4, 2014 [6] M. J. Mudumbe, A. M. Abu-Mahfouz, “Smart water meter system for user-centric consumption measurement”, IEEE 13th International Conference on Industrial Informatics (INDIN), Cambridge, UK, July 22- 24, 2015 [7] G. Hu, X. Zhang, W. Qian, P. Yan, Z. Hu, “A routing protocol for low energy wireless sense network”, 2006 IET International Conference on Wireless, Mobile and Multimedia Networks, Hangzhou, China, November 6-9, 2006 [8] E. Yuksel, Design of a Zigbee Architecture for Telemetering, MSc Thesis, Istanbul University, 2010 [9] E. S. Suzer, Remote Metering Techniques and Sample Software for Modbus-rtu, Iec 61107 Mode C Protocols, MCs Thesis, Fen Bilimleri Enstitusu, 2006 (in Turkish) [10] M. Rouse, “Tree network”, available at: https://searchnetworking. techtarget.com/definition/tree-network [11] A. Shekhar, “What Is Tree Topology? Advantages And Disadvantages Of Tree Topology, available at https://fossbytes.com/tree-topology- advantage-disadvantage, 2016 [12] Cosum Park, “Temel Ag Topolojileri”, available at: http://www.cozumpark.com/blogs/network/archive/2008/04/29/temel- ag-topolojileri.aspx, 2008 (in Turkish) AUTHORS PROFILE Kasım Gorenekli In 1996 he finished Computer Engineering at Yildiz Technical University in Istanbul. He is doing his MSc degree of Computer Engineering at Kocaeli University and at the same time he is working at Kocaeli Metropolitan Municipality as a computer engineer. Married, he has four children and five grandchildren. Yasar Becerikli received his BSc degree from the Electronics and Communication Engineering Department at Yildiz Technical University in 1991, his MSc degree from the Electronics and Communication Engineering Department of the Istanbul Technical University in 1994, and his PhD from the Electrical and Electronics Engineering Department at the Sakarya University in 1998. He was a research assistant at Sakarya University, Turkey, from 1992 to 2000, an assistant professor of computer engineering at Kocaeli University, from 2000 to 2005, and he served as an associate professor at Kocaeli University, from 2005 to 2011. Currently, he works as a professor of Computer Engineering in Kocaeli University. He served as a senior researcher at Marmara Research Center (MRC), from 2003 to 2004. His current research interests include intelligent systems and control, neurofuzzy systems and optimal control, computational intelligence, optimization theory/deep learning, wavelet networks, stochastic process control, medical/signal and image processing, UAVs and pattern reconnition, FPGA based embedded systems. Dr. Becerikli serves as associate editor of EURASIP Journal on Advances in Signal Processing, EURASIP Journal on Image and Video Processing, and Advances in Fuzzy Systems and also serves as a reviewer for more than 30 journals.