Sun Java Solaris Communities My SDN Account Join SDN
 

Mobile Service Architecture - JSR 82

»  Overview
 
»  Devices
 

JSR 82 - Bluetooth API 1.1

 

JSR 82 enables developers to create applications that utilize Bluetooth technology, a widely deployed standard for wireless communication. Bluetooth may be employed to exchange files, pictures, business cards, or other data between mobile devices. If the device supports Bluetooth, then it must also support JSR 82 in order to be MSA compliant.

Packages

 

javax.bluetooth
javax.obex

System Properties

 
Name Description
bluetooth.api.version The supported version of Bluetooth wireless technology. The current version is "1.1".

obex.api.version The supported version of Bluetooth wireless technology. The current version is "1.1".

bluetooth.l2cap.receiveMTU.max The maximum ReceiveMTU size in bytes supported in L2CAP.

bluetooth.connected.devices.max The maximum number of connected devices.

bluetooth.connected.inquiry Is inquiry allowed during a connection: "true" or "false".

bluetooth.connected.page Is paging allowed during a connection: "true" or "false".

bluetooth.connected.inquiry.scan Is inquiry scanning allowed during a connection: "true" or "false".

bluetooth.connected.page.scan Is page scanning allowed during a connection: "true" or "false".

bluetooth.master.switch Is master/slave switch allowed: "true" or "false".

bluetooth.sd.trans.max Maximum number of concurrent service discovery transactions.

bluetooth.sd.attr.retrievable.max Maximum number of service attributes to be retrieved per service record.
 

Articles

 

Getting Started With Bluetooth - JSR-82 brings Bluetooth API's to the J2ME environment. Read the tech tip and begin experimenting with Bluetooth today using the Wireless Toolkit 2.2 Beta.

Wireless Application Programming with J2ME and Bluetooth - Introduces the basics of developing J2ME applications using the Bluetooth radio frequency technology.

Wireless Application Programming with J2ME and Bluetooth, Part 2: The Java APIs for Bluetooth Wireless Technology - Provides a brief overview of the Java APIs for Bluetooth Wireless Technology (JSR 82), and shows you how to use these APIs.

Using the Java APIs for Bluetooth Wireless Technology - This article covers some background information, an overview of the typical elements of a Bluetooth-enabled MIDlet application, and an introduction to the core Java Bluetooth APIs including code snippets that show how to use the core Java Bluetooth APIs.

Using the Java APIs for Bluetooth, Part 2 - Putting the Core APIs to Work - This article shows how to implement personal area networks (PANs) using Bluetooth, a low-cost, short-range wireless technology.

Using the JSR-82 API for OBEX Image Transfers - Explores moving images between devices using the Java APIs for Bluetooth and the PDA Optional Packages for the J2ME Platform for filesystem access. Read Bruce Hopkins' first article for Sun's Mobile Java Technology site, download the source and have fun.

Mobile Multiplayer Gaming, Part 3: Multiplayer Gaming with Bluetooth - In the final part of his Mobile Gaming series Michael Powers shows the ease with which Bluetooth can be added to the game to enable local-area wireless play. Download the sample source, read part 3 and apply the modifications for Bluetooth game play.

Getting Started
 
Related Links