* [Bluez-users] unique bus name
@ 2008-01-30 22:20 Russell A. Bell
2008-01-30 23:15 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Russell A. Bell @ 2008-01-30 22:20 UTC (permalink / raw)
To: bluez-users
Quoth the 'AudioDevices' wiki:
'The ":X.Y" in the following examples is the unique bus name
of the audio service. You get it in the reply to the ActivateService
method call:
$dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService string:audio'
When I make this call I get three numbers back, for example:
method return sender=:1.0 -> dest=:1.1
string ":1.2"
which is the 'unique bus name of the audio service'? I think 1.0 is
the source (i.e., the bluetooth transceiver); the destination would
seem to be :1.1; what is :1.2 ?
When I try to use either of them to CreateHeadset I get:
Error org.freedesktop.DBus.Error.ServiceUnknown: The name :1.x was not provided by any .service files
for 1.1 or 1.2
/var/log/debug contains:
Jan 30 13:14:29 randytool hcid[8110]: Child PID 8115 got the unique bus name :1.2
Jan 30 13:14:29 randytool hcid[8110]: name_listener_add(:1.2)
Jan 30 13:14:29 randytool hcid[8110]: /org/bluez: org.bluez.Database.AddServiceRecord()
Jan 30 13:14:29 randytool hcid[8110]: Service owner exited: :1.2
Jan 30 13:14:29 randytool hcid[8110]: Audio service (audio) exited with status 1
Does this indicate that the service record was created then
deleted immediately?
russell bell
-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] unique bus name
2008-01-30 22:20 [Bluez-users] unique bus name Russell A. Bell
@ 2008-01-30 23:15 ` Johan Hedberg
0 siblings, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2008-01-30 23:15 UTC (permalink / raw)
To: BlueZ users
Hi,
On Jan 31, 2008, at 0:20, Russell A. Bell wrote:
> Quoth the 'AudioDevices' wiki:
>
> 'The ":X.Y" in the following examples is the unique bus name
> of the audio service. You get it in the reply to the ActivateService
> method call:
> $dbus-send --system --print-reply --dest=org.bluez /org/bluez
> org.bluez.Manager.ActivateService string:audio'
>
> When I make this call I get three numbers back, for example:
>
> method return sender=:1.0 -> dest=:1.1
> string ":1.2"
>
> which is the 'unique bus name of the audio service'? I think 1.0 is
> the source (i.e., the bluetooth transceiver); the destination would
> seem to be :1.1; what is :1.2 ?
:1.0 is the sender of the method return to the ActivateService method
call, i.e. hcid. :1.1 is the destination of the method method return,
i.e. dbus-send. :1.2 is the value returned as the single parameter of
the method return, i.e. the unique name of the audio service.
>
> When I try to use either of them to CreateHeadset I get:
>
> Error org.freedesktop.DBus.Error.ServiceUnknown: The name :1.x was
> not provided by any .service files
>
> for 1.1 or 1.2
That's because :1.1, i.e. the first dbus-send process, doesn't exist
any more. And because :1.2, which for a short moment was the audio
service, failed to initialize for some reason and exited.
> /var/log/debug contains:
>
> Jan 30 13:14:29 randytool hcid[8110]: Child PID 8115 got the unique
> bus name :1.2
> Jan 30 13:14:29 randytool hcid[8110]: name_listener_add(:1.2)
> Jan 30 13:14:29 randytool hcid[8110]: /org/bluez:
> org.bluez.Database.AddServiceRecord()
> Jan 30 13:14:29 randytool hcid[8110]: Service owner exited: :1.2
> Jan 30 13:14:29 randytool hcid[8110]: Audio service (audio) exited
> with status 1
>
>
> Does this indicate that the service record was created then
> deleted immediately?
It seems the audio service is failing to start for some reason. Could
you try running it manually as root with "/usr/lib/bluetooth/
bluetoothd-service-audio -s" as see what messages you get? You'll need
to rename or remove the /etc/bluetooth/audio.service file before that
so hcid doesn't complain about duplicate services.
Johan
-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] unique bus name
@ 2008-01-31 20:28 Russell A. Bell
2008-01-31 20:48 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Russell A. Bell @ 2008-01-31 20:28 UTC (permalink / raw)
To: bluez-users
'Could you try running it manually as root with
"/usr/lib/bluetooth/ bluetoothd-service-audio -s" as see what messages
you get?'
/etc/bluetooth# /usr/local/lib/bluetooth/bluetoothd-service-audio -s
audio[5746]: Bluetooth Audio daemon
audio[5746]: Config options: DisableHFP=true, SCORouting=PCM, SourceCount=2
audio[5746]: Unix socket created: 5
audio[5746]: Adding service record failed: Connection refused
audio[5746]: Unable to register HS AG service record
audio[5746]: Unregistered manager path
audio[5746]: Audio init failed!
This causes nothing to show up in hcidump, so it isn't even
getting to the Bluetooth transceiver.
Everything I try, when it gets through to the target headset,
times out. 'Pin Code Request' returns 'Error: LMP Response Timeout'
Is this more likely the headset or the transceiver?
russell bell
-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] unique bus name
2008-01-31 20:28 Russell A. Bell
@ 2008-01-31 20:48 ` Johan Hedberg
0 siblings, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2008-01-31 20:48 UTC (permalink / raw)
To: BlueZ users
Hi,
On Jan 31, 2008, at 22:28, Russell A. Bell wrote:
> 'Could you try running it manually as root with
> "/usr/lib/bluetooth/ bluetoothd-service-audio -s" as see what messages
> you get?'
>
> /etc/bluetooth# /usr/local/lib/bluetooth/bluetoothd-service-audio -s
> audio[5746]: Bluetooth Audio daemon
> audio[5746]: Config options: DisableHFP=true, SCORouting=PCM,
> SourceCount=2
> audio[5746]: Unix socket created: 5
> audio[5746]: Adding service record failed: Connection refused
> audio[5746]: Unable to register HS AG service record
> audio[5746]: Unregistered manager path
> audio[5746]: Audio init failed!
I think that error could be caused by you not having a local SDP
server running. You should either have sdpd running or have started
hcid with the -s switch (the preferred way).
Johan
-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-users] unique bus name
@ 2008-02-01 21:07 Russell A. Bell
0 siblings, 0 replies; 5+ messages in thread
From: Russell A. Bell @ 2008-02-01 21:07 UTC (permalink / raw)
To: bluez-users
'I think that error could be caused by you not having a local
SDP server running. You should either have sdpd running or have
started hcid with the -s switch (the preferred way).'
Running 'bluetoothd-service-audio -s' with an sdpd server
loaded returns:
audio[9417]: Bluetooth Audio daemon
audio[9417]: Config options: DisableHFP=true, SCORouting=PCM, SourceCount=2
audio[9417]: Unix socket created: 5
audio[9417]: add_service_record: got record id 0x10000
audio[9417]: add_service_record: got record id 0x10001
audio[9417]: add_service_record: got record id 0x10002
audio[9417]: add_service_record: got record id 0x10003
audio[9417]: Registered manager path:/org/bluez/audio
audio[9417]: Registering service
audio[9417]: Can't register service
hcidump shows some action, but no reference to a specific
device: where does bluetoothd-service-audio look to find devices to
which to connect?
russell bell
-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-01 21:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 22:20 [Bluez-users] unique bus name Russell A. Bell
2008-01-30 23:15 ` Johan Hedberg
-- strict thread matches above, loose matches on Subject: below --
2008-01-31 20:28 Russell A. Bell
2008-01-31 20:48 ` Johan Hedberg
2008-02-01 21:07 Russell A. Bell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox