Welcome![Sign In][Sign Up]
Location:
Search - bluez s

Search list

[Communicationbluez-sdp-1.5.tar

Description: Linux下的蓝牙源码(Linux Bluetooth source code 1.0)-Linux Bluetooth source (Linux source code Bluetooth 1.0)
Platform: | Size: 245760 | Author: 闫涛 | Hits:

[Linux-Unixbluez-4.33.tar

Description: 大名鼎鼎的Blue-Z的最新版本,是Linux内核官方指定的蓝牙协议栈!-The famous Blue-Z' s latest version of the kernel is the official Linux Bluetooth protocol stack specified!
Platform: | Size: 965632 | Author: wuqi | Hits:

[androidBluetoothChat

Description: 這一節的說明主要是針對 Linux 的環境,或者更嚴格的說是我還沒有發現 Blue Cove 以前的測試環境。現在 Windows XP SP2 之後已經支援藍芽的驅動程式,再加上 Blue Cove 以及藍芽設備,你就可以開始開發了。不過,我還是把以下的說明留下來當參考用。 兩部安裝了 Linux 的電腦,請確定這個版本的 Linux 內建支援 BlueZ。我們用的是 Fedora Core 1,你也可以參考 窮人的 Java Bluetooth 開發環境之建置 來建置你的開發環境。 依照 BlueZ 硬體相容清單 去採購你的藍芽裝置. 我用的是別人幫我買的 X-Micro 的 Bluetooth USB Dongle. 雖然這個設備並未出現在相容清單內,但是目前為止使用上都還蠻順利的。你可以在環境架好了以後,再去購買,如果發現不相容可以馬上退貨。 Linux 環境安裝有 J2SDK 1.4.x (or later) 以及 Rococo Software s Impronto Developer Kit for Linux. 安裝至少 bluez-libs 和 bluez-utils 套件。 請在兩部電腦上都利用以下指令來確定你的環境是正確的(# 為註解) -import java.io.* import javax.bluetooth.* public class LocalInfo { public static void main(String args[]) throws BluetoothStateException { LocalDevice localdev = null try { localdev = LocalDevice.getLocalDevice() } catch (BluetoothStateException e) { System.out.println("ERROR: cannot access local device") System.exit(1) } System.out.println("a local bluetooth device is found:") System.out.println(" Name: "+ localdev.getFriendlyName()) System.out.println("Address: "+ localdev.getBluetoothAddress()) System.out.println("\nIts device classes are:") DeviceClass devcla = localdev.getDeviceClass() System.out.println(devcla.toString()) System.out.println("Service Class: "+ devcla.getServiceClasses()) System.out.println("Major Device Class: "+ devcla.getMajorDeviceClass()) System.out.println("Minor Device Class: "+ devcla.getMinorDeviceClass()) } }
Platform: | Size: 93184 | Author: 紫陽 | Hits:

CodeBus www.codebus.net