Bluetooth programming in J2SE

Can any one please guide me which and how to use Java API's to make a bluetooth connection between two PCs which are Bluetooth enabled. I want to send a string message from a laptop to another!!!
Thnx in anticipation...

Hi all,
Don't worry about this - With a little bit of reverse engineering, I figured it out. If anyone else is having the same trouble, then reply to this thread and I'll see if I can help. If anyone also knows how to send an sms message via a bluetooth connection from a pc to a mobile phone using avetana, then that would be great.

Similar Messages

  • 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.

  • Bluetooth communication  between J2SE server and J2ME client

    Hi everyone!
    I'm new here in this forum...
    I try to make a small project to my studies,
    My project will include J2SE server and J2ME client.
    I'm stuck in the step of finding the server with the wireless toolkit emulator.
    I found this issue in old subject: here
    I try the solution in reply 6 but I don't understand exactly who to define kvem.home, and I got this error:
    " You must define the system property "kvem.home" "
    maybe someone can help me and explain how to do that?
    thanks!

    Hello,
    I want to find out how this can be done, too. I tried with
    System.setProperty("kvem.home", "C:\\WTK2.5.2");but I get an error:
    java.lang.UnsatisfiedLinkError: com.sun.kvem.jsr082.impl.bluetooth.BluetoothController.setSystemProperty(Ljava/lang/String;Ljava/lang/String;)I included these files in the build path:
    c:\WTK2.5.2\wtklib\gcf-op.jar
    c:\WTK2.5.2\wtklib\kenv.zip
    c:\WTK2.5.2\wtklib\kvem.jar
    and I import com.sun.kvem.bluetooth.*;
    I'd appreciate any help.

  • Bluetooth simulation between J2SE server and J2ME client

    hi there,
    I have a working bluetooth client/server application (using BlueCove), with the server on a PC (the PC has bluetooth hardware) and the client on a mobile telephone.
    I wish to move the application to a bluetooth simulated environment, however.
    To simulate bluetooth between 2 mobiles, I could open 2 instances of the WTK simulator and the mobiles will find each other -- but this doesn't meet my needs. I wish to simulate the bluetooth environment between a J2SE server and a J2ME client.
    Can I do this using the wireless toolkit? Does anyone have other ideas?
    thanks,
    Manoj

    OK - I have the solution.
    My PC (server) code used BlueCove to talk to the bluetooth stack. The trick is to use Sun's own KVM packages. This creates a virtual bluetooth device on your machine, shared by the WTK emulator.
    Here's the server code:
    package com.encube;
    import java.awt.BorderLayout;
    import java.io.InputStream;
    import javax.microedition.io.Connector;
    import javax.microedition.io.StreamConnection;
    import javax.microedition.io.StreamConnectionNotifier;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import com.sun.kvem.bluetooth.BluetoothStateException;
    import com.sun.kvem.bluetooth.DiscoveryAgent;
    import com.sun.kvem.bluetooth.LocalDevice;
    public class Server {
         public static final String UUID_STRING = "A781FDBA229B486A8C21CEBD00000000";
         public static final String SERVICE_NAME = "BTCHATSVR";
         private StreamConnectionNotifier server;
         JFrame jframe;
         JTextArea textArea;
         public static void main(String[] args) {
              Server svr = new Server();
              svr.doWork();
         public void doWork() {
              this.jframe = new JFrame("BT Server");
              this.jframe.setLayout(new BorderLayout());
              this.textArea = new JTextArea(6, 20);
              JScrollPane jsp = new JScrollPane(this.textArea);
              this.jframe.add(jsp, BorderLayout.CENTER);
              this.jframe.pack();
              this.jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.jframe.setVisible(true);
              startServer();
         public void logMessage(String message) {
              this.textArea.setText(this.textArea.getText() + message + "\n");
              this.textArea.setCaretPosition(this.textArea.getText().length());
         public void startServer() {
              LocalDevice local;
              try {
                   local = LocalDevice.getLocalDevice();
                   local.setDiscoverable(DiscoveryAgent.GIAC);
                   this.logMessage("max of "
                             + LocalDevice
                                       .getProperty("bluetooth.connected.devices.max")
                             + " connection(s) supported");
                   String url = "btspp://localhost:" + UUID_STRING + ";name="
                             + SERVICE_NAME;
                   server = (StreamConnectionNotifier) Connector.open(url);
                   this.logMessage("waiting for connection...");
                   StreamConnection conn = server.acceptAndOpen();
                   this.logMessage("connection opened");
                   InputStream is = conn.openInputStream();
                   byte buffer[] = new byte[1000];
                   while (true) {
                        int numChars = is.read(buffer);
                        String s = new String(buffer);
                        logMessage("received from mobile phone: " + s.substring(0, numChars));
              } catch (Exception e) {
                   this.logMessage(e.getMessage());
    }You need to include the location of WTK as the kvem.home define. If its installed in c:\wtk22 (the default), start the server with the parameter -Dkvem.home="c:\wtk22". You also need to include these 3 libraries:
    c:\wtk22\wtklib\gcf-op.jar
    c:\wtk22\wtklib\kenv.zip
    c:\wtk22\wtklib\kvem.jar
    That's it for the server. My code of the sample client (the mobile phone, running in the WTK emulator) is messy (sorry about that -- still cleaning it up)!
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.Vector;
    import javax.bluetooth.BluetoothStateException;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryAgent;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.LocalDevice;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.ServiceRecord;
    import javax.bluetooth.UUID;
    import javax.microedition.io.Connector;
    import javax.microedition.io.StreamConnection;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class MainMIDlet extends MIDlet {
         protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
              // TODO Auto-generated method stub
         protected void pauseApp() {
              // TODO Auto-generated method stub
         protected void startApp() throws MIDletStateChangeException {
              MainForm mainForm = new MainForm();
              Display.getDisplay(this).setCurrent(mainForm);
              mainForm.initializeDisplay();
    class MainForm extends Form {
         public static final String UUID_STRING = "A781FDBA229B486A8C21CEBD00000000";
         private StringItem log;
         private DiscoveryAgent agent;
         Object lock = new Object();
         static EndPoint currentEndPoint;
         static Vector serviceRecords = new Vector();
         public MainForm() {
              super("BT Client");
         public void initializeDisplay() {
              this.log = new StringItem("", "");
              this.append(this.log);
              try {
                   LocalDevice local = LocalDevice.getLocalDevice();
                   agent = local.getDiscoveryAgent();
                   agent.startInquiry(DiscoveryAgent.GIAC, new Listener(this, agent));
              } catch (BluetoothStateException e) {
                   this.logMessage(e.getMessage());
         public void logMessage(String message) {
              this.log.setText(this.log.getText() + message + "\n");
         public void processServiceRecord(ServiceRecord sr) {
              try {
                   String url = sr.getConnectionURL(
                             ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
                   logMessage("opening URL " + url);
                   StreamConnection conn = (StreamConnection) Connector.open(url);
                   OutputStream os = conn.openOutputStream();
                   String smessage = "test message from phone emulator";
                   os.write(smessage.getBytes());
              } catch (IOException e) {
                   logMessage("error while processing service record: "
                             + e.getMessage());
         class Listener implements DiscoveryListener {
              private MainForm mainForm;
              private Vector pendingEndPoints;
              private DiscoveryAgent agent;
              public Listener(MainForm mainForm, DiscoveryAgent agent) {
                   this.mainForm = mainForm;
                   this.agent = agent;
                   this.pendingEndPoints = new Vector();
              public void deviceDiscovered(RemoteDevice dev, DeviceClass deviceClass) {
                   this.mainForm.logMessage("found device");
                   this.pendingEndPoints.addElement(new EndPoint(dev));
              public void inquiryCompleted(int arg0) {
                   this.mainForm.logMessage("done searching for devices");
                   for (Enumeration enm = this.pendingEndPoints.elements(); enm
                             .hasMoreElements();) {
                        EndPoint ep = (EndPoint) enm.nextElement();
                        ep.calculateRemoteName();
                        this.mainForm.logMessage("device name: " + ep.getRemoteName());
                   new Timer().schedule(new DoServiceDiscovery(), 100);
              public void servicesDiscovered(int transID, ServiceRecord[] arg1) {
                   mainForm.logMessage("found " + arg1.length
                             + " service(s) on device "
                             + currentEndPoint.getRemoteName());
                   for (int i = 0; i < arg1.length; i++) {
                        serviceRecords.addElement(arg1);
              public void serviceSearchCompleted(int arg0, int arg1) {
                   synchronized (lock) {
                        * unlock to proceed to service search on next device see
                        * DoServiceDiscovery.run()
                        lock.notifyAll();
                   mainForm.logMessage("done searching for services on "
                             + currentEndPoint.getRemoteName());
              * Inner class. Called a short time after the last device is found.
              class DoServiceDiscovery extends TimerTask {
                   public void run() {
                        try {
                             UUID uuids[] = new UUID[2];
                             * ok, we are interesting in btspp services only and only
                             * known ones -- check for our UUID
                             uuids[0] = new UUID(0x1101);
                             uuids[1] = new UUID(MainForm.UUID_STRING, false);
                             for (Enumeration enm = pendingEndPoints.elements(); enm
                                       .hasMoreElements();) {
                                  EndPoint ep = (EndPoint) enm.nextElement();
                                  mainForm.logMessage("searching for services on "
                                            + ep.getRemoteName());
                                  currentEndPoint = ep;
                                  ep.transId = agent.searchServices(null, uuids,
                                            ep.remoteDev, new Listener(mainForm, agent));
                                  synchronized (lock) {
                                       try {
                                            lock.wait();
                                       } catch (InterruptedException e) {
                                            // do nothing
                                            mainForm.logMessage("exception while waiting: "
                                                      + e.getMessage());
                             mainForm.logMessage("discovered all services; found "
                                       + serviceRecords.size() + " record(s)");
                             * assume we have just 1 service record
                             if (serviceRecords.size() > 0) {
                                  processServiceRecord((ServiceRecord) serviceRecords
                                            .elementAt(0));
                        } catch (Exception e) {
                             mainForm.logMessage("error during service discovery: "
                                       + e.getMessage());
    class MiscUtils {
         * Get the friendly name for a remote device. On the Nokia 6600, we're able
         * to get the friendlyname while doing device discovery, but on the Nokia
         * 6230i, an exception is thrown. On the 6230i, we get the friendly name
         * only after all devices have been discovered -- when the callback
         * inquiryCompleted is called.
         * @param dev
         * the device to examine
         * @return a friendly name for the device, otherwise the IP address as a
         * hex-string
         public static String getDeviceName(RemoteDevice dev) {
              String devName;
              try {
                   devName = dev.getFriendlyName(false);
              } catch (IOException e) {
                   devName = dev.getBluetoothAddress();
              return devName;
         public static EndPoint findEndPointByTransId(Vector endpoints, int id) {
              for (int i = 0; i < endpoints.size(); i++) {
                   EndPoint endpt = (EndPoint) endpoints.elementAt(i);
                   if (endpt.getTransId() == id) {
                        return endpt;
              return null; // not found, return null
    class EndPoint {
         // remote device object
         RemoteDevice remoteDev;
         // remote device class
         DeviceClass remoteClass;
         // remote service URL
         String remoteUrl;
         // service hosted on this device -- populated after searching for devices
         ServiceRecord serviceRecord;
         // bluetooth discovery transId, obtainsed from searchServices
         int transId = -1; // -1 must be used for default. cannot use 0
         // local user nick name
         String localName;
         // remote user nick name
         String remoteName;
         // vector of ChatPacket pending to be sent to remote service.
         // when message is sent, it is removed from the vector.
         Vector msgs = new Vector();
         public EndPoint(RemoteDevice rdev) {
              remoteDev = rdev;
         * This functionality isn't called in the constructor because we cannot
         * retrieve the friendly name while searching for devices on all phones. On
         * some phones we have to wait until after devices have been discovered.
         public void calculateRemoteName() {
              this.remoteName = MiscUtils.getDeviceName(this.remoteDev);
         public RemoteDevice getRemoteDev() {
              return remoteDev;
         public String getRemoteName() {
              return remoteName;
         public ServiceRecord getServiceRecord() {
              return serviceRecord;
         public void setServiceRecord(ServiceRecord serviceRecord) {
              this.serviceRecord = serviceRecord;
         public int getTransId() {
              return transId;
    ...and that's it. Start the server, then the client (all on the same machine) and you've simulated bluetooth between the 2.
    To get the server working with a real mobile, you'll need to use the BlueCove library instead of the 3 WTK jars (and can remove the kvem.home directive as well). The rest of the code should remain the same (haven't quite tested that yet!).
    cheers
    Manoj
    null

  • Bluetooth program adquisition

    Hola. Soy una alumna de 3º ITI electronica y estoy realizando un proyecto final de carrera.
    Para
    nuestro trabajo necesitamos poder enviar la informacion (una vez
    tratada en labview) hacia dispositivos Bluetooth (movil, PDA) y
    mediante Wi-Fi. La verdad es que desconocemos cómo hacerlo, y el manual
    del software se queda bastante escaso en estos temas. Si alguien sabe
    de alguna página en la cual se explique esto o pueda mostrarnos algun
    ejemplo de prueba que pueda servirnos como punto de partida, le estaría
    muy agradecida. Gracias de antemano. 
    Hello. I'm a  engineering student doing my
    final project to get my  degree. We need to send the information
    from Labview in a PC to Bluetooth and Wi-Fi devices.  We don't
    know how to do it. The users guide is very simple and does not give
    enought information. We would like to receive some information about
    how to start , how to do a program to send, if it is necesary some
    drivers.....
    Please contact me by e-mail or link me some webs that could be helply.
    Thanks!

    Hola! Go to the www.ni.com website and search for labview bluetooth. At least the first two links listed can be useful for you:
    http://sine.ni.com/apps/we/nievn.ni?action=display_offerings_by_event&event_id=14397&event_subtype=W...
    http://zone.ni.com/devzone/conceptd.nsf/webmain/5EB9312A6470F16A86256E7500726F15
    Start from there, then ask more info if you need (better if more specific).
    Ciao
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • 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.

  • New to bluetooth programming

    Hi,
    I've encountered some problem while trying to write out a program on a mobile device to discover some device and show the information
    below is my code:
    import javax.bluetooth.*;
    import java.util.Vector.*;
    public class btClient implements DiscoveryListener {
    private LocalDevice localDevice; // local Bluetooth Manager
    private DiscoveryAgent discoveryAgent; // discovery agent
    Vector discoveredDevices = new Vector();
    private RemoteDevice[] retrieveDevices;
    /** Creates a new instance of btClient */
    public btClient()
    public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass)
    discoveredDevices.addElement(remoteDevice);
    public void inquiryCompleted(int param)
    int i;
    int s;
    s = discoveredDevices.size();
    if(s >0)
    for(i = 0; i<s; i++)
    RemoteDevice rd = (RemoteDevice)discoveredDevices.elementAt(i);
    public void servicesDiscovered(int transID,javax.bluetooth.ServiceRecord[] serviceRecord)
    public void serviceSearchCompleted(int transID, int responseCode)
    public RemoteDevice[] btInit() throws BluetoothStateException
    RemoteDevice[] result;
    localDevice = null;
    discoveryAgent = null;
    localDevice = LocalDevice.getLocalDevice(); // Retrieve the local device to get to the Bluetooth Manager
    localDevice.setDiscoverable(DiscoveryAgent.GIAC); // Servers set the discoverable mode to GIAC
    discoveryAgent = localDevice.getDiscoveryAgent(); // Clients retrieve the discovery agent
    this.showDev();
    if(discoveredDevices.size() >0)
    retrieveDevices = new RemoteDevice[discoveredDevices.size()];
    for(int i =0; i<discoveredDevices.size(); i++)
    retrieveDevices[i] = (RemoteDevice)discoveredDevices.elementAt(i);
    return retrieveDevices;
    public void showDev()
    boolean started = false;
    discoveredDevices.removeAllElements();
    try
    //retrieveDevices = discoveryAgent.retrieveDevices(discoveryAgent.CACHED);
    started = discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
    catch(BluetoothStateException e)
    System.err.println("Error"+ e);
    if(started)
    System.out.println("Inquiry Started");
    else
    System.out.println("Inquiry Failed");
    }//end
    From what i know the startInquiry() will call the deviceDiscovered(), however when i am using a debugging I don't see that it step into the method, also, when i tried to deploy it to a few mobile handset, it don't seem to work too. What is wrong with my coding?

    import javax.bluetooth.*;
    import java.util.Vector;
    * @author Reiji
    public class btClient implements DiscoveryListener {
        private LocalDevice localDevice; // local Bluetooth Manager
        private DiscoveryAgent discoveryAgent; // discovery agent
        Vector discoveredDevices = new Vector();
        private RemoteDevice[] retrieveDevices;
        /** Creates a new instance of btClient */
        public btClient()
        public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass)
            discoveredDevices.addElement(remoteDevice);
        public void inquiryCompleted(int param)
            int i;
            int s;
            s = discoveredDevices.size();
            if(s >0)
                for(i = 0; i<s; i++)
                    RemoteDevice rd = (RemoteDevice)discoveredDevices.elementAt(i);
        public void servicesDiscovered(int transID,javax.bluetooth.ServiceRecord[] serviceRecord)
        public void serviceSearchCompleted(int transID, int responseCode)
        public RemoteDevice[] btInit() throws BluetoothStateException
            RemoteDevice[] result;
            localDevice = null;
            discoveryAgent = null;
            localDevice = LocalDevice.getLocalDevice();    // Retrieve the local device to get to the Bluetooth Manager
            localDevice.setDiscoverable(DiscoveryAgent.GIAC);     // Servers set the discoverable mode to GIAC
            discoveryAgent = localDevice.getDiscoveryAgent();     // Clients retrieve the discovery agent
            this.showDev();
            if(discoveredDevices.size() >0)
                  retrieveDevices = new RemoteDevice[discoveredDevices.size()];
                   for(int i =0; i<discoveredDevices.size(); i++)
                       retrieveDevices[i] = (RemoteDevice)discoveredDevices.elementAt(i);
            return retrieveDevices;
        public void showDev()
            boolean started = false;
            discoveredDevices.removeAllElements();
            try
            //retrieveDevices = discoveryAgent.retrieveDevices(discoveryAgent.CACHED);
               started = discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
            catch(BluetoothStateException e)
                System.err.println("Error"+ e);
            if(started)
                System.out.println("Inquiry Started");
            else
                System.out.println("Inquiry Failed");
    }sorry, this is the repost of my code thanks :)

  • How to start bluetooth programming with c# in visual studio?

    i am currently in final year , thought of doing project on bluetooth but dont know how to go about.

    Hi saieesh1638,
    Based on your issue, I did some research about your issue. I find a MSDN blog about the Bluetooth with c# issue, maybe you will be get some useful message.
    Reference:
    http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx
    In addition, since this forum is discuss the VS IDE issue, if you have any issue about the Bluetooth with c#, I suggest you can post the issue directly to C# forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral,
    maybe you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help: New to J2ME (bluetooth) programming

    Hi peoples
    I am pretty new J2ME. I am trying to work on a project by using client server methodology, initially I would like to connect mobile phone with computer so that it can fetch data from database that situated in the computer.
    I also need some direction installing java classes in actual mobile device.
    Please help
    Many thanks
    -Immy

    Hi,
    You need to give more information regarding what IDE you want to use etc. However, I am using Netbeans 5.0 with JDK1.5 alongwith Netbeans Mobility Pack 5.0. All of these can be downloaded from the sun website. You'll also need Java Wireless Toolkit Latest version. Once this has been properly setup then you'll need to follow some examples to see how things work in J2ME. I think you can start from http://www.netbeans.org/kb/50/quickstart-mobility.html
    To communicate with your PC using bluetooth you'll need a Microsoft support bluetooth dongle and an API than you can use to access services. I am using Bluecove 1.2 and it is working perfectly fine. It can be downloaded from http://sourceforge.net/projects/bluecove/.
    let me know if you have any further questions.
    Thanks,
    Sid.

  • Bluetooth programming

    Hi everyone.
    I'm trying to develop a web application on Netbeans that involves bluetooth connectivity. I am using my bluetooth enable Laptop (HP nx7400). What I want is to be able to send files across from my laptop to my mobile (Nokia N80). can anyone help me? as far as I know I wouldn't need to initialite the bluetooth stack.. so I guess all I need to do is implement the device and service discover methods, right?? how?
    Thank you very much in advance.

    hi JoachimRohde
    Thank you for your reply. I have already read the thread you kindly suggested thanks. I've managed to download avetanaBluetooth.jar SDK also run the test example and have a look a the source code.
    Now what I need to do is be able to use the avetanaBluetooth library methods in my appliaction (which i am not sure how) I have included the avetanaBluetooth.jar in my CLASSPATH but I am not sure how to call Connector.open() or startInquiry() from my application. can you please give me some hints on that??
    But: a web application? Not a desktop application?Yes, do u think that is possible?
    again.. many thanks in advance.

  • Building Bluetooth program on LabVIEW

    Hi there,
    I am doing a project where I am suppose to build a Bluetooth software using LabVIEW to replace the current Bluetooth software for a set of timing lights (uses Bluetooth as means of communicating with the computer). This is how the setup is suppose to work,
    1. The timing lights are on. A set of 7 pairs. One emitter and one receiver each. Light from emitter is received by the receiver. All 7 pairs are linked to the computer via Bluetooth.
    2. When the connection between the emitter and receiver is broken, a signal is sent to the computer.
    That is basically how they work. I have tried the Bluetooth examples but they are somewhat different from what I need to do. I was wondering if it was possible to just create one Bluetooth VI which is able to just acquire, process and present the signals (either light received or not) from the timing lights just like a data acquisition VI.
    p/s I am new to how Bluetooth works so I am not sure what signal(s) is sent from the timing lights. How can I check what signal is sent from the timing lights? Any help on this is really appreciated. Thx.

    > I am doing a project where I am suppose to build a Bluetooth software using LabVIEW
    > to replace the current Bluetooth software for a set of timing lights (uses Bluetooth as
    >  means of communicating with the computer).
    There are really two separate tasks here - first, getting registers (or variables) for the timing lights.
    The second task is transmitting the data by Bluetooth radio/software.
    > 1. The timing lights are on. A set of 7 pairs. One emitter and one receiver each.
    So each receiver is a separate Bluetooth radio?  Then when you do a "Bluetooth Discover"
    you should find (at least) 7 addresses (listed for example as 12:34:56:7a:bc:de").
    Use each of these addresses as an input to a separate "Bluetooth Open" - which will give
    you 7 separate connection ID's.  Most likely you will use Channel 1 for the Bluetooth Open too.
    Then it's simply a matter of using "Bluetooth Read" to listen for any response.  I use a 1ms
    timeout and ignore timeout errors ("the device just doesn't have anything to say").  You
    may always expect a response from yours (light or no light), or you may want a longer timeout,
    and/or use a timer so that you aren't polling every microsecond. 
    > 2. When the connection between the emitter and receiver is broken, a signal is sent to the computer.
    > I was wondering if it was possible to just create one Bluetooth VI which is able to just acquire,
    > process and present the signals (either light received or not) from the timing lights just like a data acquisition VI.
    Sure.  I would use a state machine.  The "initialize" would do a discover (if you don't have the addresses
    hard coded).  You may need some method of selecting devices so that you don't get everybody's
    cell-phone head set.
    Then go to state "open" where you open all 7 bluetooths.  Pass the 7 connectID's to the "Read" state
    where you read the current data from all 7 receivers.  (If you have to write a message to them before
    you can read a response, be sure to do that too.)  This data is presented on the panel in any
    format you desire.  Put in the desired time-delay/polling rate and continue in the "Read" state.
    The Stop button on your panel takes you out of the Read state and goes to the Disconnect state
    where you disconnect all 7 bluetooths.
    That should do it.
    ~~Les Hammer

  • Beginning Bluetooth Programming - Basic Stack Question

    I have moderate but not extensive experience with Java development, and have just stumbled across the javax.bluetooth JSR-082 packages. I'm interested in using these packages, but have a general question or two that deals just as much with bluetooth as it does with Java itself...if anyone could be of help, it would be much appreciated.
    Despite all the articles I've read, I'm a bit confused about the initialization of the bluetooth stack. My laptop has bluetooth integrated into it, is running XPSP2, and from what I can tell its now using the WIDCOMM driver. Does this mean that I have access to the WIDCOMM stack (ostensibly using the Broadcom SDK)? Or do I need additional software? I also keep reading that XP has included the Microsoft Bluetooth Stack...but nowhere do I read how to access it, nor any instructions, nor the beginning of instructions, for initialization of either the WIDCOMM or Microsoft stacks within the context of JSR-082. Any suggestions or input would be appreciated.

    See: http://developers.sun.com/techtopics/mobility/midp/articles/bluetooth1/

  • Problem about Communication with Bluetooth

    Hi all!
    I want to use a PC host to communicate with a mobile phone with Bluetooth technology. In details, the mobile phone wanting to know some informaiton about "news of today" firstly send a message to my PC, then my PC have to response with a reply message to that client mobile phone. It seems that I should use Java programming with J2SE to control the communication through Serial Port. Is it right? I want to overview some Java sample code about this topic so that I'm able to know the general manipulation. Thanks very much! : )

    Hi,
    Under J2ME you can use the JSR82 but only for compiling and then port the application on the mobile device. The source is not implemented.
    There is free APIs java that you can use www.javabluetooth.org
    Let me know if it works with you, I am going to begin next week...
    Sihem ;)

  • Bluetooth does not work properly on Tecra M9

    I have a problem trying to use my Bluetooth on Toshiba Tecra
    M9 laptop.
    When I go to Control Panel "Bluetooth Devices" does not show on the list. The only reference to Bluetooth is "Bluetooth Com".
    If I double click on the Bluetooth icon in Systray I cannot open a Bluetooth device. I get a warning flag saying "Bluetooth is not Ready".
    The problem is that I cannot turn "on" bluetooth on the laptop (even after turning on the Wi-Fi switch at the front of the laptop).
    The "Bluetooth Devices" icon in Control panel is missing.
    Any Ideas
    Thanks in advance...

    Install the latest Bluetooth stack and start "Bluetooth Settings" of the "Toshiba->Bluetooth" program folder.

  • I have synced my ipad version 6.0 with my iphone 4.3.5 on bluetooth, but don't understand how to start the sharing process between them.

    How can I use bluetooth to add photos from my i phone onto my ipad.
    They are both recognizing each other and discoverable.  Please explain what I can do with this bluetooth connection between them.
    I remember that when my macbook tiger was new, a friend bluetoothed programs from his apple to mine.  Why can't I get my iphone to share photos for example with my new i-pad?  thanks for any assistance or enlightenment.

    Dale2010 wrote:
    How can I use bluetooth to add photos from my i phone onto my ipad.
    This is not a supported profile...
    See Here  >  http://support.apple.com/kb/HT3647
    For More information on using Bluetooth Check the User Manuals for  your Devices...

Maybe you are looking for

  • SAP Tables  for Open Customer Orders and Sales History

    Dear Experts. I am looking to get SAP SD related tables for the following, 1) SAP tables for Open Customer Orders      From SAP, I need to get all tables that Contain all open customer orders for products. 2) Sales History From SAP, I need to get all

  • Ipod touch 3rd gen not syncing movies

    Today after about 4 years with the same movies on my Ipod touch third gen i decided to change what i had on my device. so i started up itunes for the first time in a few years pluged my device in and it connects no problem. i move all the movies i ha

  • Is Firewire charging possible?

    with the new Nano?

  • Installing Developer 6.0 on a network

    Hello, I am new here. I have inherited the unenviable task of upgrading Oracle Developer 6.0 runtime software to a network already running Developer 4.5 and 5.0. What is the best way to perform this task? Do I have to know all the DLL files copied to

  • Move transport requests from one landscape to another

    HI Gurus,    I am facing a situation where i need to import the Transport Request from one landscape to another.     Consider i have two  landscapes DE1 TE1 PE1  and  DE2 TE2 PR2. and both the landscapes are on     different release.      I have crea