• 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 » CC2540USB as Peripheral - problem with Make Discoverable
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

CC2540USB as Peripheral - problem with Make Discoverable

CC2540USB as Peripheral - problem with Make Discoverable

This question is not answered
Till Riemer
Posted by Till Riemer
on Apr 23 2012 03:25 AM
Prodigy65 points

Hi, I am using the HostTestRelease Project with the TI CC2540 USB dongle and want to run it in Peripheral mode. Testing with BTool, after calling DeviceInit with Peripheral Mode which is successful, I am sending a GAP Make Discoverable request, but the device is answering "Not Ready To Perform Task" (see log). I know that it's possible to set initial advertising enable in the application code, but I want to set advertising manually, can someone help out? Here is the log of BTool:

[12] : <Tx> - 11:24:06.430
-Type		: 0x01 (Command)
-Opcode		: 0xFE00 (GAP_DeviceInit)
-Data Length	: 0x26 (38) byte(s)
 ProfileRole	: 0x04 (Peripheral)
 MaxScanRsps	: 0x05 (5)
 IRK		: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 CSRK		: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 SignCounter	: 0x00000001 (1)
Dump(Tx):
01 00 FE 26 04 05 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 01 00 00 00 

------------------------------------------------------------------------------------------------------------------------
[13] : <Rx> - 11:24:06.497
-Type		: 0x04 (Event)
-EventCode	: 0xFF (HCI_LE_ExtEvent)
-Data Length	: 0x06 (6) bytes(s)
 Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status		: 0x00 (Success)
 OpCode		: 0xFE00 (GAP_DeviceInit)
 DataLength	: 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 00 FE 00 

------------------------------------------------------------------------------------------------------------------------
[14] : <Rx> - 11:24:06.562
-Type		: 0x04 (Event)
-EventCode	: 0xFF (HCI_LE_ExtEvent)
-Data Length	: 0x2C (44) bytes(s)
 Event		: 0x0600 (GAP_DeviceInitDone)
 Status		: 0x00 (Success)
 DevAddr		: C0:FF:EE:C0:FF:EE
 DataPktLen	: 0x001B (27)
 NumDataPkts	: 0x04 (4)
 IRK		: 67:76:7D:A8:78:A1:A8:61:71:BD:58:24:92:39:0E:EC
 CSRK		: 4E:EA:B7:B5:14:34:66:8C:2D:6B:29:9D:C9:1E:4F:16
Dump(Rx):
04 FF 2C 00 06 00 EE FF C0 EE FF C0 1B 00 04 67 
76 7D A8 78 A1 A8 61 71 BD 58 24 92 39 0E EC 4E 
EA B7 B5 14 34 66 8C 2D 6B 29 9D C9 1E 4F 16 

------------------------------------------------------------------------------------------------------------------------
[15] : <Tx> - 11:24:13.314
-Type		: 0x01 (Command)
-Opcode		: 0xFE06 (GAP_MakeDiscoverable)
-Data Length	: 0x0F (15) byte(s)
 EventType	: 0x00 (Connectable Undirect Advertisement)
 InitAddrType	: 0x00 (Public)
 InitAddrs		: 00:00:00:00:00:00
 ChannelMap	: 0x07 (Channel 37
       		  Channel 38
       		  Channel 39)
 FilterPolicy	: 0x00 (Allow Scan Requests From Any, Allow 
       		  Connect Request From Any.)
Dump(Tx):
01 06 FE 0F 00 00 00 00 00 00 00 00 07 00 00 00 
00 00 00 

------------------------------------------------------------------------------------------------------------------------
[16] : <Rx> - 11:24:13.379
-Type		: 0x04 (Event)
-EventCode	: 0xFF (HCI_LE_ExtEvent)
-Data Length	: 0x06 (6) bytes(s)
 Event		: 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status		: 0x10 (Not Ready To Perform Task)
 OpCode		: 0xFE06 (GAP_MakeDiscoverable)
 DataLength	: 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 10 06 FE 00 

------------------------------------------------------------------------------------------------------------------------
cc2540 usb slave device discovery
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Till Riemer
    Posted by Till Riemer
    on May 07 2012 04:21 AM
    Prodigy65 points

    I still didn't figure out a solution yet, but I might have found a reason: According to the Vendor Specific HCI guide, the GAP_DeviceInit command should be called only once per reboot - as BTool is initializing the device as Central per default when starting, I am executing the command for a second time with Peripheral option. Rebooting the device after BTool startup won't work because the COM connection would get lost. Is there some way I can prevent BTool from automatically initializing the device as Central at startup?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joakim Lindh
    Posted by Joakim Lindh
    on Aug 08 2012 01:51 AM
    Genius13370 points

    Hi Till,

    Have a look at this post: http://e2e.ti.com/support/low_power_rf/f/538/p/187762/732079.aspx#732079.

    Best Regards

    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