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

Easiest way to make a Long Range Beacon with nRF52840?

I've just got my hands on a nRF52840 DK and need to quickly evaluate it as a bluetooth 5 beacon in long range mode.

I assume I can just modify an example project to make this happen. If that's the case, what's the best example to start from and what sort of modification will I need to do to reconfigure it as a long range beacon?

Parents Reply
  • It should work with those parameters. You may change the output power after you have added the adv. set as well to increase the range further. The output power is 0 dBm by default. 

    eg.,

    err_code = sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &m_adv_params);
    APP_ERROR_CHECK(err_code);
    
    err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, 8); //+8dBm
    APP_ERROR_CHECK(err_code);
      

    Also, I saw from your other post that you wanted to use a 52840 dongle for scanning. We don't have any ready-made examples for it, but you can try the hex file attached below. I based it on the usbd_ble_uart example and changed it so that it will only scan for coded PHY advertisement packets and print the address and RSSI of those packets over the USB interface. 

    beacon_lr_scanner_w_s140.hex

    Expected output when you connect a serial client to the vcom port

      

Children
Related