JSR-82 Basics
- Posted by Mark
This is the first part of the tutorial covering the basics of JSR-82.
What is JSR-82?
JSR-82 is a standard defined by the Java Community Process for providing a standard to develop Bluetooth applications in Java. It is an open and non-proprietary standard for developing Bluetooth applications. The JSR-82 API hides the complexity of the Bluetooth protocol stack, by exposing a simple set of Java API’s. The JSR-82 specific can be downloaded from here.
Pre-Requisites
To develop a Bluetooth application in Java using the JSR-82, you need to have the following
- JSR-82 Compliant Bluetooth Stack.
- Local Bluetooth Device.
You need a JSR-82 Implementation to successfully develop and test a Java Bluetooth application. You either need to have a simulated enviorment like the Sun Java Wireless Toolkit, or a real Java Bluetooth Stack like ElectricBlue or Avelink. The simulator allows you to test the Bluetooth application in a simulated environment, with no access to real bluetooth device.
If you are using a simulator, this is not needed. But to test your application in real world over a java bluetooth stack, you need to have a bluetooth enabled system. This can either be a Bluetooth USB Dongle plugged in to your system, or the internal built in bluetooth device. The java application that you writes, runs over this bluetooth device, and this bluetooth device is called as the ‘LocalDevice’ in JSR-82.
Capabilities of JSR-82
What all applications can you develop using the JS-82? The JSR-82 API provides you the options to do the following
- Manage the Local Bluetooth Device settings.
- Discover other bluetooth devices in the neighborhood.
- Search for bluetooth devices on the discovered bluetooth devices.
- Connect to any of those bluetooth service and communicate with it.
- Register a bluetooth service on the Local Bluetooth Device, so that other bluetooth devices can connect to it.
- Manage and control the communication connections.
- Provide the security to all of the above options.
These are the properties and capabilities of JSR-82 in a nutshell. How you can develop application using the capabilities of the JSR-82 will be explained in the next section of this article.

March 30th, 2007 at 2:14 am
Just a small comment: can also use the Rococo JSR82 Simulator for this kind of development.
April 8th, 2007 at 5:26 pm
[...] JSR-82 stack, and to control the local bluetooth settings. If you are new to JSR-82, check out the JSR-82 Basics tutorial before reading this. JSR 82 API can be broadly classified into the following [...]
April 26th, 2007 at 7:51 pm
[...] for Bluetooth devices using a JSR-82 API. If you are new to JSR-82, we recommend you to read the JSR-82 Basics tutorial to get a basic idea Java and [...]
December 12th, 2007 at 10:02 am
“These are the properties and capabilities of JSR-82 in a nutshell. How you can develop application using the capabilities of the JSR-82 will be explained in the next section of this article.”
where is the next section?
December 18th, 2007 at 3:50 pm
@1 Yes you can use any jsr82 simulators such as Rocooco or BlueSim
December 18th, 2007 at 3:52 pm
@4 There are many other articles in this site. Check out those. You can find a list of related articles at the Right most column
February 14th, 2008 at 10:42 am
[...] La página JSR82.com y su tutorial básico. [...]
February 29th, 2008 at 7:40 am
[...] for Bluetooth devices using a JSR-82 API. If you are new to JSR-82, we recommend you to read the JSR-82 Basics tutorial to get a basic idea Java and [...]
April 9th, 2008 at 8:40 am
Hi I am new to bluetooth application .I want to know one thing..Is it possible to establish a peer to peer connection in bluetooth(using J2me).
Is it possible to establish a connection be remote address
July 14th, 2008 at 10:34 am
Can i send an integer value ( or any another data type) from my mobile to my pc through blue tooth??
August 27th, 2008 at 12:54 pm
Does this api supports voice communications???
April 6th, 2009 at 9:09 am
Hello , i want to send a data files automatically through bluetooth from bluetooth laptop to mobile using J2ME , as soon as a request from mobile encounters .. So can U pleasee help me in this regard .. If any API is available , then please suggest .