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.

WL18xx hciattach: Failed to read init response

Other Parts Discussed in Thread: AM3352

I have an am3352 connected to wl18xx chipset and try to get the bluetooth communication up. I have enabled bluetooth (BL_EN) and acknowledged that it is enabled by looking at the RTS signal from wl18xx. The hciattach command however gives me an error:

# hciattach -s 115200 /dev/ttyS0 texas
Failed to read init response (READ_LOCAL_VERSION_INFORMATION): Success
Can't initialize device: Success

I've looked at the UART signals using an oscilloscope and they all look fine. I can see on both RX and TX that data is being sent and the RTS/CTS signals is behaving correctly. I modified the hciattach command and was able to get the answer that is received, however I can't find any protocol documentation for the communication so haven't been able to dechipher it.

0x0e 0x0c 0x01 0x01 0x10 0x00 0x06 0x00 0x00 0x06 0x0d 0x00 0x20 0xac 0xac

Has anyone had the same problem and/or knows where to find the protocol?

Best regards,
Måns

  • Hi Måns,

    This is a successful response to "HCI_Read_Local_Version_Information" - you can check the BT Spec for more details.

    The response says that the command succeeded, manufacturer is "Texas Instruments", HCI/LMP Version is BT 4.0 and it's a WiLink8 device with firmware name "TIInit_11.8.32.bts".

    But the problem is, the first byte "0x04" is missing.
    This is probably why the hciattach is not able to understand the data. Most likely this is an issue with the host uart driver.

    Regards,
    Gigi Joseph.
  • Hi,

    Any update on this? Can this be closed?

    Regards,
    Gigi Joseph.
  • I'm still missing the first byte but I have verified that the WiLink device sends the correct message by inspecting the signals. The problem lays somewhere within software (kernel or userspace). This particular question can be closed.

  • I am facing with similar problem on WL18xx chipset connected with AM335X. Bluetooth is enabled (BT_EN), but if I want to attach with hciattach to it, I get this response:

    root@test:~# hciattach -t 10 -s 115200 /dev/ttyS1 texas 3000000 flow
    Failed to read init response (READ_LOCAL_VERSION_INFORMATION): Success
    Can't initialize device: Success
    root@test:~#

    Did someone already found solution for this problem?

    Thanks!