Return-Path: Sender: "Gustavo F. Padovan" Date: Wed, 20 Apr 2011 22:18:52 -0300 From: "Gustavo F. Padovan" To: Claudio Takahasi Cc: BlueZ development , Marcel Holtmann , Johan Hedberg Subject: Re: Read RSSI through Management Interface? Message-ID: <20110421011852.GB9392@joana> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-ID: Hi Claudio, * Claudio Takahasi [2011-04-20 19:20:57 -0300]: > Hi guys, > > we need to read the RSSI of LE and basic rate connections to implement > the Proximity profile. RSSI included in the advertising packets can't > be used for Proximity, it requires an "active" connection. > > Here are some suggestions: > > 1. Add a new command to mgmt interface to add a given address into a > RSSI "monitoring list". > When the connection is established the kernel will automatically > track the RSSI of the connection on regular intervals sending > HCI_Read_RSSI. Read RSSI value can be reported through a new event in > the management interface > > Forgetting SMP, we can keep the hciops compatibility implementing the > same logic inside the hciops plugin. I'm against this in hciops. Let's add the new features only to mgmtopts, so we force people to use it and deprecate hciops. > > 2. Add a new command to mgmt interface to actively read the RSSI of a > given connection/address If the user use this in the wrong way it will waste power. Let's do (1) and not give him this option to actively read RSSI. -- Gustavo F. Padovan http://profusion.mobi