* [Bluez-users] SCO mapping, bccmd mapsco
@ 2006-07-14 16:16 Marcus C. Gottwald
2006-07-14 16:22 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Marcus C. Gottwald @ 2006-07-14 16:16 UTC (permalink / raw)
To: bluez-users
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Bluez-users] SCO mapping, bccmd mapsco
2006-07-14 16:16 [Bluez-users] SCO mapping, bccmd mapsco Marcus C. Gottwald
@ 2006-07-14 16:22 ` Marcel Holtmann
2006-07-14 16:47 ` Marcus C. Gottwald
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2006-07-14 16:22 UTC (permalink / raw)
To: BlueZ users
Hi Marcus,
> 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)
use "bccmd psset --stores psf mapsco 0".
Regards
Marcel
-------------------------------------------------------------------------
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 easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] SCO mapping, bccmd mapsco
2006-07-14 16:22 ` Marcel Holtmann
@ 2006-07-14 16:47 ` Marcus C. Gottwald
2006-07-18 11:01 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Marcus C. Gottwald @ 2006-07-14 16:47 UTC (permalink / raw)
To: BlueZ users
Hello,
Marcel wrote (Fri 2006-Jul-14 18:22:55 +0200):
> > 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)
> =
> use "bccmd psset --stores psf mapsco 0".
Wow, that was quick. But using "--stores psf" doesn't seem to
help; and even the hciconfig output remains unchanged:
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
coach:~# bccmd psset --stores psf mapsco 0
coach:~# bccmd psget mapsco
Map SCO over PCM: 0x0001 (1)
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
I'll be happy to try anything else. :-)
Cheers, 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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Bluez-users] SCO mapping, bccmd mapsco
2006-07-14 16:47 ` Marcus C. Gottwald
@ 2006-07-18 11:01 ` Marcel Holtmann
2006-07-18 13:53 ` Marcus C. Gottwald
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2006-07-18 11:01 UTC (permalink / raw)
To: BlueZ users
Hi Marcus,
> > > 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)
> >
> > use "bccmd psset --stores psf mapsco 0".
>
> Wow, that was quick. But using "--stores psf" doesn't seem to
> help; and even the hciconfig output remains unchanged:
>
> 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
> coach:~# bccmd psset --stores psf mapsco 0
> coach:~# bccmd psget mapsco
> Map SCO over PCM: 0x0001 (1)
> 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
>
> I'll be happy to try anything else. :-)
try "bccmd psset --stores psi mapsco 0". If this still doesn't work then
replace "psi" with "0".
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] SCO mapping, bccmd mapsco
2006-07-18 11:01 ` Marcel Holtmann
@ 2006-07-18 13:53 ` Marcus C. Gottwald
0 siblings, 0 replies; 5+ messages in thread
From: Marcus C. Gottwald @ 2006-07-18 13:53 UTC (permalink / raw)
To: BlueZ users
Hello Marcel,
Marcel Holtmann wrote (Tue 2006-Jul-18 13:01:31 +0200):
> > > use "bccmd psset --stores psf mapsco 0".
> > =
> > Wow, that was quick. But using "--stores psf" doesn't seem to
> > help; and even the hciconfig output remains unchanged:
..
> try "bccmd psset --stores psi mapsco 0". If this still doesn't work then
> replace "psi" with "0".
Good news is: It works!
Bad news is: I don't really know why. A simple "psget mapsco"
currently doesn't work anymore, though after issuing a "psset
mapsco" the output of "hciconfig hci0 revision" keeps changing
as exepcted and as it always did.
While testing with "--stores" I realized that having "btsco"
running and/or having "snd-bt-sco" loaded might make a
difference, so I currently can't tell what exactly made it work
while I was playing around. If I ever find out for sure, I'll
post it. :-)
I now have my notebook computer with builtin Bluetooth adapter
(internally connected via USB, switched on and off by software)
online via a Bluetooth connection to my UMTS mobile and talking
to a Bluetooth headset at the same time.
Thanks again!
Marcus
-- =
Marcus C. Gottwald =B7 http://www.inf.fu-berlin.de/~gottwald/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-18 13:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-14 16:16 [Bluez-users] SCO mapping, bccmd mapsco Marcus C. Gottwald
2006-07-14 16:22 ` 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
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.