All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Higton <davehigton@dsl.pipex.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Arguments to PIN Code Request Response
Date: Mon, 22 Aug 2011 20:49:32 +0100	[thread overview]
Message-ID: <c441e70652.davehigton@dsl.pipex.com> (raw)
In-Reply-To: <CAMhHtTytv2Q4JPE85T-zqgbrqpq+9XHRbgYtQWADeoip9yCP5A@mail.gmail.com>

In message
<CAMhHtTytv2Q4JPE85T-zqgbrqpq+9XHRbgYtQWADeoip9yCP5A@mail.gmail.com>
          Ash K <ashoksarf@gmail.com> wrote:

> Hi Dave,
> 
> If you see specification the PIN_Code parameter for
> PIN_Code_request_reply command, it says
> 
> Value
> ----
> 0xXXXXXXXXXX
> XXXXXXXXXXX
> XXXXXXXXXXX
>  Parameter Description
> ----
> PIN code for the device that is to be connected. The Host should
> ensure that strong PIN Codes are used. PIN Codes can be up to a
> maximum of 128 bits. Note: The PIN_Code Parameter is a string
> parameter. Endianess does therefore not apply to the PIN_Code
> Parameter. The first octet of the PIN code should be transmitted first.
> Which means, even if your PIN code of 4 byte length you have to send
> 16 byte length of PIN code to controller. And controller uses initial
> bytes from the 16byte PIN code, the length of the PIN code is defined
> by length parameter.
> What you are looking at is correct, after 4 bytes of PIN code, you
> have some junk/host selected data which is of no interest to
> controller.

Many thanks for your explanation, Ash.

Dave

  reply	other threads:[~2011-08-22 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 21:25 Arguments to PIN Code Request Response Dave Higton
     [not found] ` <CAMhHtTy7vStrSEZsj6Gcy_VO-JfL4tuYZ=TJWtQ4TxqMMGQpTQ@mail.gmail.com>
2011-08-22 16:56   ` Ash K
2011-08-22 19:49     ` Dave Higton [this message]
2011-08-22 20:02       ` Luiz Augusto von Dentz

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=c441e70652.davehigton@dsl.pipex.com \
    --to=davehigton@dsl.pipex.com \
    --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.