Sie sind auf Seite 1von 4

-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 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., 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 -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 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 technology Android is a open source operating system based on LINUX Purpose is to connect phones to form LAN

Through the bluetooth module can be divided into Client and Server Bluetooth Architecture H/W module and protocol layer laying under high level application Android Bluetooth system contains -Bluetooth driver -Linux Kernel -BlueZ Bluetooth User library -BlueZ adaptation Layer Bluetooth 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 parameters Bluetooth Communication ======================= Bluetooth communication is based on unique MAC of device Pairing is must before communication Steps in communication

1.Query Bluetooth -get ActivityResult() 2.Finding device-open username and MAC 3.Connection Established FINDING /DISCOVERING DEVICE:: Use artDiscovery() to get around the device time:12 sec -asynchronous -no blocked three threat Broadcast received object to get device information ACTION_FOUND to get information about remote device PAIRED DEVICE :: getBondedDevice() in bluetooth Adapter class to obtain paired device Return Bluetooth device array for each pair ESTABLISHING:: get local Devices ,find remote device ,paired device Find Bluetooth adapter for activity -getDefaultAdapter() Use IsEnable to check if the bluetooth is turned on or not DESIGN OF BLUETOOTH CHAT :: =========================== similar to TCP traffic Client and server (android phone ) Android system component used:Activity and Services Each Activity Activity and Service is an independent event AndroidBinder mechanism to bind all the activity BluetoothChat.java , BluetoothChatService.java ,DeviceListActivity.java SERVER DESIGN open bluetoothsocket() listens to the incoming connection Call listenusingRfcommWithServiceRecord(String,UUID) to get bluetoothsocketserver UUID must match each other after connected accept() to listen to the request close() to close the communication CLIENT DESIGN to initialise a connection - need to get bluetooth device Object RfconnShocketToServiceRecode(UUID) Call connect()

Call close() to save system resources CONNECTION MANAGEMENT Call getInputStream() ,getOutputStream() Call read(byte[]) , write(byte[]) send to te target and close the connectio