public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] laptop-headset pairing script
@ 2008-04-04 16:04 Javi F Gorostiza
  2008-04-05 14:28 ` Brad Midgley
  0 siblings, 1 reply; 3+ messages in thread
From: Javi F Gorostiza @ 2008-04-04 16:04 UTC (permalink / raw)
  To: bluez-users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2008-04-06 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 16:04 [Bluez-users] laptop-headset pairing script Javi F Gorostiza
2008-04-05 14:28 ` Brad Midgley
2008-04-06 16:06   ` Michael Domann

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