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 start Directed Advertising with the CC2640R2-LP

Part Number: CC2640R2F

I am currently using the CC2640R2 Launchpad and want to start Directed Advertising to take measurements, however the datasheet does not specify how to start directed advertising. I am using the Simple Peripheral app.

Thanks,

Chris

  • Hi Chris,

    This is quite easy. For starters, please start with the simplelink training on advertising:
    dev.ti.com/.../

    Best wishes
  • Zahid,

    I have read all of the documentation relevant to the CC2640R2-Launch Pad in the TI Resource Explorer. The following table is presented:
    PDUS Adv. Length Scan Rsp. Connectable
    ADV_IND Used to send connectable undirected advertisement 31 bytes 31 bytes Yes
    ADV_DIRECT_IND Used to send connectable directed advertisement N/A N/A Yes
    ADV_SCAN_IND Used to send scannable undirected advertisement 31 bytes 31 bytes No
    ADV_NONCONN_IND Used to send non-connectable undirected advertisement 31 bytes N/A No

    However, no where in the documentation does it mention how change the PDU. Unless, you are referring to the filter policy, but this does not appear to be Directed advertising, simply because the Adv. Length is greater than 6 bytes.

    Thanks,

    Chris
  • Hi Chris,

    It is not directly mentioned how to do it, but here is the code example for direct advertising:

    + AdvertEnable = 0x01;
    + uint8 advEventType = GAP_ADTYPE_ADV_HDC_DIRECT_IND;

    + GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE, sizeof(uint8), &advEventType);
    + GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8), &AdvertEnable);

    Best wishes