multi user mobile bluetooth two way text chat

4
-Abstract -Bluetooth is a wireless technology standard for exchanging data over short distances (using short-wavelength microwave transmissions in the ISM band from 2400–2480 MHz[ - Bluetooth was standardised as IEEE 802.15.1 -Setting up connections Any Bluetooth device in discoverable mode will transmit the following information on demand: Device name Device class List of services Technical information (for example: device features, manufacturer, Bluetooth specification used, clock offset) -Bluejacking Main article: Bluejacking Bluejacking is the sending of either a picture or a message from one user to an unsuspecting user through Bluetooth wireless technology. Common applications include short messages, e.g., “You’ve just been bluejacked!”.Bluejacking does not involve the removal or alteration of any data from the device. Bluejacking can also involve taking control of a mobile device wirelessly and phoning a premium rate line, owned by the bluejacker. -Pairing and bonding -Motivation: Private sensitive data are transmitted -Implementation During the pairing process, the two devices involved establish a relationship by creating a shared secret known as a link key -Pairing mechanisms  -Legacy pairing  -Secure Simple Pairing (SSP) Piconet: -Bluetooth is a packet-based protocol with a master-slave structure. One master may communicate with up to seven slaves in a piconet; all devices share the master’s clock. Packet exchange is based on the basic clock, defined by the master, which ticks at 312.5 µs intervals -Scatternet is a type of ad hoc computer network consisting of two or more piconets.  ———————————————————————————————————  ———————————————————————————————- BASE REPORT:-  ///////////// ///////////// ///////////// //////////// ///////////// //////////// //////////// ////////////// //////////// ///////////// //  ///////////// //////// Introduction  ———————\\\\ \\\\\\\\\\\\\\ \\\\\\\\\\\\ \\\\\\\\\\\\ Bluetooth is a short range wireless communication technology Android is a open source operating system based on LINUX Purpose is to connect phones to form LAN

Upload: saurav-azad-azad

Post on 18-Oct-2015

16 views

Category:

Documents


0 download

TRANSCRIPT

Abstract And research Document

-Abstract -Bluetooth is a wireless technology standard for exchanging data over short distances (using short-wavelength microwave transmissions in the ISM band from 24002480 MHz[- Bluetooth was standardised as IEEE 802.15.1-Setting up connectionsAny Bluetooth device in discoverable mode will transmit the following information on demand:Device nameDevice classList of servicesTechnical information (for example: device features, manufacturer, Bluetooth specification used, clock offset)-BluejackingMain article: BluejackingBluejacking is the sending of either a picture or a message from one user to an unsuspecting user through Bluetooth wireless technology. Common applications include short messages, e.g., Youve just been bluejacked!.Bluejacking does not involve the removal or alteration of any data from the device. Bluejacking can also involve taking control of a mobile device wirelessly and phoning a premium rate line, owned by the bluejacker.-Pairing and bonding-Motivation: Private sensitive data are transmitted-ImplementationDuring the pairing process, the two devices involved establish a relationship by creating a shared secret known as a link key-Pairing mechanisms -Legacy pairing -Secure Simple Pairing (SSP)Piconet:-Bluetooth is a packet-based protocol with a master-slave structure. One master may communicate with up to seven slaves in a piconet; all devices share the masters clock. Packet exchange is based on the basic clock, defined by the master, which ticks at 312.5 s intervals-Scatternet is a type of ad hoc computer network consisting of two or more piconets.-BASE REPORT:-//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Introduction\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Bluetooth is a short range wireless communication technologyAndroid is a open source operating system based on LINUXPurpose is to connect phones to form LAN Through the bluetooth module can be divided into Client and Server

Bluetooth ArchitectureH/W module and protocol layer laying under high level application Android Bluetooth system contains -Bluetooth driver-Linux Kernel-BlueZ Bluetooth User library-BlueZ adaptation LayerBluetooth can transmit asynchronous data and synchronous language at the same time

BlueZ:::BlueZ-Bluez is the Bluetooth stack for Linux. Its goal is to make an implementation of the Bluetooth wireless standards specifications for Linux. As of 2006, the BlueZ stack supports all core Bluetooth protocols and layers.[1] It was initially developed by Qualcomm, and is available for Linux kernel versions 2.4.6 and up.In addition to the basic stack, the bluez-utils and bluez-firmware packages contain low level utilities such as dfutool which can interrogate the Bluetooth adapter chipset to determine whether its firmware can be upgraded.Underlying protocols :1.L2C ::-Layer two Control based on General Switch Management Protocol (GSMP), as defined in RFC 3292. GSMP is a general purpose protocol used to control a label switch.2.AP ::-Inter-Access Point Protocol is a recommendation that describes an optional extension to IEEE 802.11 that provides wireless access point 3. RFCOMM::Radio frequency communication (RFCOMM)The Bluetooth protocol RFCOMM is a simple set of transport protocols, made on top of the L2CAP protocol, providing emulated RS-232 serial ports (up to sixty simultaneous connections to a Bluetooth device at a time). The protocol is based on the ETSI standard TS 07.10.RFCOMM is sometimes called serial port emulation. The Bluetooth serial port profile is based on this protocol.4.SDP :: Session Description Protocol (SDP) is a format for describing streaming media initialisation parametersBluetooth Communication=======================Bluetooth communication is based on unique MAC of devicePairing is must before communicationSteps in communication1.Query Bluetooth -get ActivityResult()2.Finding device-open username and MAC3.Connection Established

-FINDING /DISCOVERING DEVICE::Use artDiscovery() to get around the device time:12 sec -asynchronous -no blocked three threatBroadcast received object to get device informationACTION_FOUND to get information about remote devicePAIRED DEVICE ::getBondedDevice() in bluetooth Adapter class to obtain paired deviceReturn Bluetooth device array for each pairESTABLISHING::get local Devices ,find remote device ,paired deviceFind Bluetooth adapter for activity -getDefaultAdapter()Use IsEnable to check if the bluetooth is turned on or notDESIGN OF BLUETOOTH CHAT ::===========================similar to TCP trafficClient and server (android phone )Android system component used:Activity and ServicesEach Activity Activity and Service is an independent eventAndroidBinder mechanism to bind all the activityBluetoothChat.java , BluetoothChatService.java ,DeviceListActivity.java-SERVER DESIGN open bluetoothsocket() listens to the incoming connectionCall listenusingRfcommWithServiceRecord(String,UUID) to get bluetoothsocketserverUUID must match each other after connected accept() to listen to the requestclose() to close the communicationCLIENT DESIGN

to initialise a connection - need to get bluetooth device ObjectRfconnShocketToServiceRecode(UUID)Call connect()Call close() to save system resourcesCONNECTION MANAGEMENT

Call getInputStream() ,getOutputStream() Call read(byte[]) , write(byte[])send to te target and close the connection