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

How to Simply process Advertising Data

Hello to everyone,

My problem/question now is about the MasterEmulator. I´m working with the nRF51822(SoftDevice) and i have my own program already working more or less like I want. The main idea is that the device will send some information in the advertising data (my own data that don´t match with any existing Service).

But i´m trying to find out to make my own program for the PCA10000 that should only be scanning for Advertising devices, and process that advertising packets ( with processing it, i mean more or less store every data that see with the time stamp in a file).

I´m taking a look in the "nRFUart" and the "HeathThermoDemo" codes for the PCA1000 dongle but, i´m not so familiar with the "app programing" and I´m not be able to make only that "simply" part of scanning and have the data to work with.

Till now I´m only able to connect to the usb-dongle like in the "hello world" example, but not so much more. Any help like some other "easy start" codes, recommendation, etc.. will be so appreciated.

Thanks, Alvaro.

Parents
  • Great that you've been able to get some progress on your own! Unfortunately, we don't have any more documentation on the Master Emulator API than what is already there, but combined with the example applications, I believe that you should be able to get things working.

    As for your problem with getting the Scan Responses, remember that you must set the scan type to active, or else the Master Emulator dongle won't send any Scan Requests, and hence don't get any responses. This can be done by setting the ScanType field of the BtScanParameters struct before starting scanning:

    
    BtScanParameters scanParams = new BtScanParameters();
    scanParams.ScanType = BtScanType.ActiveScanning;
    ...
    
    
Reply
  • Great that you've been able to get some progress on your own! Unfortunately, we don't have any more documentation on the Master Emulator API than what is already there, but combined with the example applications, I believe that you should be able to get things working.

    As for your problem with getting the Scan Responses, remember that you must set the scan type to active, or else the Master Emulator dongle won't send any Scan Requests, and hence don't get any responses. This can be done by setting the ScanType field of the BtScanParameters struct before starting scanning:

    
    BtScanParameters scanParams = new BtScanParameters();
    scanParams.ScanType = BtScanType.ActiveScanning;
    ...
    
    
Children
No Data
Related