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.

Direct advertising packets

Other Parts Discussed in Thread: CC2540

Hello,

I am desperately trying to make the keyfob send direct advertising packets in order for the dongle to connect automatically to it as soon as it receives the packet.

I have posted about the same issue in the link below, explaining my problem but unfortunately have not had any response.

http://e2e.ti.com/support/wireless_connectivity/f/538/t/349104.aspx

Could you please help me out ?

Thank you,

  • Hi Youssef,

    I think you need to trigger the connection established request on the CC2540 USB Dongle as well, and not only send directed advertisements. Either you create that behaviour within an application on the CC2540 or you will need to trigger it from an application on the PC. Either way, you will need to do it manually.

    Best Regards

    Joakim

  • Thank you for answering. Does this mean that the automatic reconnection  is not supported by the BLE stack and has to be done on application level, or it's just that BTool does not handle that ?

    I mean, isn't a connection request automatically sent when the initiator receives a direct advertising packet ?

    Thankfully,

  • Hi Youssef,

    Youssef Ben Jemia said:
    I mean, isn't a connection request automatically sent when the initiator receives a direct advertising packet ?

    Correct, but the device must be scanning to begin with. You need to put the device in scanning. Typically, in an application, you may set device into scanning with high duty cycle when you lose connection and then gradually reduce duty cycle (done manually) to save power.

    Best Regards

    Joakim