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.
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
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.
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:6FPairing 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 galleryDocument.jpg Pop.wav song_8000.wavWLAN_Bluetooth_demo.wmv Enter the Audio wav File Name ...====> Pop.wavPlaying 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 ====> 2Aborted by signal Terminated...//Here again I gets Beep sound on BT Headset.
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 SNKService Provider: ISSCService RecHandle: 0x10008Service Class ID List: "Audio Sink" (0x110b)Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x100Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100Profile Descriptor List: "Advanced Audio" (0x110d) Version: 0x0100Sony DR-BT22AService RecHandle: 0x10000Service Class ID List: "Audio Sink" (0x110b)Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x100Profile Descriptor List: "Advanced Audio" (0x110d) Version: 0x0100Cellular HF-BLUService RecHandle: 0x10002Service Class ID List: "Audio Sink" (0x110b)Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x102Profile 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,
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,
Adding PulseAdio (http://www.pulseaudio.org/) to the EVM will provide capability to handle A2DP sink streams.