• 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 » How to enable A2DP profile in Mistral EVM DM37XX?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

How to enable A2DP profile in Mistral EVM DM37XX?

How to enable A2DP profile in Mistral EVM DM37XX?

This question is answered
Ankur Patel
Posted by Ankur Patel
on Dec 08 2010 10:39 AM
Prodigy30 points

Dear Friends,

I am working on Mistral DM37XX EVM having LS Research TIWI chip for Bluetooth and Wireless Network. As per the requirement, the device should work as receiving device for Audio in from Mobile/Other Device on A2DP profile. I am facing problem on simulating it on the Mistral EVM. I am using Nokia cellphone(with A2DP support) for testing. Also I have transfer file b/w mobile & EVM using OPP profile and its working fine.

When I pair my mobile with the Laptop(with A2DP) I get an option "Connect to Audio Device" but when I pair with Mistral DM3730 EVM I dont see this option.

How do I know A2DP is enabled and working on EVM? Is there any steps to be needed to enable A2DP on EVM?

Steps for Testing:

1) As per the instructions I have installed ti-sdk-AM3715-evm-4.0.0.0-Linux-x86-Install
2) Build the Bluetooth and Wireless network driver using the package provided at ti-sdk-AM3715-evm-4.0.0.0/wlan/wl1271.tar.bz2.
3) On EVM, using the test application I am enabling the Bluetooth device using /opt/ti-bluetooth/bluetooth_scripts/BT_DEMO.sh and then trying to pair with Nokia mobile and trying to play audio from Mobile to EVM on A2DP profile.

Thank you,
Have a Good Day,
Ankur.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • sinoj issac
    Posted by sinoj issac
    on Dec 08 2010 12:53 PM
    Expert2800 points

    Hi Ankur,

    No, you can not play audio from mobile to EVM using the scripts provided in the SDK. With that script, the EVM plays Audio Source (SRC) role, ie. it is the source of a digital-audio data and sends the stream to the SNK.

    You can play audio from the EVM to a headset/device which supports Audio Sink (SNK).

    Since the demos are based on BlueZ, configuring  it  for SINK seems to be just a matter of BlueZ configuration on the EVM. Then, it could be possible to route the received audio samples to the EVM codec. Currently it is not supported in the SDK.

    Thanks,

    Sinoj

    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 Dec 09 2010 05:41 AM
    Expert2800 points

    One more comment;

    Since version 4.46.  Bluez supports  A2DP sink. Bluez vesion in the SDK is 4.59. However, right now there is no client able to handle the incoming stream on EVM.

    Thanks,

    Sinoj

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ankur Patel
    Posted by Ankur Patel
    on Dec 09 2010 11:29 AM
    Prodigy30 points

    Dear Sinoj Issac,

    Thank you for your quick comments and kind response.

    I found from your above replies that at present EVM to work as A2DP SINK  has been not implement in the SDK. At present my concern is to test the audio over bluetooth using EVM. I tried testing by keeping EVM as Source and bluetooth headset as SINK. I am using latest SDK for testing downloaded from http://processors.wiki.ti.com/index.php/ARM_Processor_Wireless_Connectivity_Downloads "OMAP3530 EVM + WL1271 WLAN & BT Beta 2 Drivers".

    The result is when I play sound file on EVM using demo script it gives a Beep sound on BT Headset when it starts. Then it went into silence and when I do option 2 "Stop Audio", and again it Beeps on BT Headset.

    Please find the below log with the post. Now can you please suggest me what are the setting that could be done on EVM to act as Source?

    Have a Good Day,

    Thank you,

    Ankur.

    OUTPUT LOG:

    /*
     * ########### BT-Scan #############
     * Scan for the remote BT devices  
     * #################################
     */                                
    Scanning ...
            00:1E:3A:0D:32:EC       Glenn
            00:1D:82:29:53:6F       Nokia BH-102
    ----------------------------------------------------------------------------------------------------------------
    /*
     * ########## BT-Pair ########
     * Pair to a remote BT device
     * ###########################
     */
    Enter the BD Addr of remote Device to Pair
    ====> 00:1D:82:29:53:6F
    Pairing with 00:1D:82:29:53:6F, Please wait..
    Pairing success ...
    ----------------------------------------------------------------------------------------------------------------

    Enter the BD Address of the A2DP device
    ====> 00:1D:82:29:53:6F
    '/etc/asound.conf' got updated, ensure that we will pair to the device 00:1D:82:29:53:6F for A2DP
    /*
     * ################################# A2DP ###################################
     * Advanced Audio Distribution Profile (A2DP) defines how the high quality
     * audio can be streamed from one device to another over Bluetooth connection.
     * ##########################################################################
     */
    Select Any Audio File  ...
    The following files are available at gallery
    Document.jpg             Pop.wav        song_8000.wav
    WLAN_Bluetooth_demo.wmv 

    Enter the Audio wav File Name ...
    ====> Pop.wav
    Playing WAVE '/opt/WL1271_demo_01/bluetooth_scripts/../gallery/Pop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
    // Here it beep on BT Headset and went into silence....


    2. Stop Audio...
    3. Goto MAIN MENU
     ====> 2
    Aborted by signal Terminated...
    //Here again I gets Beep sound on BT Headset.

    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 Dec 10 2010 01:43 AM
    Verified Answer
    Verified by Ankur Patel
    Expert2800 points

    Hi Ankur,

    I do not see any problem in the logs given above.  However, can you please check whether the headset supports A2DP profile?

    From the log, it looks like the headset is Nokia BH-102 (00:1D:82:29:53:6F       Nokia BH-102). Nokia BH-102 does support HFP/HSP profiles, not A2DP.

    The demo scripts can be used to find the device capabilities. Select option #2 to get it and search for "Audio Sink" property.  Some of the A2DP support examples are given below;

    Nokia BH-214

    Service Name: Audio SNK
    Service Provider: ISSC
    Service RecHandle: 0x10008
    Service Class ID List:
      "Audio Sink" (0x110b)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 25
      "AVDTP" (0x0019)
        uint16: 0x100
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
    Profile Descriptor List:
      "Advanced Audio" (0x110d)
        Version: 0x0100

    Sony DR-BT22A

    Service RecHandle: 0x10000
    Service Class ID List:
      "Audio Sink" (0x110b)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 25
      "AVDTP" (0x0019)
        uint16: 0x100
    Profile Descriptor List:
      "Advanced Audio" (0x110d)
        Version: 0x0100



    Cellular HF-BLU

    Service RecHandle: 0x10002
    Service Class ID List:
      "Audio Sink" (0x110b)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 25
      "AVDTP" (0x0019)
        uint16: 0x102
    Profile Descriptor List:
      "Advanced Audio" (0x110d)
        Version: 0x0102

     

    If the device  supports Headset or Handsfree profile (HSP/HFP), you will be able to do voice test  (record and play back - recored voice or 8K voice samples file ) over BT using HSP test (Select #6).

    Hope this helps.

    Best Regards,

    Sinoj

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ankur Patel
    Posted by Ankur Patel
    on Dec 10 2010 09:35 AM
    Prodigy30 points

    Dear Sinoj,

    I appreciate your kind response. Thank you and Audio is working fine over the bluetooth. We tested by doing playing and recording the audio using the Nokia Headset. If you can share some inputs on how to make EVM as SINK (A2DP/HSP) and play the audio. Any suggestions will be warm welcome.

    Again, Thank you,

    Have a Good Weekend,

    Ankur.

    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 Dec 13 2010 08:56 AM
    Expert2800 points

    Hi Ankur,

    Adding PulseAdio (http://www.pulseaudio.org/) to the EVM will provide capability to handle A2DP sink streams.

    Thanks,

    Sinoj

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
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