International Journal of Civil Engineering and Technology (IJCIET) Volume 8, Issue 12, December 2017, pp. 89–95, Article ID: IJCIET_08_12_010 Available online at http://http://iaeme.com/Home/issue/IJCIET?Volume=8&Issue=12 ISSN Print: 0976-6308 and ISSN Online: 0976-6316

© IAEME Publication Scopus Indexed

IOT BASED ACCESS AND ANALYSIS OF PROTOCOLS WITH LOW POWER HOST CONNECTIVITY

C. Malathi Associate Professor, Vel Tech Dr.RR & Dr.SR University, Chennai, India

M. Nithyavelam Assistant Professor, Vel Tech Dr.RR & Dr.SR University, Chennai, India

ABSTRACT Wireless is flexible and reliable connectivity for everywhere. Now a day’s human follows the reliable and simple way to handle and control any technology. In this paper, we try to make life simple and easy to control the peripheral, where no matter which protocol user want for installation. i.e. , WI-Fi, Miwi etc. And also control the peripheral using web service (http) or android application as a way of IoT (). Internet of Things (IoT) and Machine- to-Machine (M2M) describes how the Internet will expand as sensors and intelligence are connected to physical things such as physical assets or consumer devices and these things in turn are connected to the Internet. In this project we analyse the data packet of different nodes in window as well as Linux terminal for detecting fault or error in any particular node. We are using low power (5V) host device instead of computer i.e. 210-240V.This paper show actual way of implementation in the world of wireless sensor node. User can access and also control the peripheral anywhere from the world via internet. Keywords: Android Device/Computer, Beagle Bone Black, CC3200 (Wi-Fi Protocol), Miwi Protocol, Wi-Fi and Zena Adapter. Cite this Article: C. Malathi and M.Nithyavelam, IoT Based Access and Analysis of Wireless Sensor Node Protocols with Low Power Host Connectivity, International Journal of Civil Engineering and Technology, 8(12), 2017, pp. 77–88 http://iaeme.com/Home/issue/IJCIET?Volume=8&Issue=12

1. INTRODUCTION A is a gang of functional transducers with a communication infrastructure that uses to monitor and record physical or environmental conditions. Sensor node transmit data packet without wire or conductor medium to the host device. In this project we are using more than one node of protocol i.e. Miwi and Wi-Fi. In those nodes of protocol, we can interface many actuator and sensor with . Miwi is a first

http://iaeme.com/Home/journal/IJCIET 89 [email protected] C. Malathi and M.Nithyavelam wireless sensor node of this project. It is it is wireless networking protocol stack which have low cost low data rate, short distance network. Wi-Fi is second wireless protocol sensor node, which is inbuilt in the cc3200 launch pad board [7]. We are using This board as a second sensor node and both protocol nodes transmit the data packet to the host device. Here, user can use any device as host. We are making Zena driver for Linux and character device file generated after successfully registration into Linux kernel as shown in Fig.6. In window operating system user analyse the data packet by using wireless development studio (WDS), but Linux operating system do not have sniffer data tools. So we are using Zena driver for sniffing the data packet into the terminal. Zena is a USB adapter which has MRFJ24J40MA protocol [4]. Zena adapter captures the data packet which communicates between the two MRF24J40MA protocol nodes as shown in Fig.1 and second node has Wi-Fi protocol which is inbuilt in cc32000 launch pad [7]. In this board, we interface the peripherals i.e. motor, led alarm and temperature sensor (prototype).the real-time data packet of actuator and sensor transmit by the Wi-Fi protocol and Miwi protocol simultaneously. we can analyse the data packet on host device(beagle bone black board) and also store into the external memory, which is captured from sensor nodes protocols. Beagle bone black is low power small CPU as compared to computer (210~240v). We are

Figure 1 Block Diagram Using MII fast Ethernet for transmit real time data to the user via internet. User accesses the data through android gadgets and also browser (http).we provide unique IP address of host device to the user. To access the data, user have first enter the name and password. After that user can see real time status of peripherals (actuators and sensors) into browser (http) and also android gadgets (apk).

2. COMMUNICATION BETWEEN WIRELESS SENSORS NODES AND HOST DEVICE MRF24J40MA (802.15.4) and Wi-Fi protocol (108.11b/n/g) are inbuilt on the boards i.e. Miwi board and CC3200 launch pad board respectively. These protocols are transceivers that transmit and receive the data packet in real time. Peripherals are interfaced with GPIO pins of the board. At host device, i.e. (transceiver) side, we interface the USB adapters for capturing the packets of mrfj24j40ma and Wi-Fi protocols simultaneously. We can see the real time sniffer of data packet on Linux terminal and for window we can use WDS software as shown

http://iaeme.com/Home/journal/IJCIET 90 [email protected] IoT Based Access and Analysis of Wireless Sensor Node Protocols with Low Power Host Connectivity in Fig.2. Zena driver sniffing the data packet and show result on the terminal. Beagle bone black board is server for transmitting the real time data packet to the user via internet.

Figure 2 Miwi Packet Captured by Zena Adapter at Channel No.26 in Linux Terminal

3. MIWI PROTOCOL TRANSMITS THE DATA PACKET TO ZENA ADAPTER MRF24J40MA is 2.4GHz having IEEE std 802.15.4.This protocol has integrated crystal, matching circuitry, internal voltage regulator and also an (PCB).MRF24J40ma is compatible with Zigbee protocol [4].

Figure 3 Interfacing between Miwi (MRF24j40MA) and PIC18F46J50 MCU. This protocol is interfaced between the microcontroller i.e. pic18F46j50 as shown in Fig.3. Miwi structure consists of three layers. 1) RF Transceiver driver layer 2) Wireless communication protocol layer 3) User application layer Each one has configuration files. The layer is interconnected by two Microchip proprietary interfaces MiMAC (Microchip Media Access Controller Interface), MiApp (Microchip wireless Application programming interface). Miwi P2P, Miwi Mesh and Miwi Protocol are part of Miwi Development environment. These protocols are only short range wireless networking but we are going to implement the range concept in the way of IoT. so we can capture the packet of Miwi protocol and transmit that real time packet to user through internet then no matter regarding the range. User can access and also sent the data packet for controlling the peripheral in the way of application.

http://iaeme.com/Home/journal/IJCIET 91 [email protected] C. Malathi and M.Nithyavelam

Figure 4 Frequency Band of Zena Protocol Table From Channel 11-26. Miwi pro is best for this project regarding IoT because it provides enhanced routing with capability in order to support up to 64 routing coordinator and each coordinator is capable up to 127 end devices [6]. If we count nodes of whole network, then more than 8000 nodes are in the network. MRF24J40 has 16 operating (11-26) channels in the range of 2.4 GHz and frequency band are different for Each channel as shown in Fig.4.For sniffing and transceiver the data packet PAN id and channel number i.e. 11-26. As a beacon request for end point node, then end point MRF24J40MA tries to join the network by sending association request. Zena analyzer asks the association request coordinator as to what type of device to join to create a network [4]. Then MRF24J40MA protocol sends associated response and the network gets successfully established. We burn the code/program into pic18F46J50 microcontroller. This microcontroller interface with the MRFJ24J40MA protocol as shown in Fig.3 [6].Initially Miwi creates a network with unique Pan Id.

Figure 5 Miwi End Node to Node Communication

Figure 6 Character Device File Initialize After Successfully Register Zena Driver in Linux Os.

http://iaeme.com/Home/journal/IJCIET 92 [email protected] IoT Based Access and Analysis of Wireless Sensor Node Protocols with Low Power Host Connectivity 4. WLAN ADAPTER CAPTURING THE DATA PACKET In host device we have attached WLAN USB to capture the data packet of Wi-Fi protocol i.e. inbuilt on CC3200 launch pad. CC3200 launch pad has Wi-Fi network processor. 108.11 b/g/n Wi-Fi protocol is interfaced with ARM cortex M4, we can also interface the peripheral with GPIO pin. In CC3200 software embedded into ARM cortex M4 for internet and Wi-Fi i.e. Wi-Fi radio, Wi-Fi base band, WiFiMAC, driver supplicant. Initially we burn the service pack programming to CC3200 launch pad the service pack Is binary format that allows running the application in microcontroller unit (MCO), before this first we check the port no of CC3200 launch pad into the device manager [7]. The computer launch pad is connected through the USB for power supply as well as for debugging the program. For burning the application program we need code composer studio Version 6. After dumping the program, we have successfully created an AP station on CC3200 launch pad and that station servers the data packet to the host device through WALAN adapter which is connected to beagle bone black. After capturing the data packet, beagle bone black becomes server for user and user can analyse and controls the peripherals (which are interfaced with GPIO pin of CC3200 board) through internet as a way of IoT.

5. HOST SERVES THE DATA TO USER VIA INTERNET Beagle bone black is low power open-source small CPU hardware. We debug the program and also boot with single USB cable.AM335X 1GHz ARM cortex-A8 processor. We are using this board as a host device because it is powerful for connectivity of our project and also in future perspective. USB client for power and communication, USB Host, Ethernet and HDMI are development areas for this board. We can use any operating system. For this project we are using Linux Operating system. The main purpose of using this board is to reduce the power. Earlier projects have used PC as an host device but here instead of PC we using beagle bone black as host device and save the power up to 205~235 volt[2],[4]. For serving the data packet to user, we use Ethernet and that transmit the data packet to user via internet.

6. USER DEVICE FOR ACCESSING THE REAL TIME DATA Users have two options for accessing the data packet. 1) Browser 2) Android application package. We have created HTML page for accessing the data packet and also access the sensor and actuators real time status from Miwi protocol. We can see the local temperature of Node and also examine the range strength of end node which is connected with PAN coordinator of Miwi as shown in Fig.7 and Wi-Fi protocol transmits current status of peripheral e.g. Air conditioner, LED bulb, Refrigerator, Television etc. If the user forgets to OFF or ON the peripheral then it can control or give command to peripheral and save the power.

http://iaeme.com/Home/journal/IJCIET 93 [email protected] C. Malathi and M.Nithyavelam

Figure 7 Login and Main Page for Security Purpose 7. RESULT We have successfully got many results which are attached in this paper. We registered the Zena driver into kernel for sniffing the packet which shown in Linux terminal Fig.2 and from hardware point of view; we transmit the Miwi packet from one node to another node which is shown in Fig.5. In cc3200 we have successfully created our own access point station for transmitting the Wi-Fi protocol packet to the host device.

8. CONCLUSION These projects will be the way of development and also implementation of technologies regarding wireless sensor network. Billon of people using internet and they all can control the peripherals via internet. By using this technology, we can check which peripherals are on or off according to user requirement for this way we save the electrical energy. And finally this project is developing the way of IoT (internet of thing).

ACKNOWLEDGMENT The author gratefully acknowledges the contributions of Mr. Mayur Kulkarni, Mr. Rajesh Sola, Mrs. C. Malathi and my colleague Aastha Shrivastava and Suyog Kulkarni for their guidance, support and motivation for successful completion of this project. Author also wants to thank Mrs. Vaishali Maheshkar, Technical officer and R&D Dept., C-DAC, Pune.

REFERENCES

[1] Meneses, G.; Lemos, J.D. Implementing IEEE 802.15.4-based communications in sensor nodes aimed for biomedical signal monitoring,Computing Congress, (CCC), 2012, 7th Colombian, DOI, 10.1109/ColombianCC.2012.6398017, Publication [2] Chhajed, S.; Sabir, M.; Singh, K.P., Wireless Sensor Network implementation using MiWiwireless protocol stack, Advance Computing Conference (IACC), 2014 IEEE International DOI: 10.1109/ IAdCC.2014.6779327 Publication Year: 2014. [3] Benavides, G.M.; Duque, J.D.L., EnViBo: Embedded network for vital sign and BiomedicalSignal Monitoring. Communications and Computing (COLCOM), 2014 IEEE Colombian Conference on DOI: 10.1109/ColComCon.2014.6860431 Publication Year: 2014. [4] ZENA™ Wireless Network Analyzer User’s Guide, Microchip.

http://iaeme.com/Home/journal/IJCIET 94 [email protected] IoT Based Access and Analysis of Wireless Sensor Node Protocols with Low Power Host Connectivity

[5] inc., Microchip Miwi P2P Wireless Protocol, 2010. [6] MRF24J40MB Data Sheet 2.4 GHz IEEE Std. 802.15.4™ 20 dBm. [7] CC3200 Simple Link™ Wi-Fi® and Internet-of-Things Solution, a Single-Chip Wireless MCU. [8] Gayathri Natarajan and Dr. L. Ashok Kumar, Implementation of IoT Based Smart Village for the Rural Development, International Journal of Mechanical Engineering and Technology 8(8), 2017, pp. 1212–1222. [9] Mr. N. Sampathraja, Dr. L. Ashok Kumar, Mr. K. Vishnu Murthy, Ms. V. Kirubalakshmi and Ms. C. Muthumaniyarasi, Iot Based Underground Cable Fault Detector, International Journal of Mechanical Engineering and Technology 8(8), 2017, pp. 1299–1309. [10] Snehal R. Shinde, A. H. Karode and Dr. S. R. Suralkar, Review onIOT Based Environment Monitoring System, International Journal of Electronics and Communication Engineering and Technology, 8(2), 2017, pp. 103–108. [11] Ashlesha A. Patil and Dr. S. R. Suralkar. Review on-IOT Based Smart Healthcare System. International Journal of Advanced Research in Engineering and Technology, 8(3), 2017, pp 37–42. [12] Viswanath Naik.S, S.Pushpa Bai, Rajesh.P, Mallikarjuna Naik.B, Iot Based Green House Monitoring System, International Journal of Electronics and Communication Engineering & Technology (IJECET), Volume 6, Issue 6, June (2015), pp. 45-47

http://iaeme.com/Home/journal/IJCIET 95 [email protected]