linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Scott James Remnant <keybuk@google.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: "linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	Alex Deymo <deymo@chromium.org>,
	Scott James Remnant <scott@netsplit.com>
Subject: Re: autopair corner cases
Date: Mon, 25 Nov 2013 13:41:17 -0800	[thread overview]
Message-ID: <CAHZ1yCkDAsvFQSsB=nj8hgCCy+NBDXJaRTCq7HLkkPCi2-VMdA@mail.gmail.com> (raw)
In-Reply-To: <1384867785.2027.36.camel@nuvo>

On Tue, Nov 19, 2013 at 5:29 AM, Bastien Nocera <hadess@hadess.net> wrote:

> 6) I have a "TomTom Remote" that shows up as a keyboard and uses "0000"
> as its PIN. The problem is that, as per the code in autopair.c we'll
> first show a random pincode then quickly fall back to using "0000":
>> /* For keyboards rejecting the first random code
>>  * in less than 500ms, try a fixed code. */
>
> How does ChromeOS present this? Does it wait half a second before
> showing the pincode to enter? Because flashing an unusable pincode on
> the screen before succeeding pairing is pretty rubbish in my opinion...
>

This is at least slightly better than OS X, which would display the
random PIN, and then fail pairing - require you to try again, find the
"Advanced" button, set it to one of three or four user-nonsensical
options, and then enter 0000

I'm not saying we can't do better, of course, I'm just saying that we
can do worse :p


A half-second flash of a 6-digit PIN before falling back to a
four-digit one at least works in all of the corner cases - including
this one.

We actually collect logs via metrics of the devices this happens for,
right now we only know of one keyboard that this gets triggered for (a
Motorola Android Keyboard that's no longer on sale) - the TomTom
Remote makes two - I guess nobody's paired a Chromebook with one yet.


I'm way open to ideas for improving the experience here, just as long
as we keep the "works in the common and corner cases" part ;-)

Scott
-- 
Scott James Remnant | Chrome OS Systems | keybuk@google.com | Google

  reply	other threads:[~2013-11-25 21:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 12:31 autopair corner cases Bastien Nocera
2013-11-19 13:29 ` Bastien Nocera
2013-11-25 21:41   ` Scott James Remnant [this message]
2013-11-25 21:37 ` Scott James Remnant

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='CAHZ1yCkDAsvFQSsB=nj8hgCCy+NBDXJaRTCq7HLkkPCi2-VMdA@mail.gmail.com' \
    --to=keybuk@google.com \
    --cc=deymo@chromium.org \
    --cc=hadess@hadess.net \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=scott@netsplit.com \
    /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;
as well as URLs for NNTP newsgroup(s).