All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: Re: [RFC] dbusoob: Update API
Date: Thu, 26 Jul 2012 11:24:18 +0200	[thread overview]
Message-ID: <1842864.hGRL10RuKd@uw000953> (raw)
In-Reply-To: <20120725182201.GA4165@echo>

On Wednesday 25 of July 2012 21:22:01 Vinicius Costa Gomes wrote:
> Hi Szymon,

Hi Vinicius,

> 
> On 16:25 Wed 25 Jul, Szymon Janc wrote:
> > ---
> >  doc/oob-api.txt |   57 +++++++++++++++++++++++++++++++++++++++++++++++++------
> >  1 file changed, 51 insertions(+), 6 deletions(-)
> > 
> > diff --git a/doc/oob-api.txt b/doc/oob-api.txt
> > index d838712..8b7b633 100644
> > --- a/doc/oob-api.txt
> > +++ b/doc/oob-api.txt
> > @@ -7,26 +7,71 @@ Service		org.bluez
> >  Interface	org.bluez.OutOfBand
> >  Object path	[variable prefix]/{hci0,hci1,...}
> >  
> > -Methods		array{byte} hash, array{byte} randomizer ReadLocalData()
> > +Methods		dict ReadLocalData()
> >  
> >  			This method reads local OOB data from adapter. Return
> > -			value is pair of arrays 16 bytes each.
> > +			value is a dictionary with following keys:
> >  
> > -			Note: This method will generate and return new local
> > -			OOB data.
> > +			array{byte} Hash:
> > +
> > +					16 bytes hash blob.
> > +
> > +			array{byte} Randomizer:
> > +
> > +					16 bytes randomizer blob.
> 
> I would add a TK field (with 16 bytes) for Low Energy bonding.

I must admit that I totally ignored LE case :) I'll add TK to dictionary,
yet I'm not very familiar with LE, is TK a random number returned by 'LE Rand'
command ? It doesn't seem to have same semantic as 'Read Local OOB Data' command.
Hints?

> 
> > +
> > +			Other data that can be transmitted via OOB mechanism
> > +			can be obtained from org.bluez.Adapter interface.
> > +
> > +			Note: This method will generate and return new hash
> > +			and randomizer every time it is called. Data
> > +			received in previous calls is invalidated and cannot be
> > +			used for pairing.
> >  
> >  			Possible errors: org.bluez.Error.Failed
> >  					 org.bluez.Error.InProgress
> >  
> > -		void AddRemoteData(string address, array{byte} hash,
> > -							array{byte} randomizer)
> > +		void AddRemoteData(string address, dict data)
> 
> I am thinking if only the address is enough for the Low Energy case, i.e.
> should we have an address type here?

In spec there are 'Flags' and 'Security Manager OOB Flags' EIR data types,
is that needed/useful for LE case? Maybe pass them as blobs to bluez so that
dbusoob user doesn't need to parse those bit fields to set address type?

-- 
BR
Szymon Janc


  reply	other threads:[~2012-07-26  9:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 14:25 [RFC] DBus OutOfBand API update Szymon Janc
2012-07-25 14:25 ` [RFC] dbusoob: Update API Szymon Janc
2012-07-25 18:22   ` Vinicius Costa Gomes
2012-07-26  9:24     ` Szymon Janc [this message]
2012-07-26 13:36       ` Vinicius Costa Gomes

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=1842864.hGRL10RuKd@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=vinicius.gomes@openbossa.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.