File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Detect Bluetooth Devices from PC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Detect Bluetooth Devices from PC" Watch "Detect Bluetooth Devices from PC" New topic
Author

Detect Bluetooth Devices from PC

Riamor Von Trapp
Greenhorn

Joined: May 04, 2011
Posts: 12

Hi
New to Java, trying to get a basic app working. Using Netbeans 7.
I'm trying to detect bluetooth devices from my PC. My OS is Windows 7 64 bit, and I didn't have to install any drivers when I plugged in the bluetooth dongle. It does detect bluetooth devices fine, I think it uses the Microsoft bluetooth stack.

The articles on the web seem to focus on mobiles. The PC based ones mention Bluecove, most seem to focus on Windows XP. I did find an article that states that Bluecove won't work with 64 bit.

Can anyone point show me some code to detect bluetooth devices, and recommened a library for Windows 7?

Thanks
Riamor
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

I've never done anything with bluetooth, but with a bit of searching I found this:

There's a JSR, JSR-82, for Bluetooth support in Java: http://www.jsr82.com/
Note: A JSR is a Java Specification Request. Whenever new features are added to Java, they are first proposed through a JSR. As far as I know the APIs proposed in JSR-82 are not (yet) part of standard Java.

http://www.javabluetooth.com/ is the home of a book about programming with bluetooth in Java. That website has a page named Development Kits which lists a number of libraries.

When you search for "Java bluetooth", you might come across pages that talk about J2ME. That's Java 2, Micro Edition: the version of Java that runs on mobile phones and other small devices.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
I think I shall move this discussion as too difficult for "beginning".
Riamor Von Trapp
Greenhorn

Joined: May 04, 2011
Posts: 12

I'm still a bit confused. The Javabluetooth.com has kits, but some cost a lot of money. One of the free ones is "The Java Bluetooth Stack
So if I download the files from there, what would I do to use them in my Java project?

Thanks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

That one seems to lack documentation, so if you'd want to use it, you'd probably have to look at the source code and fiddle with it yourself... the project page says it uses the javax.comm library which, as far as I know, hasn't been supported anymore for a few years on Windows. Maybe it's better to look for one of the other toolkits.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detect Bluetooth Devices from PC