Java Reference
In-Depth Information
Figure 12-1 illustrates the relationship between the optional Bluetooth API, CLDC, and MIDP.
Figure 12-1. Relationships between Java API for Bluetooth, CLDC, and MIDP
The Bluetooth API leverages the Generic Connection Framework (GCF) built into CLDC in
a similar manner to WMA and File Connection covered in earlier chapters.
JSR 82: The Bluetooth JSR
JSR 82 is called Java API for Bluetooth Wireless Technology, and the specification describes two
complete and separate optional APIs:
Java API for Bluetooth
Java API for OBEX
While the first API covers exclusively communications via Bluetooth radio technology, the
second one focuses on the OBEX protocol. The OBEX protocol can be implemented over a
Bluetooth PAN, IP networks, and infrared communications links. You are most likely to find
OBEX implemented over infrared links.
The first part of this chapter will focus on the Bluetooth APIs, the latter part on OBEX.
Networking with Devices Near You
Bluetooth is short-ranged radio technology that enables communications for devices physi-
cally located close to one another. A Bluetooth implementation contains both hardware and
software components (and software in ROM, also known as firmware), as illustrated in Figure 12-2.
Search WWH ::




Custom Search