Vol.68, No.2, 2021, pp.1899-1918, doi:10.32604/cmc.2021.015762
Utilizing Blockchain Technology to Improve WSN Security for Sensor Data Transmission
  • Sung-Jung Hsiao1, Wen-Tsai Sung2,*
1 Department of Information Technology, Takming University of Science and Technology, Taipei City, 11451, Taiwan
2 Department of Electrical Engineering, National Chin-Yi University of Technology, Taichung, 41170, Taiwan
* Corresponding Author: Wen-Tsai Sung. Email:
Received 05 December 2020; Accepted 05 February 2021; Issue published 13 April 2021
This paper proposes a method for improving the data security of wireless sensor networks based on blockchain technology. Blockchain technology is applied to data transfer to build a highly secure wireless sensor network. In this network, the relay stations use microcontrollers and embedded devices, and the microcontrollers, such as Raspberry Pi and Arduino Yun, represents mobile databases. The proposed system uses microcontrollers to facilitate the connection of various sensor devices. By adopting blockchain encryption, the security of sensing data can be effectively improved. A blockchain is a concatenated transaction record that is protected by cryptography. Each section contains the encrypted hash of the previous section, the corresponding timestamp, and transaction data. The transaction data denote the sensing data of the wireless sensing network. The proposed system uses a hash value representation calculated by the Merkel-tree algorithm, which makes the transfer data of the system difficult to be tamped with. However, the proposed system can serve as a private cloud data center. In this study, the system visualizes the data uploaded by sensors and create relevant charts based on big data analysis. Since the webpage server of the proposed system is built on an embedded operating system, it is easy to model and visualize the corresponding graphics using Python or JavaScript programming language. Finally, this study creates an embedded system mobile database and web server, which can utilize JavaScript program language and Node.js runtime environment to apply blockchain technology to mobile databases. The proposed method is verified by the experiment using about 1600 data records. The results show that the possibility of data being changed is very small, and the probability of data being changed is almost zero.
Blockchain; embedded system; big data analysis; python; javascript; node.js
Cite This Article
S. Hsiao and W. Sung, "Utilizing blockchain technology to improve wsn security for sensor data transmission," Computers, Materials & Continua, vol. 68, no.2, pp. 1899–1918, 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.