我需要在Nexus One上使用SPP將KwikBlue-2 Module Development Kit連接到Android BluetoothChat example。 對於SPP設備,將BluetoothChat example示例中的UUID更改爲00001101-0000-1000-8000-00805F9B34FB後,我能夠使用tera term連接和交換串行數據(一次)。 然後我重新上電KwikBlue-2 Module Development Kit以確認連接是可重複的,但在嘗試連接時不斷獲得 java.io.IOException: Connection refused
。 任何想法?Android藍牙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
在黑暗中拍攝 - 您是否在開機後檢查套件和Nexus One是否仍然配對? –
是的。仍然配對,只是沒有連接。 – jacknad