public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Javi F Gorostiza <ingestado@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] laptop-headset pairing script
Date: Fri, 04 Apr 2008 18:04:46 +0200	[thread overview]
Message-ID: <1207325086.23019.67.camel@goya.uc3m.es> (raw)

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

             reply	other threads:[~2008-04-04 16:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 16:04 Javi F Gorostiza [this message]
2008-04-05 14:28 ` [Bluez-users] laptop-headset pairing script Brad Midgley
2008-04-06 16:06   ` Michael Domann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1207325086.23019.67.camel@goya.uc3m.es \
    --to=ingestado@gmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox