蓝牙设备没有发现蓝牙、发现、设备

2023-09-06 01:24:39 作者:﹌我不覺得妳還愛我。

我想建立一个Android手机和远程设备之间的蓝牙通信。该类远程设备是一个基本的只是一个简单的蓝牙适配器。当我使用蓝牙扫描设备功能,手机识别来自不同的类(例如电脑,手机,蓝牙耳机),但不是这样的一个设备。 我试了一下在三星Galaxy西奥斯和HTC野火采用Android 2.1,但我得到了相同的结果与两个。 这有可能是手机制造商还是Android滤除某些类的设备?否则,有另一种方式来使此设备?

I'd like to establish a Bluetooth communication between an Android phone and a remote device. The class of the remote device is a basic one just a simple Bluetooth adapter. When I use the Bluetooth scan devices function, the phone recognizes devices from different class (ex. computer, phone, Bluetooth headset) but not this one. I tried it on a Samsung Galaxy Theos and a HTC Wildfire with Android 2.1 but I got the same result with both. Is that possible that the phone manufacturer or Android filters certain class of devices? Otherwise, is there another way to make this device discoverable?

在此先感谢。

lorenth

推荐答案

在网络,对于那些谁想要开发在Android蓝牙应用的一些研究确定后(经测试在2.1 Eclair的我不知道其他版本那样)看来,一些手机制造商决定忽略它标榜自己是任何蓝牙设备的类0×00 并不会允许连接,断火意图上发现,甚至列出它的蓝牙设置页面。在这里,它看起来像在调试模式下在Eclipse的LogCat中部分

Ok after some research on the web, for those who want to develop a Bluetooth application on Android (tested on 2.1 Eclair I don't know for other versions) It seems that some phone manufacturer decided to ignore any bluetooth device which advertises itself as class 0×00 and wont allow connections, fire off Intents on discovery or even list it on the bluetooth settings page. Here what it looks like in debugging mode in the LogCat section of Eclipse

DTUN_HCID Device [00:09:EF:58:04:38] class is 0x00 -  skip it

我试了一下在三星Galaxy 3 TEOS和HTC野火。显然,它工作正常在Nexus One上。好太糟糕了谷歌停止销售。如果你们中的一些测试的其他手机,它的作品,请告诉我们。

I tried it on a Samsung Galaxy 3 teos and a HTC Wildfire. Apparently it works fine on the Nexus One. Well too bad Google stopped selling it. If some of you tested on other phones and it works please let us know.

Lorenth