三星 Galaxy 蓝牙驱动程序 [英] Samsung Galaxy bluetooth drivers

查看:29
本文介绍了三星 Galaxy 蓝牙驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 Android 编写了一个应用程序.主要部分是它通过蓝牙进行通信.我有四台设备:
1. 三星 Galaxy S2
2. 三星 Galaxy Gio
3. Netsurfer touch(真正低端本地[南非]生产的安卓平板电脑)
4. 摩托罗拉 ET1

I have written an application for Android. the main part being that it communicates via bluetooth. I have four devices:
1. Samsung Galaxy S2
2. Samsung Galaxy Gio
3. Netsurfer touch (A REALLY low end locally [South Africa] produced android tablet)
4. A Motorolla ET1

现在我已经编写了我的应用程序 - 我需要测试完整的结构.

Now I have written my app - I need to test the complete structure.

我首先编写了蓝牙方面的内容(因为这是我的经验最少的) - 我唯一可以开始工作的设备是 Netsurfer touch.它使用标准的蓝牙驱动程序并且运行良好 - 我可以在 PC 上接收信号并很好地处理它.

I first wrote the bluetooth side (since that was what I had the least experience in) - and the only device I can get to work is the Netsurfer touch. It uses standard bluetooth drivers and it works PERFECTLY - I can receive the signal on the PC and deal with it perfectly well.

我的应用程序的其他部分无法在 Netsurfer 上完成,因为它的规格太低(它实际上没有所需的硬件).我已经尝试过 Motorlla,整个应用程序都按预期运行.

The OTHER part of my app, cannot be done on the Netsurfer because it is too low spec (it actually doesn't have the required hardware). I have tried the Motorlla and the entire app works as expected.

但现在 Galaxy 手机(包括 Gio 和 S2)拒绝与任何计算机连接.他们会很好地配对,但是当我使用蓝牙代码进行连接时,我只会收到一个 IOException:服务发现失败

But now the Galaxy phones (both Gio and S2) refuse to connect with any computers. They will PAIR fine, but when I use the bluetooth code to connect I just get an IOException: Service discovery failed

由于这不是我的代码,我开始查找计算机上缺少驱动程序:蓝牙外围设备"-错误代码 未安装此设备的驱动程序.(代码 28)

Since it is not my code, I started looking an there is a driver missing on my computer: "Bluetooth peripheral Device" - the error code The drivers for this device are not installed. (Code 28)

我尝试使用 Windows 更新,但失败了,我安装了 Samsung Kies,并且我已经在两台不同的计算机上验证了该问题 - 都运行 Windows 7 x64

I have tried using Windows update, and that fails, I have Samsung Kies installed, AND I have verified the problem on two separate computers - both running Windows 7 x64

硬件ID是:
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_VID&0001000f_PID&0000
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_LOCALMFG&000f

The hardware id's are:
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_VID&0001000f_PID&0000
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_LOCALMFG&000f

我不认为代码有问题,而是设备的驱动程序有问题.但是,如果您需要代码,我将使用此处找到的代码:http://code.google.com/p/backport-android-bluetooth/source/browse/trunk/backport-android-bluetooth201/src/backport/android/bluetooth/chat/?r=49

I do not believe there to be a problem with the code, but with the drivers of the devices. But if you need code, I am using the code found here: http://code.google.com/p/backport-android-bluetooth/source/browse/trunk/backport-android-bluetooth201/src/backport/android/bluetooth/chat/?r=49

推荐答案

在我的应用程序中,我有蓝牙,在库存 Galaxy S(1 和 2)、Nexus One、HTC Desire、华硕平板电脑和其他一些设备上工作.我的应用程序来自 android 2.1,我的代码中有这种反射(使用 SDK,它有时会因未知原因失败,并显示服务发现失败"错误消息)修复了错误:

In my app i have bluetooth, working on stock galaxy S (both 1 and 2), Nexus One, HTC Desire, asus tablet and some other device. My app is from android 2.1, and i have this reflaction in my code (with the SDK, it somtimes failed for uknown reason to me, with the "Service discovery failed" error message) that fixed the error:

BluetoothSocket mSocket = null;
mBluetoothAdapter.cancelDiscovery();

Method method;
try {
            method = mBluetoothDevice.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
            mSocket = (BluetoothSocket) method.invoke(mBluetoothDevice,1);
    } catch (NoSuchMethodException e1) {
            e1.printStackTrace();
    } catch (IllegalArgumentException e) {
            e.printStackTrace();
    } catch (IllegalAccessException e) {
            e.printStackTrace();
    } catch (InvocationTargetException e) {
            e.printStackTrace();
    }

mSocket.connect();

但除此之外,我使用 sdk,一切正常.

but other then that, i use the sdk, and everything works.

这篇关于三星 Galaxy 蓝牙驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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