Bluetooth Justin Paupore (jpaupore) Russ Bielawski (jbielaws)
What is Bluetooth? What, exactly, is Bluetooth? What is the purpose of Bluetooth?
What is Bluetooth? Protocol Goals Cable replacement technology (initially) Short-range wireless communication technology (unlicensed 2.4GHz band) Wireless Personal Area Networks (WPANs) Standardization of Solution to Common Problem
Simple Standardized (highly interoperable) Low Power o Most common "class 2" radio consumes 2.5mW Robust o Frequency Hopping Spread Spectrum (FHSS) o Profiles Simultaneous Connection Service Classes o Voice - Circuit-Switched o Data - Best Effort QoS What is Bluetooth? Advantages By Design
What is Bluetooth? History 1998: Special Interest Group (SIG) formed 1999: Bluetooth : mobile phone 2001: printer, laptop, hands-free in-car 2002: keyboard and mouse, GPS 2002: Bluetooth IEEE : Bluetooth EDR 2007: Bluetooth EDR 2009: Bluetooth HS 2010: Bluetooth 4.0
What is Bluetooth? Aside: The Bluetooth SIG Bluetooth was initially conceived by Ericsson The Bluetooth SIG was founded in 1998 by Ericsson, IBM, Intel, Toshiba and Nokia Promoter Members o Ericsson, Intel, Lenovo, Microsoft, Motorola, Nokia, Toshiba, Apple, Nordic Semiconductor Associate Members Adopter Members
Outline What is Bluetooth? Licensing, Patents and Certification Bluetooth "Variants" Profiles The Bluetooth Protocol Stack
Licensing, Patents and Certification Bluetooth Qualification is required to use Bluetooth trademarks Patents are FRAND, subject to qualification Embedding a qualified Bluetooth module WITH an antenna does not required re- qualification There are some fees for qualification o Not publicly available o Based upon membership status
Outline What is Bluetooth? Licensing, Patents and Certification Bluetooth "Variants" Profiles The Bluetooth Protocol Stack
Bluetooth "Variants" History (Again) 1998: Special Interest Group (SIG) formed 1999: Bluetooth : mobile phone 2001: printer, laptop, hands-free in-car 2002: keyboard and mouse, GPS 2002: Bluetooth IEEE : Bluetooth EDR 2007: Bluetooth EDR 2009: Bluetooth HS 2010: Bluetooth 4.0
Bluetooth "Variants" EDR - Enhanced Data Rate Added in Bluetooth 2.0 Allows speeds up to 3.0 Mbps theoretically, 2.1 Mbps in practice Adds new modulation schemes improve data rate Bluetooth 2.0 devices may not actually support EDR!
Bluetooth "Variants" HS - High Speed Added in Bluetooth 3.0 Allows speeds up to 24.0 Mbps via Alternate MAC/PHY (AMP) Uses to actually perform data transfer Bluetooth 3.0 devices may not actually support HS!
Bluetooth "Variants" BLE - Bluetooth Low Enegry Bluetooth Low Energy (BLE) is the main feature of Bluetooth 4.0 Re-imagining of Bluetooth for 4.0 o Bluetooth Classic o Bluetooth HS o Bluetooth LE Competes with low power WPAN protocols o ANT o (MAC and PHY of ZigBee) o Nike+ No Mesh Networking Support
Bluetooth "Variants" BLE and the Future of Bluetooth Adoption of BLE enables new technology arenas o Home Automation o Medical Devices o Wearable Electronics New product branding
Outline What is Bluetooth? Licensing, Patents and Certification Bluetooth "Variants" Profiles The Bluetooth Protocol Stack
Profiles Profile Examples Advanced Audio Distribution Profile (A2DP) o e.g. Bluetooth Headphones A/V Remote Control Profile (AVRCP) Basic Printing Profile (BPP) File Transfer Profile (FTP) Hands-Free Profile (HFP) Human Interface Device Profile (HID) o e.g. Bluetooth Keyboard Serial Port Profile (SPP)
Profiles Profiles reduce the risk of poor or partial interoperability between devices Endpoints can and usually do support multiple profiles What's in a profile? Dependencies Suggested user interface Bluetooth protocols required Dependencies on other profiles
Profiles Profile Examples Advanced Audio Distribution Profile (A2DP) o e.g. Bluetooth Headphones A/V Remote Control Profile (AVRCP) Basic Printing Profile (BPP) File Transfer Profile (FTP) Hands-Free Profile (HFP) Human Interface Device Profile (HID) o e.g. Bluetooth Keyboard Serial Port Profile (SPP)
Outline What is Bluetooth? Licensing, Patents and Certification Bluetooth "Variants" Profiles The Bluetooth Protocol Stack
Bluetooth Protocol Example
Radio Layer
Runs in unlicensed 2.4 GHz (ISM) band 79 frequency bands, separated by 1 MHz Transmit power classes o Class 1: 100mW, ~100m range o Class 2: 2.5mW, ~10m range o Class 3: 1mW, ~1m range Modulation: Gaussian frequency-shift keying o Positive frequency offset -> 1 o Negative frequency offset -> 0 o 2.0 EDR adds phase-shift keying
Baseband Layer
Master/slave setup Piconet: 1 master + up to 8 slaves Pseudorandom frequency hopping based on device address of master Time-division duplexing - 625µs slots o Master transmits in even-numbered slots o Slave transmits in odd-numbered slots o One packet transmitted in each slot
Baseband Layer Data is transmitted in packets Connections come in two types: o SCO (Synchronous Connection-Oriented) Reserved bandwidth Master to single slave Typically carries voice data o ACL (Asynchronous Connectionless) Uses slots not used for SCO links Master to all slaves in piconet Carries non-voice data (L2CAP) Only one ACL connection for the piconet
Baseband Layer Error Correction o 1/3-rate FEC Transmit each bit 3 times - majority wins o 2/3-rate FEC Error-correcting code turns 10 bits into 15 o ARQ Retransmit until acknowledged o Type used depends on packet type - see spec swedetrack.com/images/bluet08. htm
Link Manager Protocol (LMP)
Establishes, manages, and tears down links Functions include: o Pairing o Authentication o Encryption o Connection establishment o Device discovery
Host Controller Interface (HCI)
Standard interface between Bluetooth chipsets and host devices Communication protocol to chipset
Host Controller Interface (HCI) Chipset manages radio, baseband, LMP Exports commands such as: o Send ACL/SCO data o Create piconets o Encrypt a link o Get status information Allows reusing drivers and interchanging chipsets
Logical Link Control and Adaptation Protocol (L2CAP)
Provides abstracted data-carrying capability over ACL links Work around limitations of ACL Controllable reliability o Guaranteed delivery (using ARQ) o Best-effort delivery Important functions: o Multiplexing o Segmentation/reassembly o Quality-of-Service
RFCOMM Protocol
Serial port emulation over L2CAP Carries data + flow control signals Can emulate multiple serial ports
Service Discovery Protocol (SDP)
Ask devices what profiles they support o Search for a specific profile o Get a list of all profiles Get necessary information for connection
Putting it All Together: SPP
Connect with LMP Find info with SDP Start L2CAP Start RFCOMM Send data!
Conclusion What is Bluetooth? Licensing, Patents and Certification Bluetooth "Variants" Profiles The Bluetooth Protocol Stack
References electronics.com/info/wireless/bluetooth/radio-interface- modulation.php design/ /Testing-and-Qualifying-a-Bluetooth- Design 0_b.pdf