BlueZ Project -

23
Outline Bluetooth Technology BlueZ GSoC Projects Demos BlueZ Project Gustavo F. Padovan and Jo˜ ao Paulo Rechi Vita December 9, 2009 Gustavo F. Padovan and Jo˜ ao Paulo Rechi Vita BlueZ Project

Transcript of BlueZ Project -

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

BlueZ Project

Gustavo F. Padovan and Joao Paulo Rechi Vita

December 9, 2009

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

1 Bluetooth TechnologyOverviewSpecification

2 BlueZOverview of BlueZFeatures and ModulesUnder developmentFuture

3 GSoC ProjectsPulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

4 Demos

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Overview of Bluetooth

Open wireless network technology

Designed for short-distance data exchange

Originally conceived as a wireless alternative to RS-232

Bluetooth SIG1

Harald Blatand bla = blue, tand = tooth

1http://www.bluetooth.org/Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Previous Versions

1.0 e 1.0B – Interoperability problems

1.1 – Bug fixes, RSSI2, IEEE standard

1.2 – Faster connection and discovery, higher transfer rate(721kpbs), eSCO3, L2CAP Flow Control e RT modes

2.0 + EDR – Enhanced Data Transfer (nominal 3Mpbs, real2.1Mbps), lower power consumption

2.1 + EDR – Secure Simple Pairing, NFC

2.1 Addendum – L2CAP ERTM and Streaming

2Received Signal Strengh Indicator3extended Syncronous Connections

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Latest – 3.0 + HS

Alternate MAC/PHY

Unicast connectionless data

Read encryption key size

Enhanced power control

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Future

Bluetooth Low Energy

Broadcast channel

Topology management

QoS improvements

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Future :(

In October 2009 the Bluetooth SIG has dropped development ofUWB as part of the alternative MAC/PHY, Bluetooth 3.0/HighSpeed solution. A small, but significant, number of formerWiMedia members had not and would not sign up to the necessaryagreements for the IP transfer. The Bluetooth group is now in theprocess of evaluating other options for its longer term roadmap.

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

OverviewSpecification

Protocol Stack

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

The BlueZ Project

Official Linux Bluetooth protocol stack

Project started in 2001 by Qualcomm

Not planned for the final user

D-Bus API

Used by gnome-bluetooth, kbluetooth,gnome-phone-manager, oFono, BlueMaemo

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

Features

Complete modular implementation

Symmetric multi processing safe

Multithreaded data processing

Support for multiple Bluetooth devices

Real hardware abstraction

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

Modules

Bluetooth kernel subsystem core

L2CAP and SCO audio kernel layers

RFCOMM, BNEP, and HIDP kernel implementations

HCI UART, USB, PCMCIA and virtual device drivers

General Bluetooth and SDP libraries and daemons

Configuration and testing utilities

Protocol decoding and analysis tools

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

Supported Profiles

HFP - HandsFree Profile

HSP - Headset Profile

A2DP - Advanced Audio Distribution Profile

DUN - Dial-up Network Profile

HID - Human Interface Device Profile

PAN - Personal Area Network Profile

OPP - Object Push Profile

OPP - File Transfer Profile

PBAP - Phone Book Access Profile

SYNC - Synchronization Profile

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

Under development

ERTM and Streaming Modes (dependencies for AMP andHDP)

HDP - Health Device Profile

SAP - SIM Access Profile

HFP Handfree role.

MAP - Message Access Profile

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Overview of BlueZFeatures and ModulesUnder developmentFuture

Future

VDP - Video Distribution Profile

AMP - Alternate MAC/PHY(High Speed)

NFC - Near Field Communication

Bluetooth Low Power

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

PulseAudio bluetooth modules (2008)

module-bluetooth-discover

module-bluetooth-device

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

A2DP Sink (2009)

BlueZ A2DP Sink

PulseAudio A2DP Source

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

L2CAP Layer

It is responsible for

Protocol/channel multiplexing

Segmentation and reassembly of packets

Per-channel flow control

Error control

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

The GSoC Project

Enhanced Retransmission Mode(ERTM)

Streaming Mode

Segmentation and Reassembly

FCS Option

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

The GSoC Project

ERTM is a Requirement for AMP (AMP can’t use BasicMode)

ERTM is a Requirement for HDP

ERTM is a Requirement for OBEX over L2CAP

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

PulseAudio bluetooth modulesA2DP SinkL2CAP Enhanced Retransmission and Streaming Modes

Status

Most of the code has been merged into 2.6.32

Some features no implemented yet.

Still disabled. Need stabilization.

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Stream A2DP between 2 BlueZ hosts

1 Enable Source interface on the Sink SEP

2 Pair both devices

3 org.bluez.AudioSource.Connect()

4 Play on Source SEP

5 BlueZ Source -> ALSA Sink

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

L2CAP

Enhanced RT Mode: Retransmission of lost packets

Streaming Mode: Ignore lost packets, sequence numbering

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project

OutlineBluetooth Technology

BlueZGSoC Projects

Demos

Questions?

Gustavo F. Padovan - [email protected] Paulo Rechi Vita - [email protected]

#gpsl at irc.freenode.net

http://www.bluez.org#bluez at irc.freenode.net

[email protected]

Gustavo F. Padovan and Joao Paulo Rechi Vita BlueZ Project