All of lore.kernel.org
 help / color / mirror / Atom feed
* Current status on BLE development
@ 2011-07-28 12:44 Claudio Takahasi
  2011-08-02 11:49 ` Arun Kumar SINGH
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Takahasi @ 2011-07-28 12:44 UTC (permalink / raw)
  To: BlueZ development

Hi,

It is common to see questions in the ML or in the IRC asking the
status of BLE development and where the get the source code.
Below a short summary of our latest development on Bluetooth Low Energy:

* Discovery procedure over management interface (kernel): patches sent
to the mailing list, waiting maintainer approval

* SM(Security Manager): kernel & userspace
- Just Works key generation method is working and accepted upstream;
- Key Exchange and Storage: a first version of the implementation is
implemented and working, but before being accepted upstream it needs
some changes;
- Passkey Entry: Still not implemented;
- Out of Band: Still not implemented;
- Address Resolution: Planned but still not implemented;
- Command Signing: Still not implemented;

* LE connection improvements: under development

Proximity Monitor
=============
* Userspace
- New D-Bus API(improvement) was proposed and implemented, patches not
upstream[3]

* Kernel
- New RSSI Threshold Monitoring implemented. Required by Proximity
Path Loss. Under internal revision and will be sent to mailing list
after it.

git trees
===============
* For stable LE support on kernel, use Gustavo Padovan's
bluetooth-next tree:
git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6.git
(it doesn't contain the patches for interleaved discovery using
management. Missing SM key distribution(SM phase 3).

* Unstable kernel with Interleaved Discovery, RSSI Threshold monitor,
remaining SM patches, changes in connection parameters based on
Proximity and Thermometer requirements:
http://git.infradead.org/users/vcgomes/linux-2.6.git (branch
proximity-integration)

* BlueZ Userspace
[3] git://git.infradead.org/users/cktakahasi/bluez.git proximity-devel

Regards,
Claudio

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Current status on BLE development
  2011-07-28 12:44 Current status on BLE development Claudio Takahasi
@ 2011-08-02 11:49 ` Arun Kumar SINGH
  2011-08-03 11:54   ` Claudio Takahasi
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Kumar SINGH @ 2011-08-02 11:49 UTC (permalink / raw)
  To: Claudio Takahasi, BlueZ development

S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ub3QgaW1w
bGVtZW50ZWQ7DQo+DQo+KiBMRSBjb25uZWN0aW9uIGltcHJvdmVtZW50czogdW5kZXIgZGV2ZWxv
cG1lbnQNCjxzbmlwIC4uPg0KDQpUaGFua3MgZm9yIHRoZSBkZXRhaWxlZCBzdW1tYXJ5LiBIb3dl
dmVyIEkgd291bGQgYWxzbyBsaWtlIHRvIHVuZGVyc3RhbmQgdGhlIHN0YXR1cyBvZiBtZ210IGlu
dGVyZmFjZSBpbiB0ZXJtcyBvZiBpdHMgY29tcGxldGVuZXNzIGZvciBCUi9FRFIgYW5kIExFIHN1
cHBvcnQuIEkgY2FuIHNlZSBMRSBEaXNjb3ZlcnkgcmVsYXRlZCBwYXRjaGVzIGJlaW5nIHB1c2hl
ZCB1cHN0cmVhbSBmb3IgbWdtdCBpL2YgaG93ZXZlciB3aGF0IGludHJpZ3VlcyBtZSBpcyB3aGV0
aGVyIGl0cyB0b3RhbGx5IHVuYXZvaWRhYmxlIHRvIHVwZ3JhZGUgdG8gbWdtdCBpbnRlcmZhY2Ug
Zm9yIExFL3Byb2ZpbGVzPyANClNpbmNlIGZvciBTTVAga2V5IGV4Y2hhbmdlLCBoY2lvcHMgaXMg
aW5hZGVxdWF0ZSwgSSBhbSB0cnlpbmcgdG8gdW5kZXJzdGFuZCBhcyB0byBob3cgZmFyIGhjaW9w
cyBjYW4gYmUgcmVsaWVkIGluIHRlcm1zIG9mIExFIHByb2ZpbGVzIHdoaWNoIHdvdWxkIG5lZWQg
U01QIGtleSBkaXN0cmlidXRpb24gYW5kIHN0b3JhZ2U/DQogDQoNCg0KVGhhbmtzLA0KQXJ1bg0K

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Current status on BLE development
  2011-08-02 11:49 ` Arun Kumar SINGH
@ 2011-08-03 11:54   ` Claudio Takahasi
  2011-08-17 13:38     ` Claudio Takahasi
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Takahasi @ 2011-08-03 11:54 UTC (permalink / raw)
  To: Arun Kumar SINGH; +Cc: BlueZ development

Hi Arun,

On Tue, Aug 2, 2011 at 8:49 AM, Arun Kumar SINGH
<arunkr.singh@stericsson.com> wrote:
> Hi Claudio,
>
>>It is common to see questions in the ML or in the IRC asking the
>>status of BLE development and where the get the source code.
>>Below a short summary of our latest development on Bluetooth Low Energy:
>>
>>* Discovery procedure over management interface (kernel): patches sent
>>to the mailing list, waiting maintainer approval
>>
>>* SM(Security Manager): kernel & userspace
>>- Just Works key generation method is working and accepted upstream;
>>- Key Exchange and Storage: a first version of the implementation is
>>implemented and working, but before being accepted upstream it needs
>>some changes;
>>- Passkey Entry: Still not implemented;
>>- Out of Band: Still not implemented;
>>- Address Resolution: Planned but still not implemented;
>>- Command Signing: Still not implemented;
>>
>>* LE connection improvements: under development
> <snip ..>
>
> Thanks for the detailed summary. However I would also like to understand the status of mgmt interface in terms of its completeness for BR/EDR and LE support. I can see LE Discovery related patches being pushed upstream for mgmt i/f however what intrigues me is whether its totally unavoidable to upgrade to mgmt interface for LE/profiles?
> Since for SMP key exchange, hciops is inadequate, I am trying to understand as to how far hciops can be relied in terms of LE profiles which would need SMP key distribution and storage?
>

If the LE profile requires SM/encryption it is necessary to use mgmt.
The RSSI threshold monitor is another feature missing for Proximity
Path Loss, it can be implemented in hciops but I am pretty sure that
the maintainers will complain about it.

Currently, it is not possible to open a socket for the SM L2CAP fixed
channel, change the code(moving all logic to the userspace) at this
point is not feasible. Interleaved discovery works on both interfaces,
bonding only using mgmt.

BR,
Claudio.

>
>
> Thanks,
> Arun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Current status on BLE development
  2011-08-03 11:54   ` Claudio Takahasi
@ 2011-08-17 13:38     ` Claudio Takahasi
  0 siblings, 0 replies; 4+ messages in thread
From: Claudio Takahasi @ 2011-08-17 13:38 UTC (permalink / raw)
  To: BlueZ development

Hi,

Here is a new status update of the BLE development. Changes since the
first status report:
1. SM patches refactoring based on the comments of the maintainers in the ML
2. Use the LTK after receiving a LE Security Request: basically for
re-connections
3. initial LE scanning before connections(re-connections) if the entry
is not found in the cache (unstable)

Proximity Link Loss and Find are now working. Tested using real
hardware(key fobs).
Proximity Path Loss needs improvement, is there someone in the BlueZ
ML interested in helping us?
At the moment we are using hard-coded values for RSSI thresholds:
-60(low RSSI threshold) and -75(high RSSI threshold)
We need to improve the logic to define the SignalLevel(good, regular,
weak) properly based on the measured RSSI, Remote TX Power and other
parameter that could influence the results.


* Unstable kernel with Interleaved Discovery, RSSI Threshold monitor,
LE scanning and remaining SM patches
[1] http://git.infradead.org/users/vcgomes/linux-2.6.git (branch
proximity-integration)

* BlueZ Userspace
[2] git://git.infradead.org/users/cktakahasi/bluez.git proximity-devel

Regards,
Claudio

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-17 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28 12:44 Current status on BLE development Claudio Takahasi
2011-08-02 11:49 ` Arun Kumar SINGH
2011-08-03 11:54   ` Claudio Takahasi
2011-08-17 13:38     ` Claudio Takahasi

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.