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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html