CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - usb core
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - usb core - List
[
android
]
hid-core
DL : 0
android kernel linux系统的USB接口HID协议设备的核心驱动。-android kernel linux system, USB interface devices HID core driver protocol.
Date
: 2025-12-19
Size
: 8kb
User
:
锐
[
android
]
BluetoothChat
DL : 0
這一節的說明主要是針對 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()) } }
Date
: 2025-12-19
Size
: 91kb
User
:
紫陽
[
android
]
adb
DL : 0
Android adb的核心层源码,这是一个重量级的代码,搞Android的应该都知道吧。包含了adb,usb的核心层转换代码。-Android adb core layer of the source, this is a heavyweight of the code, to engage in the Android should know it.
Date
: 2025-12-19
Size
: 144kb
User
:
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.