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 can't demo with HFP

Other Parts Discussed in Thread: WL1271, DM3730

Dear Sir,

CPU : OMAP3730,
WLAN&BT:  WL1271
Linux Kernel : 2.6.32

I have problem with BT_Demo.sh from TI, with HFP test
It's look like aplay can't saw the Bluetooth card,  below,


/*
 * HFP Play
 */

1. Start HFP
2. Stop HFP
 ====> 1

Enter the BD Address of the HFP device
====> 00:13:17:F1:C5:3D
1. Play Audio...
2. Record Audio...
3. Echo Audio
4. Goto Main Menu
5. Stop HFP
 ====> 1
Pincode request for device /org/bluez/2398/hci0/dev_00_13_17_F1_C5_3D
The following files are available at gallery
Document.jpg   Pop.wav        song_8000.wav

Enter the Audio wav File Name ...
====> song_8000.wav
aplay: main:660: audio open error: No such file or directory
1. Stop playing
2. Goto Main Menu
Select option :



root@box:/opt/ti-bluetooth/bluetooth_scripts# cat /etc/asound.conf

pcm.!bluetooth {
    type bluetooth
    device 00:13:17:F1:C5:3D
    }

pcm.!default {
    type plug
    slave.pcm bluetooth
    }



Any suggetion ? Thank you in advance.

 

 

 

  • Check whether wl1271-pcm has been registered as a digital audio device by executing command "aplay -l". The aplay -l lists audio devices available on the system.

     

  • Dear Sinoj .

    When edit file /etc/asound.conf below (comment all)

    #
    #pcm.!bluetooth {
    #    type bluetooth 
    #    device
    #    }

    #pcm.!default {
    #    type plug
    #    slave.pcm bluetooth
    #    }


    # aplay -l

    **** List of PLAYBACK Hardware Devices ****
    card 0: omap3beagle [omap3beagle], device 0: TWL4030 twl4030-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0



    But If running BT_Demo.sh for HSP Test or BT_HSP_Init.sh will change /etc/asound.conf to below,
    '/etc/asound.conf' got updated, Ensure that we will pair to the device  for HFP


    pcm.!bluetooth {
        type bluetooth 
        device
        }

    pcm.!default {
        type plug
        slave.pcm bluetooth
        }

    aplay -l wll return error below

    **** List of PLAYBACK Hardware Devices ****
    ALSA lib conf.c:1685:(snd_config_load1) _toplevel_:7:1:Unexpected char
    ALSA lib conf.c:3467:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it
    ALSA lib conf.c:3326:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
    ALSA lib conf.c:3713:(snd_config_update_r) hooks failed, removing configuration
    aplay: device_list:249: control open (0): Invalid argument


    Any suggestion ?  thank you inadvance

     

  •  

    Please let us know the version of the SDK release you are currently using. The latest SDK release does not support HFP on the AM37xx EVM as per the release notes (http://processors.wiki.ti.com/index.php/AM37x_Wireless_Connectivity_release_notes). So i  assume that you are using some older version of SDK for AM37xx EVM. If that is the case, kernel has to be modified by applying one patch (PSP-03.00.00.05-and-wl1271-6.1.5.4-integration.patch) to support HFP over pcm interface of the WL1271 which is connected to the McBSP 1 port of the AM37xx processor (HFP over HCI is not supported). If that patch is applied, the aplay -l command will list wl1271-pcm card as well. The patch can be used if the wl1271-pcm interface is connected to McBSP port 1. The BT_HSP_Init.sh is not used in the BT_Demo.sh. Am i right?

    Regards,

    Sinoj

     

  • Dear Sinoj,

    Thank you for your help,

    I'm using DM3730, and use SDK and WiFi/BT on below  link,
    Kernel 2.6.32  URL: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_4_00/4_01_00_09/index_FDS.html

    TMS320DM3730 DVSDK
    No Login dvsdk_4_01_00_09_dm3730_Release_Notes.pdf TMS320DM3730 DVSDK 4.01 Release Notes 260K
    Unlocked dvsdk_dm3730-evm_4_01_00_09_setuplinux TMS320DM3730 DVSDK 4.01 Installer 1650920K
    No Login TMS320DM3730_EVM_Quick_Start_Guide.pdf TMS320DM3730 DVSDK 4.01 Quick Start Guide 480K
    WiFi/BT WLAN/Bluetooth applications and drivers

    Above driver , Are they still need to patch with "PSP-03.00.00.05-and-wl1271-6.1.5.4-integration.patch" or not ?

    1. The BT_HSP_Init.sh is not used in the BT_Demo.sh. Am i right?
    Yes,  

    I just mean using BT_Demo.sh and select HSP Test  or
    using BT_Init.sh + BT_HSP_Init.sh the result are same ( error with aplay -l )


    Thank you in advance.

  • Yes, the kernel has to be rebuilt with the patch applied.

    Regards,

    Sinoj