Professional Documents
Culture Documents
Pramod P J
C-DAC Hyderabad
Agenda
• WPAN
• Bluetooth
General
– What is it?
– What frequency does it work?
– What is the range?
– What is the power?
– How fast is it?
Communication Topology
– How about multiple connection?
Protocol Stack
– Controller Stack
– Host Stack
Profile Specification
Bluetooth on Linux
• IEEE 802.15
• Range – 10 Meters
to replace the cables connecting portable and/or fixed devices while maintaining
• 5 companies joined to form the Bluetooth Special Interest Group (SIG) in 1998
• The Bluetooth specification defines a uniform structure for a wide range of devices
to connect and communicate with each other.
Had many problems and manufacturers had many problems in making their product inter operable
Bluetooth 1.1
Bluetooth 1.2
Bluetooth 2.0
The main feature of 2.1 is secure simple pairing (SSP).SSP improves the pairing experience for
―Extended inquiry response‖ (EIR), which provides more information during the inquiry procedure
Bluetooth v3.0 + HS
Its main new feature is AMP (Alternate MAC/PHY), the addition of 802.11 as a high speed
transport.
Alternate MAC/PHY Enables the use of alternative MAC and PHYs for transporting Bluetooth
profile data. The Bluetooth radio is still used for device discovery, initial connection and profile
configuration, however when large quantities of data need to be sent, the high speed alternate
This means that the proven low power connection models of Bluetooth are used when the system
is idle, and the low power per bit radios are used when large quantities of data need to be sent.
1.2 1.2
2.0
2.0 + EDR
2.0 + EDR
2.1
2.1 + EDR
2.1 + EDR
3.0
3.0 + HS
3.0 + HS
4.0 Released !
• Eliminate cables
• Inexpensive
• Readily available
• Good security
“Hopping” = No Interference
Adaptive Frequency Hopping
(AFH)
Version-3 supports 2.4 GHz
and 5 GHz
Bandwidth
0.6 1 22 20 20 40 500
(MHz)
– The initiating party sends a request via a predefined frequency or control channel.
– The initiating party uses the number as a variable in a predefined algorithm, which
calculates the sequence of frequencies that must be used. Most often the period of the
connections.
– The initiating party sends a synchronization signal via the first frequency in the calculated
sequence, thus acknowledging to the receiving party it has correctly calculated the
sequence.
– The communication begins, and both the receiving and the sending party change their
frequencies along the calculated order, starting at the same point in time.
Class 3 ~1 meters
Max range
75 30 200 200 150 150 30
(ft)
• While the Bluetooth Core Specification does mandate minimums for range, the range of the
technology is application specific and is not limited. Manufacturers may tune their
– Class 2 radios – most commonly found in mobile devices – have a range of 10 meters or 30 feet
– Class 1 radios – used primarily in industrial use cases – have a range of 100 meters or 300 feet
Class 1 100 20
Class 2 2.5 4
Class 3 1 0
• The most commonly used radio is Class 2 and uses 2.5 mW of power.
Throughput
0.03 1-3 11 54 54 200 200
(Mbps)
• Bluetooth enabled devices to connect and communicate wirelessly through short-range, ad hoc
• Each device can simultaneously communicate with up to seven other devices within a single piconet.
• Piconets are established dynamically and automatically as Bluetooth enabled devices enter and leave
radio proximity
• Scatternets can be formed when a member of one piconet (either the master or one of the slaves)
• Paging procedure
– Master reserves slots used for SCO link on the channel to preserve time sensitive information
• Connected mode
• Hold mode
• Sniff mode
• Parked state
Inquiry Page
Standby Connected
Transmit data
• Inquiry Scan
– A device that wants to be discovered will periodically enter this mode and listen for inquiry
packets.
• Inquiry
– Device sends an Inquiry packet
• Inquiry Response
– When an inquiry message is received in the inquiry scan state, a response packet containing
the responding device address must be sent after a random number of slots.
• Page
– The master uses the clock information, about the slave to be paged, to
determine where in the hop sequence, the slave might be listening in the page
scan mode.
– The master sends a page message
• Page Scan
– The page scan sub-state can be entered by the slave from the standby state or
the connection state. It listens to packets addressed to it.
• Page Response
– On receiving the page message, the slave enters the slave page response sub-
state. It sends back a page response consisting of its ID packet which contains
its DAC, at the frequency for the next slot from the one in which page message
was received.
• Sniff Mode
– This is a low power mode in which the listening activity of the slave is reduced.
– In the sniff mode, the slave listens for transmissions only at fixed intervals
Tsniff. These parameters are given by the LMP in the master when it issues the
SNIFF command to the slave.
• Hold Mode
– Slave temporarily does not support ACL packets on the channel (possible SCO
links will still be supported).
– By this capacity can be made free to do other things like scanning, paging,
inquiring, or attending another piconet.
• Park Mode
– This is a very low power mode with very little activity.
– The parked slaves regularly listen for beacon signals at intervals decided by the
beacon structure communicated to the slave during the start of parking.
– Any message to be sent to a parked member are sent over the broadcast
channel.
• Bluetooth Host and Controller Combinations: BR/EDR only, BR/EDR with one AMP, and BR/EDR with
multiple AMPs
• For integrated devices such as Bluetooth headsets, the host stack + controller stack can be run on the
same microprocessor to reduce mass production costs; this is known as a hostless system.
Applications
Data
L2CAP
Audio
Link Manager
Baseband
RF
Operates in the unlicensed ISM band at 2.4 GHz (operating frequency - 2400
– 2483.5MHz )
Bluetooth uses the same frequency as IEEE 802.11b WLANs - Devices that
use Bluetooth can interfere with 802.11b WLANs
More than 2 devices may share the medium, and is therefore a TDMA
• Responsible for the encoding and decoding of Bluetooth packets from the data payload and
parameters related to the physical channel, logical transport and logical link.
• Concerned with the connection establishment within a piconet, addressing, packet format,
• The Bluetooth device can support one asynchronous channel and up to three synchronous
voice channels
– In an asymmetric channel, the data rates are different in two directions – 723.2 Kbps and 57.6 Kbps
• Responsible for all access to the radio medium. It has two main functions.
– At its heart is a scheduler that grants time on the physical channels to all of the entities that have
negotiated an access contract.
– The other main function is to negotiate access contracts with these entities.
– Link Manager
• Responsible for the creation, modification and release of logical links (and, if required, their
associated logical transports), as well as the update of parameters related to physical links between
devices.
» Authentication
» Encryption
– Device Manager
• Responsible for all operation of the Bluetooth system that is not directly related to data transport,
such as inquiring for the presence of other nearby Bluetooth devices, connecting to other Bluetooth
devices, or making the local Bluetooth device discoverable or connectable by other devices.
• Secondary controllers
1. BR/EDR radio, the primary radio, is used to perform discovery, association, connection
establishment, and connection maintenance
2. Discover the AMPs that are available on the other device
3. If AMP is common between the two devices, the Core system provides mechanisms for moving
data traffic from BR/EDR Controller to an AMP Controller.
Bluetooth hardware
– Parts
• Access code (72 bits) — Contains data used for timing
synchronization, paging, and inquiry
• It passes packets to either the Host Controller Interface (HCI) or on a hostless system, directly
– Providing one-way transmission management of multicast data to a group of other Bluetooth devices.
• L2CAP Modes:
– Basic mode: provides packets with a payload configurable up to 64 kB, with 672 bytes as the default MTU,
– Retransmission and flow control modes: Also permits per-channel flow control and retransmission
– Provides transport capabilities for upper level services (e.g. OBEX, PPP)
device are available and determine the characteristics of those available services
• Client-Server interaction
• TCS BIN is a bit oriented protocol that defines the call control signalling
for the establishment of speech and data calls between Bluetooth devices.
• TCS is used by the intercom (ICP) and cordless telephony (CTP) profiles.
Oriented (SCO) link, and the link established for data communication is a
The Profile Specifications are concerned with the use of Bluetooth technology to support
various applications.
Each profile discusses the use of technology defined in the core specifications to implement a
products from different vendors that claim support to a particular usage model will work
together.
Profile Specification
Many more…
OBEX
SDP
RFCOMM
L2CAP
L2CAP
e.g. IP
PPP SDP
RFCOMM
L2CAP
e.g. IP
SDP
PPP
RFCOMM
L2CAP
• Many implementations
• Active development