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

I would like to know how to see in which channel (37,38,39) the BLE device is advertising its data by using nrf52840?

Hi,

I am using nrf52840 preview DK as a transmitter and try to get rssi by a linux lib. and it works well. and now I want to find advertisement channel number, because the rssi values are different in each channel, please help me and tell in as simple as you can what should I do? I can change my receiver to another things like another nrf52840 preview DK and I just need to know in each scan the value of RSSI and which channel the BLE device is advertising. 

Thanks, 

Parents Reply
  • Hello,

    I highly recommend to buy a new nRF52840-DK, the preview kit (likely containing early hardware revision) is no longer recommended for development. 

    If you open a BLE central example in nRF5 SDKv15 I believe this is simply doing it like this:

            case BLE_GAP_EVT_ADV_REPORT:
            {
                int8_t rssi = p_gap_evt->params.adv_report.rssi;
                uint8_t ch_index = p_gap_evt->params.adv_report.ch_index; 
                
                on_adv_report(&p_gap_evt->params.adv_report);
            } break;

    Best regards,
    Kenneth

     

     

Children
Related