This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wl1271 bluetooth porting to ICS

Other Parts Discussed in Thread: WL1271, 4430

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: 1
D/BluetoothAdapterStateMachine( 163): Bluetooth state 10 -> 11
E/BluetoothAdapterStateMachine( 163): failed to prepare bluetooth, abort turning on
D/BluetoothAdapterStateMachine( 163): Bluetooth state 11 -> 10
V/BluetoothEventManager( 574): Received android.bluetooth.adapter.action.STATE_CHANGED
D/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/

  • 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_config
    E/uim-sysfs( 95): uim:install set to 1
    E/uim-sysfs( 95): uim:opening /dev/ttyO1, while already open
    E/uim-sysfs( 95): uim:cleanup
    E/uim-sysfs( 95): uim: Inside set_baud_rate
    E/uim-sysfs( 95): uim: set_baud_rate() done
    E/uim-sysfs( 95): uim: Setting speed to 3000000
    E/uim-sysfs( 95): uim: Inside read_command_complete
    E/uim-sysfs( 95): uim: Command complete started
    E/uim-sysfs( 95): uim: Inside read_hci_event
    E/uim-sysfs( 95): uim: read_hci_event
    E/uim-sysfs( 95): uim: Command complete done
    E/uim-sysfs( 95): uim: Speed changed to 3000000
    E/uim-sysfs( 95): uim: Inside set_custom_baud_rate
    E/uim-sysfs( 95): uim: Changing baud rate to 3000000, flow control to 1
    E/uim-sysfs( 95): uim: set_custom_baud_rate() done
    E/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.