简体   繁体   English

java中的蓝牙(J2SE)

[英]Bluetooth in java (J2SE)

I am a newbie to bluetooth and this is the thing i want to do , I want to to get the device information that gets connected to the Bluetooth on my pc and write the info in a file. 我是蓝牙的新手,这是我想做的事情,我想获得连接到我的电脑上的蓝牙的设备信息,并将信息写入文件。 which api should i use and how to implement . 我应该使用哪种api以及如何实现。 I came across bluecove but on a few searches i found that bluecove doesn't work on 64 bit pc's. 我遇到了蓝鸟,但在几次搜索中我发现蓝色的巧克力在64位电脑上无效。 what should i do now .i want this to work on both 32 bit and 64 bit pcs. 我现在应该怎么做。我希望这可以在32位和64位PC上工作。

Thankx Thankx

The bluetooth apis recommended in the oracle tutorials are included in the JSR 82 API specification. oracle教程中推荐的蓝牙apis包含在JSR 82 API规范中。

I think though, that the latest release of the BlueCove (2.1.1)includes the driver for windows 7 64. 我认为,最新版本的BlueCove(2.1.1)包含了Windows 7 64的驱动程序。

check: 校验:

http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.62/ http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.62/

You can download the JSR 82 specification and source code here: 您可以在此处下载JSR 82规范和源代码:

http://jcp.org/aboutJava/communityprocess/mrel/jsr082/index2.html http://jcp.org/aboutJava/communityprocess/mrel/jsr082/index2.html

A good oracle tutorial how to start is: 一个好的oracle教程如何开始是:

http://developers.sun.com/mobility/midp/articles/bluetooth2/ http://developers.sun.com/mobility/midp/articles/bluetooth2/

And here is also a good practical example: 这里也是一个很好的实际例子:

http://today.java.net/pub/a/today/2004/07/27/bluetooth.html http://today.java.net/pub/a/today/2004/07/27/bluetooth.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM