Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detect Bluetooth Devices from PC

 
Riamor Von Trapp
Greenhorn
Posts: 12
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15208
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I shall move this discussion as too difficult for "beginning".
 
Riamor Von Trapp
Greenhorn
Posts: 12
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15208
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic