Académique Documents
Professionnel Documents
Culture Documents
By Kanade D G
What is Bluetooth?
A cable-replacement technology. Radio interface enabling electronic devices to communicate wirelessly via short range (10 meters) ad-hoc radio connections. A Bluetooth-enabled device communicates with another Bluetooth-enabled device over the radio medium to exchange information or transfer data.
About.
Harald Bluetooth : 10th century Danish King, managed to unite Denmark and Norway. Developed in 1994 by the Swedish company Ericsson to enable laptops make calls over mobile phones Also known as 802.15, it employs the 2.4 GHz unlicensed band, the same as 802.11b wireless, but does not interfere with it Provides data rates of up to 720 Kbps
Bluetooth SIG (Special Interest Group) :
Founded in 1998 by : Ericsson, Intel, IBM, Toshiba and Nokia Released version 1.0 in July 1999 and version 1.1 was released in 2001.
Applications
PC Laptop Digital Camera PDA Mobile Phone Pager Mp3 Player Headset Keyboard Mouse LCD Projector
Most of the commercially available devices transmits 1 milliwatt and hence a range of 10 meters.
Services supported: Both voice and data services supported by Bluetooth devices. Voice:-Synchronous Connection Oriented (SCO)
Circuit switching operation
Data rates: Support three synchronous voice channels and one asynchronous data channel.
For voice communication 64 Kbps data rates in both directions For asynchronous links two types of channel asymmetric and symmetric Asymmetric:- 723.2 Kbps and 57.6 Kbps Symmetric:- 433.9 Kbps
S
SB
SB
S
S=Slave SB=Standby
M=Master P=Parked
Piconet: In addition to active slave devices, Piconet can contain many slaves that are in parked mode.
are synchronized but they are not active on channel.
Master and Slave uses Time Division Duplex(TDD). Piconet with one Master and one Slave
uses point-to-point communication.
Scatternet: Scatternet is formed by number of Piconets In this Scatternet , each Piconet will have a Master and number of Slaves. The Master of Piconet can be Slave of another Piconet
P S M
S SB
P
M
SB
S P S SB
Communication Between Master and Slave: The Master and Slave communicate in the form of Packets. Each Packet is transmitted in the Time-slot. Each Time-slot is of 625 microseconds duration. These Time-slots are numbered 0-to-227-1. Master:-Transmits in even slots Slave :-sends packets in odd numbered slot. A packet occupies one time slot, may extend up to five. If the Master starts the transmission in slot 0 using frequency f1 , the slave transmits in slot 1 using frequency f2.
Slave
Standby
Inquiry response
(4) ID packet
Slave response
The two major states are STANDBY not part of a Piconet and
CONNECTION
device is part of a Piconet.
To form a Piconet the master transmits an ID packet over 32 of the 79 channels. Devices in the STANDBY state periodically scan for this packet. If it hears it, the device sends its address and timing info to the master. The device then waits for the master to page it. When the master is satisfied that it has identified all the devices in its range it starts to form the Piconet.
It pages each device with its own device access code (DAC) using a frequency hopping sequence based on the slaves address. When the slave hears this it sends a confirmation packet. On the next slot the master sends the slave the master DAC. The slave then enters the CONNECTION state. The master does this for all the slaves in the Piconet then it enters the CONNECTION state itself.
Sniff Mode
In the sniff mode slave is instructed to listens only S slots every T slots for a period of N slots and not all packets.
Park Mode
When the device only listens to beacon signal from Master occasionally and synchronizes with Master and does not do anything.
Bluetooth Addressing
Each Bluetooth module is given 48 bit address containing three fields
LAP(Lower Addrs Part):-24 bits UAP(Upper Addrs Part):-8 bits Non-significance Addrs. Part:-16 bits This Address is assigned by each manufacturer and consists of company ID and company assigned number. This address is unique to every Bluetooth device and referred to as BD-ADDR.
Each active member in the Piconet will have a 3 bit address. Parked members also need to have addresses so that master can make them active and exchange packets.
AM_ADDR
3 bit active member address. The all zero AM_ADDR is for broadcast messages
PM_ADDR
AR_ADDR
The access request address is used by the parked slave to determine the slave-to-master half slot in the access window it is allowed to send access messages.
Bluetooth Profiles
For interoperatibility between devices manufactured by different vendors,
Bluetooth SIG released Bluetooth Profiles which defines the precise characteristics and protocols supported by these devices.
Advanced Audio Distribution Profile (A2DP) Audio Video Remote Control Profile (AVRCP) Basic Imaging Profile (BIP) Basic Printing Profile (BPP) Cordless Telephony Profile (CTP) Dial-up Networking Profile (DUNP) Fax Profile (FAX) File Transfer Profile (FTP) Generic Access Profile (GAP) Generic Object Exchange Profile (GOEP) Hardcopy Cable Replacement Profile (HCRP)
Bluetooth Profiles(Continued)
Hands-Free Profile (HFP) Human Interface Device Profile (HID) Headset Profile (HSP) Intercom Profile (IP) LAN Access Profile (LAP) Object Push Profile (OPP) Personal Area Networking Profile (PAN) SIM Access Profile (SAP) Service Discovery Application Profile (SDAP) Synchronization Profile (SP): used to synchronise the device with a personal information manager (or PIM for short). Serial Port Profile (SPP)
LMP
L2CAP
Voice
ACL
SCO
Baseband and RF
Baseband and RF
Establishes Links between devices
ACL for data SCO for voice
Addressing and managing different states of Bluetooth devices. RF portion provides radio interface.
Functions of LMP
Authentication
Challenge -Response Scheme
Detach
Close connection
Functions of LMP(continued)
Hold mode
Power saving when there is no data to send
Park mode
Synchronized with master but no data exchange
Power Control
Request to increase or decrease power ,specially class 1 devices
Link supervision
Monitors link when device goes out of range
Connection Establishment
LMP_host_connection_req LMP_accepted LMP_not_accepted
LMP_setup_complete
L2CAP (Continued)
Functions of L2CAP
Protocol multiplexing
Passing packet received by L2CAP to higher layers
Quality of service
L2CAP sends connection request and QoS request message from application programs thru higher layers. Receives responses for these request from lower layers
Connection indication Connection confirmation Connect confirmation negative Connect confirmation pending Disconnection pending Disconnect confirmation Timeout indication Quality of service violation indication
Used for discovering the services offered by device. SDP Services: A device can search for the service needed by it in the Piconet Can discover service based on a class of services Browsing of services Discovery of new services when device enters in the radio range of other device. Mechanism to find out when the service becomes unavailable when it goes out of the range.
SDP Services: The details of services such as classes of services and the attributes of services To discover services on another device without consulting third device.
Printer(Server)
Print Service class ID
Response
Print Command
RFCOMM
RFCOMM is transport protocol to emulate serial communication (RS 232 serial port) over L2CAP. Through RFCOMM, two devices can communicate using serial communication protocol over Bluetooth.
Uses 9 signals of RS-232.
TCS
The Host Control interface provides std. interface between Bluetooth module and host software. Then Bluetooth device will have two parts
A module implementing the lower layers(LMP and below) The software module runs on laptop
Baseband Packets
The Bluetooth general packet format is comprised of three parts: Access Code, Header, and Payload
Access Code
LSB 72 bits
Header
54 bits
Pay Load
0-2745 bits MSB
Access Code
Can be 68 or 72 bits wide, depending on whether a packet header follows or not Used for synchronization, DC offset compensation, and identification
Preamble
LSB 4 bits
Sync Word
64 bits
Trailer
4 bits MSB
Baseband Packets
There are three categories of Access Codes:
Channel Access Code (CAC): Defines a Piconet Device Access Code (DAC): Used for paging Inquiry Access Code (IAC): There are two variations General (GIAC) and Dedicated (DIAC), the latter is used only in identifying Bluetooth devices sharing a common characteristic
Payload data is dependent on the Bluetooth application (voice, data, ) The Packet Header consists Link Control (LC) and is comprised of 6 fields:
LSB 3 4 1 1 1 8 MSB
AM_ADDR
Type
HEC
Baseband Packets
The 6 fields are as follows: AM_ADDR is a 3-bit active member address used to distinguish between the active members of a Piconet
Type is a 4-bit type code used to distinguish between one of 16 different packet types, such as ID Packet, POLL packet, or NULL Packet. Flow is a bit used for flow control over ACL. When the receiver buffer is full, a STOP indication is returned by means of FLOW = 0 to prevent further transmission
Baseband Packets
ARQN is the acknowledgement bit for CRCed packets SEQN provided sequencing for multiple data packets HEC is the Header Error Check used to verify header integrity
Thank You