21-07-2012, 01:19 PM
Developing Applications with the Java APIs for Bluetooth
Applications with the Java.pdf (Size: 469.37 KB / Downloads: 76)
Introduction
This paper covers the Java API for Bluetooth (JSR-82) with respect to Sony Ericsson devices. It starts by
introducing the Bluetooth technology, followed by the Java APIs for Bluetooth, and how to use them.
Currently, these APIs are currently available in the Sony Ericsson P900/P908 handsets.
Note: The Java Bluetooth API’s are not available in the first software release in P900 (Organizer SW version R1*).
For more information about this software release, refer to “Sony Ericsson P900 MIDP 2.0 Java Developers’
Guidelines”.
Bluetooth Devices and Network
Bluetooth devices use a unique IEEE 802 48-bit address. When two or more Bluetooth devices connect, they form
what is referred to as a Piconet. This is a dynamic (ad hoc) network, where one device acts as a master while all
others (up to seven) are slaves. Slaves can participate in different piconets, and two connecting masters form an
overlapping piconet that is referred to as a Scatternet; in Figure 2 a piconet master node becomes a slave node for
the other piconet.
Java APIs For Bluetooth - Organization and Packages
The Java APIs for Bluetooth is a J2ME optional package for defined by the Java Community Process (JSR-82).
This optional package provides a common API for Bluetooth development. Figure 3 illustrates the relationship
between the Java APIs for Bluetooth and the J2ME platform, using the Mobile Information Device Profile (MIDP)
and Connected Limited Device Configuration (CLDC) stack.
The Bluetooth Control Center
Bluetooth initialization typically entails setting the device’s name, security settings, and/or turning the Bluetooth
radio on/off. These aforementioned steps are done via what is referred to as the Bluetooth Control Center (BCC),
which typically are a set of control panels that serves as the central authority for local Bluetooth device settings.
The following shows the BCC control panels for Bluetooth on P900.