* Re: [Bluez-users] When Connect A2DP : Error 22 while configuring device
@ 2008-06-19 8:23 colorant
0 siblings, 0 replies; 2+ messages in thread
From: colorant @ 2008-06-19 8:23 UTC (permalink / raw)
To: BlueZ users
And following is the output from HCIDUMP :
> Hi
>
> I am try to connect A2DP with Bluez
>
> When useing Aplay to try it , I have following problems :
>
> ~ # aplay -D bluetooth demo.wav
> ALSA lib pcm_bluetooth.c:1158:(bluetooth_cfg) Error 22 while configuring
> device
> aplay: main:510: audio open error: Invalid argument
>
> Can Someone point out what might be the reason ?
>
~ # aplay -D bluetooth demo.wav
< HCI Command: Create Connection (0x01|0x0005) plen 13
26 00 B0 72 02 00 18 CC 02 00 00 00 01
> HCI Event: Command Status (0x0f) plen 4
00 01 05 04
> HCI Event: Connect Complete (0x03) plen 11
00 2A 00 26 00 B0 72 02 00 01 00
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
2A 00
> HCI Event: Command Status (0x0f) plen 4
00 00 1B 04
> HCI Event: Max Slots Change (0x1b) plen 3
2A 00 05
> HCI Event: Command Status (0x0f) plen 4
00 01 00 00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
2A 00 0F 00
> HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 2A 00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
26 00 B0 72 02 00 02 00 00 00
> HCI Event: Command Status (0x0f) plen 4
00 01 19 04
> HCI Event: Read Remote Supported Features (0x0b) plen 11
00 2A 00 FF FF 05 38 18 18 00 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0043 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0043 flags 0x00 clen 0
> HCI Event: Remote Name Req Complete (0x07) plen 255
00 26 00 B0 72 02 00 52 61 79 6D 6F 6E 64 2D 70 63 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 42 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0043 flags 0x00 result 0 clen 4
Success
MTU 672
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
< ACL data: handle 42 flags 0x02 dlen 17
L2CAP(d): cid 0x0043 len 13 [psm 1]
SDP SS Req: tid 0x0 len 0x8
pat uuid-16 0x1203 (Audio)
max 64
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 14
L2CAP(d): cid 0x0040 len 10 [psm 1]
SDP SS Rsp: tid 0x0 len 0x5
count 0
cont 00
< ACL data: handle 42 flags 0x02 dlen 17
L2CAP(d): cid 0x0043 len 13 [psm 1]
SDP SS Req: tid 0x1 len 0x8
pat uuid-16 0x110d (AdvAudio)
max 64
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 14
L2CAP(d): cid 0x0040 len 10 [psm 1]
SDP SS Rsp: tid 0x1 len 0x5
count 0
cont 00
< ACL data: handle 42 flags 0x02 dlen 17
L2CAP(d): cid 0x0043 len 13 [psm 1]
SDP SS Req: tid 0x2 len 0x8
pat uuid-16 0x110e (AVRemote)
max 64
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 1]
SDP SS Rsp: tid 0x2 len 0x9
count 1
handle 0x1000d
cont 00
< ACL data: handle 42 flags 0x02 dlen 23
L2CAP(d): cid 0x0043 len 19 [psm 1]
SDP SA Req: tid 0x3 len 0xe
handle 0x1000d
max 65535
aid(s) 0x0000 - 0xffff
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
> ACL data: handle 42 flags 0x02 dlen 94
L2CAP(d): cid 0x0040 len 90 [psm 1]
SDP SA Rsp: tid 0x3 len 0x55
count 82
aid 0x0000 (SrvRecHndl)
uint 0x1000d
aid 0x0001 (SrvClassIDList)
< uuid-16 0x110c (AVRemTarget) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) uint 0x17 > <
uuid-16 0x0017 (AVCTP) uint 0x100 > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0006 (LangBaseAttrIDList)
< uint 0x656e uint 0x6a uint 0x100 >
aid 0x0008 (SrvAvail)
uint 0xff
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x110e (AVRemote) uint 0x100 uint 0xf00 > >
cont 00
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0043 scid 0x0040
ALSA lib pcm_bluetooth.c:1158:(bluetooth_cfg) Error 22 while configuring
device
aplay: main:510: audio open error: Invalid argument
> HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
~ #
~ # > ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0043 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
2A 00 13
> HCI Event: Command Status (0x0f) plen 4
00 01 06 04
> HCI Event: Disconn Complete (0x05) plen 4
00 2A 00 16
Raymond
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread* [Bluez-users] Bluez build problem
@ 2008-06-13 12:07 Voni Hakau
2008-06-13 15:25 ` Mumia W..
0 siblings, 1 reply; 2+ messages in thread
From: Voni Hakau @ 2008-06-13 12:07 UTC (permalink / raw)
To: BlueZ users
Hi all,
I'm cross compiling bluez-util to my platform, so I use something like
--prefix=/path/to/my/platform/root/filesystem/usr. Everything builds
and installs perfectly.
But, in my platform, bluez now thinks that all the files are located
in the path /path/to/my/platform/root/filesystem/usr (it is hard coded
in the binaries), which doesn't really exists on the platform - it was
just on my host, where I built my root fs for the platform. I need to
install everything on my host to that path, but on the platform I need
bluez to ignore it...
Any suggestions ? I can always use --prefix=/usr and then manually
copy all the files to /path/to/my/platform/root/filesystem/usr but
that is too hard... there must be a better way..
Thank you!
Voni
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] Bluez build problem
2008-06-13 12:07 [Bluez-users] Bluez build problem Voni Hakau
@ 2008-06-13 15:25 ` Mumia W..
2008-06-18 7:20 ` [Bluez-users] Error encounter when connecting A2DP following wiki instruction ! How to connect A2DP ? colorant
0 siblings, 1 reply; 2+ messages in thread
From: Mumia W.. @ 2008-06-13 15:25 UTC (permalink / raw)
To: BlueZ users
On 06/13/2008 07:07 AM, Voni Hakau wrote:
> Hi all,
>
> I'm cross compiling bluez-util to my platform, so I use something like
> --prefix=/path/to/my/platform/root/filesystem/usr. Everything builds
> and installs perfectly.
>
> But, in my platform, bluez now thinks that all the files are located
> in the path /path/to/my/platform/root/filesystem/usr (it is hard coded
> in the binaries), which doesn't really exists on the platform - it was
> just on my host, where I built my root fs for the platform. I need to
> install everything on my host to that path, but on the platform I need
> bluez to ignore it...
>
> Any suggestions ? I can always use --prefix=/usr and then manually
> copy all the files to /path/to/my/platform/root/filesystem/usr but
> that is too hard... there must be a better way..
>
> Thank you!
> Voni
>
Hi Voni.
Try to create a package instead. Use --prefix=/usr when you configure,
but use DESTDIR=/tmp/buildplace when you install.
That should install the files to /tmp/buildplace. Use tar(1) to create a
tarball of the files in /tmp/buildplace, or even better, use a packager
for your preferred platform.
During configuration, your command line might look like this:
make --prefix=/usr
When you "install" the package, you'll use this command:
make install DESTDIR=/tmp/buildplace
Obviously, the files won't be installed to the right place. No problem,
use tar(1).
cd /tmp/buildplace
tar czf /tmp/bluez-x.xx-i386.tar.gz *
Now you have a tarball that you can install wherever you wish, including
the correct place for your platform,
/path/to/my/platform/root/filesystem/usr.
Good luck.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bluez-users] Error encounter when connecting A2DP following wiki instruction ! How to connect A2DP ?
2008-06-13 15:25 ` Mumia W..
@ 2008-06-18 7:20 ` colorant
2008-06-19 8:20 ` [Bluez-users] When Connect A2DP : Error 22 while configuring device colorant
0 siblings, 1 reply; 2+ messages in thread
From: colorant @ 2008-06-18 7:20 UTC (permalink / raw)
To: BlueZ users
Hi
I try to connect earphone with A2DP on arm board .
I follow the instruction from
http://wiki.bluez.org/wiki/HOWTO/AudioDevices
I encounter error while doing connect saying connect method does not
exist !
This is what I did :
~ # ps
PID Uid VSZ Stat Command
.....
271 root 1576 SW< /sbin/udevd --daemon
445 root 1884 SW /bin/sh /etc/init.d/rc 2
454 root 1964 SW /bin/sh
554 root SW< [krfcommd]
563 messagebus 1944 SW /usr/bin/dbus-daemon --system --fork
566 root 1416 SW hciattach -s 921600 /dev/ttyS1 bcsp 921600
573 root 1564 SW ./sdpd
575 root 2520 SW hcid -d
578 root 2444 SW /usr/lib/bluetooth/bluetoothd-service-audio
579 root 2412 SW /usr/lib/bluetooth/bluetoothd-service-input
619 root 1960 RW ps
~ # dbus-send --system --print-reply --dest=org.bluez /org/bluez
org.bluez.Manager.ActivateService string:audio
method return sender=:1.0 -> dest=:1.8
string ":1.1"
~ # dbus-send --system --type=method_call --print-reply --dest=org.bluez
/org/bluez org.bluez.Manager.ActivateService string:audio
method return sender=:1.0 -> dest=:1.9
~ # dbus-send --system --type=method_call --print-reply --dest=":1.1"
/org/bluez/audio org.bluez.audio.Manager.CreateDevice
string:00:02:5B:00:C1:A0
method return sender=:1.1 -> dest=:1.10
string "/org/bluez/audio/device3"
~ #
~ # dbus-send --system --type=method_call --print-reply --dest=":1.1"
"/org/bluez/audio/device3" org.bluez.audio.Sink.Connect
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with
signature "" on interface "org.bluez.audio.Sink" doesn't exist
So I have following questions :
1 . Anyone can help to point out what might be wrong in the above operation
?
2. Actually I also try the method of modify the /etc/asound.conf to add the
bluetooth and use aplay directly to play the music, that way also not
working!
~ # cat /etc/asound.conf
pcm.bluetooth{
type bluetooth
device "00:02:5b:00:c1:a0"
profile "auto"
}
~ # aplay -D bluetooth sample.wav
Segmentation fault
~ #
What might be the reason ? I can do aplay sample.wav to speaker. So alsa
utils should be ok.
3. I notice that , on this howto, it do not mentioned the process of
pairing, Shouldn't that be done in some other place ? How can I done that ?
actually I have put in hcid.conf something like :
# HCId options
options {
....
security auto;
pairing multi;
passkey "1234";
....
}
But this one do not work for dbus-send method , right ?
Thanks.
Raymond
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread* [Bluez-users] When Connect A2DP : Error 22 while configuring device
2008-06-18 7:20 ` [Bluez-users] Error encounter when connecting A2DP following wiki instruction ! How to connect A2DP ? colorant
@ 2008-06-19 8:20 ` colorant
0 siblings, 0 replies; 2+ messages in thread
From: colorant @ 2008-06-19 8:20 UTC (permalink / raw)
To: BlueZ users
Hi
I am try to connect A2DP with Bluez
When useing Aplay to try it , I have following problems :
~ # aplay -D bluetooth demo.wav
ALSA lib pcm_bluetooth.c:1158:(bluetooth_cfg) Error 22 while configuring
device
aplay: main:510: audio open error: Invalid argument
Can Someone point out what might be the reason ?
My config file is :
~ # cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
security auto;
pairing multi;
offmode devdown;
passkey "1234"; // I use my pc with usb dongle to provide the a2dp
service, so this is set to1234 not 0000 or 8888 etc.
}
# Default settings for HCI devices
device {
name "%h-%d";
class 0xff0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
iscan disable; pscan enable;
# Page timeout (10s)
pageto 16384;
# Discoverable timeout (0 == disabled)
discovto 0;
lm accept;
lp rswitch,hold,sniff,park;
}
~ # cat /etc/bluetooth/audio.conf
# Configuration file for the audio service
# This section contains options which are not specific to any
# particular interface
[General]
# If we want to disable support for specific services
# Defaults to supporting all implemented services
# disable=Sink
# SCO routing. Either PCM or HCI (in which case audio is routed to/from
ALSA)
# Defaults to HCI
SCORouting=PCM
# Headset interface specific options (i.e. options which affect how the
audio
# service interacts with remote headset devices)
[Headset]
# Set to true to only support HSP
# Defaults to false
DisableHFP=true
# Just an example of potential config options for the other interfaces
#[A2DP]
SourceCount=2
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-19 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 8:23 [Bluez-users] When Connect A2DP : Error 22 while configuring device colorant
-- strict thread matches above, loose matches on Subject: below --
2008-06-13 12:07 [Bluez-users] Bluez build problem Voni Hakau
2008-06-13 15:25 ` Mumia W..
2008-06-18 7:20 ` [Bluez-users] Error encounter when connecting A2DP following wiki instruction ! How to connect A2DP ? colorant
2008-06-19 8:20 ` [Bluez-users] When Connect A2DP : Error 22 while configuring device colorant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox