Bluetooth device detection

Hi everyone!
(I am newb at Java, and im looking for a very simple application (i think), but im not sure how to find what im looking for, i tried sourceforge.net, but i dont know how to run the java source files.)
What im looking for is an app for PC that searches for bluetooth devices in the area, and logs their MAC address into a file (preferably .xml)
It should continuously search for devices, and update the .xml file everytime it finds a new device, or an old one dissapears, so i always know what devices are in the area at this excact moment.
Have you ever heard of such a thing, or do you simply have some good keywords for me to use :) Either way i would be very thankful for your help! :)
Cheers,
Lars

Ok, here is my code a bit more formatted:
public void run() {
lock = new Object();
while (!done) {
  doSearch();
    try {
    thread.sleep(DISCOVERY_LATENCY); //2000ms
    } catch (Throwable t) {}
* Start a new Device discovery
synchronized public void doSearch() {
try {
//get local bluetooth device
local = LocalDevice.getLocalDevice();
//get discovery agent
agent = local.getDiscoveryAgent();
//start a new Bluetooth discovery inquiry
agent.startInquiry(DiscoveryAgent.GIAC,this);
//we lock the thread and wait the end of the current inquiry
synchronized(lock) {
    try {
    lock.wait();
    } catch (InterruptedException e) {}
} catch (Exception e) {}
*We detected one bluetooth devices
public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass) {
try {
// get the bluetooth MAC address of that device and remove any white space
String value = remoteDevice.getBluetoothAddress().trim();
if(checkTable(value) && doneDetection == false)
doneDetection = true;
launchHotSpotPage("test");
} catch (Exception e) {
System.err.println("BLUETOOH ERROR");
* The bluetooth discovery inquiry has been completed
public void inquiryCompleted(int discType) {
local = null;
agent = null;
//We unlock the thread in order to make a new discovery
synchronized(lock) {
try {
lock.notify();
} catch (Exception e) {
System.err.println("BLUETOOH ERROR");
lock = null;
lock = new Object();
}

Similar Messages

  • No Bluetooth device detected on Lenovo G460

    Hello guys,
    My Bluetooth suddenly cannot be use, also not appear at all.
    i am trying to press Fn + F5 and see what's happen: i can see a dialog box lennovo wireless device setting appear but no thing I can click there..
    Also there looks like nothing wrong in the listed items in the device manager..
    i tried to add another device from control panel, but it also do not work ...
    When I am trying to repair the installation, it said NO BLUETOOTH DEVICE DETECTED..
    I am using windows 7 home, the G460 model name is 20041
    Do you know how can i get back my missing bluetooth device ?
    Thanks in advance ..
    Best Regards,
    Haryanto

    bump
    this is frustrating

  • Disable "bluetooth device detected"-message?

    Hi
    Is there any way to disable the message-box "bluetooth device detected"? The answer should be "yes" anytime.
    Thanks
    Kulle

    bump
    this is frustrating

  • Broadcom bluetooth drives installation failed, no bluetooth device was detected.

     hello, i have HP Pavilion dm4-3013cl Entertainment Notebook PC laptop.and i am trying to install BROADCOM BLUETOOTH DRIVERS in my laptop and i am getting this error that no bluetooth device was detected. please make sure that your bluetooth device is plugged in properly in order to countinue installation. now i want to say that i lost my recovery disc and after while for heating issue my main hard disk break or not working condition so i just replace hard disk and ofcourse i dont have os so i install fress windows 7 ultimate 64bit in my laptop. and install each drivers provide by HP website i downloaded all drives and installed and my windows 7 is also up to date. i search for this issue allmost one week for solution but cabt fix and i come to know that before insalltion of BROADCOM BLUETOOTH DRIVERS i have to enable bluetooth in HP WIRELESS ASSISTANCE but in my case i think i cant find due to new disk and new os. i can send file or recieve with bluetooth can paired with my all smartphones too but cant listen music in head phones. cant access LISTEN TO MUSIC, i know the reason is only this drivers is not installing properlly and i want to fix it. now i a tired and i dont have time to search and fix it so please help me out from this issue please and sorry for my poor grammer.

    fixed !!!                now i come to know, the problem is drives which i update it from intel websites, paul you suggest me correct driver for my bluetooth but it is allready in my laptop which i updated before but again i download and install and nothing happen then i reformate laptop and again install all drivers which i downloaded from hp website for my laptop and again update all drivers manually and automaticallu both from intel website and intel utility drivers software and update windows too and i got same problem. cant hear music from bluettoth head phone, so again i reformate laptop but this time i just installed drivers which listed from hp website, i didnt update anything and as you said i didnt install broadcom bluetooth drivers because it is not for my laptop so then i connect my blutooth and try to access listen to music and o m g. it works now i can hear nusic form bluetooth, i dont believe this. but yes it works this forum help other also so thanks paul and have a nice day now i newer going to update my drivers...  in pic you can understand that i am not using latest version of bluetooth drivers.

  • My bluetooth system can't read or detect my bluetooth device, any help?

    My bluetooth system can't read or detect my bluetooth device, any help?

    What bluetooth system?
    What bluetooth device?
    Please explain

  • Bluetooth device is not detected during installation of bluetooth driver

    Hi , Initialy bluetooth was working properly, Few day ago I saw that there was no bluetooth icon in system trayas well as in list device manager. So I uninstalled the driver and try to install. But during installation it showthat bluetooth device in not detected and it exit. 

    Downloads the Windows 7 Hotkey Features. This will enable the wireless console with Fn+F5. Then you can enable bluetooth from there. Windows's built-in bluetooth drivers should work fine, maybe even with an update from WU if you're lucky.
    -tm
    Edit: Don't forget to download the System Interface Driver too.

  • Hp pavilion dv2910us No Bluetooth Device was detected.........

    Hello........
    My Hp pavilion dv2910us
    after install windoas 7 when i try to install my bluetooth driver its say
    No Bluetooth device was detected.............
    i try SP38167 And SP46038 but same error ..............
    what to do............. is it driver problem and device problem......?????
    Thanks
    manoranjan
    waiting for great reply

    Hi
    Please press the Fn & Esc Button you will find the details of what i have asked you i needs the complete model number & Product number so i can check if the Bluetooth cam integrated on your unit.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • "no local Bluetooth device was detected" in T60p 2623D8U XP SP3 (clean install)

    Everything was working fine until I discovered that my favorite four yr old T60p wont see my Targus Bluetooth laser mouse. Before the clean install (did due to a virus attack!) I could pair the mouse (and my nokia phone) with the Thinkpad without any problems. But now it wont detect any Bluetooth device in vicinity.
    (1) Is there a issue with lenovo T60/T60p drivers for Bluetooth and SP2/SP3 installation.
    (2) By the way what should I see in my device manager  with the Bluetooth?
    I could not find any fix on the internet. Waiting for the experts in this forum to give me a solution soon.
    Cheers, 
    Jay
    Solved!
    Go to Solution.

    Ok, mine is solved. Un-installed the BT driver from device manager (view using hidden option if required). Un-installed all BT related related softeares from the control panel, went to lenovo site and re-insintalled all BT drivers for my machine. Everything is working fine for me now. Jay

  • Bluetooth did not detect any Bluetooth device even iPhone  please help me

    I have iPhone 4 my Bluetooth did not detect any Bluetooth
    Device even iPhone so I can not transfer any data to other iPhone
    Please help me

    That is correct.
    This has  never been a feature of iphone.
    Sorry.
    Bluetooth is supported for stereo headsets/speakers, telephone headsets/handsfree devices, some keyboards, some peer-to-peer apps from the apps store, tethering where provided by the carrier.
    Other than these, it will not connect to another phone/device/computer/etc.

  • Hi! I want to connect my Jabra easygo Bluetooth device with my iPad but iPad is not detecting the Bluetooth device

    Hi! I want to connect my Jabra easygo Bluetooth device with my iPad but iPad is not detecting the Bluetooth device

    Hi Usmanfarooq83,
    Here is an article of troubleshooting for bluetooth devices and iPad:
    iOS: How to troubleshoot Bluetooth connections
    http://support.apple.com/kb/TS4562
    Cheers!
    - Ari

  • I can detect my Bluetooth devices using a BLE scanner and it says they can be connected but - My 5S will not pair with these devices

    I can detect my Bluetooth devices using a BLE scanner and it says they can be connected but - My 5S will not pair with these devices

    What devices?
    Iphoen supports bluetooth for stereo headsets/speakers, handsfree telephone devices, some keyboards, some apps from the app store and interenet tethering if provided by your carrier.
    It does not connect to computers, other phones,etc.

  • I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    Hi miffyzoo,
    If you are having bluetooth pairing issues with your iPhone and your Mac, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Regards,
    - Brenden

  • HT3986 Hello, as a extremely advanced user, after trying to install Targus AMB09EU on 64bit Windows 7, I have reached a stage where no new Bluetooth devices are detected, while Apple wireless kb+mouse still work perfectly, can somebody give any input plea

    The device I tried to install was Targus AMB09EU mouse.
    The end result was losing ability to detect any new Bluetooth devices, although Apple kb+mouse works.
    Any input would be appreciated.

    This really is a question best aimed at Microsoft and Targus user forums, you may not get an answer here.

  • HT204387 MY IPHONE 4 DOES NOT DETECT OTHER BLUETOOTH DEVICES

    SUDDENLY MY DEVICE HAS STOPPED DISCOVERING OTHER BLUETOOTH DEVICES ! PL ADV

    Check the documentation for the Jawbone and put it in discovery mode. Turn bluetooth on for the iPhone and the Jawbone should show up on the phone. More than likely it will then ask for a passcode and that should be in the documentation as well. After that, they should be paired.
    Use this link to go to the Jawbone ERA site if you need instructions on pairing. Select pairing with your phone and there is information on how to get the headset into pairing mode and the passcode.
    Message was edited by: ChrisJ4203

  • Bluetooth cannot detect the remote device

    hi all,
    I finished the Midlet code using bluetooth adaptor on my PC to search the remote bluetooth device, but when I run it, (Eclipse 3.2, JAVA JDK 1.5, SUN WDK 2.5), it can identiy the local bluetooth, and giveback the address, but it cannot search the remote device.
    actually this program can run on a cell phone with JSR 82 API, is there any different? should I add some code to identify the serial port? I set the local bluetooth on COM 6 and remote device on COM 7 through a Bluetooth software which is provided by vendor.

    Hey!!
    I experienced similar error a week back. Pal i got to know that Java cannot access the windows blue tooth protocol stack. So there seems to be a solution called bluecove get it from benhui.com and im unable to get it worked. So if u find any solution mail me to [email protected] and i will keep you updated thanx bro!

Maybe you are looking for

  • Update drivers from LabVIEW 9.5 to LabVIEW 14

    Hi I am getting crazy: i had a complete control system running properly in LabVIEW 8.5 and after updating it to LabVIEW 14, nothing works. LabVIEW is not able find the drivers of the instruments integrated in a National Instruments PXI. I am using re

  • DI Sever for User Defined Table

    Hai Guys,   I am using B1WS web service. I want to post values to User Defined Table (EX: @TableName)  using web services,is there any services for User Defined Table in Web Services please give me a solution for this..

  • What is Big data all  about .. ?

    Hai to all May i know what is the Big data all about ? ... how can i install and learn ? is it good demand in market and is there any good pay for that ? in that market am from india... currently am working in Oracle Incentive compensation... my prev

  • Importing business areas

    When exporting and importing business areas (from test to prod e.g.) i sometimes get the following problem. For some workbooks I would like to use joins between folders in different business areas without "sharing" the folders between the business ar

  • Colour (Color) Mis match printing from iPhoto/Mac

    I have just purchased an Epson R340 and, while it prints perfectly well from the memory card, printing from my Mac results in poor quality prints. The photos are reddy tinged and (from photoshop) out of focus or blurred. This is also the case when I