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 error

Other Parts Discussed in Thread: WL1271

Hi,all

I am using a combination of iMX53 + WL1271 chip. Android version is 2.3.4,the wifi module is ok,but the bluetooth module have a problem,

when I press the bluetooth turn on button,bluetooth does not work and print log as below: anyone can help me? TKS!

D/BluetoothService( 2136): Bluetooth state 10 -> 11
V/BluetoothEventRedirector( 2416): Received android.bluetooth.adapter.action.STATE_CHANGED
I/bluedroid( 2136): Starting hciattach daemon
E/UIM:    ( 2095): uim: Inside st_sig_handler
E/UIM:    ( 2095): uim: signal received, opening /dev/ttymxc2
E/UIM:    ( 2095): uim: Inside set_baud_rate
D/UIM:    ( 2095): uim: set_baud_rate() done
E/UIM:    ( 2095): uim: Setting speed to 921600
E/UIM:    ( 2095): uim: Inside read_command_complete
E/UIM:    ( 2095): uim: Command complete started
E/UIM:    ( 2095): uim: Inside read_hci_event
E/UIM:    ( 2095): uim: read_hci_event
E/UIM:    ( 2095): uim: Invalid response
(stk):line disc installation timed out
E/UIM:    ( 2095): uim: Inside st_sig_handler
E/UIM:    ( 2095): uim: signal received, opening /dev/ttymxc2
E/UIM:    ( 2095): uim: Inside set_baud_rate
D/UIM:    ( 2095): uim: set_baud_rate() done
E/UIM:    ( 2095): uim: Setting speed to 921600
E/UIM:    ( 2095): uim: Inside read_command_complete
E/UIM:    ( 2095): uim: Command complete started
E/UIM:    ( 2095): uim: Inside read_hci_event
E/UIM:    ( 2095): uim: read_hci_event
E/UIM:    ( 2095): uim: Invalid response
(stk):line disc installation timed out

  • Hi,

    The flow upon enabling BT should be as follows:

    1. UIM is signaled from kernel (kim) after turning the power on BT (toggling nShutdown pin)
    2. uim opens the requested tty (in your case, /dev/ttymxc2
    3. baud rate is set to default 115200
    4. if another baud rate is requested by init.rc file, and in your case it is 921600, then uim is building the correct HCI command to set the 1271 side baud rate
    5. after it gets the command complete event, it sets the host side baud rate to 921,600

    in your case, it fails to get the command complete.

    It can happen because:

    1. the 1271 did not turned on for some reason. Maybe the GPIO is not the right one.
    2. the command complete event from 1271 is not legal (should have first byte as 0x4, second byte the event code and third byte the length)

    BR,

    Shlomi

     


     

  • Hi,

    TKS! the problem is resolved.it is my hardware's error