USB-Bluetooth cannot be used by Sabresd.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB-Bluetooth cannot be used by Sabresd.

Jump to solution
2,041 Views
naoyasusuzuki
Contributor II

I performed the following.

How to Enable USB Bluetooth Dongle Based on i.MX6 Android ICS

#hciconfig

#hciconfig hci0 up

#hcitool scan

Bluetooth: sk d69ae800, opt 2

        XX:XX:XX:XX:XX:XX Bluetooth: sock d4297b00 sk d69ae800

        ADP-301B

#hcitool cc XX:XX:XX:XX:XX:XX

Bluetooth: sock d436d780

Bluetooth: cmd 800448d2 arg 1769008

Bluetooth: hci0

Bluetooth: cmd 800448d3 arg befb38c0

Bluetooth: 0

Bluetooth: hci0

Bluetooth: sock d436d780 sk d368f600

Bluetooth: sock d436d780

Bluetooth: sock d436d780 sk d368f600

Bluetooth: 0

Bluetooth: sk d368f600, opt 2

Bluetooth: sock d436d780 sk d368f600

Bluetooth: hci0 cmd 1

Bluetooth: hci0 type 1 len 16

Bluetooth: hdev d630c000 len 16

Bluetooth: hci0

Bluetooth: hci0 urb d2a4fb40 status 0 count 16

Bluetooth: hci0 urb d6aa3c40 status 0 count 6

Bluetooth: hci0

Bluetooth: hdev d630c000 len 6

Bluetooth: hci0 opcode 0x405

Bluetooth: hci0 dst XX:XX:XX:XX:XX:XX

Bluetooth: hci0 evt 1

Bluetooth: conn d6bb0000

Bluetooth: sock d436d780, sk d368f600

Bluetooth: hci0 urb d6aa3c40 status 0 count 8

Bluetooth: hci0

Bluetooth: hdev d630c000 len 8

Bluetooth: hci0

Bluetooth: sk d368f600, opt 2

Can't create connectionBluetooth: sock d436d780 sk d368f600

: Connection timed out

root@android:/ #

However, a connection error occurs.

Please let me know a measure.

BR,

Naoyasu Suzuki

Labels (2)
Tags (1)
0 Kudos
Reply
1 Solution
1,225 Views
naoyasusuzuki
Contributor II

It was able to solve by itself.

frameworks\base\services\java\com\android\server\SystemServer.java

Compulsorily, the Bluetooth service was added and solved.

diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java

old mode 100644

new mode 100755

index 4c88b87..2a0a046

--- a/services/java/com/android/server/SystemServer.java

+++ b/services/java/com/android/server/SystemServer.java

@@ -227,9 +227,7 @@ class ServerThread extends Thread {

                 Slog.i(TAG, "No Bluetooh Service (emulator)");

             } else if (factoryTest == SystemServer.FACTORY_TEST_LOW_LEVEL) {

                 Slog.i(TAG, "No Bluetooth Service (factory test)");

-           } else if (SystemProperties.get("hw.bluetooth").equals("0")){

-                Slog.i(TAG, "No Bluetooth Service (product not support)");

-            } else {

+               } else {

                 Slog.i(TAG, "Bluetooth Service");

                 bluetooth = new BluetoothService(context);

                 ServiceManager.addService(BluetoothAdapter.BLUETOOTH_SERVICE, bluetooth);

@@ -246,8 +244,7 @@ class ServerThread extends Thread {

                 if (airplaneModeOn == 0 && bluetoothOn != 0) {

                     bluetooth.enable();

                 }

-            }

-

+               }

         } catch (RuntimeException e) {

             Slog.e("System", "******************************************");

             Slog.e("System", "************ Failure starting core service", e);



BR,

Naoyasu Suzuki

View solution in original post

0 Kudos
Reply
3 Replies
1,226 Views
naoyasusuzuki
Contributor II

It was able to solve by itself.

frameworks\base\services\java\com\android\server\SystemServer.java

Compulsorily, the Bluetooth service was added and solved.

diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java

old mode 100644

new mode 100755

index 4c88b87..2a0a046

--- a/services/java/com/android/server/SystemServer.java

+++ b/services/java/com/android/server/SystemServer.java

@@ -227,9 +227,7 @@ class ServerThread extends Thread {

                 Slog.i(TAG, "No Bluetooh Service (emulator)");

             } else if (factoryTest == SystemServer.FACTORY_TEST_LOW_LEVEL) {

                 Slog.i(TAG, "No Bluetooth Service (factory test)");

-           } else if (SystemProperties.get("hw.bluetooth").equals("0")){

-                Slog.i(TAG, "No Bluetooth Service (product not support)");

-            } else {

+               } else {

                 Slog.i(TAG, "Bluetooth Service");

                 bluetooth = new BluetoothService(context);

                 ServiceManager.addService(BluetoothAdapter.BLUETOOTH_SERVICE, bluetooth);

@@ -246,8 +244,7 @@ class ServerThread extends Thread {

                 if (airplaneModeOn == 0 && bluetoothOn != 0) {

                     bluetooth.enable();

                 }

-            }

-

+               }

         } catch (RuntimeException e) {

             Slog.e("System", "******************************************");

             Slog.e("System", "************ Failure starting core service", e);



BR,

Naoyasu Suzuki

0 Kudos
Reply
1,225 Views
Chris1z
Contributor III

Which version of Android release did you make it work with?

0 Kudos
Reply
1,225 Views
naoyasusuzuki
Contributor II

Hi Chris1z

imx-android-r13.4

Android 4.0.4

BR,

Naoyasu Suzuki