JavaBluetooth

21
JavaBluetooth JavaBluetooth Macherel Bruno Macherel Bruno M2PGI - UFRIMA M2PGI - UFRIMA

description

JavaBluetooth. Macherel Bruno M2PGI - UFRIMA. Sommaire. Présentation de bluetooth Caractéristique Fonctionnement Java Bluetooth (JSR-82) Protocoles / Profiles. Bluetooth. Ericson, 1994 Bluetooth Special Interest Group (SIG) Ericsson, Nokia, Intel, IBM, et Toshiba, 1998 - PowerPoint PPT Presentation

Transcript of JavaBluetooth

Page 1: JavaBluetooth

JavaBluetoothJavaBluetooth

Macherel BrunoMacherel BrunoM2PGI - UFRIMAM2PGI - UFRIMA

Page 2: JavaBluetooth

2

SommaireSommaire

Présentation de bluetooth Caractéristique Fonctionnement

Java Bluetooth (JSR-82) Protocoles / Profiles

Page 3: JavaBluetooth

3

BluetoothBluetooth

Ericson, 1994 Bluetooth Special Interest Group (SIG)

Ericsson, Nokia, Intel, IBM, et Toshiba, Ericsson, Nokia, Intel, IBM, et Toshiba, 19981998

Commercialisation, 2001Commercialisation, 2001 Installation de composantsInstallation de composants Aucune configurationAucune configuration Multiplicité des connexions à des Multiplicité des connexions à des

périphériquespériphériques

Page 4: JavaBluetooth

4

CaractéristiquesCaractéristiques

Ondes radios : 2400 – 2483,5 MHzOndes radios : 2400 – 2483,5 MHz Débit : 1 Mb/sDébit : 1 Mb/s Portée : 1 à 100m (1 à 100mW)Portée : 1 à 100m (1 à 100mW) Communication par paquetsCommunication par paquets

Encadrés par des blocs de données de Encadrés par des blocs de données de contrôlescontrôles DestinataireDestinataire Fréquence du bloc suivantFréquence du bloc suivant

Débit réel : 864 Kbits/sDébit réel : 864 Kbits/s

Page 5: JavaBluetooth

5

FonctionnementFonctionnement

Canal d’émission découpé en slot Canal d’émission découpé en slot (625µs)(625µs) 1 paquet = 1 slot (~> 5 slots)1 paquet = 1 slot (~> 5 slots)

Saut de fréquence sur 79 canauxSaut de fréquence sur 79 canaux 1600 sauts/sec1600 sauts/sec

Page 6: JavaBluetooth

6

255 appareils, 7 communications 255 appareils, 7 communications simultanéessimultanées

Page 7: JavaBluetooth

7

États pour la station États pour la station esclaveesclave

Phase de découverte

Configuration

Connextion OKFin connextion

ConnectéConfiguration

Problème

Page 8: JavaBluetooth

8

États pour la station États pour la station maîtremaître

Nouvelle connexion

Configuration

Connexion OK

ConnectéConfiguration OK

Fermeture de la connexion

Perte de lien Erreur de configuration

Page 9: JavaBluetooth

9

BlueTooth 2BlueTooth 2

Annoncé le 8 novembre 2004Annoncé le 8 novembre 2004 Premiers terminaux intégrant BT2 : Premiers terminaux intégrant BT2 :

courant 2005courant 2005 Pressions de WiFi et ZigBeePressions de WiFi et ZigBee Fonctionnalités annoncéesFonctionnalités annoncées

Débit X 4 voir X 10Débit X 4 voir X 10 Consommation X 1/2Consommation X 1/2

Page 10: JavaBluetooth

10

Java BluetoothJava Bluetooth

512 Ko512 Ko Service Discovery Protocol (SDP) RFCOMM (type 1 device support) Logical Link Control and Adaptation

Protocol (L2CAP)

Page 11: JavaBluetooth

11

Java Bluetooth - Java Bluetooth - utilisationutilisation

Peer-to-Peer Networking Kiosk Data transmissions only Protocols:

L2CAP (connection-oriented only) RFCOMM SDP OBject Exchange protocol (OBEX)

Profiles: Generic Access Profile (GAP) Service Discovery Application Profile (SDAP) Serial Port Profile (SPP) Generic Object Exchange Profile (GOEP)

Page 12: JavaBluetooth

12

Bluetooth protocolsBluetooth protocols

JSR-82

Page 13: JavaBluetooth

13

Bluetooth profilesBluetooth profiles

JSR-82

Page 14: JavaBluetooth

14

Structure de l’API Java Structure de l’API Java BluetoothBluetooth

DisoveryDisovery CommunicationCommunication Device managementDevice management

Page 15: JavaBluetooth

15

Device & Service Device & Service DiscoveryDiscovery

DiscoveryAgent startInquiry() retrieveDevices()

DiscoveryListener servicesDiscovered() deviceDiscovered()

Page 16: JavaBluetooth

16

Device managementDevice management

Generic Access Profile LocalDevice & RemoteDevice

Security Authentification Encryption Autorization Request for Master Role

Page 17: JavaBluetooth

17

CommunicationCommunication

RFCOMM protocole

Logical Link Control and Adaptation Protocol (L2CAP)

OBEX protocole

Page 18: JavaBluetooth

18

CommunicationCommunication

RFCOMM protocole Server

StreamConnectionNotifier service = (StreamConnectionNotifier) Connector.open(

“btspp://localhost:102030405060708090A1B1C1D1D1E100;name=SPPEx”);

StreamConnection con = (StreamConnection) service.acceptAndOpen();

ClientStreamConnection con =

(StreamConnection) Connector.open(“btspp://0050C000321B:5”);

Page 19: JavaBluetooth

19

CommunicationCommunication

Logical Link Control and Adaptation Protocol Server

L2CAPConnectionNotifier server = (L2CAPConnectionNotifier)

Connector.open(“btl2cap://localhost:3B9FA89520078C303355AAA694238F08;

name=L2CAPEx”);L2CAPConnection con = (L2CAPConnection)server.acceptAndOpen();

ClientL2CAPConnection client = (L2CAPConnection)

Connector.open(“btl2cap://0050CD00321B:1001;ReceiveMTU=512;

TransmitMTU=512”);

Page 20: JavaBluetooth

20

CommunicationCommunication

OBEX protocole (by IrDA) Opérations :

CONNECT, DISCONNECT PUT, GET SETPATH, ABORT, CREATE-EMPTY, PUT-DELETE

Page 21: JavaBluetooth

21

DémoDémo