Return-Path: From: John Frankish To: "linux-bluetooth@vger.kernel.org" Date: Wed, 17 Jun 2009 16:15:42 +0200 Subject: RE: Passkey-Agent for bluez 4.xx Message-ID: <6AC5A55546F64545AE996F8200E3AC4E06A02356@NL0105EXC01V01.eur.slb.com> References: <20090513154809.GK6984@titan.makhutov-it.de> <6AC5A55546F64545AE996F8200E3AC4E06A01AA4@NL0105EXC01V01.eur.slb.com> <20090616192137.GB10684@titan.makhutov-it.de> <6AC5A55546F64545AE996F8200E3AC4E06A01D43@NL0105EXC01V01.eur.slb.com> <20090617071245.GA9177@jh-x301> In-Reply-To: <20090617071245.GA9177@jh-x301> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: -----Original Message----- From: Johan Hedberg [mailto:johan.hedberg@gmail.com] Sent: 17 June, 2009 11:13 To: John Frankish Cc: linux-bluetooth@vger.kernel.org Subject: Re: Passkey-Agent for bluez 4.xx Hi, On Wed, Jun 17, 2009, John Frankish wrote: > You should issue the pairing from your mobile phone. I don't know how to > start pairing from the console. The very same script you're discussing here (both the modified with the '5555' and the unmodified version) acts as an passive acceptor for pairing when you run it without arguments and as an initiator for pairing when you give it two arguments. So something like ./simple-agent hci0 should initiate a pairing from the command line to the remote device. This has btw been discussed a few times on the mailing lists and you'd probably also have found the answer by googling "bluez simple-agent" or something similar. Johan ---- Thanks - ./simple-agent hci0 does indeed work and the terminal window feedback (as opposed to bluez-gnome) also enabled me to find that the reason I could not pair using the more recent /etc/dbus-1/system.d/bluetooth.conf was that you need to be root to do so, which wasn't the case circa bluez-4.17 As for google etc, believe me I passed several hours trying to find enlightenment on this subject Now to see if I can get a bt headset working with bluez-4.41...