From: Johan Hedberg <johan.hedberg@gmail.com>
To: "Kamil Jońca" <kjonca@o2.pl>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: How to pair device from CLI?
Date: Fri, 28 Dec 2012 10:08:42 +0200 [thread overview]
Message-ID: <20121228080842.GA28814@x220.P-661HNU-F1> (raw)
In-Reply-To: <871uebt47d.fsf@alfa.kjonca>
Hi Kamil,
On Fri, Dec 28, 2012, Kamil Jońca wrote:
> I don't know if this is proper list, but I cannot find any (active)
> bluez users list.
>
> I tried to pair my phone:
>
> --8<---------------cut here---------------start------------->8---
> $hcitool scan
> Scanning ...
> D4:E8:B2:AA:15:FA theta
>
> $bluez-simple-agent hci0 D4:E8:B2:AA:15:FA
> RequestPasskey (/org/bluez/3086/hci0/dev_D4_E8_B2_AA_15_FA)
> Enter passkey: 0000
> Creating device failed: org.bluez.Error.AuthenticationFailed: Authentication Failed
> --8<---------------cut here---------------end--------------->8---
It's quite odd that you should get RequestPasskey. That's something that
should only happen if you're pretending to be a keyboard in which case
you should enter the passkey displayed on the remote device (your phone
in this case).
> What do I should check? (s)trace?
>
> Distribution is pretty fresh debian sid.
The most useful too would be hcidump (bluez-hcidump package). The output
of hcidump -X for the full pairing process would be interesting.
Johan
next prev parent reply other threads:[~2012-12-28 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 0:23 How to pair device from CLI? Kamil Jońca
2012-12-28 8:08 ` Johan Hedberg [this message]
2012-12-28 13:30 ` Kamil Jońca
2012-12-28 13:54 ` Johan Hedberg
2012-12-28 15:25 ` Kamil Jońca
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=20121228080842.GA28814@x220.P-661HNU-F1 \
--to=johan.hedberg@gmail.com \
--cc=kjonca@o2.pl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox