This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: How to view the scanned advertisement in the observer role

Part Number: CC2640R2F


While using the Simple observer I want to view all the advertisement data which is observed by my device. Is there any API or any method to view the scanned advertised data.

  • Dev,

    Can you give any more details? By default, simple_observer should report up to 8 scan responses. This is set by the following in simple_observer.c

    // Maximum number of scan responses
    #define DEFAULT_MAX_SCAN_RES                  8

  • Dear Evan,
    Let me explain my case here. There is one BLE Broadcaster, which is broadcasting an IBeacon. In the Ibeacon advertisement data there is a unique key. I want to get that key from the advertisement data. To get the key first I need to observe the advertisement data of the broadcaster. For this I need an observer, but the observer example given in the SDK gives us the AC address not its advertisement data. My query is how to retreive this data?
  • Dev,

    For iBeacons, I suggest that you review the following app note on beacons.
    www.ti.com/.../swra475a.pdf

    Basically, according to section 2.4.2 you have roughly 27 bytes that you can define as a user. In our simple_observer apps, there are a number of various settings you will need to be concerned with. For instance, are you planning on having your beacon scannable or not? Then i would examine how the simple_observer parses data that it receives (whether or not it's scan response data or just advertising data).

    I also suggest that you review the Apple iBeacon Specification. Note that the full Apple spec requires MFi licensing but they do have a good amount of info on iBeacon freely available on their development portal.
  • After you review that material, if you have any more specific questions, please feel free to ask. We are currently backlogged and are doing our best to work through all of the posts. My apologies for the delay.
  • Also, Scanning Task 2 is a pretty good reference for how to read the full scan response data (this is using simple_peripheral though).
    dev.ti.com/.../ble_scan_adv_basic.html