All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marcus C. Gottwald" <gottwald@inf.fu-berlin.de>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] SCO mapping, bccmd mapsco
Date: Fri, 14 Jul 2006 18:16:57 +0200	[thread overview]
Message-ID: <20060714161657.GA25533@inf.fu-berlin.de> (raw)


Hello everyone!

I thought I'd give using my bluetooth headset as microphone and
speaker a try, using bluetooth-alsa. Everything is working
(pairing, connecting, getting key press info) apart from no
sound data being sent to or received from the headset, both with
a Nokia headset (HS-3W) and a Motorola one (H300).

One hint I found was to look at "hciconfig hci0 revision" to
check for the "SCO mapping". So I did:

  coach:~# hciconfig hci0 revision
  hci0:   Type: USB
          BD Address: 08:00:46:EB:0E:B6 ACL MTU: 192:8 SCO MTU: 64:8
          HCI 18.1
          Chip version: BlueCore02-External
          Max key size: 56 bit
          SCO mapping:  PCM

And supposedly the mapping to PCM is not what I want. Also, the
counters for "sco" in the hciconfig output never showed anything
but 0. So I got myself the bluez-utils sources, compiled them to
get "bccmd" and gave it a try:

  coach:~# bccmd psset mapsco 0
  coach:~# hciconfig hci0 revision
  hci0:   Type: USB
          BD Address: 08:00:46:EB:0E:B6 ACL MTU: 192:8 SCO MTU: 64:8
          HCI 18.1
          Chip version: BlueCore02-External
          Max key size: 56 bit
          SCO mapping:  HCI

Looking good, but nothing actually changed. Looking closer I
noticed:

  coach:~# bccmd psset mapsco 0
  coach:~# bccmd psget mapsco
  Map SCO over PCM: 0x0001 (1)
  coach:~# bccmd psset mapsco 1
  coach:~# bccmd psget mapsco
  Map SCO over PCM: 0x0001 (1)

However, the output of "hciconfig" changes from "PCM" to "HCI"
back and forth as expected. So question 1 would be: Is it normal
for the output of "hciconfig" to change although "psget" returns
an unchanged value?

Since the Bluetooth device is connected internally via USB, I
thought maybe I should try "bccmd" with "-t USB", but I only get
a "Device not available". Looking at "csr_open_usb()" I presume
the "device" argument isn't actually used. So I changed the code
to look for device 044e:3007 instead of 0a12:0001 since my
Bluetooth device identifies as such, but then only receive the
output of "Can't claim interface: Device or resource busy (16)"
even with all other Bluetooth stuff (rfcomm, sdpf, hcid) not
running.

So question 2 would be: What's the correct way to access the
device via USB (if trying to do so actually makes any sense at
all)?


Thanks in advance,

Marcus

-- =

   Marcus C. Gottwald  =B7  http://www.inf.fu-berlin.de/~gottwald/



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2006-07-14 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-14 16:16 Marcus C. Gottwald [this message]
2006-07-14 16:22 ` [Bluez-users] SCO mapping, bccmd mapsco Marcel Holtmann
2006-07-14 16:47   ` Marcus C. Gottwald
2006-07-18 11:01     ` Marcel Holtmann
2006-07-18 13:53       ` Marcus C. Gottwald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060714161657.GA25533@inf.fu-berlin.de \
    --to=gottwald@inf.fu-berlin.de \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.