JSR-82 Basics

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

  1. JSR-82 Compliant Bluetooth Stack.
  2. 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.

  3. Local Bluetooth Device.
  4. 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

  1. Manage the Local Bluetooth Device settings.
  2. Discover other bluetooth devices in the neighborhood.
  3. Search for bluetooth devices on the discovered bluetooth devices.
  4. Connect to any of those bluetooth service and communicate with it.
  5. Register a bluetooth service on the Local Bluetooth Device, so that other bluetooth devices can connect to it.
  6. Manage and control the communication connections.
  7. 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.

AddThis Social Bookmark Button AddThis Feed Button

14 Responses to “JSR-82 Basics”

  1. Sean O Sullivan Says:

    Just a small comment: can also use the Rococo JSR82 Simulator for this kind of development.

  2. JSR-82 : Java Bluetooth » JSR-82 Initialization : LocalDevice » Articles, Tutorials and Discussion Forums about Java Bluetooth Programming and JSR-82 Bluetooth API Says:

    [...] 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 [...]

  3. JSR-82 : Java Bluetooth » JSR-82 Sample : Device Discovery » Articles, Tutorials and Discussion Forums about Java Bluetooth Programming and JSR-82 Bluetooth API Says:

    [...] 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 [...]

  4. Raduc Says:

    “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?

  5. Bruse Says:

    @1 Yes you can use any jsr82 simulators such as Rocooco or BlueSim

  6. Bruse Says:

    @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

  7. JSR 82 « Lost In Barcelona Says:

    [...] La página JSR82.com y su tutorial básico. [...]

  8. JSR82 Tutorial « All about Information Technology Says:

    [...] 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 [...]

  9. Devadrita Harh Says:

    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

  10. Midhun Says:

    Can i send an integer value ( or any another data type) from my mobile to my pc through blue tooth??

  11. Lucho Says:

    Does this api supports voice communications???

  12. Vijay patil Says:

    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 .

  13. sukalp Says:

    hi, i have developed a bluetooth application for pc in j2me using JSR-82 api. my laptop has built in bluetooth, yet my device is not finding any neighbour device. my code is giving bluetooth state exception.please help me out with this.

  14. Joe Says:

    Hi, I am programming Bluetooth on a BlueCore Chip from CSR and I would like to write an application for my Windows Mobile Phone in order to test it. Can you please tell me where I can find all the required information how to develop and debug such an application on my phone? Is it possible to test it first on a standard PC? Thanks.

Leave a Comment