Tôi đang cố gắng hiểu Bluetooth công việc của máy khách. Android là khách hàng ở đâu. PC là máy chủ.Bluetooth từ xa
Tôi tìm thấy code. Điều này đã làm việc một thiên hà samsung 10.1 (android 3.2), nhưng không hoạt động một thiên hà samsung s (android 2.3.3) ans htc wildfire s (android 2.2).
MY_UUID = UUID.fromString("04c6093b-0000-1000-8000-00805f9b34fb");
04-25 18:32:37.023: D/BluetoothCommandService(13665): setState() 1 -> 2
04-25 18:32:37.033: I/BluetoothCommandService(13665): BEGIN mConnectThread
04-25 18:32:37.063: E/BluetoothService.cpp(102): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
04-25 18:32:37.103: E/BluetoothCommandService(13665): Unable to start Service Discovery
04-25 18:32:37.103: E/BluetoothCommandService(13665): java.io.IOException: Unable to start Service Discovery
04-25 18:32:37.103: E/BluetoothCommandService(13665): at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:367)
04-25 18:32:37.103: E/BluetoothCommandService(13665): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
04-25 18:32:37.103: E/BluetoothCommandService(13665): at com.luugiathuy.apps.remotebluetooth.BluetoothCommandService$ConnectThread.run(BluetoothCommandService.java:258)
04-25 18:32:37.103: D/BluetoothCommandService(13665): setState() 2 -> 1
không hoạt động, có thể có thêm tùy chọn? – alezhka
nó đang làm việc android 2.3, nhưng không phải là 2.2 – alezhka
làm bạn bất kỳ lỗi mới hoặc cùng một vấn đề .. và nó hoạt động với tất cả 2.3 thiết bị bạn có –