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.

Varying scan window with btool

Other Parts Discussed in Thread: CC2540

Hi all,

i'm using btool with CC2540 usb dongle; Default scan window is about 10 s. Is there a command to change (to reduce actually) this value?

Thanks

Vito

  • Yes, you can change the parameter to whatever you want by

    1. Going into Adv.Commands

    2. Selecting GAP --> GAP_SetParam

    3. in the dropdown list, pick TGAP_GEN_DISC_SCAN_WIND to change your scan window. Make sure your scan window is not longer than your scan interval. Also the number is not ms. It's n * 0.625 mSec

  • Hi Christin,

    Thanks for your so useful reply!

    I was probably wrong in my initial post, I meant not the scan window, but the time interval between the GAP_DEVICEDISCOVERYREQUEST and GAP_DEVICEDISCOVERYDONE: in btool it is by default, i guess, 10 seconds. I don't know if this time is linked to scan interval and window... please can you clarify?

    Regards,

    Vito

  • You can also stop the discovery by sending GAP_DeviceDiscoveryCancel at anytime during the discovery.