Simulating JABWT applications using JSR-82 Simulators

Any one who is developing JSR-82 based application hopes for an easy JSR-82 simulator over which they can test their applications.Testing on actual devices can be very time consuming, and may not be feasible in every circumstances. JSR-82 simulators mimic the real Bluetooth environment, providing a way for the Java Bluetooth developers to test their JSR-82 based application effortlessly, without the need of the actual Bluetooth device.

The major JSR-82 simulators available today are Java Wireless Toolkit from Sun, BlueSim from JSRSoft and Impronto from Rococo. Java Wireless Toolkit is a simulator for a wide range of J2ME based API’s, and hence is the biggest to download, and the toughest to configure. It allows only J2ME based simulations, and is not platform independent. BlueSim and Impronto are both platform independent and supports J2SE and J2ME.

In this article we review BlueSim and list its important features, which any good JSR-82 simulators should provide. The features that BlueSim JSR-82 Simulator provides to a Java Bluetooth developer are given below.

  • Simulated Environment. No Bluetooth Device needed.

Don’t have a Bluetooth device to test your JSR-82 based application? Don’t worry. Just use a JSR-82 Simulator. A proper JSR-82 simulator simulates the Bluetooth environment completely, enabling you to test your JSR-82 applications over it.

  • Simple Configuration.

There is nothing much to configure when using the BlueSim simulator. All you have to do is specify the Bluetooth device address, and device name. Even these have default values.A good simulator should be easily configurable.

  • 100% Pure Java

It is a desirable that the simulator be developed in pure java, so that it can be run on any platform.

  • J2ME/J2SE support

Another most desirable feature of a JSR-82 simulator is that it should support both J2ME and J2SE based development. The simulator should not limit the development environment to J2ME or J2SE alone. In the ideal case, you should be able to develop and test your J2SE or J2ME based JSR-82 application by just providing the JSR-82 simulator jar in the class path.

  • 100% JSR-82 Compliant

What use does it have, if the simulator is not in full compliance with the specification? A proper simulation should comply with the specification completely. I.e. it should provide both javax.bluetooth and javax.obex packages.

  • Multiple Instance Support

The JSR-82 simulator should support multiple instances that recognize each other. This means the JABWT developer should be able to test different instances of applications running concurrently and communicating with each other. I.e. you can test both a bluetooth client and a server as two separate instances.

  • Intranet Support

A very important and desirable feature found in BlueSim JSR-82 Simulator is that it allows you to run multiple instances even on different machines. All simulator instances running on the same internal network discovers each other automatically. Each simulator instance simulates a Bluetooth device, and each of these simulated Bluetooth devices can search and find each other, and their services.This in effect is simulating the wireless Bluetooth environment with your local wired intranet.

In short JSR-82 Simulators makes development and testing of JABWT applications effortless and much efficient. In addition to these excellent features provided by JSR-82 simulators, the fact that they cost very less, and some times even free makes them one of the must have tools of any JABWT application developer.

AddThis Social Bookmark Button AddThis Feed Button

2 Responses to “Simulating JABWT applications using JSR-82 Simulators”

  1. Linda Says:

    Has the BlueSim been adapted for scatternet architecture? Thanks

  2. bnm Says:

    yupe, sure it has. :)
    you can implement by coding.

Leave a Comment