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

Beacon and scan

I want to use nRF52840 Device to implement non-connectable advertisement and scan on one board. To be more specific, I want to advertise information for some time period with beacons and then shift to scan mode, scanning for some time.

I am currently trying to use the Beacon sample to implement the advertising part. But it is based on s132, what instructions should I follow to implement it on s140 and nRF52840.

Plus, am I looking at the right sample. Thank you very much if anyone could help me

Parents
  • I'm not sure which SDK and SoftDevices you are using, but if you are using SDK 14.0.0 you are probably using S132 v5.0.0 with the nRF52832, and you want to use S140 v5.0.0-2.alpha with the nRF52840.

    The relevant APIs used in ble_app_beacon should be similar (if not identical) between S132 v5.0.0 and S140 5.0.0-2.alpha.

    To port the ble_app_beacon example to the nRF52840/S140 I would recommend starting off with the simplest example for nRF52840/S140, which is the ble_app_uart example.

    Then I would remove the parts you don't need and add the parts from ble_app_uart that you want.

Reply
  • I'm not sure which SDK and SoftDevices you are using, but if you are using SDK 14.0.0 you are probably using S132 v5.0.0 with the nRF52832, and you want to use S140 v5.0.0-2.alpha with the nRF52840.

    The relevant APIs used in ble_app_beacon should be similar (if not identical) between S132 v5.0.0 and S140 5.0.0-2.alpha.

    To port the ble_app_beacon example to the nRF52840/S140 I would recommend starting off with the simplest example for nRF52840/S140, which is the ble_app_uart example.

    Then I would remove the parts you don't need and add the parts from ble_app_uart that you want.

Children
No Data
Related