All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Can't play mp3, what I'm missing?
@ 2006-06-12 21:38 Johannes Kapune
  2006-06-12 22:26 ` Zhares
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Kapune @ 2006-06-12 21:38 UTC (permalink / raw)
  To: BlueZ users

Hello,
I try to play mp3 with my headphones but I get some errors.
you give me a little help?

Both versions written in the README won't work.

Johannes



johannes@johannes_01:~/btsco> mpg123 --au - Din_Tei.mp3 | ./a2play
00:0A:94:A0:59:3b
subbands = 8 blocks = 16 bitpool = 32
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
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




johannes@johannes_01:~/btsco> mpg123 --au - Din_Tei.mp3 | sbc/sbcenc -
| ./sbc/rcplay 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
Can't get channel number: Success
johannes@johannes_01:~/btsco>









_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-12 21:38 [Bluez-users] Can't play mp3, what I'm missing? Johannes Kapune
@ 2006-06-12 22:26 ` Zhares
  2006-06-13 17:23   ` Johannes Kapune
  0 siblings, 1 reply; 9+ messages in thread
From: Zhares @ 2006-06-12 22:26 UTC (permalink / raw)
  To: listen, BlueZ users

Johannes Kapune wrote:

> Found A2DP Sink at the destination
> Can't connect to 3B:59:A0:94:0A:00. Connection refused(111)
> cannot open psm_cmd = 25

Hi!

It sound like a pin problem. Try first to connect to you headset with:
# hcitool con 3B:59:A0:94:0A:00

If it is also refused, try to change the security settings in 
/etc/bluetooth/hcid.conf to user or to none and try to reconnect with 
the above command.

-- 

     Zhares


_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-12 22:26 ` Zhares
@ 2006-06-13 17:23   ` Johannes Kapune
  2006-06-13 17:46     ` Brad Midgley
  2006-06-13 19:12     ` Zhares
  0 siblings, 2 replies; 9+ messages in thread
From: Johannes Kapune @ 2006-06-13 17:23 UTC (permalink / raw)
  To: bluez-users

Hi!


Am Montag, den 12.06.2006, 23:26 +0100 schrieb Zhares:
> Johannes Kapune wrote:
> 
> > Found A2DP Sink at the destination
> > Can't connect to 3B:59:A0:94:0A:00. Connection refused(111)
> > cannot open psm_cmd = 25
> 
> Hi!
> 
> It sound like a pin problem. Try first to connect to you headset with:
> # hcitool con 3B:59:A0:94:0A:00
> 
> If it is also refused, try to change the security settings in 
> /etc/bluetooth/hcid.conf to user or to none and try to reconnect with 
> the above command.
> 
No, it's not refused, but I see no connections.

johannes@johannes_01:~/btsco> hcitool con 3B:59:A0:94:0A:00
Connections:
johannes@johannes_01:~/btsco>            

When I have changed the hcid.conf, what to do to use the changes?



my original hcid.conf:

device {
	# auth disable;
	# encrypt disable;
	iscan enable;
	pscan enable;
	name "BlueZ %h (%d)";
	class 0x700100;
	lm accept;
	lp rswitch,hold,sniff,park;
}
options {
	security auto;
	autoinit yes;
	pairing multi;
}



_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-13 17:23   ` Johannes Kapune
@ 2006-06-13 17:46     ` Brad Midgley
  2006-06-14  8:14       ` Johannes Kapune
  2006-06-13 19:12     ` Zhares
  1 sibling, 1 reply; 9+ messages in thread
From: Brad Midgley @ 2006-06-13 17:46 UTC (permalink / raw)
  To: bluez-users

Johannes

> When I have changed the hcid.conf, what to do to use the changes?

restart hcid (sometimes started via bluez-utils startup script)

brad


_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-13 17:23   ` Johannes Kapune
  2006-06-13 17:46     ` Brad Midgley
@ 2006-06-13 19:12     ` Zhares
  2006-06-14 23:08       ` Johannes Kapune
  1 sibling, 1 reply; 9+ messages in thread
From: Zhares @ 2006-06-13 19:12 UTC (permalink / raw)
  To: bluez-users

Hi

Johannes Kapune wrote:

> When I have changed the hcid.conf, what to do to use the changes?


try to replace the line :
    security auto;

by:
    security user;
or:
    security none;

here is an extract of the hcid,conf that was installed with ubuntu:

         # Security Manager mode
         #   none - Security manager disabled
         #   auto - Use local PIN for incoming connections
         #   user - Always ask user for a PIN
         #


-- 

      Zhares


_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-13 17:46     ` Brad Midgley
@ 2006-06-14  8:14       ` Johannes Kapune
  2006-06-14  9:25         ` Peter Stephenson
  2006-06-14 13:34         ` Brad Midgley
  0 siblings, 2 replies; 9+ messages in thread
From: Johannes Kapune @ 2006-06-14  8:14 UTC (permalink / raw)
  To: BlueZ users

Hi all.

I'm not sure but I see in the "connection-display" that my headphone is
master. Is this right or should it be slave?


an for hciconfig -a I read that the dongle is slave?

How do I change this? (I need to?)


# hciconfig -a
hci0:   Type: USB
        BD Address: 00:0A:94:02:7D:A0 ACL MTU: 384:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:1324 acl:9 sco:0 events:91 errors:0
        TX bytes:834 acl:8 sco:0 commands:57 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'BlueZ linux (0)'
        Class: 0x700100
        Service Classes:
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x5dc LMP Ver: 1.1 (0x1) LMP Subver:
0x5dc
        Manufacturer: Cambridge Silicon Radio (10)



I also can't connect a rfcomm socket

# rfcomm -i hci0 connect 0 00:0A:94:A0:59:3B 1
Can't connect RFCOMM socket: Resource temporarily unavailable


What ca I do, step by step, do get more informations to let the
headphone work? I think there is something wrong with my configuration
but I don't know what.


Thanks 


Johannes



_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-14  8:14       ` Johannes Kapune
@ 2006-06-14  9:25         ` Peter Stephenson
  2006-06-14 13:34         ` Brad Midgley
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Stephenson @ 2006-06-14  9:25 UTC (permalink / raw)
  To: bluez-users

Johannes Kapune wrote:
> I'm not sure but I see in the "connection-display" that my headphone is
> master. Is this right or should it be slave?

It doesn't matter; the profiles above don't care.  There's actually a
power advantage to being master.  The difficulty comes if you need to
connect another device to the other end; then you end up in a scatternet
if that end is not the master, and that causes a considerable loss of
efficiency (and possibly worse).

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php


_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-14  8:14       ` Johannes Kapune
  2006-06-14  9:25         ` Peter Stephenson
@ 2006-06-14 13:34         ` Brad Midgley
  1 sibling, 0 replies; 9+ messages in thread
From: Brad Midgley @ 2006-06-14 13:34 UTC (permalink / raw)
  To: bluez-users

Johannes

> I'm not sure but I see in the "connection-display" that my headphone is
> master. Is this right or should it be slave?

fwiw, the itech r35 wouldn't allow a connection from my pc until i
changed hcid's link mode from

lm accept,master;

to

lm accept;

and restarted hcid. It may be because at the time the headset was also
connected to my cellphone... later on it didn't have this requirement.

headsets that can do a2dp and headset/handsfree may prefer or require
being master so they don't have to do a scatternet to communicate to two
devices at the same time.

brad




_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bluez-users] Can't play mp3, what I'm missing?
  2006-06-13 19:12     ` Zhares
@ 2006-06-14 23:08       ` Johannes Kapune
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Kapune @ 2006-06-14 23:08 UTC (permalink / raw)
  To: BlueZ users

Hi,

Am Dienstag, den 13.06.2006, 20:12 +0100 schrieb Zhares:

> try to replace the line :
>     security auto;
> 
> by:
>     security user;
> or:
>     security none;
> 
> here is an extract of the hcid,conf that was installed with ubuntu:
> 
>          # Security Manager mode
>          #   none - Security manager disabled
>          #   auto - Use local PIN for incoming connections
>          #   user - Always ask user for a PIN
>          #

in all cases the same result: it does not work!


> fwiw, the itech r35 wouldn't allow a connection from my pc until i
> changed hcid's link mode from
> 
> lm accept,master;
>
> to
>
> lm accept;
> 
> and restarted hcid. It may be because at the time the headset was also
> connected to my cellphone... later on it didn't have this requirement.
>
> headsets that can do a2dp and headset/handsfree may prefer or require
> being master so they don't have to do a scatternet to communicate to >
> two
> devices at the same time.
>
> brad


This in my configuration file:

device {
	# auth disable;
	# encrypt disable;
	iscan enable;
	pscan enable;
	name "BlueZ %h (%d)";
	class 0x700100;
	lm accept;
	lp rswitch,hold,sniff,park;
}
options {
	# security auto;
	# security none;
	security user;
	autoinit yes;
	pairing multi;
}


Next I tried when the headphone is in pairing-mode:
# hcitool inq
Inquiring ...
        00:0A:94:A0:59:3B       clock offset: 0x3453    class: 0x240404

And the same in headphone-normal-mode:
# hcitool inq
Inquiring ...

Is this correct?


When trying to play a mp3 I get this result:

# mpg123 --au - Din_Tei.mp3 | ./a2play 00:0A:94
:A0:59:3b
subbands = 8 blocks = 16 bitpool = 32
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
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


what's the meaning of psm_cmd = 25


Thanks 
Johannes



_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-06-14 23:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12 21:38 [Bluez-users] Can't play mp3, what I'm missing? Johannes Kapune
2006-06-12 22:26 ` Zhares
2006-06-13 17:23   ` Johannes Kapune
2006-06-13 17:46     ` Brad Midgley
2006-06-14  8:14       ` Johannes Kapune
2006-06-14  9:25         ` Peter Stephenson
2006-06-14 13:34         ` Brad Midgley
2006-06-13 19:12     ` Zhares
2006-06-14 23:08       ` Johannes Kapune

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.