This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 Rssi callback unavailable value -127dBm

Hi, all

I'm trying to add the RSSI callback function into HIDAdvRemoteDongle to detect remote's rssi value. 

When the two devices are first connected, the rssi callback function works fine. I get available rssi values, range within -127dBm..+20dBm.

However, after central device received notification packets from remote, I turned on rssi function, most of the rssi values were unavailable values, as -129dBm. 

Is there any way to get RSSI value during connection? What's the reason of RSSI unavailable values?

Thanks a lot in advance.

  • Hi,

    Can you please help me in this post ?
    http://e2e.ti.com/support/wireless_connectivity/f/158/p/355391/1247629.aspx#1247629

    I will be really thankful for quick response.

    Thanks

  • If you look into the way RSSI values are being read within the SimpleBLEPeripheral project that would be the best place for you to start.

    Look at peripheral.c @ line 366 and follow from there you can see how it is set up. From my understanding the gapRole state is being checked to confirm there is a connection before the RSSI value is read, so this should work for you.