2008-04-04 16:04:46

by Javi F Gorostiza

[permalink] [raw]
Subject: [Bluez-users] laptop-headset pairing script

Hello,
I would like to know how I can make laptop-headset pairing in rc.3, that
is whithout X-server. How can I introduce the PIN? I have proved the
python script:

import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
bus_id = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(bus_id, '/org/bluez/audio'), 'org.bluez.audio.Manager')

path = audio.CreateDevice('00:0D:3C:35:CC:D3')
#audio.ChangeDefaultDevice(path) #change the device to be used by default
sink = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.audio.Sink')
sink.Connect()

..with no exit.
Any help please?



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-04-06 16:06:46

by Michael Domann

[permalink] [raw]
Subject: Re: [Bluez-users] laptop-headset pairing script

On Sat, 5 Apr 2008 08:28:54 -0600
"Brad Midgley" <[email protected]> wrote:

> Javi
>
> > I would like to know how I can make laptop-headset pairing in rc.3, that
> > is whithout X-server.
>
> you would use the agent api to provide a pin. See bluez-utils/doc/agent-api.txt
>
> --
> Brad
>
can you please provide the script when its finish?

thanks michael

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-05 14:28:54

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-users] laptop-headset pairing script

Javi

> I would like to know how I can make laptop-headset pairing in rc.3, that
> is whithout X-server.

you would use the agent api to provide a pin. See bluez-utils/doc/agent-api.txt

--
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users