Android Bluetooth java. io. IOException: Connexion refusée?


J'ai besoin de connecter un Kit de développement de module KwikBlue-2à l'exemple Android BluetoothChat sur un Nexus One en utilisant SPP. J'ai pu me connecter et échanger des données série (une fois) en utilisant tera term après avoir changé l'UUID dans l'exemple BluetoothChat en 00001101-0000-1000-8000-00805F9B34FB pour les périphériques SPP. Ensuite, j'ai fait un cycle d'alimentation du Kit de développement de module KwikBlue-2 pour vérifier que la connexion était reproductible mais obtenait continuellement java.io.IOException: Connection refused quand j'essaie de me connecter. Des idées?

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
Author: jacknad, 2011-03-14

1 answers

Essayez unpair/repair et cela peut fonctionner à nouveau. Cela semble être un bug avec le support Bluetooth de base sur Android.

 12
Author: Adam, 2011-03-21 21:17:37