Documente Academic
Documente Profesional
Documente Cultură
Bluetooth Architecture
Overview
• Who is Bluetooth?
– History and Background
• What does Bluetooth do for you?
– Usage Model
• What is Bluetooth?
– Compliance, compatibility
• What does Bluetooth do?
– Technical points
• Architectural Overview of Bluetooth
資料來源:Bluetooth SIG,2000 年 1 月
NDSL Lab. CSIE, CGU - 5
What does Bluetooth do for you?
three major applications
Landline
Cable
Replacement
Data/Voice
Access Points
(internet access)
most important in
voice applications
Personal Ad-hoc Networks
NDSL Lab. CSIE, CGU - 6
Usage Model (Ultimate Headset)
• Background Synchronization
– PDA
– Cellular Phone
– Notebook
• Unlicensed Used
– ISM band used
• Robust operation
– Fast frequency hopping
– Short packet length
• Multiple links
• Mixed voice and data
• Sized 0.5 squire inches
Applications
IP
SDP RFCOMM
Applications
Data
L2CAP
Audio Firmware
Link Manager
Baseband Bluetooth chip
(Single chip with RS-232,
RF USB or PC card interface)
Certification
T e c h n o l o g y
HCI:
Service Host Controller Interface
L2CAP
A
Audio U
Basic
Type
Lower Interface
Layer Certification
Class Classes
Certification Class
Link Manager
D
IA
LLM
2CAP
L2CAP LM
Audio
BT.LM-A
Data Audio
BT.L2CAP-A
Data
2
OU Service Lower Interface BT.LM-D BT.L
Certification CAP-D
Class
BB LM BB
Type BT.BB-A Class BT.BB-D BT.LM-A BT.LM-D
LM
Baseband
D
I
BB
RFL2CAP
RF
Air
LM
BT.RF
Audio
-
BT.LM-A
BT.RF
Data
-
BT.LM-D
BT.BB-A
Audio
BT.RF
BT.L 2
CAP-A
BT.BB-D
Data
BT.RF
BT.L 2
CAP-D
O A unit that supports both audio and data gets the certification class A and D.
LM BB BT.BB-A BT.BB-D BT.LM-A BT.LM-D
RF BB Example: BT.BB-A,D
RF BB
RF
RF
Air
BT.RF
-
BT.RF
-
A unit that supports both audio and data gets the certification class A and D.
BT.BB-A
BT.RF
BT.BB-D
BT.RF
RF Example: BT.BB-A,D
Program
Profile Spec
Audio LMP
Bluetooth chip
Baseband
RF
NDSL Lab. CSIE, CGU - 19
Bluetooth Host
HCI (2/3)
Host Drives and Applications
Transport Bus
HCI
HCI Transport Firmware
HCI : Host Controller Interface
provides a common interface Bluetooth Host Controller
between the bluetooth host
and the bluetooth module. Link Manager
Bluetooth Baseband
Bluetooth Radio
Bluetooth Module
NDSL Lab. CSIE, CGU - 20
HCI (3/3)
• Blue-Dongle
• Blue-Connect
• BluePort
• Bluetooth printer
• Bluetooth Modem
• Etc.,
• 2 chips solution
– RF transceiver
– Baseband BB chip
Cost
$30 Headset
Version
BB RF
$10
2-chip
BB+RF
$4
Single-chip ?
Full Bluetooth Host+BB+RF Soft. modem
Performance Data Only
Version Single-chip Host+RF
HOST
RF
Transceiver
HOST
1MHz
. . .
12 3 79
83.5 MHz
78
Frequency
0
Time
Data Digital
+
Source d(t) Modulator
Front-end Data ^
d(t)
+
Filter Detector
Receiver
Local hopping Frequency
code generator synthesizer
Magnitude
frequency
fo-f fo fo+f
Scatternet
Piconet
Slave
Master
Master
Piconet
Slave Slave
Slave
Slave
NDSL Lab. CSIE, CGU - 39
Piconet and Scatternet
point-to-point multi-point
(piconet) (piconet)
scatternet
Master host Slave host
16 8 24 bits
BD_ADDR NAP UAP LAP
offset
Master
BD_ADDR
estimated slave’s
Slave + Slave clock
CLKE hopping sequence
BD_ADDR 3, 56, 7, 23, 44, …
paging
Slave
BD_ADDR
• Piconet Addressing
– Active Member Address (AMA, 3-bits) M or S
fk fk+1 fk fk+1
Master
One
Slot
Master Three Slot Packet
Packet
One
One Slave Slot
Slave Slot
Packet
Packet
625 us
625 us
One Slot
One Slot
• Spread spectrum frequency hopping radio
– Hops every packet
» Packets are 1, 3 or 5 slots long
– Frame consists of two packets
» Transmit followed by receive
– Nominally hops at 1600 times a second (1 slot
packets)
NDSL Lab. CSIE, CGU - 46
Time Division Duplex (TDD)
• Master : even numbered slots
• Slave : odd numbered slots
• The Slot Number ranges from 0- 227-1.
Master
+/-10 s 220 s
Slave
guard Packet
time
time
even (625s) odd (625s) even slot
• Standby
– Waiting to join a piconet
• Inquire
– Ask about radios to
connect to
• Page
– Connect to a specific radio
• Connected
– Actively on a piconet
(master or slave)
• Park/Sniff/Hold
– Low Power connected
states
ID packet ID : GIAC/DIAC
ID packet
• Access Code
• During a connection
– identifies the packet as being from or to a specific Master
• Other modes
– in inquiry to produce the Inquiry Access Code (IAC)
• Used when
1. Master inquiries device during inquiry procedure, return from
Slave
2. Master pages a Slave during page procedure, sent from
Master
3. A device switches as Master
Unconnected Standby
Standby
h
tac
Ttypical=2s
De
Connecting Inquiry Page
States
Ttypical=0.6s
Transmit
Active Connected
data
AMA
States AMA
Ttypical=2 ms Ttypical=2 ms
Ttypical=11 ms Ttypical=11 ms
18 slots 18 slots
Page Scan
Page Scan
Sleep Ttypical=1.25
Connected Ttypical=1.25
Inquire
Inquire
Scan
Scan
Standby Connected
Ttypical=11 ms Ttypical=11 ms
18 slots 18 slots
IDd
IDa D
IDb B
IDc C
IDd
IDa D
INQ
A
INQ
Inquire
INQ
IDb B
IDc C
IDd
IDa D
IDb
IDb B
IDc C
IDd
IDb
IDa D
INQ
A
INQ
Inquire
INQ
IDb B
IDc C
IDd
IDb
IDa IDd D
IDc
IDb B
IDc C
IDd
IDb
IDa D
INQ
A
INQ
Inquire
INQ
IDb B
IDc C
IDd
IDb
IDa D
IDc
IDb B
IDc C
IDd
IDb
IDa D
IDc
INQ
A
INQ
Inquire
INQ
IDb B
IDc C
IDd
IDb
IDa IDd D
IDc
A
IDb B
IDc C
IDd
IDb
IDa D
IDc
A
IDd
IDb B
IDc C
IDb
INQ INQ INQ
IDb fk+1
STANDBY FHS
625 s
• Inquiry has unique device address (all BT radio use)
– ID packet with dedicated or general access code
– Unique set of “Inquiry” hop frequencies
• Any device can inquire by paging the Inquiry address
• Correlater hit causes slave to respond with FHS packet
– Device ID
– Clock
– Etc.
NDSL Lab. CSIE, CGU - 66
Inquiry Procedure
1.25ms Fully scan Train A:16*0.625ms=10ms
2 slots (1) Train A will be scanned 256 times: 2.56s
(2) Train B will be scanned 256 times: 2.56s
Repeat scan Trains A and B two complete cycles:
1 2 3 15 16 2*(2.56+2.56)=10.24s
repeat 256 times
INQUIRER
train A A A A A B A A A
10 ms
16 slots = 10ms
» Clock
– If there is a collision then radios wait a random number
of slots before responding to the page inquire
• After process is done, Inquiring radio has Device
IDs and Clocks of all radios in range
• Slave listens one of 16 channels for sufficient
time (e.g., 18 slots=11.25ms)
IDa
IDc
A
IDc C
IDa
IDc
A
Page
IDc
IDc C
IDa
IDc
A
IDc
IDc C
IDa
IDc
A
IDa
IDc C
IDa
IDc
A
IDa
IDc C
Master FH
IDa S
IDa
IDc IDc IDc IDc
fk+1
Slave
IDc
625 s
• Master pages slave (packet has slave ID) at slave page frequency (1 of 32)
– Master sends page train of 16 most likely frequencies in slave hop set
» Slave ID sent twice a transmit slot on slave page frequency
» Master listens twice at receive slot for a response
– If misses, master sends second train on remaining 16 frequencies
• Slave listens for 11.25 ms (page scan)
– If correlater triggers, slave wakes-up and relays packet at response frequency
– Master responds with FHS packet (provides master’s Device ID and Clock)
– Slave joins piconet
FHS
Pager
train A A A A B B
10 ms
CONNECTION
11.25 ms
• ASYNCHRONOUS CONNECTION-
LESS (ACL) LINK
• packet switching
• (a)symmetric, asynchronous services
• polling access scheme
• For data transmission (ex:program)
• Point-to-multipoint connection
• Packet retransmission
NDSL Lab. CSIE, CGU - 76
Physical Link
L2CAP