From: Jelle de Jong <jelledejong@powercraft.nl>
To: BlueZ development <bluez-devel@lists.sourceforge.net>,
linux-bluetooth@vger.kernel.org
Subject: Re: [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py
Date: Sun, 16 Nov 2008 22:17:33 +0100 [thread overview]
Message-ID: <49208DED.8040303@powercraft.nl> (raw)
In-Reply-To: <loom.20081116T200553-19@post.gmane.org>
Dick wrote:
> Hi Jelle,
>
> Have you tried using hidd --search or hidd --connect?
> If you don't have hidd try the following hidtool.py python script.
>
> Succes er mee!
>
> #!/usr/bin/python
> import sys
> import getopt
> import dbus
>
> bus = dbus.SystemBus()
>
> bmgr = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
> 'org.bluez.Manager')
> bus_id = bmgr.ActivateService('input')
>
> imgr = dbus.Interface(bus.get_object(bus_id, '/org/bluez/input'),
> 'org.bluez.input.Manager')
>
> optlist, args = getopt.getopt(sys.argv[1:], '',
> ['list','connect=','disconnect=','help'])
>
> for opt,val in optlist:
> if opt == '--list':
> for path in imgr.ListDevices():
> idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
> print "%s Name: \"%s\" ID: %04x:%04x Connected: %i" % (path, idev.GetName(),
> idev.GetProductId(), idev.GetVendorId(), idev.IsConnected())
> elif opt == '--connect':
> path = ''
> if (val[0] == '/'):
> path = val
> else:
> path = imgr.CreateDevice(val)
> idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
> idev.Connect()
> elif opt == '--disconnect':
> imgr.RemoveDevice(val)
> else:
> print 'usage: ', sys.argv[0], '[ --list, --connect=[XX:XX:XX:XX:XX,
> /org/bluez/input/device0], --disconnect=/org/bluez/input/device0, --help ]'
> break
>
Thank you Dick for taking the time to response. Two small comments, the
developers list is moving to linux-bluetooth@vger.kernel.org and the
hidd program is being replaced/depreciated.
I will try your python script, where can i find the upstream source
place? is it somewhere in the testing directory of the bluez git?
Thanks in advance,
Jelle
prev parent reply other threads:[~2008-11-16 21:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 14:39 [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py Jelle de Jong
2008-11-16 20:08 ` Dick
2008-11-16 21:17 ` Jelle de Jong [this message]
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=49208DED.8040303@powercraft.nl \
--to=jelledejong@powercraft.nl \
--cc=bluez-devel@lists.sourceforge.net \
--cc=linux-bluetooth@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.