Professional Documents
Culture Documents
Dennis Sweeney
Center for Wireless Telecommunications
dsweeney@vt.edu
Max Robert
Mobile and Portable Radio Research Group
DotMobile, Inc.
robert@dotmobile.net
Overview
• Introduction
• Software/Interface Stack
• Device Description
– Radio Specification
– Baseband Specification
– Link Management and Control
• Service Discovery
• Emulation/Telephony Protocols
• Integration with other wireless services
• Available hardware
1
Introduction
Bluetooth SIG
2
Market Estimates
• Single-chip solution
– Around $5 per device
• Risks of current marketing
– Success of devices a function of
• Engineering/Manufacturing
• Marketing
– Danger of hype over-selling technology
3
Device Usage
Device Communications
4
Software/Interface Stack
• Bluetooth Host
– Host Controller Interface driver
– Physical Bus driver
• Physical Bus
– Physical Bus Firmware
• Bluetooth Hardware
– Host Controller Interface firmware
– Baseband controller
Connecting to Device
5
Host Controller Interface
Transport Layer
6
Transport Options
7
Bluetooth is more than a radio
SOFTWARE STACK
• Forms ad hoc
networks APPLICATIONS
OL
AU
R
– Additional devices can be DATA
DI
NT
O
CO
connected in a parked or
hold mode L2CAP
• Software Stack
Internet
Protocols Modem protocols
AT
OBEX WAP
commands Service Discovery
Protocol
PPP
RFCOMM
Serial Line Interface Audio
RADIO
Baseband
Bluetooth Radio
8
Bluetooth Networking
• Piconet formed by up to seven active Bluetooth
devices
– Master/Slave configuration
– Additional slaves can be placed in a “parked” state
Devices are not active but remain synchronized
– Connection, synchronization, parked/active controlled by master
– All devices connected in a piconet share timing and frequencies
Establishing a connection
9
Master/Slave Piconet
• One unit becomes the
master and the others
slaves
SLAVE E
• A slave can become a
master in another Piconet. SLAVE C
SLAVE D
SCATTER NET
• An indefinite number of
S
S
parked devices remain
Parked
synchronized with the
piconet but are not active
10
Bluetooth Radio
SOFTWARE STACK
APPLICATIONS
L
RO
AU
DATA
DI
NT
O
CO
L2CAP
LINK MANAGER
BASEBAND
RADIO
Bluetooth Radio
• Radio specification
Goal is a single chip radio
Relaxed RF specifications reduce cost
11
Bluetooth Radio
Bluetooth is a 2.4 GHz ISM band
spread spectrum radio
12
BT Power Levels
BT Link Budget
0 dBm Tx Pwr
TX power of 0 dBm
-20 dBm Rx pwr @ 10 cm
C/I = 21 dB
NF = 23 dB
C/I = 21 dB
13
zero
crossing
Bluetooth bit period
1µ sec
"1"
Modulation
Transmit frequency Ft+Fmin
Ft
Ft - Fmin
"0"
10 dBm
0 dBm
Adjacent Channel
-10 dBm
-20 dBc
Adjacent Channel 2 & 3
-20 dBm
-20 dBm
-30 dBm
-40 dBm
-40 dBm
Adjacent Channel >3
-50 dBm
-60 dBm
fo Span = 10 MHz
14
Bluetooth Baseband
SOFTWARE STACK
APPLICATIONS
L
RO
AU
DATA
DI
NT
O
CO
L2CAP
LINK MANAGER
BASEBAND
RADIO
Baseband Controller
Host
2.4 GHz Bluetooth Bluetooth
Bluetooth Link Link Manager
Radio Controller and I/O
15
Bluetooth Baseband
• Frequency Hop Time Division Duplex Channel
Channel based on a 625 µsec time slot (1600 hop/sec)
220 µsec of the slot lost to PLL settling
Access
Code Header Payload
LSB MSB
LSB MSB
16
Access Codes
Packet Header
• Flow Control
17
TDD and Packet Timing
f(k) f(k+1) f(k+2) f(k+3) f(k+4)
625 µsec
MASTER Transmit
625 µsec
SLAVE Transmit
625 µsec
18
Packet Types: System
• ID: Contains Device Access or Inquiry Access Code
Used for paging, inquiry, and response
19
Medium Rate Error Protected
Data Packets
• DM1: Data Medium rate
– 18 data bytes and occupies 1 time slot
– 2/3 FEC plus 16 bit CRC
• DM3
– 123 data bytes and occupies 3 time slots
– 2/3 FEC plus 16 bit CRC
• DM5
– 226 data bytes and occupied 5 time slots
– 2/3 FEC plus 16 bit CRC
20
Other Packets
21
Bluetooth ARQ
MASTER A B B X C
SLAVE 1
G F H
Z Z
SLAVE 2
Physical Links
22
Physical Links
Packet Type
SLAVE 1
SLAVE 2
SLAVE 3
23
Bluetooth Addressing
Synchronization
NATIVE CLK
Phase
Sequence HOP
24
Clock Offsets Established
SLAVE B
MASTER A
Each slave calculates an time
offset from its local clock
SLAVE E
SLAVE C
SLAVE D
Link Manager
SOFTWARE STACK
APPLICATIONS
DATA
DI
NT
O
CO
L2CAP
LINK MANAGER
BASEBAND
RADIO
25
Link Manager Protocol (LMP)
• Link Configuration
– Supported features
– Quality of Service, packet types
– Security and Authentication
– Establishes Logical Channels
Beacon, Paging, Broadcast
• Security Functions
– Authentication
– Encryption and Key Management
• LMP Functionality
– Attach and detach slaves
– Control Master-Slave switch
Used when a Slave/Master participates in another
piconet as Master/Slave
– Establish ACL and SCO links
– Control low power modes: Park, Hold and Sniff
26
Bluetooth Connection States
– Active Mode
• BT can accommodate only 7 active slaves
• AM_ADDR: 3 bit address given to each active slave
– Hold Mode
– Park Mode
– Sniff Mode
Hold Mode
• ACL slave placed on Hold mode
– ACL packets no longer supported
– SCO packets can still be exchanged
• Frees Slave
– When master has no data, goes to low-power sleep
– To attend another piconet
– Scanning, inquiry, paging
Slave finds or is found by another piconet
• Slave keeps AM_ADDR
• Master assigns hold time
After hold time slave wakes up and synchronizes with
traffic on the channel
27
Park Mode
• Low activity, low power mode
– “Deeper Sleep” than Hold Mode
– Devices wake up periodically to resynchronize and
check for broadcast messages
• Parked Device
– Gives up AM_ADDR
– Remains synchronized
– Receives:
PM_ADDR: 8 bit Park Member Address
AR_ADDR: 8 bit Access Request Address
• Allows multiple slaves to be connected to a
Master
Park Mode
28
Park Mode Beacon Channel
Park Mode
Park Interval
SLAVE X
SLAVE 2
SLAVE Y
29
Sniff Mode
Sniff Mode
Sniff
Interval
30
ACL Link Setup Under LMP
ID
Paging
ID
FHS
ID
Slave
LMP_accepted
Optional
M/S Switch Master/Slave Switch (Opt.)
Security, etc. Accept/Not Accept
Overview of LMP
31
Bluetooth and Interference
Acknowledgement Scheme
– R&R: Rude and Robust
• Robust: retransmits until message gets trough
• Rude: keeps retransmitting, may negatively impact
throughput of listen before transmit devices
(IEE802.11)
– Frequency Hop will avoid some interference
– Will retransmitting lead to the Tragedy of the
Commons with multiple devices in a Bluetooth enabled
space?
32
Logical Link Control
Protocol Multiplexing
33
Segmentation/Reassembly
Quality-of-Service (QoS)
34
Group Abstraction
35
SDP Requirements
SDP Requirements
36
SDP Requirements
37
Sample Service Attributes
• ServiceName (human-readable)
• ServiceID (identifier for unique service instance)
• ServiceClassIDList (list of classes in which a
service is an instance)
– Example of color printer ServiceClassIDList
• DuplexColorPostscriptPrintServiceClassID
• ColorPostscriptPrinterServiceClassID
• PostscriptPrinterServiceClassID
• PrinterServiceClassID
SDP Wrap-up
38
RFCOMM
• Call Control
– Establishment and release of speech or data
calls between Bluetooth devices
• Group Management
– Ease handling of groups of Bluetooth devices
• ConnectionLess
– Exchange signaling information not related to
on-going call
39
IrDA Interoperability
40
WAP Interoperability
WAP Integration
41
First Commercial Bluetooth Product
• Introduced by
Ericsson
Fall 1999
42
Bluetooth Development Kits
Operates as
– USB device
– UART
43
Ericsson Development Kit
44
CSR: BlueCore
• Contains BlueCore 01
• Cost: $8K
• Availability: now
• www.cambridgesiliconradio.co
m
45
Conclusion
Final Thoughts
46