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.

WL12XX bt pcm

Other Parts Discussed in Thread: WL1281

Hi:

how to enable pcm ?

i add HCI_VS_Write_CODEC_Config in bts,

but i can not measure  the pcm clock(PCM_AUD_CLK) with an oscilloscope. 

After connecting the Bluetooth chip with the phone, play the music. also can not measure PCM_AUD_DIN,PCM_AUD_DOUT .

Send_HCI_VS_Write_CODEC_Config 0xFD06, 0x0200, 0x00, 0x00001f40, 0x0001, 0x00, 0x00, 0x00, 0x0010, 0x0001, 0x00, 0x0010, 0x0001, 0x01, 0x00, 0x0010, 0x0011, 0x00, 0x0010, 0x0011, 0x01, 0x00
Wait_HCI_Command_Complete_VS_Write_CODEC_Config_Event 5000, 0x00, 0xfd06, 0x00

  • Hi,

    Please refer to the following wiki : processors.wiki.ti.com/.../CC256x_Advanced_Voice_and_Audio_Features

    Are you following all the steps for your use-csae (A3DP or WBS)?

    Best regards,
    Vihang
  • hi:

    bts: TIInit_10.6.15.bts

    chip : wl1281

    add this code 

    Send_HCI_Vs_Wbs_Associate 0xFD78, 0x1
    Wait_HCI_Command_Complete_Vs_Wbs_Associate_Event 5000, 0x00, 0xfd78, 0x0

    i found can not load the fw.   log:

    (stc): chnl_id list empty :4
    (stk) : st_kim_start(stk) :ldisc_install = 1
    (stc): st_tty_open (stk) :line discipline installed
    (stk) :ti-connectivity/TIInit_10.6.15.bts(stk) :change remote baud rate command in firmware
    (stk) :skipping the wait event of change remote baud(stk) :no proper response during fw download
    (stk) :data6 2(stk) :unknown packet
    (stk) :response timeout during fw download (stk) :download firmware failed
    (stk) :ldisc_install = 0(stc): st_tty_close
    (stk) :ldisc_install = 1(stc): st_tty_open
    (stk) :line discipline installed(stk) :ti-connectivity/TIInit_10.6.15.bts
    (stk) :change remote baud rate command in firmware(stk) :skipping the wait event of change remote baud
    (stc): add_channel_to_table: id 4
    (stc): add_channel_to_table: id 2
    (stc): add_channel_to_table: id 3
    (stc): remove_channel_from_table: id 3
    (stc): remove_channel_from_table: id 2
    (stc): remove_channel_from_table: id 4
    (stc): all chnl_ids unregistered
    (stk) :ldisc_install = 0(stc): st_tty_close

  • add  these codes in bts:

    Send_HCI_VS_LE_Enable 0xFD5B, 0x00, 0x00
    Wait_HCI_Command_Complete_VS_LE_Enable_Event 5000, 0x00, 0xfd5b, 0x00

    Send_HCI_VS_Write_CODEC_Config 0xFD06, 0x0c00, 0x00, 0x00003e80, 0x0001, 0x01, 0x00, 0x00, 0x0010, 0x0001, 0x01, 0x0010, 0x0001, 0x00, 0x00, 0x0010, 0x0011, 0x01, 0x0010, 0x0011, 0x00, 0x00
    Wait_HCI_Command_Complete_VS_Write_CODEC_Config_Event 5000, 0x00, 0xfd06, 0x00

    Send_HCI_Write_Voice_Setting 0x0063
    Wait_HCI_Command_Complete_Write_Voice_Setting_Event 5000, 0x00, 0x0c26, 0x00

    Send_HCI_Vs_Wbs_Associate 0xFD78, 0x0001
    Wait_HCI_Command_Complete_Vs_Wbs_Associate_Event 5000, 0x00, 0xfd78, 0x00

    Send_HCI_Setup_Synchronous_Connection 0x0001, 0x00001f40, 0x00001f40, 0x000e, 0x0063, 0x02, 0x03c8

     

    bts log:

    bts_log.rar

    what did i miss something in the bts?