Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC BlueZ 0/3] Fix GATT server issues with BlueZ as LE peripheral
@ 2014-01-28 15:51 Anderson Lizardo
  2014-01-28 15:51 ` [RFC BlueZ 1/3] attrib-server: Remove unnecessary fields from struct gatt_channel Anderson Lizardo
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Anderson Lizardo @ 2014-01-28 15:51 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Hi,

Currently, we do not officially support running BlueZ as LE peripheral. But
there is already enough support from the kernel to support this. For instance,
there is the "Set Advertising" mgmt command to keep LE advertising enabled
after each connection.

The current tracking of connections in BlueZ does not fully work for peripheral
role. These patches are a first attempt to improve the situation. Other fixes
are necessary to have full LE Peripheral support.

In particular, with these patches, notifications for PASP and ANP profiles
(implemented in profiles/alert/*) should work when BlueZ is on the peripheral
role. Other GATT server profiles will need fixing as well.

I'm sending as RFC because I only did minimal testing. I hope that people
having issues with GATT server profiles running on peripheral role can tests
these patches. Otherwise, I'll do more tests later today and send a final
version by tomorrow.

Notes: 
* The first patch is just cleanup, so can be applied as is.
* For testing, make sure to enable advertising on the machine running as
  peripheral (I use btmgmt tool for this).

Best Regards,
Anderson Lizardo

Anderson Lizardo (3):
  attrib-server: Remove unnecessary fields from struct gatt_channel
  core: Fix associating a GAttrib to a device on incoming connections
  alert: Only remove attio callback after ATT request was sent

 profiles/alert/server.c | 18 +++++++++++++++++-
 src/attrib-server.c     | 45 +++++++++++++++++++++++++++++----------------
 src/attrib-server.h     |  1 +
 src/device.c            |  5 +++++
 4 files changed, 52 insertions(+), 17 deletions(-)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [RFC BlueZ 0/3] Fix GATT server issues with BlueZ as LE peripheral
@ 2014-01-29  6:51 Isa Ansharullah
  0 siblings, 0 replies; 6+ messages in thread
From: Isa Ansharullah @ 2014-01-29  6:51 UTC (permalink / raw)
  To: linux-bluetooth

Hi Lizardo,

The patches fixed the issue.

Thank you very much.
Isa

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

end of thread, other threads:[~2014-03-05 20:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 15:51 [RFC BlueZ 0/3] Fix GATT server issues with BlueZ as LE peripheral Anderson Lizardo
2014-01-28 15:51 ` [RFC BlueZ 1/3] attrib-server: Remove unnecessary fields from struct gatt_channel Anderson Lizardo
2014-01-28 15:51 ` [RFC BlueZ 2/3] core: Fix associating a GAttrib to a device on incoming connections Anderson Lizardo
2014-01-28 15:51 ` [RFC BlueZ 3/3] alert: Only remove attio callback after ATT request was sent Anderson Lizardo
2014-03-05 20:40 ` [RFC BlueZ 0/3] Fix GATT server issues with BlueZ as LE peripheral Johan Hedberg
  -- strict thread matches above, loose matches on Subject: below --
2014-01-29  6:51 Isa Ansharullah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox