When using a Bluetooth headset (Samsung HM3700) with a Broadcom USB Bluetooth dongle (vid:0x0a5c pid:0x2198) I can successfully get bi-directional audio working (Bluez 4.98) once I have paired with the headset. However, when using the "TiWi-R2" (WL1271), I am only capable of receiving audio (to the headset spk) with the microphone seemingly not working at all. Looking at HCICONFIG, it would seem that I am not receiving any 'SCO' data ?!
Not being familiar with the WL1271, perhaps someone knows what may be responsible.
$ cat /etc/asound.conf
# conf
pcm.!bluetooth {
type bluetooth
device 04:18:0F:CD:86:4B
profile voice
}
$ cat /etc/bluetooth/audio.conf
# Configuration file for the audio service
[General]
Enable=Socket,Source,Sink,Headset
Disable=Media,Gateway,Control
# Switch to master role for incoming connections (defaults to true)
#Master=true
# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# AutoConnect=true
# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]
# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true
# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1
# Set to true to enable use of fast connectable mode (faster page scanning)
FastConnectable=false
#[A2DP]
#SBCSources=1
#MPEG12Sources=0
## simple bluetooth audio test
$ arecord -D plug:bluetooth -f S16_LE -r 8000 audioTest.wav
$ aplay -D plug:bluetooth -f S16_LE -r 8000 audioTest.wav
## bluetooth spk test
$ cat /dev/urandom | aplay -D plug:bluetooth -f S16_LE -r 8000
## bluetooth mic test
$ arecord -D plug:bluetooth -f S16_LE -r 8000 | aplay -D plughw:0,1
## bluetooth firmware patch
root@VOCALDEV:/opt# md5sum /lib/firmware/TIInit_7.2.31.bts
b2655f34bf0f27e14883d16cab8af42a /lib/firmware/TIInit_7.2.31.bts
## USB DONGLE
root@VOCALDEV:/opt# hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:02:72:C5:70:85 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:2812040 acl:62 sco:55061 events:129 errors:0
TX bytes:51216 acl:98 sco:7125 commands:83 errors:0
## WL1271
root@VOCALDEV:/opt# hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: 00:18:2F:A8:55:A3 ACL MTU: 1021:4 SCO MTU: 180:4
UP RUNNING PSCAN
RX bytes:5999 acl:88 sco:0 events:203 errors:0 <----- NOTE this is 0 ?!
TX bytes:322316 acl:98 sco:6125 commands:70 errors:0
## full wl1271 bluetooth example
root@DM8168SRV:~# ifconfig wlan0 up
ti8168_wl12xx_set_power(on)
wl1271: firmware booted (Rev 6.3.3.0.79)
wl1271: Driver version: R4_SP2_02_03
root@DM8168SRV:~# echo 1 > /sys/class/gpio/gpio18/value
root@DM8168SRV:~# hciattach /dev/ttyO1 texas 3000000
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_7.2.31.bts
Loaded BTS script version 1
texas: changing baud rate to 3000000, flow control to 1
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Device setup complete
root@DM8168SRV:~#
root@DM8168SRV:~# hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: 00:18:2F:A8:55:A3 ACL MTU: 1021:4 SCO MTU: 180:4
UP RUNNING PSCAN
RX bytes:900 acl:0 sco:0 events:37 errors:0
TX bytes:705 acl:0 sco:0 commands:37 errors:0
root@DM8168SRV:~# hcitool scan
Scanning ...
04:18:0F:CD:86:4B HM3700
CC:6E:A1:D3:6D:94 Roku Player
root@DM8168SRV:~# hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: 00:18:2F:A8:55:A3 ACL MTU: 1021:4 SCO MTU: 180:4
UP RUNNING PSCAN
RX bytes:2265 acl:14 sco:0 events:76 errors:0
TX bytes:1136 acl:15 sco:0 commands:47 errors:0
-- Leon Kok | VOCAL Technologies
PS: While there seems to have been no progress, this seems similar to the issue seen on page 2 of http://e2e.ti.com/support/low_power_rf/f/307/t/85657.aspx