Return-Path: From: Bruna Moreira To: linux-bluetooth@vger.kernel.org Cc: Anderson Lizardo Subject: [RFC BlueZ 09/33] mgmt-api: Broadcaster/Observer management API Date: Mon, 27 Aug 2012 13:03:01 -0400 Message-Id: <1346087005-24693-10-git-send-email-bruna.moreira@openbossa.org> In-Reply-To: <1346087005-24693-1-git-send-email-bruna.moreira@openbossa.org> References: <1346087005-24693-1-git-send-email-bruna.moreira@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Anderson Lizardo Add new management commands for enabling or disabling broadcasting and observation modes, as defined by the Observer and Broadcaster GAP roles on the Core specification 4.0. The commands can also be used for adding information to EIR on BR/EDR controllers. For a list of all available AD/EIR types, see the Core Specification Supplement (CSS) document. Note that some AD/EIR types are managed internally by the kernel and are not available through these new commands. --- doc/mgmt-api.txt | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index c25f377..48d6355 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -139,6 +139,8 @@ Read Controller Information Command 8 Basic Rate/Enhanced Data Rate 9 High Speed 10 Low Energy + 11 Broadcaster + 12 Observer This command generates a Command Complete event on success or a Command Status event on failure. @@ -845,6 +847,68 @@ Set Device ID Command a Command Status event on failure. +Set Controller Data Command +=========================== + + Command Code: 0x0029 + Controller Index: + Command Parameters: Flags (1 Octet) + Data_Type (1 Octet) + Data_Length (1 Octet) + Data (0-255 Octets) + Return Parameters: + + This command can be used to set AD for LE capable controllers or EIR + for BR/EDR controllers. Multiple AD/EIR types can be configured by + calling this command multiple times. If the controller is BR/EDR/LE + capable (also known as "dual mode"), only the LE advertising is set. + + The Flags parameter is currently unused, but it will contain bitwise + flags to fine tune how and when the data will set on the controller. + + This command generates a Command Complete event on success or + a Command Status event on failure. + + +Unset Controller Data Command +============================= + + Command Code: 0x002A + Controller Index: + Command Parameters: Data_Type (1 Octet) + Return Parameters: + + Remove the AD/EIR information identified by Data_Type, so it will not + be broadcasted anymore. + + This command generates a Command Complete event on success or + a Command Status event on failure. + + +Set Broadcaster Command +======================= + + Command Code: 0x002B + Controller Index: + Command Parameters: Broadcaster (1 Octet) + Return Parameters: Current_Settings (4 Octets) + + This command generates a Command Complete event on success or + a Command Status event on failure. + + +Set Observer Command +==================== + + Command Code: 0x002C + Controller Index: + Command Parameters: Observer (1 Octet) + Return Parameters: Current_Settings (4 Octets) + + This command generates a Command Complete event on success or + a Command Status event on failure. + + Command Complete Event ====================== -- 1.7.9.5