Jump to content

Java APIs for Bluetooth

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lordmetroid (talk | contribs) at 13:01, 1 March 2009 (Some libraries implementing the bluetooth interface fix this by their own accord neglecting the standards.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Java APIs for Bluetooth is a Java ME specification for APIs that allow Java midlets to use Bluetooth on supporting devices. The specification was developed under the Java Community Process as JSR 82. The Specification, Reference Implementation, and TCK [1] are maintained at Motorola Open Source.

Java APIs described in the JSR-82 interface for following Bluetooth Protocols/Profiles:

  • SDAP - Service Discovery Application Profile
  • RFCOMM - Serial Cable Emulation Protocol
  • L2CAP - Logical Link Control and Adaptation Protocol
  • GOEP - Generic Object Exchange (OBEX) Profile

JSR 82 implementations for Java 2 Platform Standard Edition (J2SE) are also available.

Common Problems

When the Bluetooth Special Interest Group wrote the Bluetooth specification, they misinterpreted the requirement to reserve low ports for future use. Instead they chose to block all use of low ports. Implementations however have options to allow the use for lower ports if one so like as such a service as HID would otherwise not work.

Devices

Devices supporting JSR 82:

Platform
40 series after 40 platform 2nd
s60 series after s60 platform 2nd
s80 series after s80 platform 2nd

Full list compiled based on publicly available resources

Devices not supporting JSR 82: