This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Read RSSI value

Hello,

I'm using 2 nRF58840 dev kit with SDK 14.2.0. I'm trying to read the RSSI value of the second board from the first board using LE Coded PHY in both modules.

I started with the "ATT_MTU Throughput" example which worked correctly when choosing the LE coded PHY.

I changed the "DEVICE_NAME" so that no connection will be established. In the BLE_GAP_EVT_ADV_REPORT event, I put this below line to display the RSSI value

if ( p_gap_evt->params.adv_report.scan_rsp )
       NRF_LOG_INFO("rssi =%d dBm",p_gap_evt->params.rssi_changed.rssi);

When running this code no BLE_GAP_EVT_ADV_REPORT event corresponds to the scan_rsp. also no BLE_GATTS_EVT_TIMEOUT events aswell.

My questions are :

  • any thoughts of what might be wrong in my configuration ?

  • When executing sd_ble_gap_scan_start(), the BLE_GAP_EVT_ADV_REPORT will be set each time a device is discovered or it after 'scan window' time ?

-When using only the LE coded PHY, the nRF module will only see modules advertising on the same physical layer ?

  • sd_ble_gap_rssi_start() function require a connection, is there another function that scans for the RSSI of visible devices ?

Any helps would be very appreciated

Thank You Chaabane

Parents
  • Hi Martin, Thank you for the feedback.

    Q1: without scan_rsp checking I get RSSI values : 0, 2 and 6. They don't look like real RSSI in dBm ?. That's why I put this condition for testing purposes. so the real question is why I'm receiving these values of RSSI and also is it normal that the RSSI si declared as signed char ?

    Q2 : Ok, that's what I thought.

    Q3: When using my phone (doesn't have bleutooth 5) with nRF connect App I am able to see both modules. I verified that the PHY used in both modules is LE coded by using 'config print' command in PuTTY. Does that make sense ?

    Q4: OK.

    Thank you. Chaabane

Reply
  • Hi Martin, Thank you for the feedback.

    Q1: without scan_rsp checking I get RSSI values : 0, 2 and 6. They don't look like real RSSI in dBm ?. That's why I put this condition for testing purposes. so the real question is why I'm receiving these values of RSSI and also is it normal that the RSSI si declared as signed char ?

    Q2 : Ok, that's what I thought.

    Q3: When using my phone (doesn't have bleutooth 5) with nRF connect App I am able to see both modules. I verified that the PHY used in both modules is LE coded by using 'config print' command in PuTTY. Does that make sense ?

    Q4: OK.

    Thank you. Chaabane

Children
Related