Learn Java

JSR 82

Introduction

JSR-82 provided the first standardized Java API for Bluetooth protocols, allowing developers to write applications using Bluetooth that work on all devices conforming to the specification.

Technologies and Usage

Discovery

Java applications can use the API to scan for

  1. discoverable devices
  2. devices that the device frequently contacts

and identify services provided by discovered devices.

Object Exchange APIs

Two devices conforming to the OBEX protocol could exchange virtual business cards or calendar appointments.

Device Management

  1. management of the local device’s state.
  2. access information about the host device such as Bluetooth address
  3. mark their host device as discoverable to other Bluetooth devices
  4. register to provide services

Security

JABWT supports connections with different levels of security. Applications using the APIs can pass parameters to the Connector.open() method indicating the level of security required to establish a connection to another device.

Compatible Device

Hundreds of mobile devices from different manufacturers comply with the JSR-82 specification.

Implementations

Several open-source implementations of the JSR-82 specification are available:

  • AvetanaBluetooth Implementation
  • BlueCove: Java Library for Bluetooth

Reference