java 蓝牙指定连接失败_Android蓝牙java.io.IOException:连接被拒绝了?

我需要使用SPP在Nexus One上将

KwikBlue-2 Module Development Kit连接到Android

BluetoothChat example.

对于SPP设备,在将

BluetoothChat example示例中的UUID更改为00001101-0000-1000-8000-00805F9B34FB之后,我能够使用tera术语连接和交换串行数据(一次).

然后我重新启动

KwikBlue-2 Module Development Kit以验证连接是否可重复但是不断获得

java.io.IOException:我尝试连接时拒绝连接.

有任何想法吗?

43.200: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/219/hci0

52.200: ERROR/BluetoothChat(707): - ON PAUSE -

54.470: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)

54.520: ERROR/BluetoothChat(707): + ON RESUME +

54.530: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)

54.620: ERROR/BluetoothService.cpp(96): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)

55.520: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/219/hci0/dev_00_60_57_FD_42_18

56.010: ERROR/BluetoothChatService(707): unable to connect

56.010: ERROR/BluetoothChatService(707): java.io.IOException: Connection refused

56.010: ERROR/BluetoothChatService(707): at android.bluetooth.BluetoothSocket.connectNative(Native Method)

56.010: ERROR/BluetoothChatService(707): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:204)

56.010: ERROR/BluetoothChatService(707): at com.cti.BluetoothChat.BluetoothChatService$ConnectThread.run(BluetoothChatService.java:329)

00.110: ERROR/BluetoothEventLoop.cpp(96): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/219/hci0/dev_00_60_57_FD_42_18

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值