Design of an Easy-to-Use Bluetooth Library for. Wireless Sensor Network on Android



Similar documents
Open Access Research and Design for Mobile Terminal-Based on Smart Home System

Smartphone as a Remote Control Proxy in Automotive Navigation System

Study of SAP ERP Connection System Driven in Smartphone

Development of Integrated Management System based on Mobile and Cloud service for preventing various dangerous situations

Mobile Hybrid Cloud Computing Issues and Solutions

Designing and Embodiment of Software that Creates Middle Ware for Resource Management in Embedded System

Smart Integrated Multiple Tracking System Development for IOT based Target-oriented Logistics Location and Resource Service

WBAN Beaconing for Efficient Resource Sharing. in Wireless Wearable Computer Networks

Study of SAP ERP Connection System Driven in Smartphone

Internet of Things for Smart Crime Detection

The Design and Implementation of the Integrated Model of the Advertisement and Remote Control System for an Elevator

Personal Health Care Management System Developed under ISO/IEEE with Bluetooth HDP

Development of Integrated Management System based on Mobile and Cloud Service for Preventing Various Hazards

Cloud Computing based Livestock Monitoring and Disease Forecasting System

Prototype Design of NFC-Based Electronic. Coupon Ecosystem with Object Memory Model

The Development of an Intellectual Tracking App System based on IoT and RTLS

Device-based Secure Data Management Scheme in a Smart Home

How To Test A Robot Platform And Its Components

A Design of Mobile Convergence Architecture for U-healthcare

Adaptive MAC Protocol for Emergency Data Transmission in Wireless Body Sensor Networks

Remote Monitoring and Controlling System Based on ZigBee Networks

Big Data Collection Study for Providing Efficient Information

01. Introduction of Android

AN INFORMATION AGENT SYSTEM FOR CLOUD COMPUTING BASED LOCATION TRACKING

PART I: WELCOME TO THE WONDERFUL WORLD OF ACCESSORIES CHAPTER 1: INTRODUCTION TO ANDROID OPEN ACCESSORY 3

Harmonizing Government Policies and Enterprise Strategies for IoT Business

Security Threats on National Defense ICT based on IoT

HP Cloud Printing. Rachel Tang, Market Development Manager 3 Dec, 2013

Implementation of IR-UWB MAC Development Tools Based on IEEE a

An Architecture for Home-Oriented IPTV Service Platform on Residential Gateway

A Security Architecture for. Wireless Sensor Networks Environmental

Open Access Design of a Python-based Wireless Network Optimization and Testing System

ni.com Remote Connectivity with LabVIEW

A Digital Door Lock System for the Internet of Things with Improved Security and Usability

ANDROID LEVERED DATA MONITORING ROBOT

Design for Success: Designing for the Internet of Things with TiWiConnect

Customized Efficient Collection of Big Data for Advertising Services

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu

Home Appliance Control and Monitoring System Model Based on Cloud Computing Technology

An M2M-Based Interface Management Framework for Vehicles with Multiple Network Interfaces

Fast remote data access for control of TCP/IP network using android Mobile device

Design and Implementation of Automatic Attendance Check System Using BLE Beacon

AddPac Technology 2015, Sales and Marketing

Android Application Development and Bluetooth Technology

A Survey of Cloud Based Health Care System

Extending Tizen Native Framework with Node.js

Internet of Things (IoT): A vision, architectural elements, and future directions

COPYRIGHT RESERVED TEAM MYSTERIOUS MANIACS HOME AUTOMATION via BLUETOOTH (Using ANDROID PLATFORM)

Performance Analysis of Web-browsing Speed in Smart Mobile Devices

Sony Releases the Transparent Lens Eyewear SmartEyeglass Developer Edition

Effective Interface Design Using Face Detection for Augmented Reality Interaction of Smart Phone

CLOUD BASED HOME SECURITY 1 Anjali Chachra 1

Questions from The New SensorTag - IoT Made Easy Webinar

In the pursuit of becoming smart

ANDROID BASED SECURITY AND HOME AUTOMATION SYSTEM

Structure Based Enterprise Mobility for Mobile Device Applications for AHMS

A Study of Key management Protocol for Secure Communication in Personal Cloud Environment

Telephony Calls over Bluetooth. By Ajinkya Salunke, Prashant Shelke & Apurva Sahasrabudhe Sinhgad college of Engineering, Pune

Integration of Wearable Monitoring Device and Android Smartphone Apps for u-healthcare Monitoring System

Building Social CRM Framework. on Enterprise Architecture Framework. Using Value Chain Process Approach

Using Cloud Computing Technology to Develop a Emergency. Care System on Android

Samsung SDS. Enterprise Mobility Management

Smart Home Security System Based on Microcontroller Using Internet and Android Smartphone

Smart Shopping- An Android Based Shopping Application

Success factors for the implementation of ERP to the Agricultural Products Processing Center

Application Note. Connecting the TracKing-1 using Bluetooth

Mobile Phone Location Tracking by the Combination of GPS, Wi-Fi and Cell Location Technology

Mobile Cloud Computing Security Considerations

Publishing to TIZEN Using the Automated Conversion/Repackaging of Existing Android Apps. Hyeokgon Ryu, Infraware Technology, Ltd.

Smart Chair: An Internet of Things Case Study for a Capstone Research Project

Fast Device Discovery for Remote Device Management in Lighting Control Networks

A Study on Design of Health Device for U-Health System

Graduate presentation for CSCI By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

Implementation of Augmented Reality System for Smartphone Advertisements

Effective Use of Android Sensors Based on Visualization of Sensor Information

A Study of e-trading System over Mobile Applications

A Study on HL7 Standard Message for Healthcare System Based on ISO/IEEE 11073

Design and Implementation of a Voice Based Navigation for Visually Impaired Persons

Data Mining Approach For Subscription-Fraud. Detection in Telecommunication Sector

Component Based Development for Mobile Enterprise Application

Full version is >>> HERE <<<

Remote Desktop on Mobile

VOL. 2, NO. 1, January 2012 ISSN ARPN Journal of Science and Technology ARPN Journals. All rights reserved

Iotivity Programmer s Guide Soft Sensor Manager for Android

Simurgh: A Framework for Effective Discovery, Programming, and Integration of Services Exposed in IoT

Transcription:

Contemporary Engineering Sciences, Vol. 7, 2014, no. 16, 801 805 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ces.2014.4694 Design of an Easy-to-Use Bluetooth Library for Wireless Sensor Network on Android Tae-Yang Lee, Ki-Hoon Kim and Gu-Min Jeong 1 School of Electronical Engineering, Kookmin University, Korea 1 Corresponding author Copyright 2014 Tae-Yang Lee, Ki-Hoon Kim and Gu-Min Jeong. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Abstract In this paper, we present a lightweight library to develop Bluetooth related applications in Android environment for wireless sensor network. Bluetooth based communication can be applied by some basic steps including enquiry, authorization and connect. Currently, Google provides a Bluetooth handling API as an Android SDK and a tutorial, however the development with this APIs may be still difficult for beginners. Considering these, for easy-to-use APIs in Android Platform, we design a standard library which is called MoscaBluetooth, to help developers develop Bluetooth application easily. Keywords: Android, Bluetooth, MoscaBluetooth, Android Bluetooth Library 1 Introduction A concept of Internet of Thing (IoT), which forms a network by sharing information of each sensing object, has recently been spotlighted over the world [1]. The MWC 2014 and CES 2014 exhibitions have presented lots of devices and services related to IoT [2]-[3]. Moreover, a variety of hardware, software and networks with interworking services for IoT have developed. In IoT environment, Bluetooth network can cooperate with smartphone and LAN for wireless sensor network [4]. Additionally, a Bluetooth related research has been underway to provide a variety of services using Wireless Personal Areal Network (WPAN) [5]- [6]. Developers are required to have a thorough grasp of Bluetooth knowledge and handle a variety of tasks to develop a Bluetooth related application on Android environment. Hence, the Bluetooth app development may be somewhat difficult to

802 Tae-Yang Lee, Ki-Hoon Kim and Gu-Min Jeong beginners. Thus, simple API set for convenient development is essentially required. In this paper, we present a lightweight library to develop Bluetooth related applications in Android environment for wireless sensor network. The designed MoscaBluetooth library are totally composed of three classes with an understandable definition in accordance with their defined names. 2 MoscaBluetooth Library Design Standard Android Bluetooth library can be classified into three groups according to the roles of the classes. We design the proposed library using three group. In this design, we have three groups; MoscaBTController, MoscaEventListener and MoscaEventList classes. Figure 1 shows the construction diagram of components of the MoscaBluetooth library. Fig. 1. Construction of the designed MoscaBluetooth library 3 MoscaBluetooth Library Development MoscaBluetooth library is designed with three classes. MoscaBluetooth library has different from organization of Android standard Bluetooth library. Table 1 lists offered tasks of MoscaBluetoth library. Table 1. Basic classes of MoscaBluetooth Classes MoscaBTController MoscaEventListener MoscaEventList Description Control of Bluetooth (e.g on/off, discovery, etc.) Call-back method Event message List

Design of an easy-to-use bluetooth library 803 MoscaBluetooth Class contains necessary methods for handling Bluetooth connection on Android environment. With this class, developers can easily control Bluetooth devices on Android environment. Developer can process error message with throws command against occurring error because defined methods in MoscaBluetooth class are contained error exception sentence. The MoscaEventListener class has an interface for listening generated events of Bluetooth equipment to process by callbacks. Defined interface method invokeevent() is used call-back in main activity via Implement and Override. When the MoscaEventListener is invoked, the information about the events can be confirmed by calling callbacks to check the corresponding parameters. A message about the event is defined in the MoscaEventList class as a type consisting of two attributes, and stored on the Bluetooth profile. 4 Exemplary app development using the proposal API sets We develop a test app using Bluetooth for testing the MoscaBluetooth library. In this example, we use a Samsung Galaxy S4 to connect a PC using Bluetooth dongle. Figure 2 shows the examples where a Bluetooth based communication application using the MoscaBluetooth library on a smartphone to connect and transmit data to a PC. Fig. 2. Test App and Communication flow As can be seen table 2, the MoscaBluetooth significantly decreases the number of required APIs for controlling Bluetooth. The MoscaBluetooth offers 15 APIs for controlling Bluetooth, whereas, an Android standard library is required at least 61 APIs. Table 2 shows some fundamental APIs of the MoscaBluetooth and Android Standard libraries for controlling the Bluetooth unit.

804 Tae-Yang Lee, Ki-Hoon Kim and Gu-Min Jeong Table 1. The number of required standard method for MoscaBluetooth Process MoscaBluetooth Library s Method The number of Standard Library Method isenabled() 1 Device Enable setenable() 3 setdisable() 3 callbtmanager() 2 Discovery startdiscovery() 2 getdevices() 1 Connection Request connect() 8 accept() 11 Accept Connection Request accept() : TimeOut 7 acceptcancel() 5 Disconnection ondisconnect90 2 Discoverable setdiscoverable() 7 Data Send and Receive send() 2 recv() 5 Total 15 61 5 Conclusion In this paper, we proposed a lightweight Bluetooth library to provide a convenient Bluetooth service related development tool on Android platform. We also implemented a simple test app that communicates to a PC using Bluetooth. Because the developed library abstracts Android standard library, the number of methods is relatively small, and therefore, Bluetooth app development can be faster and more convenient. We show the validity and applicability of the proposed method with an exemplary app which connects PC and smartphone. Acknowledgements. This research was supported by the MSIP(Ministry of Science, ICT&Future Planning), Korea, under the ITRC(Information Technology Research Center) support program (NIPA-2014-H0301-14-1005) supervised by the NIPA(National IT Industry Promotion Agency), and in part by Seoul Creative Human Development Program(HM120006) References [1] Gubbi, J., Buyya, R., Marusic, S., & Palaniswami, M., Internet of Things (IoT): A vision, architectural elements, and future directions, Future Generation Computer Systems, 1645-1660, 2013 [2] Mobile World Congress, http://www.mobileworldcongress.com/ [3] Consumer Electronics Show, http://www.cesweb.org/

Design of an easy-to-use bluetooth library 805 [4] Zhao, X. F., The Application of Bluetooth in the Control System of the Smart Home with Internet of Things, Advanced Materials Research, 712, 2753-2756, 2013 [5] I.-H. Kim, S.-Y. Shin, Y.-H. Song, K-D. Chung, & G.-M. Jeong, A Capacity Modeling of Bluetooth Access Points for Location Based Service with Mobile Phone and Bluetooth, Journal of Electrical Engineering & Technology, 8(1), 183-189, 2013 [6] I.-H. Kim, G.-M. Kim, E.-C. Park, & K.-D. Chung, A WPAN Platform Design in Mobile Phone Considering Application Development and Usability, International Journal of Computers, Communications & Control, 7(1), 2012 Received: May 1, 2014