J2SE Bluetooth API

Hello,
I�m working on a project where I have to build a bluetooth server to connect Mobiles to it.
The problem I have is to find an API to use bluetooth under J2SE. It seems to be easy to find that for J2ME, but not for J2SE.
I found something on benhui.net, but I�m not sure if this is the best solution.
Does someone have experiences with something like that?
I would be very happy to have an API for Win AND Linux. I think I will try the solution from benhui.net, but perhaps someone has a better idea.
And what about a Linux API? I found that JBluez at sourceforge, but this project seems to be dead (nothing happened there for about 2 years).

You can map the BT to a COM port on your machine using an adapter software (usually comes with the BT package) and then use APIs that uses the Java COMM API to connect to mobiles that are already connected to the machine via this adapter. such APIs like JSMS authored by http://www.objectxp.com/
this is not the propper place to post this question, since there is a froums related to the wireless fields at http://forums.java.sun.com/wireless
GoodLuck
Regards,
Mohammed Saleem

Similar Messages

  • How to download Bluetooth API documentation?

    How can I download Bluetooth API documentation?
    In java.sun.com I found this API documentation but it seem I have
    to stay online to have access. It will very costly for me.
    Anyone can help?
    Thank You.

    Hi!
    You can download the Bluetooth specification and API documentation from here:
    http://jcp.org/en/jsr/detail?id=82
    -Henrik

  • Javadoc for Bluetooth API?

    Where can I download the Javadoc for Bluetooth API?

    the javadoc is available with SUN WTK2.5 (<wtk_folder>/docs/api/jsr082)

  • Can I configure a gsm modem via bluetooth API

    Hi all
    Can I configure a gsm modem via bluetooth API ?
    thanks in advance
    Vishin Das V D

    Hi deepspace
    Could you please go through this thread ? http://forum.java.sun.com/thread.jspa?threadID=5211663&messageID=9860406#9860406
    it will be a great help for me
    Thanks
    Vishin Das V D

  • Reception power & bluetooth API

    Hi everybody!
    I would like to get the reception power (or the SNR) in a bluetooth headset, but I cannot find any bluetooth API that gives me this information.
    Can you help me, please?
    Thanks!
    Luis.

    Hello!
    This question is better suited for our developer forums at developer.palm.com and go to the forums there.  There is an API section to which this question can get answer easily. 
    Message Edited by thetreoguy on 12-04-2009 07:41 PM

  • Toshiba Bluetooth API ( SDK )

    Hi,
    Does anyone here use the Toshiba Bluetooth API ?
    I have the Toshiba USB Bluetooth Dongle (Adapter), and I am trying to initiate an audio connection with a remote headset, but the API only includes L2CAP and RFCOMM connection, whereas an SCO connection is needed for audio.
    An audio connection can be create when the headset initiates the connection ( i.e. by pressing one of the buttons on the headset while the headset is enabled) , but I want the PC to initiate the connection.
    Does anyone have any idea?
    Thanks.

    Hi
    Im not very familiar with API or SDK but I found this Microsoft page.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ppc_bluetooth_api__amdi.asp
    Maybe it will be a little help for finding a answer of your question.
    Bye

  • Without Bluetooth api

    Is passible to write midlet in java 2me without use Bluetooth api
    which will connect two or more phones throw Bluetooth.
    Bluetooth API is implemented in a few expensive Phones only.
    Thank for Your Advance

    Hi,
    how do you want to use bluetooth without bluetooth API?
    ...how do you want to paint w/o a grpahics API, how do you want to write w/o a pen? :-)
    There must always be an API for any kind of functionality.
    The L2CAP is not API, it's protocol and there must be an API implementing this protocol. For the Java ME world you have to use the Bluetooth API defined in JSR-82 - which must be implemented by the device you want to run the application on.
    Rada
    PS: I've heard about an option to connect via BT using standard IO connecotr using some special connection string, but I've never tried it and I have no info about it.

  • J2SE Bluetooth Programming-connecting PC to  a Bluetooth Eanbled Phone

    Hi
    Iam trying to connect my PC (USB Bluetooth Dongle connected)   to a Bluetooth Phone,
    need to transfer some files using Bluetooth
    There are Sufficeient information on J2ME Bluetooth Programming,
    Does anybody know of a tutorial on J2SE bluetooth programming?
    Kindly Reply,

    There is no spec for Bluetooth in JSE. However, there are implementations of the JSR-82 spec (for JME) on the Standard platform. Off hand I can only recall BlueCove. Might be a good start.

  • Serious help needed regarding bluetooth APIs for j2se

    I am pursuing my bachelors degree, as part of my final year I have to complete a project which is based on bluetooth connection between the PC and mobile device.
    On PC j2se and On mobile j2me
    j2me has JSR 82 API
    j2se ?
    please tell me what is needed to establish the connection and how this is to be implemented

    I'm looking to setup a simple (one-way) messaging system to send text to mobile devices. I use Java 2 sdk 1.5 and am looking for some sort of API (jar file to extend with) so that this becomes possible. Do you have any suggestions? Thanks is advance.

  • J2SE Bluetooth Server (Using Bluecove)

    Hi there
    I am trying to set up a simple bluetooth server, one that simply accepts a message/string, and am using the Bluecove API for windows. However, I am having a little bit of trouble setting one up, and what documentation and examples I have found are quite complex, and usually deal with OBEX and the like, which I do not need.
    I have a J2ME bluetooth server written, that works (on an emulator at least, doesn't seem to like actual devices, but whatever), and am wondering how much "jiggling about" it will need to port it over to J2SE functionality.
    import javax.bluetooth.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class EchoServer extends Form implements Runnable{   
      StreamConnectionNotifier notifier;
      StreamConnection conn;
      LocalDevice localDevice;
      ServiceRecord serviceRecord;
      OutputStream output;
      List list;
      private boolean reqStart;
      private boolean isInit; 
      private static String serverUrl = "btspp://localhost:" + BluetoothEchoDemo.RFCOMM_UUID + ";name=rfcommtest;authorize=true";
      public EchoServer() {
        super("Bluetooth Server");
        isInit = false;
        Thread thread = new Thread(this);
        thread.start();
      public void run() {
        if (!isInit) {
          // Initialization is done in the thread to avoid dead lock 'isInit'
          //ensures it is done once only
          try {
            conn = null;
            localDevice = LocalDevice.getLocalDevice();
            localDevice.setDiscoverable( DiscoveryAgent.GIAC );             
            notifier = (StreamConnectionNotifier)Connector.open(serverUrl);     
          }//end try
          catch (BluetoothStateException e) {       
            System.err.println( "BluetoothStateException: " + e.getMessage() );   
          }//end catch
          catch (IOException e) {       
            System.err.println( "IOException: " + e.getMessage() );     
          }//end catch         
          isInit=true;
          System.out.println( "Starting Echo Server" );               
        }//end if
        try {
          System.out.println("\n\nServer Running...");
          // Pauses thread until Transmission occurs
          conn = notifier.acceptAndOpen();           
          // Read Data Transmission
          String msg = BluetoothEchoDemo.readData(conn);       
          append("Received Message from Client: " + msg);
          System.out.println("recieved"+msg);
          // Send Back a Message
          msg = "Hello Back from Server";       
          output = conn.openOutputStream();      
          output.write(msg.length()); // length is 1 byte
          output.write(msg.getBytes());
          output.close();
          run();
        }//end try
        catch (Exception ex) {
          System.err.println("Bluetooth Server Running Error: " + ex);     
        }//end catch   
      }//end run()
    }Any help would be appreciated. Obviously I'm not asking people to do this for me, it's my uni project, but I need some good pointers.

    Hey ftr2k5,
    I've got the same issue:
    - My server (same code as yours) is working on my J2ME phone
    - I translated this midlet into J2SE code
    - For J2SE code server, I use the Bluecove Avatena package. The server seems to work until the line:
          conn = notifier.acceptAndOpen();            but never get out of this method
    Did you find out how to proceed?
    Thx, Regis.

  • J2SE bluetooth

    I understand that j2se has no bluetooth implementation.
    Does anyone know which is the best third party API?
    Would bluecove be a good option, or is there a better alternative?
    I only need to do a simple device discovery, service search and client connect via rfcomm.

    There is a Java Community Process project for Bluetooth, called JSR-82.

  • Bluetooth APIs for WindowsXP

    Hello.
    I'm trying to develop an application that uses JSR-82 to communicate with mobile phones. The problem is that I need OBEX support and control over the pairing of the devices and there is not any free API with these two things. I've tried BlueCove and Avetana JSR-82 implementation. Avetana for Windows XP is quite good but it's not open source.
    Do you know any other Bluetooth implementation or stack I could use?
    Best regards.

    Double-posted:
    http://forum.java.sun.com/thread.jspa?threadID=5266020

  • More than one LocalDevice with Java Bluetooth API

    Hi.. If I have for example 2 usb bluetooth dongle, is it possible to use both of them with my java program?

    You already have an object (such as a data source) with the same name configured in your server. Names must be unique.
    You can check the config.xml file, to see which names are already used. This file is located in the ${DOMAIN_HOME}/config directory.

  • A query in an Application that uses Bluetooth API..

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

  • J2se bluetooth application ...

    HI
    All
    i am trying to make file transfer application in j2me with bluetooth..
    server is my mobile and client is pc.
    after acceptAndOpen my midlet stops means hangs and exception also not thrown on both the side.
    Also 1 problem is that i am printing url on both the side on server side
    i am getting channel id 1..
    on client side getting chanel id 3.
    i dont know y this ocuur?
    please help me
    Thanks in advance...

    shows us some code and the exceptions that you are getting. thati show you get code questions answer faster.

Maybe you are looking for

  • Idea - Store Internet Help info on the home computer?

    My internet recently went out, and when I tried to find information on Help Viewer about the problem, the Help Viewer said, Unable to connect to the Internet. That's a problem. iBook G4 14'   Mac OS X (10.4.1)  

  • ME2L Error

    Hi all, My client is using ME2L report for open purchase orders. When they use it normally the report is showing one Sch. agg with exact open quantity. But when they use a screen variant then the report is displaying the full quantity. Out of total 5

  • How to number pages after beginning project

    how do you number "pages" after the project has been started with a pages template?

  • Catalog in CN22 transaction

    Hi Experts, I just wanted to know, the catalog which is shown in CN22 transaction by selecting the activity and then clicking on catalog button in the below screen in CN22 transion. Where exactly the link to the catalog maintained for that. Thanx in

  • Need to view JAVA + JDBC + HSQLDB in action!

    Someone knows where can I find examples/codes of Java + JDBC + HSQLDB? Such as programs that use all of them and put some GUI to manage the data? Thanks a lot!