• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » WLAN Applications Forum » wl1271 bluetooth configuration: audio routing
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

wl1271 bluetooth configuration: audio routing

This question is not answered
Sergey Matyukevich
Posted by Sergey Matyukevich
on Dec 22 2010 10:28 AM
Prodigy250 points

Hello,

I use omap3evm board from Mistral with Wireless Connectivity Card which incorporates a WL1271 chip (required bluetooth firmware version is TIInit_7.2.31.bts).

I can hear sound in my headset only if I send sound data to WL1271 over PCM. I tried bluez4 config option SCORouting to both HCI and PCM, but it didn't help.

The same situation can be observed in e.g. TI_OMAP35x_WL1271_6.1.0.0.144 demo package (see bluetooth demo script BT_HFP_Play.sh):

bluez4 configures audio on BT chip, but sound data is sent over PCM.

So It looks like BT chip is always expecting audio from PCM regardless how bluez4 is configured.

Is there a way to configure audio routing  for wl1271 chip if I want to choose either HCI or PCM ?

 

Thanks,

Sergey

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Krunal Patil
    Posted by Krunal Patil
    on Mar 13 2011 11:25 AM
    Expert2840 points

    Hello,

    We are trying to record and playback audio over bluetooth using alsa library and utils on ARM platform.

    ALSA seems to be set up fine. Audio Playback over bluetooth is working well, recording does not work. arecord does not record silence but simply blocks after writing the 44 byte wave file header:

    $ arecord -f cd test.wav
    Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
    (CTRL-C after a while)
    Aborted by signal break...

    $ ls -lh test.wav
    -rw-r--r-- 1 user user 44 2011-03-10 16:46 test.wav

    We also tried some arecord options (other sample formats or devices) without success.

    Any hints what we are missing?

     

    Regards,

    Krunal


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sinoj issac
    Posted by sinoj issac
    on Mar 14 2011 02:03 AM
    Expert2800 points

    Hi Krunal,

    Please provide us the details of your platform (hardware and software).

    Thanks,

    Sinoj

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Krunal Patil
    Posted by Krunal Patil
    on Mar 14 2011 03:17 AM
    Expert2840 points

    Hello Sinoj,

    We are using AM3517 EVM from logicPD. We are using AM35x-OMAP35x PSP 03.00.01.06 and following wilink setup guide provided by logicpd to setup wlan and bluetooth. Audio playback steps are mentioned in Wilink setup guide but not for audio record.

    Software Specification:

    1. AM35x-OMAP35x PSP 03.00.01.06 which has "Linux am3517-evm 2.6.32" along with the wilink patches provided by logicpd
    2. bluez-4.59.tar.gz alsa-lib-1.0.23.tar.bz2 alsa-utils-1.0.23.tar.bz2 as recommended in setup guide

    Audio Playback over bluetooth is working well, recording does not work. arecord does not record silence but simply blocks after writing the 44 byte wave file header:

    Is audio recording over bluetooth is tested on AM3517 EVM with AM35x-OMAP35x PSP 03.00.01.06 SDK.

    Following is my /etc/asound.conf

    pcm.rawbluetooth {
            @args [ ADDRESS ]
            @args.ADDRESS {
                    type string
            }
            type bluetooth
            device $ADDRESS
    }

    pcm.bluetooth {
            @args [ ADDRESS ]
            @args.ADDRESS {
                    type string
            }
            type plug
            slave {
                    pcm {
                            type bluetooth
                            device $ADDRESS
                    }
            }
    }


    Any hints what we are missing?

     

    Regards,

    Krunal


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sinoj issac
    Posted by sinoj issac
    on Mar 14 2011 04:20 AM
    Expert2800 points

    Hi Krunal,

    We don't have the AM3517 EVM from Logicpd. We do support OMAP3 EVM from Mistral+WL1271 solution. I hope someone else will respond to help you.

    Thanks,

    Sinoj

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Krunal Patil
    Posted by Krunal Patil
    on Mar 14 2011 04:25 AM
    Expert2840 points

    Hello,

     

    Thanks for the reply.

    We are using AM3517 with WL1271 only. I guess I am missing some basic configurations. May be some alsa or HCI command configuration. Can you please provide me set of steps where in I can configure WL1271 and record and playback audio over bluetooth.

     

    --

    Regards,

    Krunal


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikolay Zhgulev
    Posted by Nikolay Zhgulev
    on Mar 01 2012 05:42 AM
    Prodigy50 points

    Dear Sergey

    Could you help me and tell - what I have to enable in kernel - that A2DP headset can work with aplay...

    now bluetoothhd - still activ... all servicec activate, but aplay - dont work with BT ... 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sergey Matyukevich
    Posted by Sergey Matyukevich
    on Mar 03 2012 12:44 PM
    Prodigy250 points

    Hello Nikolay,

    1. Kernel bluetooth configuration

    The simplest way is to enable all the kernel configuration options under Networking support -> Bluetooth subsystem support.

    2. BlueZ (bluetoothd)

    You have to pair bluetooth headset with bluetooth service. If you are not using any existing bluetooth GUI (e.g. gnome bluetooth applet), then you will have to use command-line agent to pair with your headset. The simplest agent can be found in bluetoothd source tree: test/simple-agent.This is how to use it:

    # test/simple-agent hci0 XX:XX:XX:XX:XX:XX

    Now I don't remember exactly, but you might also need the following command after pairing:

    #  test/test-audio connect XX:XX:XX:XX:XX:XX

    3. Audio: here I consider only alsa configuration

    Create or modify existing alsa configuration ~/.asoundrc adding the following lines:

    pcm.bt {
        type bluetooth
        device XX:XX:XX:XX:XX:XX
        profile hifi
    }

    You may play wav file using 'aplay' utility:

    # aplay -D bt /path/to/test.wav

    or mplayer:

    # mplayer -ao alsa:device=bt /path/to/test.mp3

    Thanks,

    Sergey

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikolay Zhgulev
    Posted by Nikolay Zhgulev
    on Mar 05 2012 00:26 AM
    Prodigy50 points

    3036.BT_Log.txt

    Sergey I attach BT_LOG.txt..

    I start system..  and make:

    hciconfig hci0 piscan
    hcitool cmd 0x3f 0x210 0x01 0x30 0xD0 0x02 0x01

    rm /usr/var/run/messagebus.pid
    rm /usr/var/run/dbus/pid
    sleep 1
    dbus-daemon --system &
    sleep 2
    bluetoothd -nd &
    sleep 5
    agent --path /org/bluez/agent 0000 &
    
    
    and - BT headset - after anable it automatical detected OS and connection...
    
    
    But - aplay - cant connect to bluetooth $(
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use