A Complete Study of Chatting Room System based on Android Bluetooth



Similar documents
Design of Chatting Application Based on Android Bluetooth

Mobila applikationer och trådlösa nät

ANDROID BASED SECURITY AND HOME AUTOMATION SYSTEM

ANDROID LEVERED DATA MONITORING ROBOT

ECM (ELO-KIT-ECMG2-AND)

Fig. 1 BAN Architecture III. ATMEL BOARD

ENABLING WIRELESS DATA COMMUNICATION IN CONSTRUCTION MANAGEMENT SYSTEM

Sending and Receiving Data via Bluetooth with an Android Device

Performance Measuring in Smartphones Using MOSES Algorithm

Development of a new service using Wi-Fi Direct

VEHICLE TRACKING SYSTEM USING GPS. 1 Student, ME (IT) Pursuing, SCOE, Vadgaon, Pune. 2 Asst. Professor, SCOE, Vadgaon, Pune

The next generation of knowledge and expertise Wireless Security Basics

Research on Situation and Key Issues of Smart Mobile Terminal Security

A qbit on Android Security

Remote Desktop Access through Android Mobiles and Android Mobiles Access through Web Browser

Bluetooth Pairing with CUE - Android TM

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

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

AUTOMOTIVE BLUETOOTH TELEPHONY.

A MEDICAL HEALTH CARE SYSTEM WITH HIGH SECURITY USING ANDROID APPLICATION

Overview. Summary of Key Findings. Tech Note PCI Wireless Guideline

Analysis of Open Source Drivers for IEEE WLANs

Lecture Embedded System Security A. R. Darmstadt, Introduction Mobile Security

Wireless LANs vs. Wireless WANs

Analysis of advanced issues in mobile security in android operating system

Short-range Low Power Wireless Devices and Internet of Things (IoT)

Smartphone as a Remote Control Proxy in Automotive Navigation System

RTOS based Home Automation System using Android

Issues in Android on Mobile Platform and Their Resolution

Analysis of Methods for Mobile Device Tracking. David Nix Chief Scientific Advisor

Intelligent Home Automation and Security System

LOCATIONS AROUND ME (ANDROID)

WHITE PAPER Usher Mobile Identity Platform

Connecting your Aiki phone to a network

Remote Android Assistant with Global Positioning System Tracking

An Android Enabled Mobile Cloud Framework for Development of Electronic Healthcare Monitoring System using VPN Connection

Hardware and software implications of creating Bluetooth Scatternet devices

Networking. Systems Design and. Development. CRC Press. Taylor & Francis Croup. Boca Raton London New York. CRC Press is an imprint of the

A new Design Approach for Developing Electronic Health Record Application on Android

Quick Start Guide v1.0. This Quick Start Guide is relevant to Laird s BT800, BT810 and BT820 Bluetooth modules.

Remote Monitoring and Controlling System Based on ZigBee Networks

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

Design of Wireless Home automation and security system using PIC Microcontroller

High Secure Mobile Operating System Based on a New Mobile Internet Device Hardware Architecture

Research and Design of Universal and Open Software Development Platform for Digital Home

HOME APPLIANCES CONTROL SYSTEM BASED ON ANDROID SMARTPHONE

Mobile Operating Systems Lesson 05 Windows CE Part 1

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Using Bluetooth on Android Platform for mhealth Development

CMR Journal of Engineering and Technology Vol.1 Issue.1 January 2016

PocketDroid - A PC Remote Control

DiffUser: Differentiated User Access Control on Smartphones

Security+ Guide to Network Security Fundamentals, Third Edition. Chapter 6. Wireless Network Security

Avaya WLAN Orchestration System

Wireless ATA: A New Data Transport Protocol for Wireless Storage

A B S T R A C T. Keywords: Mobile computing, Compiler, Android Development tool kit; I. INTRODUCTION

ANDROID BASED MOBILE APPLICATION DEVELOPMENT and its SECURITY

Lab Exercise Objective. Requirements. Step 1: Fetch a Trace

IJREAT International Journal of Research in Engineering & Advanced Technology, Volume 1, Issue 1, March, 2013 ISSN:

Short range low power wireless devices and Internet of Things (IoT)

When a student leaves this intensive 5 day class they will have hands on understanding and experience in Ethical Hacking.

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

Bluetooth Messenger: an Android Messenger app based on Bluetooth Connectivity

Design and Implementation of Forensic System in Android Smart Phone

Present and Act Upon. Register. Consume. Stream Analytics. Event Hubs. Field Gateway. Applications Cloud Gateway. Legacy IoT (custom protocols)

Intelligent Database Monitoring System using ARM9 with QR Code

Figure 1.Block diagram of inventory management system using Proximity sensors.

Zigbee-Based Wireless Distance Measuring Sensor System

Skynax. Mobility Management System. System Manual

Secure Your Enterprise with Usher Mobile Identity

AUTOMATE CRAWLER TOWARDS VULNERABILITY SCAN REPORT GENERATOR

Android Commercial Spyware Disease and Medication

A Short Introduction to Android

Gateway Service for Integration of Heterogeneous Networks using Different Interworking Solutions

Usability Testing for Android and Apple Smart Phone

TECHNICS TECHNOLOGIES EDUCATION MANAGEMENT JOURNAL OF SOCIETY FOR DEVELOPMENT OF TEACHING AND BUSINESS PROCESSES IN NEW NET ENVIRONMENT IN B&H

Degree Certificate Authentication using QR Code and Smartphone

Principles and Foundations of Web Services: An Holistic View (Technologies, Business Drivers, Models, Architectures and Standards)

Study of SAP ERP Connection System Driven in Smartphone

A Real Time Tracking and Alerting System Using LabVIEW

Part K:11 OBJECT PUSH PROFILE

GUI/Custom GUI, SIP Stack, Telephony, DB, Sockets, Bluetooth, QT.

Application of Android Mobile Platform in Remote Medical Monitoring System

Keywords RFID READER, FPGA, GSM.

A Practical Analysis of Smartphone Security*

Remote Desktop on Mobile

Introducing BEEKS Proximity Solutions. Developer Kit Gets You Started

A B S T R A C T. Index Trems- Wi-Fi P2P, WLAN, Mobile Telephony, Piconet I. INTRODUCTION

Software design (Cont.)

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

PM0237 Programming manual

Bluetooth Health Device Profile and the IEEE Medical Device Frame Work

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

Design of a Wireless Medical Monitoring System * Chavabathina Lavanya 1 G.Manikumar 2

ANDROID APPLICATION DEVELOPER RESUME

WAITER: A Wearable Personal Healthcare and Emergency Aid System

Transcription:

A Complete Study of Chatting Room System based on Android Bluetooth Rahul Verma 1, Ruchit Gupta 2, Manas Gupta 3, Rahul Singh 4 Moradabad Institute of Technology, Moradabad 1 ce.rahulverma@gmail.com, 2 ruchit.gupta09@gmail.com, 3 gmanu5176@gmail.com, 4 panwar.rahul44@gmail.com Abstract-- Bluetooth chatting is an innovative approach to the mobile world. A low power and low cost connection is provided by the Bluetooth among mobile devices and their accessories. It is basically an open standard for implementing a short range wireless communication. This application allows two Android devices to carry out twoway text chat over Bluetooth. This shows the use of Bluetooth in terms of chatting. The paper contains design and implementation of Bluetooth Communication by using APIs of Android platform. The APIs wirelessly connect applications to other Bluetooth devices, enabling point-topoint and multipoint wireless features. Keyword:- Android, Component, Bluetooth, wireless communication, chat room. I. INTRODUCTION The Android platform support for the Bluetooth network stack. It allows a device to wirelessly exchange data with other Bluetooth devices. The new vitality to the mobile space has injected because of the release of Android smart platform. Android is an operating system based on Linux kernel. It is designed for the touch screen mobile devices. The user interface of Android is based on direct manipulation. The Android system provides many Bluetooth APIs for developers to call.[1] Bluetooth technology allows users to exchange voice and data transmission between two or more devices. It is basically a wireless communication technology. Bluetooth technology is reflected in the low price, easy to control and non-visual distance limitations. Bluetooth is integrated into the android platform as an android mobile network communication module. Chat room is used to connect the Android phones into a local area network. It helps to communicate with each other. By the help of the Bluetooth module, the Android phones can be divided into client and server. Chat can be accomplished only after the division of client and server. It is used to initialize the connection. Fig 1: Bluetooth chat in two android devices Bluetooth does not need a license around the globe for the working frequency band. In the connection initialization phase, firstly, it starts the application and search the Bluetooth devices. Second, it sends the signals to the server class. After this it can run, pause and stop the application. Third, it shows alert using setalert function on every changing. Server goes active and sends the signals to other devices. Client class works to respond the other Bluetooth device server. This allows a two-way chat over Bluetooth. No GSM or Wi-Fi connection required. In addition to the person-to-person chat, chat rooms can be used to gather more than two persons at a time. II. BLUETOOTH ARCHITECTURE Bluetooth is a wireless technology standard for exchanging data over short distances. This low cost transmission technology for the handheld devices and various electronic products. Android Bluetooth system contains linux kernel, Bluetooth driver, Bluetooth protocol layers bluez Bluetooth user library, bluez adaptation layer.[2] Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 135

III. PROCESS OF BLUETOOTH CHAT APPLICATION i. It first checks whether the Bluetooth of the devices is in ON/OFF mode. ii. If the Bluetooth of the devices is in OFF mode then it makes the request to enable the Bluetooth. iii. Perform scanning of the devices which are in their range. iv. Display the list of all the devices in the range. v. Select the device with which one wants to do the chat. vi. If the device connects then set up the chat session. Fig 2: Android Bluetooth structure Bluetooth can be used to transmit asynchronous data and synchronous language at the same time. L2C AP, SDP, RFCOMM etc are underlying protocol layer include a number of agreements. It provides the upper transmission. IV. DESIGN OF BLUETOOTH COMMUNICATION In the Android platform Bluetooth API is needed to implement the communication between the Bluetooth devices. The Bluetooth communication is based on the unique MAC. Bluetooth devices must been paired before using Bluetooth communication for the security purpose. The connected devices will be shared with a RFCOMM channel to transmit data. RFCOMM bluetoothsocket used to accept the incoming connections must be attached to operating system resources with the bind method. The process of Bluetooth communication includes three steps: i. Query Bluetooth: BluetoothAdapter is used to get the Bluetooth Activity. It is the entry-point for all Bluetooth interaction and also it is used to discover other Bluetooth devices. It creates the BluetoothServerSocket to listen for communications from other devices. Bluetooth Adapter is also used to get the Bluetooth connection intent.[6] The query pairing process is shown in the following figure- Fig 3: Relationship between Bluetooth Protocol Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 136

iii. Connecting Bluetooth: Request the BLUETOOTH PERMISSION in order to perform any Bluetooth communication, such as requesting a connection, accepting a connection and ransferring the data. The process of pairing connection shown in the following diagram: ii. Fig 4: The pairing process Finding devices: In this, it is needed to open the Bluetooth user name and MAC address to pair the Bluetooth. Fig 5: Bluetooth pairing and Connection process Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 137

Fig 6: Workflow of the Bluetooth Chat Room V. DESIGN OF MODULES WITH SAMPLE CODE i. Discovering Devices: Device discovery is a scanning procedure and searches the local area for Bluetooth enabled devices. If the Bluetooth device is currently enabled to be discoverable then only it will respond to the discovery request. If the device is discoverable then it will respond by sharing some information such as device name, class and its unique MAC address. First time connection request automatically presented to the user. The information can be read using the Bluetooth APIs. Difference between paired and being connected are: Paired Two devices are aware of each other s existence. They have a shared link-key that can be used for the authentication. Capable of establishing an encrypted connection with each other. To be connected Devices currently share an RFCOMM channel. Transmit data with each other. Sample code : startdiscovery method is used in the class of BluetoothAdapater. It executes asynchronously, so we do not consider the thread is blocked. Whole process takes about 12 seconds[3]. Then register a BroadcastReceiver object to receive the Bluetooth device information. Then filter ACTION_FOUND intent to obtain the tailed information for each remote device. // Create a BroadcastReceiver for ACTION_FOUND private final BroadcastReceiver mreceiver = new BroadcastReceiver() { public void onreceive(context context, Intent intent) { String action = intent.getaction(); // When discovery finds a device if (BluetoothDevice.ACTION_FOUND.equals(action)) { // Get the BluetoothDevice object from the Intent BluetoothDevice device = intent.getparcelableextra(bluetoothdevice.extra_de VICE); // Add the name and address to an array adapter to show in a ListView marrayadapter.add(device.getname() + "\n" + device.getaddress()); }}}; Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 138

ii. "Sharpening Skills... Paired Device: getbondeddevices() method is used in the pairing a Bluetooth device in the class BluetoothAdapter to obtain a paired device. This method returns the array of Bluetooth device to distinguish between each paired device. Sample code: iii. Set<BluetoothDevice> paireddevices = mbluetoothadapter.getbondeddevices(); // If there are paired devices if (paireddevices.size() > 0) { // Loop through paired devices for (BluetoothDevice device : paireddevices) { // Add the name and address to an array adapter to show in a ListView marrayadapter.add(device.getname() + "\n" + device.getaddress());}} Establishing: For the establishment of a Bluetooth communication must go through : Get local Bluetooth devices; Find the remote device; Pairing; iv. Connect devices; and Transfer data. Server Design: Server is needed to connect the two devices because it holds an open bluetoothserversocket. It is designed to listen for incoming connection requests. Call listenusingrfcommwithservicerecord(string, UUID) to get Bluetooth server socket. String = Name of the service, UUID = sign of connection Call the method accept() to listen for connection request and return a connection on Bluetooth socket bluetoothsocket. Call the method close() after listening to a connection to close the listener. v. Client Design: Bluetooth Device object is used to initialize a connection. Obtain the Bluetooth socket and initialize the connection by the BluetoothDevice object. Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 139

Fig 7: Detailed design of Bluetooth Chat Room[4] VI. ADVANTAGE OF BLUETOOTH CHAT IN ANDROID i. Low-power & low-cost wireless connection. ii. Open standard short-range wireless communication. iii. Bluetooth offers higher level service profiles, such as FTP-like file servers, voice transport, and more.[8] iv. Innovative approach to the mobile world. v. No GSM or Wi-Fi connection required. vi. Bluetooth does not need a license around the globe for the working frequency band. vii. Low cost transmission technology for the handheld devices. VII. LIMITATIONS OF CHATTING ROOM SYSTEM IN ANDROID BLUETOOTH i. Strangers can communicate with others using Bluetooth devices. ii. Bluejacking, refers to people who send irrelevant, surprising, or shocking messages to strangers in their vicinity. iii. Limited range to chat.[7] VIII. CONCLUSION AND FUTURE WORKS The internet age of today chat room is of a great entertainment features project. Most of the internet user likes it. Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 140

Android provides the design and realization of chatting room system is good for developing Bluetooth network application and Bluetooth agreement. The system have realized the broadcast and private chat between mobile phones. But few still need to further improve the usability and functionality of the system like richer input format, the expression of information, pictures, information transmission etc. REFERENCES [1] E2ECloud studio. Google Android[M] posts & telecom press. 2009 [2] [2] The Bluetooth Special Interest Group. Bluetooth Specification Core v4.0 (2009-02). [3] Han Chao, Liang Quan, Principles and development points of the Android system[m]. Publishing House of Electronics industry. 2010 [3] yang Fegsheng. Android Inside [M]. Machinery Industry Press. 2008 [4] Andre N Klingsheim. J2ME Bluetooth Programming[D]. Department of informatics University of Bergen, 2004 [5] W., ONGTANG, M., AND MCDANIEL, P. OnLightweight Mobile Phone Application Certification. In Proceedingsof the 16th ACM Conference on Computer and Communications Security (CCS) (Nov. 2009). [6] ENCK, W., ONGTANG, M., AND MCDANIEL, P. Understanding Android Security. IEEE Security & Privacy Magazine 7, 1 (January/February 2009), 50 57. [7] FELMETSGER, V., CAVEDON, L., KRUEGEL, C., AND VIGNA, G. Toward Automated Detection of Logic Vulnerabilities inweb Applications. In Proceedings of the USENIX Security Symposium (2010). [8] FIRST TECH CREDIT UNION. Security Fraud: Rogue Android Smartphone app created. Dec. 2009. [9] GOODIN, D. Backdoor in top iphone games stole user data, suit claims. The Register, November 2009. [10] HOVEMEYER, D., AND PUGH, W. Finding Bugs is Easy. In Proceedings of the ACM conference on Object-Oriented Programming Systems, Languages, and Applications (2004). [11] JOHNS, T. Securing Android LVL Applications. 2010. [12] JUNG, J., SHETH, A., GREENSTEIN, B., WETHERALL, D.,MAGANIS, G., AND KOHNO, T. Privacy Oracle: A System for Finding Application Leaks with Black Box Differential Testing. In Proceedings of the ACM conference on Computer and Communications Security (2008). [13] KASPERSKEY LAB. First SMS Trojan detected for smartphones running Android. August 2010. [14] KIRDA, E., KRUEGEL, C., BANKS, G., VIGNA, G., AND KEMMERER, R. A. Behavior-based Spyware Detection. In Proceedings of the 15th USENIX Security Symposium (Aug. 2006). Lord Krishna College of Engineering (An ISO 9001:2008 Certified Institute) Ghaziabad, Uttar Pradesh, INDIA. Page 141