• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » RF & Digital Radio » /etc... RF » /etc... RF Forum » CC2540, Device Discovery Scan & GAP parameters.
Share
/etc... RF
  • Forum
Options
  • Subscribe via RSS

CC2540, Device Discovery Scan & GAP parameters.

CC2540, Device Discovery Scan & GAP parameters.

This question is answered
Antoine Beaussire
Posted by Antoine Beaussire
on Mar 30 2012 07:55 AM
Prodigy150 points

Hi,

I have some questions concerning the scan parameters for device discovery.

In fact, in my project there are two devices : a central and a peripheral device.  The peripheral device send during 4 seconds advertissements in limited mode after a key press. The central is continiously 'sniffing' for advertissements every 4 seconds with short shot. I search to set the minimal time for a scan shot.

However, if the scan shot time is too short, sometimes it detetect advertissements, sometimes not.

So today, the best configuration I found is (I want shorter time for the central, 1 or 2 ms) :


For the peripheral :

GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MIN,32);       // 20ms
GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MAX,32);

GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), 4000 );  //4 seconds

For the central :

GAP_SetParamValue( TGAP_LIM_DISC_SCAN, 60); // 60ms

The scan is called by an OSAL Timer every 4 seconds.

Schema :

A is GAPROLE_ADVERT_OFF_TIME = 4000 (4s)

B is TGAP_LIM_DISC_ADV_INT_X = 32 (20ms)

C is TGAP_LIM_DISC_SCAN = 60 (60ms)

D is the OSAL Timer delay (4s)

Now, some questions :

1) Have I understood the parameters meaning ?

2) What's mean the scan window ?

3)  When  I a set value lower than 32 for TGAP_LIM_DISC_ADV_INT_X, packets are not sent. Why ?

4) Maybe there are specials parameters for this type of scan ?

I feel lost with the scanning procedure...

Thank a lot for your answers, and sorry for my poor english (it isn't my mother tongue)...

Antoine.

CC2540 limited discovery mode parameters meaning
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Antoine Beaussire
    Posted by Antoine Beaussire
    on Apr 05 2012 03:08 AM
    Prodigy150 points

    I've finally found answers. But there still one question, I don't succeed to set the advertissement interval lower than 32 (20ms). Is this possible ?  I think this is possible because the advertissement event is during only 4ms. I haven't found limitations durations in BLE specification, maybe I searched badly.

    Thank for your help !

    Antoine.


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • senthil kumar69729
    Posted by senthil kumar69729
    on May 22 2012 08:59 AM
    Verified Answer
    Verified by Antoine Beaussire
    Expert1075 points

    HI Antoine ,

    Advertisement involves two terms one is Advertising interval and the other one is Advertising delay .

    Advertising interval is the one that user can set from 20 ms to 10.24 seconds ,and the advertising delay is pseudo randomly generated by link layer (from 0 ms to 10 ms ).

    So the minimum advertising interval is 20 ms and max is 10.24 seconds ,you can set any values between these .

    I hope i have answered your questions.

    Regards ,

    Senthil kumar 

    NiceDay,

    Senthil

    cc2540 valid advertising interval range
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Antoine Beaussire
    Posted by Antoine Beaussire
    on May 23 2012 04:22 AM
    Prodigy150 points

    Thank a lot for these clarifications

    Regards,

    Antoine.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • senthil kumar69729
    Posted by senthil kumar69729
    on May 23 2012 06:28 AM
    Expert1075 points

    If i answered your question , kindly press "verify answer " against my reply ! 

    Thanks ,

    Senthil

    NiceDay,

    Senthil

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use