Bluetooth. Bluetooth Basics Bluetooth and Linux Bluetooth at AG Tech. Dr.-Ing. H. Ritter, 7.1

Similar documents
Bluetooth. Basic idea

Wireless Personal Area Networks

Local Area Networks NETW 901

MOBILE COMPUTING. Bluetooth 9/20/15. CSE 40814/60814 Fall Basic idea

Bluetooth. Acknowledgements. Based on Jochen Schiller slides. Supporting text

Structure of the Lecture

12/2/09. Mobile and Ubiquitous Computing. Bluetooth Networking" George Roussos! Bluetooth Overview"

CS4/MSc Computer Networking. Lecture 13: Personal Area Networks Bluetooth

ENRNG3076 : Oral presentation BEng Computer and Communications Engineering

5.7 WRAN: IEEE (1)

Introduction to Bluetooth Wireless Technology

MOBILE COMPUTING 4/3/18. Bluetooth. Bluetooth. CSE 40814/60814 Spring 2018

Networked Embedded Systems: Bluetooth

Bluetooth: Short-range Wireless Communication

Communication Systems. WPAN: Bluetooth. Page 1

UNIT 5 P.M.Arun Kumar, Assistant Professor, Department of IT, Sri Krishna College of Engineering and Technology, Coimbatore.

Bluetooth. Bluetooth: History. What is a PAN? EEC173B/ECS152C, Spring Wireless Personal Area Networks (PAN)

Wireless LANs & PANs Case Study: Bluetooth & IEEE W.lan.4

MOBILE COMPUTING. Jan-May,2012. ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala.

Inside Bluetooth. Host. Bluetooth. Module. Application RFCOMM SDP. Transport Interface. Transport Bus. Host Controller Interface

[A SHORT REPORT ON BLUETOOTH TECHNOLOGY]

Bluetooth Demystified

10/6/08. Bluetooth. Bluetooth. Bluetooth

Bluetooth. The Bluetooth Vision. Universal Wireless Connectivity. Universal Wireless Connectivity

CHAPTER 12 BLUETOOTH AND IEEE

Wireless Sensor Networks

e-pg Pathshala Quadrant 1 e-text

Amarjeet Singh. February 7, 2012

Embedded Systems. 8. Communication

Redes Inalámbricas Tema 2.B Wireless PANs: Bluetooth

Wireless Networked Systems

Bluetooth. Bluetooth Radio

ALL SAINTS COLLEGE OF TECHNOLOGY, BHOPAL

Introduction to Wireless Networking ECE 401WN Spring 2009

Mobile Communication Technology. WiMAX. according to IEEE. ZigBee. Bluetooth m LAN. WiFi x <10m PAN. IEEE 802.

Dominique Chomienne & Michel Eftimakis NewLogic

PANs: Bluetooth & Wireless LANs & PANs Case Study: Bluetooth & IEEE W.lan.4. Bluetooth overview. PANs: Personal area networks

CS263: Wireless Communications and Sensor Networks

Guide to Wireless Communications, 3 rd Edition. Objectives

By FaaDoOEngineers.com

Solving the Interference Problem due to Wireless LAN for Bluetooth Transmission Using a Non- Collaborative Mechanism. Yun-Ming, Chiu 2005/6/09

Efficient Multicast Schemes for Mobile Multiparty Gaming Applications

Computer Networks II Advanced Features (T )

Bluetooth Wireless Technology meets CAN

Objectives of the Bluetooth Technology

Wireless LANs. Characteristics Bluetooth. PHY MAC Roaming Standards

Simulation of Bluetooth Network

MI-BPS (Wireless Networks) FIT - CTU

Introducing Bluetooth

ICT 5305 Mobile Communications. Lecture - 8 April Dr. Hossen Asiful Mustafa

Structure of the Lecture WPAN. Bluetooth Protocol Stack. WPAN - Bluetooth

Bluetooth. Quote of the Day. "I don't have to be careful, I've got a gun. -Homer Simpson. Stephen Carter March 19, 2002

Introduction to Bluetooth

CCM 4300 Lecture 16. 3G, 4G, Satellite and Bluetooth Communications. Dr S Rahman. Computer Networks, Wireless and Mobile Communication Systems

Bluetooth Tutorial. Bluetooth Introduction. Bluetooth Technology

Bluetooth. Renato Lo Cigno

Overview of Bluetooth

Feasibility of a Bluetooth Based Structural Health Monitoring Telemetry System

Advanced Computer Networks

Ad Hoc Nets - MAC layer. Part II TDMA and Polling

Implementing A Bluetooth Stack on UEFI

Rab Nawaz Jadoon (Assistant Professor) Department of Computer Science COMSATS University, Abbottabad, Pakistan

Essential Bluetooth It s everywhere you want to be

Ah-Hoc, PAN, WSN,... Introduction Bluetooth ( ) Zigbee ( ) Renato Lo Cigno

Lecture Objectives. Lecture and Bluetooth technology. Agenda. IEEE b. Characteristics. Center Frequencies

System Level Analysis of the Bluetooth standard

Wireless Personal Area Networks & Wide Area Networks

Proposed Bluetooth Middleware Profile for On-location Universal Format Announcement

Wireless Local Area Network. Internet Protocol Suite

Sensor Application for Museum Guidance

IMPLEMENTATION AND SECURITY OF BLUETOOTH TECHNOLOGY

Wireless Local Area Networks (WLAN)

SIMULATION BASED ANALYSIS OF BLUETOOTH NETWORKS. M. Subramani and M. Ilyas

Master. Slave. Master. Slaves. TCP/IP Traffic with Efficient Bluetooth Technology. Shafqat Hameed 1, Umar F.Khan 2, *Muhammad Saleem 3

WIRELESS TECHNOLOGIES

Bluetooth in Mobile Devices

Personal Area Networking over Bluetooth

Chapter 5 (Part 3) LINK LAYER

Wireless Sensor Networks BLUETOOTH LOW ENERGY. Flavia Martelli

CALIFORNIA SOFTWARE LABS

Inside Bluetooth Low Energy

Chapter 5. Wireless PANs

Bluetooth PCI Adapter

Universitetet i Oslo Institutt for informatikk. Monitoring Bluetooth network topology. Cand Scient Thesis. Fredrik Borg

What is a personal area network?

Bluetooth low energy technology Bluegiga Technologies

Module 5. Embedded Communications. Version 2 EE IIT, Kharagpur 1

Wireless Communications

Electromagnetic Spectrum (3kHz 300GHz)

ECE 435 Network Engineering Lecture 8

Image acquisition and Communication

A Guide. Wireless Network Library Bluetooth

Efficient Multicast Schemes for Mobile Multiparty Gaming Applications

Development of a Service Discovery Architecture for. Christian Schwingenschlögl, Anton Heigl

Advanced Computer Networks. Medium Access, WLAN & Bluetooth

The Bluetooth Radio System

Performance Evaluation of Bluetooth Links in the Presence of Specific Types of Interference

Special Course in Computer Science: Local Networks. Lecture

MavBlue: A Bluetooth Development Kit for Undergraduate and Graduate Research and Education

BASEBAND SPECIFICATION

Transcription:

Bluetooth Bluetooth Basics Bluetooth and Linux Bluetooth at AG Tech Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.1

I. Bluetooth Idea Universal radio interface for ad-hoc wireless connectivity Interconnecting computer and peripherals, handheld devices, PDAs, cell phones replacement of IrDA Embedded in other devices, goal: 5 /device (2002: 50 /UB bluetooth) hort range (10 m), low power consumption, license-free 2.45 GHz IM Voice and data transmission, approx. 1 Mbit/s gross data rate One of the first modules (Ericsson) Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.2

Basics History 1994: Ericsson (Mattison/Haartsen), MC-link project Renaming of the project: Bluetooth according to Harald Blåtand Gormsen [son of Gorm], King of Denmark in the 10th century 1998: foundation of Bluetooth IG, www.bluetooth.org 2001: first consumer products for mass market, spec. version 1.1 released pecial Interest Group Original founding members: Ericsson, Intel, IBM, Nokia, Toshiba Added promoters: 3Com, Agere (was: Lucent), Microsoft, Motorola > 2500 members Common specification and certification of products Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.3

Characteristics 2.4 GHz IM band, 79 (23) RF channels, 1 MHz carrier spacing Channel 0: 2402 MHz channel 78: 2480 MHz G-FK modulation, 1-100 mw transmit power FH and TDD Frequency hopping with 1600 hops/s Hopping sequence in a pseudo random fashion, determined by a master Time division duplex for send/receive separation Voice link CO (ynchronous Connection Oriented) FEC (forward error correction), no retransmission, 64 kbit/s duplex, point-to-point, circuit switched Data link ACL (Asynchronous ConnectionLess) Asynchronous, fast acknowledge, point-to-multipoint, up to 433.9 kbit/s symmetric or 723.2/57.6 kbit/s asymmetric, packet switched Topology Overlapping piconets (stars) forming a scatternet Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.4

Piconet Collection of devices connected in an ad hoc fashion One unit acts as master and the others as slaves for the lifetime of the piconet Master determines hopping pattern, slaves have to synchronize B P M P Each piconet has a unique hopping pattern P B Participation in a piconet = synchronization to hopping sequence M=Master =lave P=Parked B=tandby Each piconet has one master and up to 7 simultaneous slaves (> 200 could be parked) Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.5

Forming a piconet All devices in a piconet hop together Master gives slaves its clock and device ID Hopping pattern: determined by device ID (48 bit, unique worldwide) Phase in hopping pattern determined by clock Addressing Active Member Address (AMA, 3 bit) Parked Member Address (PMA, 8 bit) B P P M B P Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.6

catternet Linking of multiple co-located piconets through the sharing of common master or slave devices Devices can be slave in one piconet and master of another Devices jumping back and forth between the piconets P Piconets (each with a max. capacity of 720 kbit/s) M M P B P M=Master =lave P=Parked B=tandby P B B Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.7

Bluetooth protocol stack audio apps. vcal/vcard NW apps. telephony apps. mgmt. apps. OBEX TCP/UDP IP PPP/BNEP AT modem commands TC BIN DP Control Audio RFCOMM (serial line interface) Logical Link Control and Adaptation Protocol (L2CAP) Link Manager Baseband Radio Host Controller Interface AT: attention sequence OBEX: object exchange TC BIN: telephony control protocol specification binary BNEP: Bluetooth network encapsulation protocol DP: service discovery protocol RFCOMM: radio frequency comm. Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.8

Piconet/channel definition Low-level packet definition Baseband Access code Channel, device access, e.g., derived from master Packet header 1/3-FEC, active member address (1 master, 7 slaves), link type, alternating bit ARQ/EQ, checksum 68(72) 54 0-2745 bits access code packet header payload 4 64 (4) preamble sync. (trailer) 3 4 1 1 1 8 bits AM address type flow ARQN EQN HEC Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.9

Baseband states of a Bluetooth device standby unconnected typ. 2s detach inquiry page connecting typ. 0.6s transmit AMA typ. 2ms connected AMA active park PMA hold AMA sniff AMA low power tandby: do nothing Inquire: search for other devices Page: connect to a specific device Connected: participate in a piconet Park: release AMA, get PMA niff: listen periodically, not each slot Hold: stop ACLs, CO still possible, possibly participate in another piconet Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.10

Baseband link types Polling-based TDD packet transmission 625µs slots, master polls slaves CO (ynchronous Connection Oriented) Voice Periodic single slot packet assignment, 64 kbit/s full-duplex, point-to-point ACL (Asynchronous ConnectionLess) Data Variable packet size (1,3,5 slots), asymmetric bandwidth, point-tomultipoint MATER CO ACL CO ACL CO ACL CO ACL f 0 f 6 f 8 f 12 f 4 f 20 f 14 f 18 LAVE 1 f 1 f 7 f 9 f 13 f 19 LAVE 2 f 5 f 21 f 17 Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.11

PIN (1-16 byte) ecurity User input (initialization) Pairing PIN (1-16 byte) E 2 Authentication key generation (possibly permanent storage) E 2 link key (128 bit) Authentication link key (128 bit) E 3 Encryption key generation (temporary storage) E 3 encryption key (128 bit) Encryption encryption key (128 bit) Keystream generator Keystream generator Data payload key Ciphering Cipher data payload key Data Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.12

L2CAP - Logical Link Control and Adaptation Protocol imple data link protocol on top of baseband Connection oriented, connectionless, and signalling channels Protocol multiplexing RFCOMM, DP, telephony control egmentation & reassembly Up to 64kbyte user data, 16 bit CRC Qo flow specification per channel Follows RFC 1363, specifies delay, jitter, bursts, bandwidth Group abstraction Create/close group, add/remove member Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.13

DP ervice Discovery Protocol Inquiry/response protocol for discovering services earching for and browsing services in radio proximity Adapted to the highly dynamic environment Defines discovery only, not the usage of services Caching of discovered services ervice record format Information about services provided by attributes Attributes are composed of an 16 bit ID (name) and a value IDs may be derived from 128 bit Universally Unique Identifiers (UUID) Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.14

RFCOMM Additional protocols Emulation of a serial port (supports a large base of legacy applications) Allows multiple ports over a single physical channel Telephony Control Protocol pecification (TC) Call control (setup, release) Group management OBEX Exchange of objects, IrDA replacement Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.15

Profiles Represent default solutions for a certain usage model Vertical slice through the protocol stack Basis for interoperability Generic Access Profile ervice Discovery Application Profile Cordless Telephony Profile Intercom Profile erial Port Profile Headset Profile Dial-up Networking Profile Fax Profile LAN Access Profile Generic Object Exchange Profile Object Push Profile File Transfer Profile ynchronization Profile Protocols Applications Profiles Additional Profiles Advanced Audio Distribution PAN Audio Video Remote Control Basic Printing Basic Imaging Extended ervice Discovery Generic Audio Video Distribution Hands Free Hardcopy Cable Replacement Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.16

II. Bluetooth under Linux ource for information: http://bluez.sourceforge.net/howto/ Relevant configs: /etc/hcid.conf, /etc/bluetooth/pin, /etc/rc.d/init.d/bluetooth, /etc/pcmcia/bluetooth, /etc/pcmcia/bluetooth.conf UB device: modprobe hci_usb hciconfig hci0 up Tools: hcitool l2ping l2test, scotest hcidump (like tcpdump) Example: http://bluez.sourceforge.net/howto/node30.html et up PPP over Bluetooth, running DPd (DP daemon), open bluetooth socket, deploy BNEP, Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.17

III. Bluetooth at AG Tech Usage of Bluetooth modules from CR (Cambridge ilicon Radio) 66% of market, Linux driver available, very good documentation On-board microcontroller handles basic bluetooth protocol functions DK available for µc-programming RAM UART UB and UART interfaces looks like a normal device 2.4 GHz Radio DP µc I/O UB PIO PCM Compaq ipaq with bluetooth (CR module ) Bluetooth is now working (http://www.handhelds.org/projects/h3800.html) NEW: dual boot ipaqs! Goal: Matchbox-sized web server with IP network access and display Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.18

Bluetooth Research Interoperability Bluetooth WLAN ame frequency, different access, no coordination IEEE working group: Adaptive Frequency Hopping ervice Discovery: Using ervice Discovery Protocol (DP) for immediate access to services in a room or location Integration with other service discovery architectures (EDP, UPnP, Jini,.NET, ) Ad-hoc networking How to build spontaneous networks How to make this fast, but secure Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.19

Bluetooth/UB adapter (2002: 50 ) Dr.-Ing. H. Ritter, http://www.hartmut-ritter.de/ 7.20