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

Adding Scanning function in Nordic thingy 52.

Hi sir,

I have downloaded the NORDIC THINGY52 SDK from the given link https://devzone.nordicsemi.com/f/nordic-q-a/51236/unable-to-compile-ses-project-in-thingy-52-sdk (As I need to compile the SDK on Embedded Segger).The SDK compiled successfully and works fine on NORDIC THINGY52 hardware. Now I want to Monitor beacon advertised by other NORDIC THINGY 52 and print the RSSI value of the received Beacon .

To achieve this functionality I need to implement the Scan functionality on my NORDIC THINGY52. But their is no supporting file or example present for SCAN functionality.

So please help me to proceed further .

Thanks

Raj.

Parents
  • Hi,

    The Thingy:52 SDK is based on SDK v13, so the best would be to just port a scanner example from SDK v13 to the Thingy52 SDK.

    regards

    Jared 

  • hi Jared,

    Can you tell me which example I can use from SDK13 to import the Scan functionality.

    Thanks, 

    Raj

  • Hi,

    Any SDK example that includes the nrf_ble_scan.h module. ble_app_blinky_c for instance.

    regards
    Jared 
  • Hi Jared,

    The example that you referred is belongs to SDK17 that contains nrf_ble_scan.h module.

    But this doesn't exist in SDK13. So I searched and concluded that "ble_db_discovery.h"

    is somewhere similar to nrf_ble_scan.h  (from SDK17) module.

    As per the conclusion I took the ble_app_uart_c example from SDK13 and ported it to the Thingy SDK. But still its not working.

    To port it to the thingy SDK I fixed compilation errors such as:

    Error 1-[#board not defined]: To fix this, I excluded the BSP files from compilation as I don't want LED indications from BLE events (Expecting this will not disturb anything related to the BLE functionality).

    Error 2-[App_timer_init() : too many arguments]: To fix this, I just removed the arguments from function calling as this function doesn't expect any arguments.

    Beyond this I found that some header files in SDK13.0 are different from thingy52 SDK.

    As still I am not able to scan beacons on thingy52 board. So can you provide/suggest any valid beacon scanning sample for thingy52?

    Thanks,

    Raj

  • rajAsthana said:

    The example that you referred is belongs to SDK17 that contains nrf_ble_scan.h module.

    But this doesn't exist in SDK13. So I searched and concluded that "ble_db_discovery.h"

     You're right! I linked the wrong SDK version. 

    rajAsthana said:

    As still I am not able to scan beacons on thingy52 board. So can you provide/suggest any valid beacon scanning sample for thingy52?

    hmm, on a second thought, is there a specific reason for why you want to use the Thingy:52 SDK? The Thingy:52 is supported in the normal SDK. Maybe it would be easier to just use the normal SDK to develop your application?  

    Another advantage of using the SDK instead of the Thingy:52 SDK is that you will get the newest features and bug fixes as the Thingy:52 board is supported in the newest SDK  v17.0.0.

    The board file for the Thingy:52 is called PCA20020. You can find it in SDK_ROOT\components\boards

    regards

    Jared

Reply
  • rajAsthana said:

    The example that you referred is belongs to SDK17 that contains nrf_ble_scan.h module.

    But this doesn't exist in SDK13. So I searched and concluded that "ble_db_discovery.h"

     You're right! I linked the wrong SDK version. 

    rajAsthana said:

    As still I am not able to scan beacons on thingy52 board. So can you provide/suggest any valid beacon scanning sample for thingy52?

    hmm, on a second thought, is there a specific reason for why you want to use the Thingy:52 SDK? The Thingy:52 is supported in the normal SDK. Maybe it would be easier to just use the normal SDK to develop your application?  

    Another advantage of using the SDK instead of the Thingy:52 SDK is that you will get the newest features and bug fixes as the Thingy:52 board is supported in the newest SDK  v17.0.0.

    The board file for the Thingy:52 is called PCA20020. You can find it in SDK_ROOT\components\boards

    regards

    Jared

Children
No Data
Related