Hello,
I think I need a little help.
When I try to play a mp3 on my headphone:
mpg123 --au - Din_Tei.mp3 | ./a2play 00:0A:94:A0:59:3b
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title : Dragostea Din Tei Artist: Haiducii
Album : Year : 2004
Comment: I&T okay Genre : Blues
Playing MPEG stream from Din_Tei.mp3 ...
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz stereo
subbands = 8 blocks = 16 bitpool = 32
len=2048
Header size=28
Sample Rate:44100
Channels:2
Using address: 00:0A:94:A0:59:3b
Found A2DP Sink
Found A2DP Sink at the destination
Can't connect to 3B:59:A0:94:0A:00. Connection refused(111)
cannot open psm_cmd = 25
I see on the screen of hcidump -X -V this output:
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:0A:94:A0:59:3B ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 42 bdaddr 00:0A:94:A0:59:3B type ACL encrypt 0x00
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 42 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 42
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
0000: 3b 59 a0 94 0a 00 01 ;Y.....
> HCI Event: Max Slots Change (0x1b) plen 3
0000: 2a 00 05 *..
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0048 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> ACL data: handle 42 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 48
< ACL data: handle 42 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0048 flags 0x00 result 0 clen 0
Success
< ACL data: handle 42 flags 0x02 dlen 24
L2CAP(d): cid 0x0048 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 42
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> ACL data: handle 42 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 42 flags 0x02 dlen 26
L2CAP(d): cid 0x0048 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 42
> ACL data: handle 42 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 0x10002
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 42 flags 0x02 dlen 24
L2CAP(d): cid 0x0048 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 42
> ACL data: handle 42 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 42 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0048 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 25 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0048 scid 0x0040
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0049 scid 0x0041 result 1 status 2
Connection pending - Authorization pending
> HCI Event: Link Key Request (0x17) plen 6
bdaddr 00:0A:94:A0:59:3B
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
bdaddr 00:0A:94:A0:59:3B
> HCI Event: Command Complete (0x0e) plen 10
Link Key Request Negative Reply (0x01|0x000c) ncmd 1
status 0x00 bdaddr 00:0A:94:A0:59:3B
> HCI Event: PIN Code Request (0x16) plen 6
bdaddr 00:0A:94:A0:59:3B
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
bdaddr 00:0A:94:A0:59:3B
> HCI Event: Command Complete (0x0e) plen 10
PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
status 0x00 bdaddr 00:0A:94:A0:59:3B
> ACL data: handle 42 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0041 result 3 status 0
Connection refused - security block
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 42 reason 0x13
Reason: Remote User Teminated Connection
< HCI Command: Inquiry (0x01|0x0001) plen 5
lap 0x9e8b33 len 6 num 0
> HCI Event: Command Status (0x0f) plen 4
Inquiry (0x01|0x0001) status 0x00 ncmd 1
> HCI Event: Inquiry Complete (0x01) plen 1
status 0x00
When I reed this output I think the first steps are Ok but near the end
I get a "Link Key Request Negative Reply" and later a "Pin Code Request
Negative Reply".
What is wron with my configuration? Where I can start to search?
Johannes
Ps you need more / other informations?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Am Freitag, den 30.06.2006, 21:27 +0200 schrieb Johannes Kapune:
> Am Freitag, den 30.06.2006, 13:08 -0600 schrieb Brad Midgley:
> > Johannes
> >
> > > you think something like this?:
> > > mpg123 --p - Din_Tei.mp3 | ./a2play 00:0A:94:A0:59:3b
> >
> > try:
> > mpg123 - Din_Tei.mp3 | ./a2play -p 00:0A:94:A0:59:3b
> >
> I tred this but then nothing happens, no sound and no data in the
> hcidump -X -V window
>
> > a2play used to lock up my itech clip s set but I thought I had fixed the
> > problem. I thought a2play was sending more stream data after it had
> > signaled the set to close the stream.
> >
> > anyway, the ordering might be better using -p but if not you could try
> > disabling the stream close by changing "#if 1" to "#if 0" in the latest
> > version from cvs (you might have to give it an hour for anon cvs to
> > catch up)
> >
I'm sorry but -
I tried out updating the cvs and I get a new a2play. The differenz in
behavier is now I dont need to set the headphone in pairing mode but at
the end of the first mp3 there is no additinal mp3 possible. Push the
button at the headphone I can see in the hcidump -X -V window.
Johannes
PS the headset is shown as "btst-9300"
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Am Freitag, den 30.06.2006, 13:08 -0600 schrieb Brad Midgley:
> Johannes
>
> > you think something like this?:
> > mpg123 --p - Din_Tei.mp3 | ./a2play 00:0A:94:A0:59:3b
>
> try:
> mpg123 - Din_Tei.mp3 | ./a2play -p 00:0A:94:A0:59:3b
>
I tred this but then nothing happens, no sound and no data in the
hcidump -X -V window
> a2play used to lock up my itech clip s set but I thought I had fixed the
> problem. I thought a2play was sending more stream data after it had
> signaled the set to close the stream.
>
> anyway, the ordering might be better using -p but if not you could try
> disabling the stream close by changing "#if 1" to "#if 0" in the latest
> version from cvs (you might have to give it an hour for anon cvs to
> catch up)
>
> Brad
Johannes
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Johannes
> you think something like this?:
> mpg123 --p - Din_Tei.mp3 | ./a2play 00:0A:94:A0:59:3b
try:
mpg123 - Din_Tei.mp3 | ./a2play -p 00:0A:94:A0:59:3b
a2play used to lock up my itech clip s set but I thought I had fixed the
problem. I thought a2play was sending more stream data after it had
signaled the set to close the stream.
anyway, the ordering might be better using -p but if not you could try
disabling the stream close by changing "#if 1" to "#if 0" in the latest
version from cvs (you might have to give it an hour for anon cvs to
catch up)
Brad
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Am Freitag, den 30.06.2006, 10:14 -0600 schrieb Brad Midgley:
> Johannes
>
> > after playing one piece of mp3 the headphone stays in a status in which
> > it doesn't want to play another mp3. I only can switch the headphone off
>
> which headset is this?
This is "HAMA BSH-150"
>
> are you using a2play from cvs? what does it do when using the -p option?
>
yes I do.
you think something like this?:
mpg123 --p - Din_Tei.mp3 | ./a2play 00:0A:94:A0:59:3b
that doesn't work
> > Normally when the headphone is idle or working there is a LED blinking,
> > but at the end of one mp3 it is always off or on.
> >
> > In my kde-kontrol-window for paired devices it is not listed also not
> > when the mp3 is playing. At the end of the mp3 I get this in the hcidump
> > -X -V window:
>
> What is a2play printing out? Is it trying to close the stream?
I think so:
...
Sent stream start
Got start stream confirm
[3:31] Decoding of Din_Tei.mp3 finished.
ending stream
Sent 9120 packets
Sent stream-close
Got close stream confirm
closing stream
closing control connection
I get the same behavier when I cancel the mp3 with CTRL-C
Thanks for answer
Johannes
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Johannes
> after playing one piece of mp3 the headphone stays in a status in which
> it doesn't want to play another mp3. I only can switch the headphone off
which headset is this?
are you using a2play from cvs? what does it do when using the -p option?
> Normally when the headphone is idle or working there is a LED blinking,
> but at the end of one mp3 it is always off or on.
>
> In my kde-kontrol-window for paired devices it is not listed also not
> when the mp3 is playing. At the end of the mp3 I get this in the hcidump
> -X -V window:
What is a2play printing out? Is it trying to close the stream?
Brad
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hello,
now I can play mp3 on my headphone
but
after playing one piece of mp3 the headphone stays in a status in which
it doesn't want to play another mp3. I only can switch the headphone off
an on, bring in pairing-mode and then start the next mp3 which then this
is playing.
Normally when the headphone is idle or working there is a LED blinking,
but at the end of one mp3 it is always off or on.
In my kde-kontrol-window for paired devices it is not listed also not
when the mp3 is playing. At the end of the mp3 I get this in the hcidump
-X -V window:
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
< ACL data: handle 42 flags 0x02 dlen 7
L2CAP(d): cid 0x0041 len 3 [psm 25]
AVDTP(s): Close cmd: transaction 5
ACP SEID 1
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0042 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
< ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
< HCI Command: Read RSSI (0x05|0x0005) plen 2
0000: 2a 00 *.
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Read RSSI (0x05|0x0005) ncmd 1
status 0x00
0000: 2a 00 00 *..
< HCI Command: Role Discovery (0x02|0x0009) plen 2
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Role Discovery (0x02|0x0009) ncmd 1
status 0x00 bdaddr 00:04:09:00:00:2A
> ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0040
> ACL data: handle 42 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0041
< HCI Command: Read RSSI (0x05|0x0005) plen 2
0000: 2a 00 *.
> HCI Event: Command Complete (0x0e) plen 7
Read RSSI (0x05|0x0005) ncmd 1
status 0x00
0000: 2a 00 00 *..
< HCI Command: Role Discovery (0x02|0x0009) plen 2
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Role Discovery (0x02|0x0009) ncmd 1
status 0x00 bdaddr 00:04:09:00:00:2A
< HCI Command: Read RSSI (0x05|0x0005) plen 2
0000: 2a 00 *.
> HCI Event: Command Complete (0x0e) plen 7
Read RSSI (0x05|0x0005) ncmd 1
status 0x00
0000: 2a 00 00 *..
< HCI Command: Role Discovery (0x02|0x0009) plen 2
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Role Discovery (0x02|0x0009) ncmd 1
status 0x00 bdaddr 00:04:09:00:00:2A
< HCI Command: Read RSSI (0x05|0x0005) plen 2
0000: 2a 00 *.
> HCI Event: Command Complete (0x0e) plen 7
Read RSSI (0x05|0x0005) ncmd 1
status 0x00
0000: 2a 00 00 *..
< HCI Command: Role Discovery (0x02|0x0009) plen 2
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Role Discovery (0x02|0x0009) ncmd 1
status 0x00 bdaddr 00:04:09:00:00:2A
< HCI Command: Read RSSI (0x05|0x0005) plen 2
0000: 2a 00 *.
> HCI Event: Command Complete (0x0e) plen 7
Read RSSI (0x05|0x0005) ncmd 1
status 0x00
0000: 2a 00 00 *..
< HCI Command: Role Discovery (0x02|0x0009) plen 2
handle 42
> HCI Event: Command Complete (0x0e) plen 7
Role Discovery (0x02|0x0009) ncmd 1
status 0x00 bdaddr 00:04:09:00:00:2A
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 42 reason 0x13
Reason: Remote User Teminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 42 reason 0x16
Reason: Connection Terminated by Local Host
< HCI Command: Inquiry (0x01|0x0001) plen 5
lap 0x9e8b33 len 6 num 0
> HCI Event: Command Status (0x0f) plen 4
Inquiry (0x01|0x0001) status 0x00 ncmd 1
> HCI Event: Inquiry Complete (0x01) plen 1
status 0x00
I hope someone can help.
Johannes
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users