Skip to contentSkip to conversation

A2DP alsa no sound

Bluez-users Niv 2 participants 5 messages Feb 23, 2006 – Mar 3, 2006 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

Niv

author
#0 lore raw

I am SO glad you made a alsa plugin for the headphones.
I tried it , I hear that the headphones do pick it up , but no sound goes throu hcidump -X -V:

HCI sniffer - Bluetooth packet analyzer ver 1.29
device: hci0 snap_len: 1028 filter: 0xffffffff
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 25 scid 0x0040

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0086 scid 0x0040 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

status 0x00 handle 41 mode 0x00 interval 0
Mode: Active

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 5

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0086 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0086 flags 0x00 clen 0

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4

     MTU 895

< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0086 flags 0x00 result 0 clen 0
Success

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 14

L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0086 len 3 [psm 25]
AVDTP(s): Discover cmd: transaction 0
0000: 00 .

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 8

L2CAP(d): cid 0x0040 len 4 [psm 25]
AVDTP(s): Discover rsp: transaction 0
ACP SEID 1 - Audio Sink
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0086 len 3 [psm 25]
AVDTP(s): Capabilities cmd: transaction 1
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(d): cid 0x0040 len 12 [psm 25]
AVDTP(s): Capabilities rsp: transaction 1
Media Transport
Media Codec - SBC
16kHz 32kHz 44.1kHz 48kHz
Mono DualChannel Stereo JointStereo
4 8 12 16 Blocks
4 8 Subbands
SNR Loudness
Bitpool Range 2-32
< ACL data: handle 41 flags 0x02 dlen 18
L2CAP(d): cid 0x0086 len 14 [psm 25]
AVDTP(s): Set config cmd: transaction 2
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
Stereo
16 Blocks
8 Subbands
SNR
Bitpool Range 2-32

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1
16 Blocks
8 Subbands
SNR
Bitpool Range 2-32

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Set config rsp: transaction 2
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0086 len 3 [psm 25]
AVDTP(s): Open cmd: transaction 3
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Open rsp: transaction 3
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 25 scid 0x0042

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0087 scid 0x0042 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0087 scid 0x0042 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0087 flags 0x00 clen 0

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 4

     MTU 895

< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0087 flags 0x00 result 0 clen 0
Success

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 14

L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0086 len 3 [psm 25]
AVDTP(s): Start cmd: transaction 4
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Start rsp: transaction 4

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 12

L2CAP(s): Connect req: psm 23 scid 0x0088
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0088 result 2 status 0
Connection refused - PSM not supported

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

status 0x00 handle 41 mode 0x02 interval 200
Mode: Sniff
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0087 scid 0x0042

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 1

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

status 0x00 handle 41 mode 0x00 interval 0
Mode: Active

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 5

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 12

L2CAP(s): Disconn rsp: dcid 0x0087 scid 0x0042

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Niv

Quoted 3 lines

I am SO glad you made a alsa plugin for the headphones.
I tried it , I hear that the headphones do pick it up , but no sound goes throu

The plugin is a work in progress. I got stuck in getting it to do the right thing.

Can you see from the hcidump where the plugin differs from a successful stream via a2play?

Brad

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

here we go:
diff mpg123.piped2headphones.dump.txt pcm.headphones.dump.txt

11c11
< L2CAP(s): Connect req: psm 1 scid 0x0040
- ---

Quoted 1 line
    L2CAP(s): Connect req: psm 25 scid 0x0040

25,108c25
< L2CAP(s): Connect rsp: dcid 0x0049 scid 0x0040 result 1 status 2
< Connection pending - Authorization pending
< > ACL data: handle 41 flags 0x02 dlen 16
< L2CAP(s): Connect rsp: dcid 0x0049 scid 0x0040 result 0 status 0
< Connection successful
< < ACL data: handle 41 flags 0x02 dlen 12
< L2CAP(s): Config req: dcid 0x0049 flags 0x00 clen 0
< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > ACL data: handle 41 flags 0x02 dlen 14
< L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
< Success
< > ACL data: handle 41 flags 0x02 dlen 16
< L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
< MTU 48
< < ACL data: handle 41 flags 0x02 dlen 14
< L2CAP(s): Config rsp: scid 0x0049 flags 0x00 result 0 clen 0
< Success
< < ACL data: handle 41 flags 0x02 dlen 24
< L2CAP(d): cid 0x0049 len 20 [psm 1]
< SDP SSA Req: tid 0x0 len 0xf

<           pat uuid-16 0x110d (AdvAudio)
<           max 65535
<           aid(s) 0x0000 - 0xffff
<           cont 00

< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > ACL data: handle 41 flags 0x02 dlen 52
< L2CAP(d): cid 0x0040 len 48 [psm 1]
< SDP SSA Rsp: tid 0x0 len 0x2b
< count 38
< cont 02 00 18
< < ACL data: handle 41 flags 0x02 dlen 26
< L2CAP(d): cid 0x0049 len 22 [psm 1]
< SDP SSA Req: tid 0x1 len 0x11

<           pat uuid-16 0x110d (AdvAudio)
<           max 65535
<           aid(s) 0x0000 - 0xffff
<           cont 02 00 18

< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > ACL data: handle 41 flags 0x02 dlen 36
< L2CAP(d): cid 0x0040 len 32 [psm 1]
< SDP SSA Rsp: tid 0x1 len 0x1b
< count 24

< record #0
< aid 0x0000 (SrvRecHndl)
< uint 0x10000
< aid 0x0001 (SrvClassIDList)
< < uuid-16 0x110b (AudioSink) >
< aid 0x0004 (ProtocolDescList)
< < < uuid-16 0x0100 (L2CAP) uint 0x19 > <
< uuid-16 0x0019 (AVDTP) uint 0x100 > >
< aid 0x0009 (BTProfileDescList)
< < < uuid-16 0x110d (AdvAudio) uint 0x100 > >
< aid 0x0311 (unknown)
< uint 0x1
< cont 00
< < ACL data: handle 41 flags 0x02 dlen 24
< L2CAP(d): cid 0x0049 len 20 [psm 1]
< SDP SSA Req: tid 0x2 len 0xf

<           pat uuid-16 0x1200 (PNPInfo)
<           max 65535
<           aid(s) 0x0000 - 0xffff
<           cont 00

< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > ACL data: handle 41 flags 0x02 dlen 14
< L2CAP(d): cid 0x0040 len 10 [psm 1]
< SDP SSA Rsp: tid 0x2 len 0x5
< count 2
< cont 00
< < ACL data: handle 41 flags 0x02 dlen 12
< L2CAP(s): Disconn req: dcid 0x0049 scid 0x0040
< < ACL data: handle 41 flags 0x02 dlen 12
< L2CAP(s): Connect req: psm 25 scid 0x0041
< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > HCI Event: Number of Completed Packets (0x13) plen 5
< handle 41 packets 1
< > ACL data: handle 41 flags 0x02 dlen 16
< L2CAP(s): Connect rsp: dcid 0x004a scid 0x0041 result 1 status 2
- ---

Quoted 1 line
    L2CAP(s): Connect rsp: dcid 0x004d scid 0x0040 result 1 status 2

110,111d26
< > ACL data: handle 41 flags 0x02 dlen 12
< L2CAP(s): Disconn rsp: dcid 0x0049 scid 0x0040
120c35
< L2CAP(s): Connect rsp: dcid 0x004a scid 0x0041 result 0 status 0
- ---

Quoted 1 line
    L2CAP(s): Connect rsp: dcid 0x004d scid 0x0040 result 0 status 0

123c38
< L2CAP(s): Config req: dcid 0x004a flags 0x00 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config req: dcid 0x004d flags 0x00 clen 0

125c40
< L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
- ---

Quoted 1 line
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4

128c43
< L2CAP(s): Config rsp: scid 0x004a flags 0x00 result 0 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config rsp: scid 0x004d flags 0x00 result 0 clen 0

135c50
< L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0

137,138c52,53
< < ACL data: handle 41 flags 0x02 dlen 6
< L2CAP(d): cid 0x004a len 2 [psm 25]
- ---

Quoted 2 lines

< ACL data: handle 41 flags 0x02 dlen 7

    L2CAP(d): cid 0x004d len 3 [psm 25]

139a55

Quoted 1 line

0000: 00 .

143c59
< L2CAP(d): cid 0x0041 len 4 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x0040 len 4 [psm 25]

147c63
< L2CAP(d): cid 0x004a len 3 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x004d len 3 [psm 25]

153c69
< L2CAP(d): cid 0x0041 len 12 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x0040 len 12 [psm 25]

164c80
< L2CAP(d): cid 0x004a len 14 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x004d len 14 [psm 25]

178c94
< L2CAP(d): cid 0x0041 len 2 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x0040 len 2 [psm 25]

181c97
< L2CAP(d): cid 0x004a len 3 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x004d len 3 [psm 25]

187c103
< L2CAP(d): cid 0x0041 len 2 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x0040 len 2 [psm 25]

190c106
< L2CAP(s): Connect req: psm 25 scid 0x0040
- ---

Quoted 1 line
    L2CAP(s): Connect req: psm 25 scid 0x0041

194c110
< L2CAP(s): Connect rsp: dcid 0x004b scid 0x0040 result 1 status 2
- ---

Quoted 1 line
    L2CAP(s): Connect rsp: dcid 0x004e scid 0x0041 result 1 status 2

197c113
< L2CAP(s): Connect rsp: dcid 0x004b scid 0x0040 result 0 status 0
- ---

Quoted 1 line
    L2CAP(s): Connect rsp: dcid 0x004e scid 0x0041 result 0 status 0

200c116
< L2CAP(s): Config req: dcid 0x004b flags 0x00 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config req: dcid 0x004e flags 0x00 clen 0

202c118
< L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
- ---

Quoted 1 line
    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4

205c121
< L2CAP(s): Config rsp: scid 0x004b flags 0x00 result 0 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config rsp: scid 0x004e flags 0x00 result 0 clen 0

212c128
< L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
- ---

Quoted 1 line
    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0

215c131
< L2CAP(d): cid 0x004a len 3 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x004d len 3 [psm 25]

221c137
< L2CAP(d): cid 0x0041 len 2 [psm 25]
- ---

Quoted 1 line
    L2CAP(d): cid 0x0040 len 2 [psm 25]

223,417d138
< < ACL data: handle 41 flags 0x02 dlen 192
< < ACL data: handle 41 flags 0x01 dlen 192
< < ACL data: handle 41 flags 0x01 dlen 192
< < ACL data: handle 41 flags 0x01 dlen 192
< < ACL data: handle 41 flags 0x01 dlen 85
< L2CAP(d): cid 0x004b len 849 [psm 25]
< AVDTP(m): ver 2 cc 0 pt 1 seqn 1 time 0 ssrc 1

Quoted 15 lines · Brad Midgley

Niv

Quoted 3 lines

I am SO glad you made a alsa plugin for the headphones.
I tried it , I hear that the headphones do pick it up , but no sound goes throu

The plugin is a work in progress. I got stuck in getting it to do the right thing.

Can you see from the hcidump where the plugin differs from a successful stream via a2play?

Brad

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEAO9kkwazfG0MmCYRAkaFAKCRBRtS/8GKhrApN3oPF553pwIg6gCfWlHg W8JTcghmy/4ZeppyNj+0KKs=
=w3LV
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Niv

Quoted 9 lines

I am attaching the whole diff between the mpg123 pipe to a2play that works and the dump from xmms that doesnt.
also attaching the xmms output (23M open)

11c11
< L2CAP(s): Connect req: psm 1 scid 0x0040
---

Quoted 1 line
   L2CAP(s): Connect req: psm 25 scid 0x0040

I haven't been able to dig in but something looks wrong already... isn't the correct code going to connect on psm 25 first for the commands and then on the detected psm (usually 1) later for the stream? Yet from what you've sent it looks like the working version connects to psm 1 first?

If I read your diff wrong, then maybe it's just that the plugin incorrectly tries to go right to streaming without setting it up properly using the l2cap connection on psm 25.

Brad

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#5 lore raw

Hope this help:
Starting tommorow I will have better response time :-)

$ cat alsa.pcm.headphones.dump.txt
HCI sniffer - Bluetooth packet analyzer ver 1.29
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:02:72:E1:03:6A ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Create Connection (0x01|0x0005) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 41 bdaddr 00:02:72:E1:03:6A type ACL encrypt 0x00
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 25 scid 0x0040

< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

    Write Link Policy Settings (0x02|0x000d) ncmd 1
    status 0x00 handle 41
Quoted 1 line

HCI Event: Page Scan Repetition Mode Change (0x20) plen 7

    bdaddr 00:02:72:E1:03:6A mode 1
Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 5

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0054 scid 0x0040 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:02:72:E1:03:6A
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:02:72:E1:03:6A key 8AEFE6DC3BBFC6D986CAE5B978805227
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:02:72:E1:03:6A
Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0054 scid 0x0040 result 0 status 0
      Connection successful
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0054 flags 0x00 clen 0
Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
      MTU 895
< ACL data: handle 41 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0054 flags 0x00 result 0 clen 0
      Success
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success

< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0054 len 3 [psm 25]
AVDTP(s): Discover cmd: transaction 0
0000: 00 .

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 8

L2CAP(d): cid 0x0040 len 4 [psm 25]
AVDTP(s): Discover rsp: transaction 0
ACP SEID 1 - Audio Sink
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0054 len 3 [psm 25]
AVDTP(s): Capabilities cmd: transaction 1
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(d): cid 0x0040 len 12 [psm 25]
AVDTP(s): Capabilities rsp: transaction 1
Media Transport
Media Codec - SBC
16kHz 32kHz 44.1kHz 48kHz
Mono DualChannel Stereo JointStereo
4 8 12 16 Blocks
4 8 Subbands
SNR Loudness
Bitpool Range 2-32
< ACL data: handle 41 flags 0x02 dlen 18
L2CAP(d): cid 0x0054 len 14 [psm 25]
AVDTP(s): Set config cmd: transaction 2
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
Stereo
16 Blocks
8 Subbands
SNR
Bitpool Range 2-32

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Set config rsp: transaction 2
< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0054 len 3 [psm 25]
AVDTP(s): Open cmd: transaction 3
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Open rsp: transaction 3
< ACL data: handle 41 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 25 scid 0x0041
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0055 scid 0x0041 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0055 scid 0x0041 result 0 status 0
      Connection successful
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0055 flags 0x00 clen 0
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
      MTU 895
< ACL data: handle 41 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0055 flags 0x00 result 0 clen 0
      Success
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
      Success

< ACL data: handle 41 flags 0x02 dlen 7
L2CAP(d): cid 0x0054 len 3 [psm 25]
AVDTP(s): Start cmd: transaction 4
ACP SEID 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 6

L2CAP(d): cid 0x0040 len 2 [psm 25]
AVDTP(s): Start rsp: transaction 4

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:02:72:E1:03:6A role 0x01
    Role: Slave
Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 5

Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 23 scid 0x0056

< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0056 result 2 status 0
Connection refused - PSM not supported

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 41 mode 0x02 interval 200
    Mode: Sniff
< ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0055 scid 0x0041
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 41 packets 1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 1

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 41 mode 0x00 interval 0
    Mode: Active
Quoted 1 line

ACL data: handle 41 flags 0x02 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0055 scid 0x0041
Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 41 slots 5

Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 41 mode 0x02 interval 200
    Mode: Sniff
Quoted 17 lines · Brad Midgley

Niv

Quoted 9 lines

I am attaching the whole diff between the mpg123 pipe to a2play that works and the dump from xmms that doesnt.
also attaching the xmms output (23M open)

11c11
< L2CAP(s): Connect req: psm 1 scid 0x0040
---

Quoted 1 line
   L2CAP(s): Connect req: psm 25 scid 0x0040

I haven't been able to dig in but something looks wrong already... isn't the correct code going to connect on psm 25 first for the commands and then on the detected psm (usually 1) later for the stream? Yet from what you've sent it looks like the working version connects to psm 1 first?

Quoted 5 lines

If I read your diff wrong, then maybe it's just that the plugin incorrectly tries to go right to streaming without setting it up properly using the l2cap connection on psm 25.

Brad

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users