linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multi-adv patchset assumptions
@ 2015-06-13  4:37 Florian Grandel
  0 siblings, 0 replies; only message in thread
From: Florian Grandel @ 2015-06-13  4:37 UTC (permalink / raw)
  To: Arman Uguray, Marcel Holtmann, Johan Hedberg; +Cc: BlueZ development

Hi guys,

as you can see, I now finished the patch set that provides the full 
multi-adv feature for you to review and try out.

I made a few minor extra assumptions about multi-adv implementation 
details that IMO had not yet been specified in mgmt-api.txt and 
hopefully do not break backwards compatibility, notably:

- I arbitrarily set the default duration to 2 secs. This can of course
   be set to any other value you prefer.

- Switching the LE setting off permanently disables and removes all
   advertising instances - even if the device remains powered.

- Adding an instance while another instance is being advertised will
   wait for the new instance's scheduled time to first advertise that
   instance i.e. it may be that one or more other instances will have
   their turn first (FIFO). If the currently advertised instance is being
   changed, though, then that instance will be updated immediately.

- Removing an advertising instance that is currently being advertised
   will cancel the instance right away and not wait for it to time out.
   If there are other remaining advertising instances, then those will
   go on to advertise instead.

- After service discovery or after "set advertising off", instance
   advertising should re-enter its prior advertising state, i.e.
   advertise the same instance that has been advertised before, if any.

- Whenever an advertising instance is canceled prematurely (set adv,
   service discovery, etc.) only the remaining duration of the current
   advertising slot is "lost". The instance will not be deleted and the
   remaining advertising time (up to the overall timeout) will be
   advertised as soon as instance advertising is being re-enabled.

Most of these assumptions have been documented in mgmt-api.txt, too. You 
can look at the diff there for easier review.

Florian

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-13  4:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-13  4:37 Multi-adv patchset assumptions Florian Grandel

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).