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.

CC2642R: CC2642 Get broadcast data while connected

Part Number: CC2642R

Hi,

The CC2642 does the central de-connection to the peripheral, how to get the last set of broadcast data from the peripheral. Since I won't be scanning the peripheral manually, but rather initiating the connection through the mac, I want to get the set of broadcast data for the connection request.

I'm trying to get the contents of this broadcast data set.

SDK:simplelink_cc13xx_cc26xx_sdk_7_10_01_24

  • The CC2642 does the central role, going to connect the peripheral, and after connecting it gets the last set of broadcast data

  • Hi,

    The central device is able to extract the advertising data from any scan report (which contains advertising data) that it receives as part of a scan operation. I would recommend referencing the simple_central project as this project does some post-processing on received scan reports and also looks at the advertising data of incoming scan reports.

    Best Regards,

    Jan

  • Hi,

    Scanning can pick up broadcast data, and there's no problem with that. But my application doesn't need to scan, I have the other party's mac, I added the mac to the whitelist and called GapInit_connectWl to initiate the connection, because the stack goes scanning when the central initiates the connection, and sends a connection request when it finds the broadcasts, and I want to fetch this set of broadcast data inside the connection event.

  • Hi,

    Understood. I believe the way the GapInit_connectWI() logic is set up, the device will scan and look for the address that is in its whitelist and then connect, but will not pass along the scan reports seen to the application. This means to that to get the advertising data, you will need to a perform a regular scan beforehand. Another option may be for the peripheral device to provide the data that is currently contained in the advertising data through a characteristic so the central may see it post-connection.

    Best Regards,

    Jan