无法发现蓝牙设备 [英] Bluetooth device not discoverable

查看:22
本文介绍了无法发现蓝牙设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Android 手机和远程设备之间建立蓝牙通信.远程设备类是一个基本的类,只是一个简单的蓝牙适配器.当我使用蓝牙扫描设备功能时,手机可以识别不同类别的设备(例如电脑、手机、蓝牙耳机),但不能识别这一类别.我在装有 Android 2.1 的 Samsung Galaxy Theos 和 HTC Wildfire 上进行了尝试,但两者都得到了相同的结果.手机制造商或 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?

提前致谢.

洛伦斯

推荐答案

好的,在网上查了下,对于想在Android上开发蓝牙应用的人(在2.1 Eclair上测试过,其他版本不知道)似乎某些手机制造商决定忽略任何标榜自己为 class 0×00 并且不允许连接、在发现时触发 Intent 甚至在蓝牙设置页面上列出它的蓝牙设备.这是 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 Wildfire 上试用过.显然它在 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.

洛伦斯

这篇关于无法发现蓝牙设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆