Unit 6 Bluetooth
Unit 6 Bluetooth
Unit 6 Bluetooth
Bluetooth
Bluetooth is a new standard developed by a group of electronics manufacturers that will allow any sort of electronic equipment -- from computers and cell phones to keyboards and headphones -- to make its own connections, without wires, cables or any direct action from a user. A key difference with other existing wireless technologies is that bluetooth enables combined usability models based on functions provided by different devices.
The Bluetooth Special Interest Group comprises more than 1000 companies.The major companies who created the technology include
Intel 3 com Ericcson IBM Motorola Nokia Toshiba
Present wireless technology like infra red data communication has two problems 1)Line of Sight 2) One to One Using data synchronizing e.g. hot syn on a PDA --- problem of using the right cradle and cable. BLUETOOTH OVERCOMES THESE PROBLEMS
It provides agreement at the physical level -Bluetooth is a radio-frequency standard. Provides agreement at the data link level where products have to agree on when bits are sent how many will be sent at a time how the parties in a conversation can be sure that the message received is the same as the message sent
Piconet
A collection of devices connected via Bluetooth technology in an ad hoc fashion. A piconet starts with two connected devices, and may grow to eight connected devices. Ten such Piconets can coexist in the same coverage range of Bluetooth radio. All Bluetooth devices are peer units and have identical implementations. However, when establishing a piconet, one unit will act as a Master (piconet controller)and the other(s) as slave(s) for the duration of the piconet connection.
Requirements
Low cost as cables chip $5 Secure as cables must support authentication and encryption Must support both data and voice. Must connect to a variety of devices. Must be able to function in a noisy environment. Data rates 721kbps , using the 2.45Ghz radio frequency band I.S.M (Industrial, scientific and medical) Must support many simultaneous and private piconets. Must be low power, compact and global.
Usage model- Personal Area Networking.(PAN) Allows dynamic formation and breakdown of PICONETS--ad-hoc personal networks.
Bluetooth Architecture
Core Specification -Deals with the lower layers of the architecture and describes how the technology works. Profile Specification Focuses on how to build interoperating devices using the core technology.
Usage Models
File transfer Internet bridge LAN access Synchronization Three-in-one phone Headset
RF Layer
In order to minimize interference the nominal antenna power is 1 mW which can be extended to 100mW. The low power limits the range to about 10 centimeters to 10 meters. With higher power of 100mW range of 100meters can be achieved. It uses a packet switching protocol based on a technology called spread-spectrum frequency hopping to spread the energy across the ISM band.
Baseband layer This layer defines the timing, framing, packets and flow control on the link. Link Manager Protocol Responsible for managing connection states(authentication & encryption), enforcing fairness among slaves & power management. Host Controller Interface (HCI) provides a command interface to the Baseband Link Controller and Link Manager, and access to hardware status and control registers. Logical Link Layer Handles multiplexing, segmentation and reassembly of large packets and device discovery. Audio The audio data is directly mapped to the baseband layer.
RFCOMM-This protocol provides emulation of serial ports over the L2CAP protocol. The protocol is based on the ETSI standard TS 07.10. Service Discovery Protocol (SDP) provides a means for applications to discover which services are provided by or available through a Bluetooth device. It also allows applications to determine the characteristics of those available services.
Bluetooth Frame
Each frame consists of a transmit packet and a receive packet. Each packet may have either 1, 3 or 5 slots of 625s. Single slot packet max data rate of 172Kbps Multislot frames support higher rates 721Kbps or a max. of 3 voice channels.
PAYLOAD
0-2745b
TRAILER [4]
Preamble is a fixed zero-one pattern of 4 symbols used to facilitate DC compensation. Sync word is a 64 bit code used for timing synchronization. Trailer is a fixed zero-one pattern of four symbols. Trailer may be used for DC compensation also.
Three Types of Access Codes: 1. Channel Access Code(CAC): Identifies a Piconet 2. Device Access Code(DAC): Used for Paging and its responses. 3. Inquiry Access Code(IAC): Used for Inquiry purposes
Header format
AM_ADDR [3] TYPE [4] FLOW [1] ARQN [1] SEQN [1] Header Error Control [8] HEC
AM_ADDR TYPE
3-bit active member address to distinguish active members in a piconet. 4-bit type code to distinguish between 16 different types of packets.
FLOW
ARQN SEQN HEC
FLOW [1]
LENGTH [5]
L_CH determines the logical channel used. Flow indicator is used to control the flow at the L2CAP level. Length indicator indicates the number of bytes in the payload excluding the payload header and the CRC code. Payload Header for multi-slot
L_CH [2]
FLOW [1]
LENGTH [9]
UNDEFINED [4]
Network Topology
All units have a unique global ID(BD_Addr) address ( 48 bits) The unit that initializes the connection is assigned as the master which controls the traffic of the connection. A master can simultaneously connect upto seven slaves. The master/slave roles can be swapped. A device can be a master in only one piconet at a time.
Network Topology
Piconets
Nodes can assume the role of master or slave
One or more slaves can connect to a master, forming a piconet The master sets the hopping pattern for the piconet, and all slaves must synchronize to that pattern Maximum of 7 slaves controlled by a master (3-bit addresses used)
Piconet
Star Toplogy 1 Master, up to 7 active slaves Unlimited number of parked slaves Master: determines hopping scheme and timing Administers piconet (polling) Logical Channels Asynchronous, packet oriented Synchronous, connectionoriented (voice, slot reservation)
Operational States
Operational States A piconet Master Slave
SB
SB
Parked*
Standby* * Low power states
M
S S SB
M Q
Addressing
Active devices are assigned a 3-bit active member address (AMA) Parked devices are assigned an 8-bit parked member address (PMA) Standby devices do not need an address
Connection Establishment
INQUIRY
PAGE
CONNECTION
Inquiry
Note that a device can be Undiscoverable D F H N G M
A O J I 10 meters E K
B L
Q C
States
standby
Typical = 2s
disconnected
connecting
Typical = 0.6s
detach
inquiry
page
Transmit AMA
Connected AMA
active
Typical = 2ms
Park PMA
Hold AMA
Sniff AMA
low power
Connecting to a Piconet
Device in standby listens periodically If a device wants to establish a piconet, it sends an inquiry, broadcast over all wake-up carriers It will become the master of the piconet If inquiry was successful, device enters page mode Devices in standby may respond to the inquiry with its device address It will become a slave to that master
standby
inquiry
page
Transmit AMA
Connected AMA
Park PMA
Hold AMA
Sniff AMA
inquiry
page
Transmit AMA
Connected AMA
Park PMA
Hold AMA
Sniff AMA
inquiry
page
Transmit AMA
Connected AMA
Park PMA
Hold AMA
Sniff AMA
Channel Control
Scatternets (1)
Piconets with overlapping coverage use different hopping sequences
Collisions may occur when multiple piconets use the same carrier frequency at the same time
Scatternets (2)
D F H G M N
A O
B K L
E
J I
625 s f(k)
f(k)
f(k+3)
f(k+4)
f(k+5) f(k+6)
f(k)
f(k+5) f(k+6)
108.8 172.8 54.4 86.4 triple slot packets five slot packets single slot packets
DM5
DH5
286.7
432.6
477.8
721.0
36.3
57.6
Shows a bunch of bluetooth devices in proximity of each other. Each device has its own ID and its clock offset
Radio A has become the master and has formed a piconet with B and C as the slaves. Both B and C now share As ID and and clock offset.
When a radio joins a piconet it is assigned a 3 bit Active Member Address(AMA). Once the piconet has eight radios, the master assigns puts a radio into the PARK mode. This is one of the low power states, in which the radio releases its AMA for a 8 bit PMA (Passive Member Address). The freed AMA can be assigned to another radio wishing to join the piconet. Though upto 256 radios can actively reside on a piconet, only 8 of them with AMAs can transfer data.
Inquiry Scan
One radio performs a page function on a special Inquiry ID global address. Listening radios perform an inquiry scan on a unique sequence of 32 channels. The radio will listen every 1.25 seconds on each of these 32 channels for 10ms and will then repeat the same for the next channel. The inquiring radio issues a number of pages on the inquire channels and then listens for a response for 1.25 seconds for 16 of the 32 channels.
If a listening radio was doing a page scan on one of these inquire channels it will respond with its FHS packet. The sequence is repeated for the second set of 16 channels. After an inquire scan is performed the inquiring radio will have a list of all the FHS packets of all the radios within its range.
Page Scan
A page scan is done by a radio in the Standby mode if the address of the device to connect is known. Each radio has a unique sequence of 32 paging frequencies and 32 response frequencies based on its Global ID. The radio will listen for a page of its global ID on each of the 32 paging frequency for 10ms, changing frequency every 1.25 seconds. The paging radio will continuously page using the paged radios Global ID on one of the set of 16 paging frequency for 1.25seconds.
The paging radio estimates the 16 frequencies on which to start paging based on the last known clock offset. If the paging radio receives no response then it will page on the remaining 16 frequencies for the next 1.25 seconds. Connecting time Clock offset Clock offset how recently were they were connected.
Once a radio joins the piconet and has an AMA it can direct data to other devices on the piconet. In order to remain in the connected state within a piconet, the radio needs to maintain the frequency hopping pattern and offset while consuming low power. To achieve this the connected radios can be placed in either PARK, HOLD or SNIFF modes.
HOLD MODE When data needs to be transmitted very infrequently, thus conserving power. In this mode only an internal timer is running. No data is transferred when in HOLD mode. The master can put slaves on HOLD mode. SNIFF MODE A slave device listens to the piconet at a reduced rate. The SNIFF interval is programmable. In both the HOLD and SNIFF states the device retains its AMA.
PARK MODE The device has given up the AMA and has become passive. The parked device will occasionally listen to see if the master has sent any broadcast data asking it to become active.
Physical Links
Asynchronous Connectionless Link This is a packet switched link between a master and slave. Supports both isochronous and asynchronous data.
Radio Specification
Classes of transmitters (on which Bluetooth products are available):
Class 1: Outputs 100 mW for maximum range
Power control mandatory Provides greatest distance up to 100 m Products: still available
Security
Authentication and encryption is provided at the Link Manager layer. The PIN is translated into a 128 bit link key which is used for authentication. After authentication the radios will settle on a suitable length encryption key to be used. Bluetooth relies on PIN codes to establish trusted relationships between devices.
LMP_not_accepted PDU
Opcode = 4 Content
Opcode rejected Reason
Paged unit
LMP_host_connection_request
LMP_accepted/LMP_not_accepted
Other LMP procedures LMP_setup_complete LMP_setup_complete
L2CAP Channels
L2CAP: Signaling
Signaling command are sent on CID=0x0001. L2CAP signaling is used for:
L2CAP channel establishment. Configuring parameters related to
Quality of service. Specifying MTU.
LMP-PDU Formats