From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] dbusoob: Update API
Date: Wed, 25 Jul 2012 15:22:01 -0300 [thread overview]
Message-ID: <20120725182201.GA4165@echo> (raw)
In-Reply-To: <1343226308-443-2-git-send-email-szymon.janc@tieto.com>
Hi Szymon,
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.
> +
> + 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?
>
> This method adds new Out Of Band data for
> specified address. If data for specified address
> already exists it will be overwritten with new one.
>
> + All data is optional.
> +
> + On success DeviceFound signal will be emitted.
> +
> + possible keys:
> +
> + array{byte} Hash:
> +
> + 16 bytes hash blob, it is used as is
> + so the size and byte order must match.
> +
> + array{byte} Randomizer:
> +
> + 16 bytes randomizer blob, it is used as
> + is so the size and byte order must
> + match. If Randomizer is provided Hash
> + also needs to be provided.
Same here.
Apart these minor comments, the API looks good.
> +
> + uint32 Class:
> +
> + The Bluetooth class of device of the
> + remote device.
> +
> + string Name:
> +
> + Remote device name.
> +
> + array{string} UUIDs
> +
> + List of 128-bit UUIDs that represents
> + the available local services.
> +
> Possible errors: org.bluez.Error.Failed
> org.bluez.Error.InvalidArguments
> + org.bluez.Error.AlreadyPaired
>
> void RemoveRemoteData(string address)
>
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
next prev parent reply other threads:[~2012-07-25 18:22 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 [this message]
2012-07-26 9:24 ` Szymon Janc
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=20120725182201.GA4165@echo \
--to=vinicius.gomes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=szymon.janc@tieto.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).