• 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 » Bluetooth® Applications » Scan mode problems
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Scan mode problems

Scan mode problems

This question has suggested answer(s)
nick gamroth
Posted by nick gamroth
on May 09 2012 23:40 PM
Prodigy140 points

The following code is not working for me, and I can't figure out why:

if(sdk_bt_visible == SDK_DISC_ON)
break;
retval = BT_hci_write_scan_enable(0x03);
if (API_SUCCESS == retval) {
set_led(LED_DISCOVERABLE);
sdk_bt_visible = SDK_DISC_ON;
}

retval returns API_SUCCESS, but I'm unable to discover my device from remote hosts.  The strange part is that when I first boot the chip, this code works correctly and I can discover/pair/connect to the device with no problem.  The discoverable period times out after a minute, and then I run this code:

retval = BT_hci_write_scan_enable(0x00);
if(retval == API_SUCCESS)
{
sdk_bt_visible = SDK_DISC_OFF;
set_led(LED_IDLE);
}

Which functions fine - retval equals API_SUCCESS and the device is not discoverable.  I use a button sequence to call the first code block again, but the device does not show up when I try to discover it from any remote device.

My hardware is a custom board similar to the PAN1315/MSP-EXP430F5529.

Any ideas on what could be going on here?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Arild Kolsrud
    Posted by Arild Kolsrud
    on May 11 2012 11:57 AM
    Intellectual1320 points

    Which device and service pack are you using?

    Arild

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • nick gamroth
    Posted by nick gamroth
    on May 11 2012 16:08 PM
    Prodigy140 points

    I'm using MSP430F5528 and CC2560.  Which service pack are you asking about?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on May 13 2012 14:18 PM
    Suggested Answer
    Genius11535 points

    Nick,

         Please refer to this wiki to get the information regarding the service packs.

         http://processors.wiki.ti.com/index.php/CC256x_Bluetooth_Versions_and_Service_Packs

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • nick gamroth
    Posted by nick gamroth
    on May 15 2012 09:03 AM
    Prodigy140 points

    I'm not actually using the PAN1315, my board is just a similar layout.  I'm not sure if the service pack is for the CC2560, or the PAN1315.  Either way, my project is using libTI_init_script_BT_CC2560.r43 which seems to mean that I'm not using the service pack.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on May 15 2012 23:32 PM
    Genius11535 points

    Nick,

            The service pack is for the CC2560. What do you mean that you are not using the PAN1315? What are you using? The library above is the service pack that is used for the PAN1315. There is another lib, libTI_init_script_BT_CC256x.r43 , which is for PAN1315A or CC2560A.

    Miguel

    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