Hi, I'm trying to port wl1271 bluetooth from Android Gingerbread 2.3 to Android ICS. I have followed the suggested steps in http://processors.wiki.ti.com/index.php/TI-Android-ICS-PortingGuide#Bluetooth but yet I cannot turn on Bluetooth on the Settings menu. It is always force to OFF whenever I try to turn ON bluetooth. Here's the logcat message when I try to turn on bluetooth:
D/BluetoothAdapterStateMachine( 163): PowerOff process message: 1D/BluetoothAdapterStateMachine( 163): Bluetooth state 10 -> 11E/BluetoothAdapterStateMachine( 163): failed to prepare bluetooth, abort turning onD/BluetoothAdapterStateMachine( 163): Bluetooth state 11 -> 10V/BluetoothEventManager( 574): Received android.bluetooth.adapter.action.STATE_CHANGEDD/DockEventReceiver( 574): finishStartingService: stopping service
When debug, I found out that bt_enable() in mydroid/system/bluetooth/bluedroid/bluetooth.c returns false. Am I missing something in the HAL/ framework configurations? Appreciate any comments or replies. Thank you!
TI Android ICS DevKit uses the TI-ST driver to manage BT-UART.
You can add additional logs in the TI-ST UIM-sysfs driver to find out the error.
The uim-sysfs driver is at hardware/ti/wpan/ti_st/uim-sysfs/
--------------------------------------------------------------------------------------------------------- Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
Hi,
I'm seeing these messages from Logcat when the board first start up. I think it looks OK.
E/uim-sysfs( 95): uim: Inside st_uart_configE/uim-sysfs( 95): uim:install set to 1E/uim-sysfs( 95): uim:opening /dev/ttyO1, while already openE/uim-sysfs( 95): uim:cleanupE/uim-sysfs( 95): uim: Inside set_baud_rateE/uim-sysfs( 95): uim: set_baud_rate() doneE/uim-sysfs( 95): uim: Setting speed to 3000000E/uim-sysfs( 95): uim: Inside read_command_completeE/uim-sysfs( 95): uim: Command complete startedE/uim-sysfs( 95): uim: Inside read_hci_eventE/uim-sysfs( 95): uim: read_hci_eventE/uim-sysfs( 95): uim: Command complete doneE/uim-sysfs( 95): uim: Speed changed to 3000000E/uim-sysfs( 95): uim: Inside set_custom_baud_rateE/uim-sysfs( 95): uim: Changing baud rate to 3000000, flow control to 1E/uim-sysfs( 95): uim: set_custom_baud_rate() doneE/uim-sysfs( 95): uim: Installed N_TI_WL Line displine
I shall expect more messages when I try to turn on the Bluetooth? I'm actually porting ICS to a platform which is quite similar to TI Blaze 4430.
Thanks.