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.

Automatic connection between master and slave

Other Parts Discussed in Thread: CC2540

Hi

I am using a CC2540 mini keyfob and a CC2540 USB dongle. I set keyfob advertising parameters for automatic start advertising when it turns on and I can scan it using USB dongle by BTool. So, I am looking for setting a parameter to having automatic connection. I mean that as soon as BTool receives advertising from keyfob, it automatically provides a connection .

Does someone know the solution?

Thanks

  • When you send a GAP_EstablishLInkRequest, you  put the controller in a state where it will connect at the next received advertisement.  To have the PC drive the sequence of Scan ->receive adv->send Establish ->receive adv ->connect,  you will need to script the PC to do this or write an application to send these commands over virtual com port.  Another option, is to modify source in hostTestRelease to try and accomplish this, but hostTestRelease is setup to rx/tx  commands over USB, and not run as an application task - but should be possible.

    Br,

    -Greg