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.

Compiler/CC2640R2F: How do I advertise as "Direct" Extended MODE00 (Non-Connectable/Non-Scannable)

Part Number: CC2640R2F

Tool/software: TI C/C++ Compiler

Hello,

I would like to modify the BLE5 Simple_Peripheral code (or any code) to get a Direct Extended Non-Connectable/Non-Scannble (Mode00) advertisement.  I was able to get Undirect Extended Non-Connectable/Non-Scannable (Mode 00) to work.

-Thanks

  • Hi Faisal,

    You can edit this directly in the advertisement set properties. Remember to set the address and address type of the peer device (scanner device).
  • Hi Marie,

    Thank you for your assistance.  Do you mean to set the following in "gap_advertiser.h"

    If so I have set the address, but not to sure on what to put for .peerAddrType?  Thank you for your help.

    #define GAPADV_PARAMS_AE_LONG_RANGE_CONN { \
    .eventProps = 0, 
    .primIntMin = 160,
    .primIntMax = 160,
    .primChanMap = GAP_ADV_CHAN_ALL,
    .peerAddrType = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID,
    .peerAddr = { 0x00, 0x05, 0x8B, 0x44, 0x04, 0x02 },
    .filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ,
    .txPower = GAP_ADV_TX_POWER_NO_PREFERENCE,
    .primPhy = GAP_ADV_PRIM_PHY_1_MBPS,
    .secPhy = GAP_ADV_PRIM_PHY_1_MBPS,
    .sid = 0 \
    }

    Faisal 

  • Hi Marie,

    I got it to work. I need to do the following in the #define in "gap_advertiser.h". What I had to do was to set the .eventProps= GAP_ADV_PROP_DIRECTED, and to set my address in .peerAddr={...} . This did the job.

    Thank you for your help.

    Faisal