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

NERF52832 having both beacon transmitter and receiver in a single chip

I want to have a single device that can both transmit and receive beacon packets using nrf52832. 

Project Idea

Need to identify RSSI level of beacons around a device while also advertising itself as-well 

Help required

1) Is it possible to realise the above in a single nrf52832, if not which ic would be better?

2) Any example code/documentation which explains the same

  • Thank you for your quick response. I went through the code but i dont see the scan initiated in main(). where exactly can i find the scan function?

    Also i could not locate ble_app_beacon_c in the sdk is it available in any specific version of SDK?

  • AkshayEnmaz said:
    I went through the code but i dont see the scan initiated in main(). where exactly can i find the scan function?

    It is initialized and started right after advertising init in main():

        advertising_init();
        advertising_start();
        scan_init();
        // Start execution.
        NRF_LOG_INFO("Beacon scanner+advertiser example started.");
        scan_start();


    AkshayEnmaz said:
    Also i could not locate ble_app_beacon_c in the sdk is it available in any specific version of SDK?

    Sorry, I intended to write ble_app_blinky_c.

  • It would have been a very comprehensive SDK if it should include example code for every customer's use-case.

    To save you some work, I have created an example combining the scanning from ble_app_beacon_c and advertising from ble_app_beacon example. It will report any advertising packet received, not just iBeacons. You must do the work to parse the advertising data to get the relevant packets for your use-case.

    ble_app_beacon_scanner_advertiser_SDK16.0.0.zip

    Best regards,
    Jørgen

    Hello,

    I know this topic is old, and doesn't use the same SDK I'm using (17.0.2) but I'm very interested in the posted code. When compiling I am getting the following error:

    Output/Release/Obj/ble_app_blinky_c_pca10056_s140/ses_startup_nrf_common.o: in function `InitializeUserMemorySections'

    How could I solve this? I intend to read the advertising from nearby devices, and retransmit these advertising with a higher power on the tx.

    Furthermore, I noticed that the code scans, but does not print or store these advertising, what could I change in the code to accomplish what I intend? Thank you very much!

  • Output / Release / Obj / ble_app_blinky_c_pca10056_s140 / ses_startup_nrf_common.o: na função `InitializeUserMemorySections '

    I've already solved this error and I'm running the application. But I still haven't been able to print the received advertising in the log, I just print the advertising address as the original code. How could I do this? I would like to print the advertising received and also retransmit it, could you help me?

Related