Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1395999467-29192-1-git-send-email-lukasz.rymanowski@tieto.com> <1395999467-29192-2-git-send-email-lukasz.rymanowski@tieto.com> Date: Fri, 28 Mar 2014 12:32:34 +0100 Message-ID: Subject: Re: [RFC v3] mgmt-api: Add support for Read Remote RSSI From: Lukasz Rymanowski To: Anderson Lizardo Cc: BlueZ development Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Anderson, On 28 March 2014 12:27, Anderson Lizardo wrote: > Hi Lukasz, > > On Fri, Mar 28, 2014 at 5:37 AM, Lukasz Rymanowski > wrote: >> +Register Remote RSSI Change Command >> +=================================== >> + >> + Command Code: 0x0031 >> + Controller Index: >> + Command Parameters: Address (6 Octets) >> + Address_Type (1 Octet) >> + Threshold (1 Octet) >> + Return Parameters: Address (6 Octets) >> + Address_Type (1 Octet) >> + >> + This command is used to register on Remote RSSI Change with given >> + threshold. If threshold is exceeded then Remote RSSI Changed event >> + is sent. >> + >> + Threshold shall be greater than 0. >> + >> + Threshold will be remembered during power down/up toggles. >> + >> + This command generates a Command Complete event on success >> + and on failure. >> + >> + Possible errors: Invalid Parameters >> + Invalid Index > > What should happen if you attempt a Register again for the same address? We could use it to update the thershold. > > I wonder also how can you tune the period for the readings (at least a > debugfs entry should be provided for this). E.g. every 1s , every 10s > etc. > Definitely I see here a place debugfs entry for fine tuning of polling timeout. >> +Unregister Remote RSSI Change Command >> +===================================== >> + >> + Command Code: 0x0032 >> + Controller Index: >> + Command Parameters: Address (6 Octets) >> + Address_Type (1 Octet) >> + Return Parametes: Address (6 Octets) >> + Address_Type (1 Octet) >> + >> + This command is used to unregister from Remote RSSI Change event >> + started with Register Remote RSSI Change command. >> + >> + This command generates Command Complete event on success >> + and on failure. >> + >> + Possible errors: Rejected >> + Invalid Parameters >> + Invalid Index > > In which case "Rejected" will be reported? In case there was no registration for such address. > > Best Regards, > -- > Anderson Lizardo > http://www.indt.org/?lang=en > INdT - Manaus - Brazil BR Lukasz