Re: Read rssi of established connection

2016-07-05 Thread will sanfilippo
A comment regarding RSSI: all frames received within a connection event will have an RSSI measurement. We only count valid CRC frames. The RSSI applies to empty pdu’s as well so the RSSI will get updated as long as the connection is valid. We also dont average the RSSI in any way; the last data

Re: Read rssi of established connection

2016-07-03 Thread Simon Ratner
Perfect, that works. Thanks, Chris! On Sat, Jul 2, 2016 at 7:33 PM, Christopher Collins wrote: > On Sat, Jul 02, 2016 at 10:18:03AM -0700, Simon Ratner wrote: > [ble_hci_util_read_rssi()] > > Correct, the return value is 4, and the out param remains unchanged. > > I have

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 10:18:03AM -0700, Simon Ratner wrote: [ble_hci_util_read_rssi()] > Correct, the return value is 4, and the out param remains unchanged. I have fixed this bug in develop. Thanks again for reporting it. A proper function for querying rssi will get added to the API soon.

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 10:18:03AM -0700, Simon Ratner wrote: > Correct, the return value is 4, and the out param remains unchanged. > > I am testing on nrf51; have tried calling it both directly from the > EVENT_CONNECT callback, as well as some time later, just in case it was > state-related.

Re: Read rssi of established connection

2016-07-02 Thread Simon Ratner
Correct, the return value is 4, and the out param remains unchanged. I am testing on nrf51; have tried calling it both directly from the EVENT_CONNECT callback, as well as some time later, just in case it was state-related. For the record, I am fairly certain it used to work not-too-long ago, so

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 08:31:18AM -0700, Christopher Collins wrote: > * ble_hci_util_read_rssi() should work. 4 (BLE_HS_EMSGSIZE) is an odd > return code to be getting; it indicates that the host thinks the > controller sent back an invalid command complete event in > acknowledgement. Just to

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 03:40:25AM -0700, Simon Ratner wrote: > Hi devs, > > Any plans to expose a way to read last-seen rssi of a connection? > I found ble_hci_util_read_rssi(), but it seems to always return rc=4 for me. > > Cheers, > simon Hi Simon, Two things: * Yes - we will need to add a

Read rssi of established connection

2016-07-02 Thread Simon Ratner
Hi devs, Any plans to expose a way to read last-seen rssi of a connection? I found ble_hci_util_read_rssi(), but it seems to always return rc=4 for me. Cheers, simon