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
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.wavRecording 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.wavWe also tried some arecord options (other sample formats or devices) without success. Any hints what we are missing?
Regards,
Krunal
Hi Krunal,
Please provide us the details of your platform (hardware and software).
Sinoj
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:
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?
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 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.
--
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 ...
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
3036.BT_Log.txt
Sergey I attach BT_LOG.txt..
I start system.. and make:
hciconfig hci0 piscanhcitool cmd 0x3f 0x210 0x01 0x30 0xD0 0x02 0x01rm /usr/var/run/messagebus.pidrm /usr/var/run/dbus/pidsleep 1dbus-daemon --system &sleep 2bluetoothd -nd &sleep 5agent --path /org/bluez/agent 0000 &
and - BT headset - after anable it automatical detected OS and connection...
But - aplay - cant connect to bluetooth $(