
ISSN: 2643-6744
Xinzhou Wei* and Astrid Frank
Received:February 09, 2019; Published:February 20, 2019
*Corresponding author: Xinzhou Wei, Department of Electrical and Telecommunications Engineering Technology, New York City College of Technology, New York City, NY 11201, USA
DOI: 10.32474/CTCSA.2019.01.000111
As a very import part of the Internet of Things (IoT), smart buildings usually consist of wireless sensor network (WSN) and many radio-frequency identification devices for data collection instantly. This paper presents a real time data collection and visualization scheme for smart buildings. We propose a framework that uses both open source hardware and software to collect the event driven data from a WSN and subsequently convert them to the query-based data which is needed by cloud server. Experiment results demonstrated that the proposed framework is feasible for efficiently visualizing data locally and preparing query-based data for cloud storage server.
Keywords: Wireless Sensor Network; Iot; Data Visualization; Smart Building
Wireless sensor network (WSN) is a very important part of the Internet of Things (IoT) [1]. It is composed of several thousands of sensor nodes which are capable of sensing, actuating and relaying the collected information [2-4]. The primary function of WSN is to obtain information from sensors and monitor environments. In recent years, many WSN applications have been developed. Particularly, in smart home or smart building applications [5], all sensors connected to WSN will collect data and subsequently forward them to a central device referred as WSN hub or gateway. These data could be saved locally and finally uploaded on cloud storage server like Blink or Arlo home security system. In general, the cloud storage server is the center of smart home or smart building. As a result, users need access these data anytime or anywhere from their smart phone or other mobile devices. Hence, all the smart building related management applications could be considered as cloud based IoT systems [6-7].
With the data collected on a WSN in real time, users can employ a smart building management application to visualizing these data in a local machine or upload these data on the cloud for a broad management purpose. Because there are many different protocols exist on IoT, one of the biggest challenges for general management applications is the interoperability. That is, the devices on IoT working on different protocols cannot communicate and exchange data compatibly. Most importantly, the products with the same protocols are not even always interoperable across different profiles [7]. Moreover, the data collected from WSN sensors are the event-based raw data. Those data must be subsequently converted to a query-based format for an efficient usage by different protocols with difference devices. Meanwhile, all those data should be stored persistently in the cloud server at multiple levels. Later, they could be easily combined and processed with previously stored data, as well as with other non-IoT data [8]. Thus, in this paper, we propose a cross-platform system to visualize WSN data and convert the event-based data to a query-based format for the cloud storage server. This paper is organized as follows: section 2 described the proposed structure of WSN. Experiment results are shown in section 3. Section 4 draws the conclusion and future work.
One of the most popular WSN protocols is ZigBee [9]. A typical ZigBee based wireless sensor network is shown in Figure 1. The XBee module is an implementation of ZigBee standard from Digi International Inc. [www.digi.com]. There are three parts in XBee/ ZigBee mesh network: coordinator (red dot), router (blue dot) and end node (green dot) [10]. All the data collected by end nodes will be forwarded to coordinator via routers in the WSN and processed by a local computer directly connected with that coordinator. In our work, we adopted XBee/ZigBee based WSN for the data collection. In XBee/ZigBee based WSN, one XBee module is configured as coordinator and there are many other XBee modules are configured as routers that could be connected to sensors [11]. A temperature sensor is attached on end node (green dot) in our system as demonstrated in Figure 1. An XBee wireless node is actually a microcontroller with a wireless radio transceiver. XBee provides both analog port and digital port based on its configuration. The detailed XBee configuration could be found in Faludi’s work [10]. Figure 2 shows the circuits on a breadboard, prototype board, and print circuit board of a wireless sensor node in our experiment.
In a smart building scenario, we mount the wireless sensors in different locations in a building. The sensors will collect temperature, transmit these data in real time, and forward those data to an XBee coordinator which is connected with a computer. In Figure 3, we demonstrated our experiment result created by an open source programming language named “processing” [12]. The temperature data are displayed based on their locations in the building with red dots representing the XBee wireless sensor nodes. We also can animate the temperature data and blink the dots in order when our system receive the data nodes. The original data were recorded in Fahrenheit. Then, we converted the temperature unit to Celsius in visualization tool as shown in Figure 3. The “processing” is a Java based language so the results could be exported to a Java applet and used in a web browser-based management application. To convert the event-driven based data in query-based format, we applied the SQLite in our system with Python. SQLite is a self-contained, serverless database engine which is very fast and light weighted. Because it requires no configuration and stores information in ordinary disk files, SQLite is a popular choice as a database to backup data in cloud storage server. Based on the corresponding MAC address of the XBee node, SQLite database system record the temperature value and add timestamp simultaneously for that node. Figure 4 demonstrates a sample of our experimental data after the conversion (Figure 4).
In this paper, we presented an XBee/ZigBee based WSN to collect and visualize the data in real time for smart buildings. We described the structure to build this IoT application. The framework combines both processing and python-based data visualization tool through a local computer and could be exported as a Java applet to integrate in a web page. Our work on this project can be further extended by uploading data on cloud server and using web crawling technique to extract data for third-parties who are interested in other IoT applications.
This work is supported in part by the Undergraduate Research Program of the City University of New York (CUNY) and the PSCCUNY grant.
Bio chemistry
University of Texas Medical Branch, USADepartment of Criminal Justice
Liberty University, USADepartment of Psychiatry
University of Kentucky, USADepartment of Medicine
Gally International Biomedical Research & Consulting LLC, USADepartment of Urbanisation and Agricultural
Montreal university, USAOral & Maxillofacial Pathology
New York University, USAGastroenterology and Hepatology
University of Alabama, UKDepartment of Medicine
Universities of Bradford, UKOncology
Circulogene Theranostics, EnglandRadiation Chemistry
National University of Mexico, USAAnalytical Chemistry
Wentworth Institute of Technology, USAMinimally Invasive Surgery
Mercer University school of Medicine, USAPediatric Dentistry
University of Athens , GreeceThe annual scholar awards from Lupine Publishers honor a selected number Read More...
The annual scholar awards from Lupine Publishers honor a selected number read more...