• 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 » Supervisor Timeout (0x80) with CC2540 + iOS device
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Supervisor Timeout (0x80) with CC2540 + iOS device

Supervisor Timeout (0x80) with CC2540 + iOS device

This question is answered
Miles Guidon
Posted by Miles Guidon
on Aug 17 2012 17:33 PM
Intellectual280 points

I am using the CC2540 KeyFob with the HostTestRelease project configured for HCI control over UART with the GATT_DB_OFF_CHIP defined as TRUE. I am connecting with an iPhone 4S successfully, my advertisement data shows up, I can create the connection successfully, and answer FindByTypeRequests, ReadByTypeRequests, and ReadByGrpTypeRequests all successfull--this is all needed to inform the iOS device about the services/attributes.

Once the enumeration process of the services and attributes is complete, the iOS device issues a ReadRequest of the preferred connection parameters (handle 0x000B based on the attribute table that I have adopted from the TI Software Developer's Guide). The CC2540 responds, and a few moments later the link is terminated for reason 0x80 (supervisor timeout). I've read the other posts about this error message but I

Is this a problem that can be fixed? I know the connection parameters for the iOS device--simply matching them by calling SetParam() from my host-controller to the CC2540 doesn't seem to be working.

It is odd that the supervisor timeout seems to happen just after the iOS device has received the ReadResponse. A few times, maybe 5 out of 300, I've been able to see the iOS device register the fact that its ReadRequest has been answered by the CC2540. It's not consistent, and I think something fishy is happening.......

CC2540 supervisor timeout connection parameters
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Willis1
    Posted by Willis1
    on Aug 17 2012 20:07 PM
    Verified Answer
    Verified by Miles Guidon
    Expert8165 points

    The preferred connection parameters are part of the BT 4.0 core spec (as part of the GAP profile), but unfortunately iOS central device do not make use of these values. You will need to send a peripheral connection parameter update request to the iPhone to change the parameters. More information on this can be found in this document from Apple:

    https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miles Guidon
    Posted by Miles Guidon
    on Aug 17 2012 20:11 PM
    Intellectual280 points

    Thank you very much for the response--does a mismatch in the parameters sound like the culprit? Is there a specific time during the connection that I should do a peripheral connection parameter update request? Just after link establishment, after discovery of services, etc.?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Karel Seeuwen
    Posted by Karel Seeuwen
    on Aug 19 2012 21:47 PM
    Intellectual280 points

    Hi Miles,

    to save you from one headache (and introduce you to a few more in the process), check out these postings too.

    http://e2e.ti.com/support/low_power_rf/f/538/t/204578.aspx

    http://e2e.ti.com/support/low_power_rf/f/538/t/165206.aspx

    http://e2e.ti.com/support/low_power_rf/f/538/p/167385/717343.aspx

    Have fun.
    Karel
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miles Guidon
    Posted by Miles Guidon
    on Aug 19 2012 21:55 PM
    Intellectual280 points

    Thanks for the help guys...it turns out that I was only going 2/3 of the way by providing 0x1800 and 0x1801 services, but not the device info service. Adding the device info service 0x180A made the iOS app very happy, and now it's working flawlessly.

    That PDF really helped out a lot, thank you Willis1

    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