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.

HFP client with wl18xx

Other Parts Discussed in Thread: WL1831, WL1271, WL1831MOD

Hi All,


My project involves implementing HFP client profile with the following setup  (OMAP + WL1831 ) & audio codec for PCM transfer . I am running bluedroid stack with android kitkat 4.4.4 (kernel 3.0 ). I am able to establish connection between any  mobile phone and my target board running HFP client profile.


However when i make a call ,after all the proper state transitions (disconnect ,connect ,audio state ..) voice is not heard .I have routed the Wl1831's(Bluetooth's codec interface) pcm interface to my audio codec.

I would like to know whether wl1831 can decode the voice from mobile phone and route it through the PCM interface .

Note:All state transitions and codec negotiation will be handled by android's bluedroid stack .The bluetooth chip's purpose will be to decode and encode the voice data.

  • Hi,

    Did you set the codec configuration http://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands#HCI_VS_Write_CODEC_Config_.280xFD06.29
  • Hi Sundeep,

    Thanks for the above link.I did set the codec configuration as above but there were no clocks generated from the BT chip .Does it have any dependency on BT firmware version of wl18xx .We are currently running TIInit_11.8.32.bts and also is decoding and encoding supported with this version.
  • Hi,

    It does not depend on the BT firmware version
    after the BTS is loaded, you can just run this command, So that even if this command is part of the BTS it will be overwritten with the new parameters. You need to make sure that the parameters you configure (Data out offset, PCM clock, Also make sure the Frame sync edge (and polarity) ) it as per your setup.
  • Sundeep ,

    Thanks for the suggestion .I was wondering even if we do the PCM configuration correctly and  if the decoding required for HFP client profile doesn't happen will it still generate clocks for data transfer .


    We are using WL1831 chipset and would like to know whether it supports mSBC encoding and decoding which will be required for HFP client profile.

    Please let us know the availability of these features as we are going for Rev B production of our target .

    Note : we are also trying out the same thing on pandaboard with wl1271 .

  • Hi,

    as per the http://www.ti.com/lit/ds/symlink/wl1831mod.pdf, datasheet yes see below.
    • Dedicated audio processor supporting on-chip SBC encoding + A2DP
    – Assisted A2DP (A3DP): SBC encoding implemented internally
    – Assisted WB-speech (AWBS): modified SBC codec implemented internally

    anyway let me double check this internally and confirm it.
  • Sundeep,

    Thanks for the info .
    This is how i am configuring the chip on my target board.
    1) Enable bluetooth
    2) Configuring codec
    dut_mode_send 0x3f 0x210 0x00 0x00 0x00 0x01

    dut_mode_send 0x3f 0x106 0x00 0x40 0x00 0x00 0x71 0x27 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x02 0x01 0x00 0x00 0x80 0x02 0x01 0x00 0x00 0x80 0x02 0x01 0x00 0x00 0x80 0x02 0x01 0x00 0x00 0x00

    converting HCI commands to commands required by bluedroid from below link(dut_send_mode)
    (processors.wiki.ti.com/index.php/CC256x_Advanced_Voice_and_Audio_Features#WB_Speech)

    3)Connecting a phone to target board running HFP profile and some activity is expected on BT PCM lines during call.

    Please correct me if any of the above steps is wrong and is there a configuration that you can point me, to verify this feature on the chip.
  • Hi,

    Please Don't run the HCI_VS_Write_SCO_Configuration (0xFE10) command it is only meant for CC256x.

    I hope you have taken care of the below hardware configuration http://processors.wiki.ti.com/index.php/WL18xx_Module_Schematic_Checklist#BT_PCM
  • Sundeep,

    Yes i have taken care of the above configuration .I am checking this feature on my target board which has WL1831 as well as on pandaboard which has WL1271.
    As mentioned earlier all state changes are handled by bluedroid .After accepting call we do not see any activity on PCM lines in both devices .Is there any specific configuration to be done for enabling PCM interface and the audio processor?.(vendor specific command from the stack) .I Hope PCM of BT module will act as master for any HOST processor or audio codec.
  • Hi Sundeep,

    Were you able to confirm with your team .

    Few other queries(below links) regarding this in e2e forum suggests PCM clock configuration generating clock from PCM interface.

    Though WBS is not required(is it required for enabling PCM interface) .I would like to know the dependency in configuring it as master interface.


    http://e2e.ti.com/support/wireless_connectivity/f/307/t/85657
    http://e2e.ti.com/support/wireless_connectivity/f/307/t/91352

    I don't seem to find any information regarding voice transfer using WL18xx .Any information regarding this will be helpful.
  • Also here http://e2e.ti.com/support/wireless_connectivity/f/307/p/245418/858623 ,some info about PCM config being done by bts file.
  • Hi,

    In the above post they were talking about the Coded configuration command.
  • Hi ,

    I would only like to know whether wl18xx or wl12xx (pandaboard ) will support assisted HFP and decode/encode during voice call .
    Though i am configuring the PCM interface i don't see any activity on data lines during voice call.