• 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 » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » Queries regarding CC2450 Pairing Issues
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Queries regarding CC2450 Pairing Issues

Queries regarding CC2450 Pairing Issues

This question is not answered
Timothy Bauer
Posted by Timothy Bauer
on Aug 09 2012 13:37 PM
Prodigy30 points
We are working on a custom board with a CC2540 SOC, and trying to pair the Board with the TI 's CC2540 USB dongleboard using BTool. Unfortunately we are not able to Discover our Board. We have some queries regarding the same to be checked with the TI.

History:  We are successfully able to discover, pair and communicate with our Keyfob and  USB dongle module with the executable "CC2540_keyfob_SimpleBLEPeripheral.hex"  and  "CC2540_USBdongle_HostTestRelease_All.hex" . In this application the keyfob will be in non-discover mod as default, we have to use the keys(switch) to make the keyfob in discover mode.

We programmed our new board "CC2540_keyfob_SimpleBLEPeripheral.hex"  file , since we need discover mode as the default state, we copied the following line into the main function in the file "SimpleBLEPeripheral_Main.c" of the  application "SimpleBLEPeripheral".

 // Final board initialization
  InitBoard( OB_READY );
  #if defined ( POWER_SAVING )
    osal_pwrmgr_device( PWRMGR_BATTERY );
  #endif
  
/* Added Lines */
  
      uint8 current_adv_enabled_status;
      uint8 new_adv_enabled_status;
      
      //Find the current GAP advertisement status
      GAPRole_GetParameter( GAPROLE_ADVERT_ENABLED, &current_adv_enabled_status );
      
      if( current_adv_enabled_status == FALSE )
      {
        new_adv_enabled_status = TRUE;
      }
      else
      {
        new_adv_enabled_status = FALSE;
      }
      
      //change the GAP advertisement status to opposite of current status
      GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &new_adv_enabled_status ); 
      
/* Added Lines */


/* Start OSAL */
  osal_start_system(); // No Return from here
we would like to know that whatever we have done is correct? or is there any alternate approach to do the pairing of our custom board with CC2540 USB Dongle?
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Joakim Lindh
    Posted by Joakim Lindh
    on Aug 10 2012 03:07 AM
    Genius13370 points

    Hi Timothy,

    If you have copied the CC2540 USB reference design you might have missed that you need to add a 32kHz crystal to enable low power mode (i.e. POWER_SAVING). If you do not have the sleep crystal, you cannot put the device in sleep and therefore you have to remove POWER_SAVING from the project defines in order for the application to work properly.

    You can compare the reference designs:

    CC2540EM Reference design

    CC2540USB Reference design 

    Best Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • maharjanbk
    Posted by maharjanbk
    on Sep 17 2012 10:19 AM
    Intellectual370 points

    I don't think you need to add those many lines in SimpleBLEPeripheral_Main.c file.

    Just make change from uint8 initial_advertising_enable = FALSE; to TRUE; in  void SimpleBLEPeripheral_Init( uint8 task_id ) function in SimpleBLEPeripheral.c file. This should make hardware advertise itself and becomes discoverable.

    Hope that it helps.

    Regards,

    maharjanbk

    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