Bluetooth porting problem

imilka

Retired Recognized Developer
Oct 13, 2010
1,571
5,553
0
Moscow
Hello.
I'm trying to get BT working on CM7 ROM on Galaxy Note.

I compared logcat logs captured on BT startup on stock rom and my port - and it seems bluetooth starting without any problem.
But system just crashes after bluetooth icon appears with the following message:

Code:
/PanController( 2975): Cannot start PAN services - Bluetooth not running

W/dalvikvm( 2997): threadid=9: thread exiting with uncaught exception (group=0x4001e560)

I/bluetooth_ScoSocket.cpp( 3197): Listening SCO socket...

E/AndroidRuntime( 2997): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread

E/AndroidRuntime( 2997): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.bluetooth.adapter.action.STATE_CHANGED flg=0x10000000 (has extras) } in [email protected]

E/AndroidRuntime( 2997): 	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)

E/AndroidRuntime( 2997): 	at android.os.Handler.handleCallback(Handler.java:587)

E/AndroidRuntime( 2997): 	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 2997): 	at android.os.Looper.loop(Looper.java:130)

E/AndroidRuntime( 2997): 	at com.android.server.ServerThread.run(SystemServer.java:630)

E/AndroidRuntime( 2997): Caused by: java.lang.IllegalStateException: Error communicating to native daemon to start pan

E/AndroidRuntime( 2997): 	at com.android.server.NetworkManagementService.startPan(NetworkManagementService.java:803)

E/AndroidRuntime( 2997): 	at android.server.BluetoothNetworkService.onBluetoothEnable(BluetoothNetworkService.java:128)

E/AndroidRuntime( 2997): 	at android.server.BluetoothNetworkService.access$100(BluetoothNetworkService.java:42)

E/AndroidRuntime( 2997): 	at android.server.BluetoothNetworkService$2.onReceive(BluetoothNetworkService.java:89)

E/AndroidRuntime( 2997): 	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)

E/AndroidRuntime( 2997): 	... 4 more

E/AndroidRuntime( 2997): Caused by: com.android.server.NativeDaemonConnectorException: Cmd {pan start} failed with code 400 : {Pan operation failed (No such device)}

E/AndroidRuntime( 2997): 	at com.android.server.NativeDaemonConnector.doCommand(NativeDaemonConnector.java:259)

E/AndroidRuntime( 2997): 	at com.android.server.NetworkManagementService.startPan(NetworkManagementService.java:800)

E/AndroidRuntime( 2997): 	... 8 more
Could someone give me a hint where should I look to fix this problem?
Thanks a lot.
 

Attachments