public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-devel] system hangs playing audio on headset
@ 2008-02-06 10:59 pramod gurav
  2008-02-06 12:25 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: pramod gurav @ 2008-02-06 10:59 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1790 bytes --]

Thanks again
I now use these command to stop and start hcid...its working fine...

[root@localhost Pramod]# /etc/init.d/bluetooth start
Starting Bluetooth subsystem: hcid hid2hci.
[root@localhost Pramod]# /etc/init.d/bluetooth stop
Stopping Bluetooth subsystem: hcid.

But after running audio service same error come again and i am not able to connect to headset
via rfcomm which was happening when I was using default set of BT utils in /usr/sbin & /usr/bin

why is it so????

 
Thanks and Best regards 
Pramod

----- Original Message ----
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge..net>
Sent: Wednesday, 6 February, 2008 4:13:34 PM
Subject: Re: [Bluez-devel] system hangs playing audio on headset

Hi 
Parmod,

> 
here 
are 
things 
I 
dif 
this 
time. 
i 
used 
hcid 
from 
3.25 
this 
earlier 
it
> 
was 
default 
one..
> 
i 
Killed 
hcid, 
sdpd
> 
1....[root@localhost 
Pramod]# 
/usr/local/sbin/hcid
> 
-f 
/etc/bluetooth/hcid.conf
> 
2....[root@localhost 
Pramod]# 
/usr/local/sbin/sdpd

don't 
start 
sdpd. 
Use 
hcid 
-s 
which 
includes 
the 
SDP 
server.

Regards

Marcel



-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel 
mailing 
list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel







      Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 2694 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Bluez-devel] system hangs playing audio on headset
@ 2008-02-06 10:45 pramod gurav
  0 siblings, 0 replies; 9+ messages in thread
From: pramod gurav @ 2008-02-06 10:45 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 3237 bytes --]

I edited /etc/bluetooth/audio.service to have
Autostart=false
killed hcid, sdpd and started again....
And I run seperately
[root@localhost Pramod]# /usr/local/lib/bluetooth/bluetoothd-service-audio
audio[13767]: Bluetooth Audio daemon
audio[13767]: Unix socket created: 5
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: key Enable not found
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: key Disable not found
audio[13767]: add_service_record: got record id 0x10000
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: key Disable not found
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[13767]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[13767]: SEP 0x80e3040 registered: type:0 codec:0 seid:1
audio[13767]: add_service_record: got record id 0x10001
audio[13767]: add_service_record: got record id 0x10002
audio[13767]: add_service_record: got record id 0x10003
audio[13767]: Registered manager path:/org/bluez/audio

 When I try connecting to my headset 
[root@localhost ~]# /usr/local/bin/rfcomm connect 0 00:0F:DE:B1:02:42 1
Can't connect RFCOMM socket: Invalid exchange


Thanks and Best regards 
Pramod

----- Original Message ----
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Sent: Wednesday, 6 February, 2008 3:36:18 PM
Subject: Re: [Bluez-devel] system hangs playing audio on headset

Hi 
Pramod,

> 
Thanks 
for 
that 
hint
> 
When 
I 
try 
> 
[root@localhost
> 
Pramod]# 
/usr/local/lib/bluetooth/bluetoothd-service-audio
> 
this 
is 
not 
working....
> 
audio[13117]: 
Bluetooth 
Audio 
daemon
> 
audio[13117]: 
Unix 
socket 
created: 
5
> 
audio[13117]: 
audio.conf: 
/etc/bluetooth/audio.conf: 
key 
Enable 
not
> 
found
> 
audio[13117]: 
audio.conf: 
/etc/bluetooth/audio.conf: 
key 
Disable 
not
> 
found
> 
audio[13117]: 
Adding 
service 
record 
failed: 
Method 
"AddServiceRecord"
> 
with 
signature 
"ay" 
on 
interface 
"org.bluez.Database" 
doesn't 
exist
> 
audio[13117]: 
Unable 
to 
register 
HS 
AG 
service 
record
> 
audio[13117]: 
Unregistered 
manager 
path
> 
audio[13117]: 
Audio 
init 
failed!
> 
> 
I 
saw 
those 
AddServiceRecord 
scripts 
on 
bluez_Audio_HowTO..
> 
How 
to 
work 
them 
out?

make 
sure 
you 
are 
actually 
running 
hcid 
from 
3.25 
and 
not 
some 
distribution 
default.

Regards

Marcel



-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel 
mailing 
list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel







      Chat on a cool, new interface. No download required. Go to http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 4211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Bluez-devel] system hangs playing audio on headset
@ 2008-02-06 10:34 pramod gurav
  2008-02-06 10:43 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: pramod gurav @ 2008-02-06 10:34 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 4267 bytes --]

Thanks again 
here are things I dif this time. i used hcid 
from 
3.25 this earlier it was default one..
i Killed hcid, sdpd
1....[root@localhost Pramod]# /usr/local/sbin/hcid -f /etc/bluetooth/hcid.conf
2....[root@localhost Pramod]# /usr/local/sbin/sdpd
In /var/log/messages i got these....

Feb  6 16:00:54 localhost hcid[13679]: Bluetooth HCI daemon
Feb  6 16:00:54 localhost hcid[13679]: HCI dev 0 registered
Feb  6 16:00:54 localhost hcid[13679]: HCI dev 0 already up
Feb  6 16:00:54 localhost hcid[13679]: Device hci0 has been added
Feb  6 16:00:54 localhost hcid[13679]: Starting security manager 0
Feb  6 16:00:54 localhost hcid[13679]: Device hci0 has been activated
Feb  6 16:00:54 localhost hcid[13679]: Created local server at unix:abstract=/var/run/dbus-n166L1zFtk,guid=5e8ca9470269ae5e1dc9e1530dd0fd00
Feb  6 16:00:55 localhost audio[13682]: Bluetooth Audio daemon
Feb  6 16:00:55 localhost audio[13682]: Unix socket created: 5
Feb  6 16:00:55 localhost input[13683]: Bluetooth Input daemon
Feb  6 16:00:55 localhost input[13683]: Registered input manager path:/org/bluez/input
Feb  6 16:00:55 localhost input[13683]: Failed to listen on control channel
Feb  6 16:00:55 localhost hcid[13679]: Can't connect to SDP daemon:(Connection refused, 111)
Feb  6 16:00:55 localhost hcid[13679]: Failed to register service record
Feb  6 16:00:55 localhost audio[13682]: Adding service record failed: Connection refused
Feb  6 16:00:55 localhost audio[13682]: Unable to register HS AG service record
Feb  6 16:00:55 localhost audio[13682]: Unregistered manager path
Feb  6 16:00:55 localhost audio[13682]: Audio init failed!
Feb  6 16:01:39 localhost audio[13690]: Bluetooth Audio daemon
Feb  6 16:01:39 localhost audio[13690]: Unix socket created: 5
Feb  6 16:01:39 localhost hcid[13679]: Can't connect to SDP daemon:(Connection refused, 111)
Feb  6 16:01:39 localhost hcid[13679]: Failed to register service record
Feb  6 16:01:39 localhost audio[13690]: Adding service record failed: Connection refused
Feb  6 16:01:39 localhost audio[13690]: Unable to register HS AG service record
Feb  6 16:01:39 localhost audio[13690]: Unregistered manager path
Feb  6 16:01:39 localhost audio[13690]: Audio init failed!
What are these failures?
Need i run /usr/local/lib/bluetooth/bluetoothd-service-audio agian..?? 
Thanks and Best regards 
Pramod

----- Original Message ----
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Sent: Wednesday, 6 February, 2008 3:36:18 PM
Subject: Re: [Bluez-devel] system hangs playing audio on headset

Hi 
Pramod,

> 
Thanks 
for 
that 
hint
> 
When 
I 
try 
> 
[root@localhost
> 
Pramod]# 
/usr/local/lib/bluetooth/bluetoothd-service-audio
> 
this 
is 
not 
working....
> 
audio[13117]: 
Bluetooth 
Audio 
daemon
> 
audio[13117]: 
Unix 
socket 
created: 
5
> 
audio[13117]: 
audio.conf: 
/etc/bluetooth/audio.conf: 
key 
Enable 
not
> 
found
> 
audio[13117]: 
audio.conf: 
/etc/bluetooth/audio.conf: 
key 
Disable 
not
> 
found
> 
audio[13117]: 
Adding 
service 
record 
failed: 
Method 
"AddServiceRecord"
> 
with 
signature 
"ay" 
on 
interface 
"org.bluez.Database" 
doesn't 
exist
> 
audio[13117]: 
Unable 
to 
register 
HS 
AG 
service 
record
> 
audio[13117]: 
Unregistered 
manager 
path
> 
audio[13117]: 
Audio 
init 
failed!
> 
> 
I 
saw 
those 
AddServiceRecord 
scripts 
on 
bluez_Audio_HowTO..
> 
How 
to 
work 
them 
out?

make 
sure 
you 
are 
actually 
running 
hcid 
from 
3.25 
and 
not 
some 
distribution 
default.

Regards

Marcel



-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel 
mailing 
list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel







      Chat on a cool, new interface. No download required. Go to http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 5385 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Bluez-devel] system hangs playing audio on headset
@ 2008-02-06  9:51 pramod gurav
  2008-02-06 10:06 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: pramod gurav @ 2008-02-06  9:51 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 2242 bytes --]

Thanks for that hint
When I try 
[root@localhost Pramod]# /usr/local/lib/bluetooth/bluetoothd-service-audio
this is not working....
audio[13117]: Bluetooth Audio daemon
audio[13117]: Unix socket created: 5
audio[13117]: audio.conf: /etc/bluetooth/audio.conf: key Enable not found
audio[13117]: audio.conf: /etc/bluetooth/audio.conf: key Disable not found
audio[13117]: Adding service record failed: Method "AddServiceRecord" with signature "ay" on interface "org.bluez.Database" doesn't exist
audio[13117]: Unable to register HS AG service record
audio[13117]: Unregistered manager path
audio[13117]: Audio init failed!

I saw those AddServiceRecord scripts on bluez_Audio_HowTO..
How to work them out?
 

Thanks and Best regards 
Pramod

----- Original Message ----
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Cc: bluez-users@brisammon.fastmail.fm
Sent: Wednesday, 6 February, 2008 2:53:02 PM
Subject: Re: [Bluez-devel] system hangs playing audio on headset

Hi 
Pramod,

> 
4) 
I 
am 
using 
linux-2.6.22 
kernel, 
Bluez-3.25 
(libs, 
utils), 
also
> 
installed 
PLUGS 
& 
SBC 
from 
svn
>  
  
 
But 
i 
could 
not 
aplly 
SCO 
flow 
control 
patch 
to 
my 
kernel....it
> 
failed..
> 
> 
Need 
I 
give 
more 
info 
to 
know 
whats 
going 
wrong..
> 
Whats 
is 
the 
patch 
for  
SCO 
flow 
control 
for 
2..6.22 
??

try 
using 
the 
Bluetooth 
audio 
service 
(which 
comes 
with 
3.25) 
instead 
of
external 
headsetd. 
See 
wiki.bluez.org 
for 
instructions.

Regards

Marcel



-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel 
mailing 
list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel







      Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[-- Attachment #1.2: Type: text/html, Size: 3157 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Bluez-devel] system hangs playing audio on headset
@ 2008-02-06  4:46 pramod gurav
  2008-02-06  9:23 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: pramod gurav @ 2008-02-06  4:46 UTC (permalink / raw)
  To: bluez-devel, bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 3687 bytes --]

Hi All
I am trying play audio from system on my headset.
When try mplayer
[Pramod@localhost ~]$ mplayer_install/bin/mplayer -ao alsa:device=headset 1.mp3

system hangs with following logs in /var/log/messages

Feb  6 09:52:36 localhost hcid[3559]: Bluetooth HCI daemon
Feb  6 09:52:36 localhost hcid[3559]: Starting security manager 0
Feb  6 09:52:56 localhost sdpd[3567]: Bluetooth SDP daemon
Feb  6 09:53:40 localhost headsetd[3596]: Bluetooth headset daemon version 0.5
Feb  6 09:54:46 localhost hcid[3559]: pin_code_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:54:51 localhost hcid[3559]: link_key_notify (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)Feb  6 09:55:17 localhost headsetd[3596]: Configuration phase ended: target bdaddr is 00:0F:DE:B1:02:42, timeout is 6000 ms
Feb  6 09:55:17 localhost headsetd[3596]: Changing state: Idle-->Paging
Feb  6 09:55:19 localhost hcid[3559]: pin_code_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:55:23 localhost headsetd[3596]: Timeout connecting L2CAP socket to headset, aborting.
Feb  6 09:55:23 localhost headsetd[3596]: Changing state: Paging-->Idle
Feb  6 09:55:28 localhost hcid[3559]: link_key_notify (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)Feb  6 09:55:36 localhost headsetd[3596]: Configuration phase ended: target bdaddr is 00:0F:DE:B1:02:42, timeout is 6000 ms
Feb  6 09:55:36 localhost headsetd[3596]: Changing state: Idle-->Paging
Feb  6 09:55:39 localhost hcid[3559]: link_key_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Paging-->Connecting
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Connecting-->Ready
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Ready-->Opening
Feb  6 09:55:39 localhost headsetd[3596]: SCO channel opened handle=0x0100 mtu=60
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Opening-->Streaming
Feb  6 10:00:05 localhost syslogd 1.4.1: restart.

1) My ~/.asoundrc has 
pcm.headset {
        @args [BDADDR TIMEOUT]

        # The Bluetooth device address for target headset,
        # used for Audio Gateway (PC) initiated connections
        # Please note that this value is ignored when the connection is Headset initiated
        @args.BDADDR {
                type string
                # Enter address of your headset here
                default "00:0F:DE:B1:02:42"    #headset BDADDRESS
        }

        # This value represents how long we will try to reach the headset, until we give up.
        # Value is in milliseconds
        @args.TIMEOUT {
                type integer
                default 6000
        }

        type        sco
        bdaddr      $BDADDR
        timeout     $TIMEOUT
}

ctl.headset {
        type sco
}

2) My /etc/bluetooth/audio.service has.................
[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service
Autostart=true

3)  /etc/bluetooth/hcid.conf  has................
# HCI daemon configuration file.
options {
        autoinit yes;
        security user;
        pairing multi;
#      passkey "BlueZ";
}

4) I am using linux-2.6.22 kernel, Bluez-3.25 (libs, utils), also installed PLUGS & SBC from svn
    But i could not aplly SCO flow control patch to my kernel...it failed..

Need I give more info to know whats going wrong..
Whats is the patch for   SCO flow control for 2.6.22 ??
Someone help me please. 


Thanks and Best regards
 
Pramod





      Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 5424 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

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

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

end of thread, other threads:[~2008-02-06 12:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 10:59 [Bluez-devel] system hangs playing audio on headset pramod gurav
2008-02-06 12:25 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2008-02-06 10:45 pramod gurav
2008-02-06 10:34 pramod gurav
2008-02-06 10:43 ` Marcel Holtmann
2008-02-06  9:51 pramod gurav
2008-02-06 10:06 ` Marcel Holtmann
2008-02-06  4:46 pramod gurav
2008-02-06  9:23 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox