• 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 » CC2540 USB Dongle as a slave
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

CC2540 USB Dongle as a slave

CC2540 USB Dongle as a slave

This question is answered
Oscar
Posted by Oscar
on May 11 2012 03:04 AM
Prodigy215 points

Hello,

I read in this forum that to make the CC2540USB dongle acting as a slave, we have to follow these steps : 

"

1) Program the CC2540USB Dongle with the HostTestRelease using the "CC2540USB Slave" Configuration

2) Detach/Attach CC2540 Dongle

3) Open BTool, Set the Port corresponding to the one your CC2540 Dongle is populating. 

4) Under Adv. Commands, GAP you will find GAP_DeviceInit, set profileRole to Peripheral and hit Send Command

5) Still in Adv. Commands, GAP you will find GAP_UpdateAdvertisingData, set adType toGAPADVERT_ADVERTISEMENT_DATA and set dataLen to 3 and hit Send Command.

6) Still in Adv. Commands, GAP you will find GAP_MakeDiscoverable, make sure that you see the available options for it (no need to make changes) and hit Send Command.

That works, just tried it. You will need to set 4-5 correct or you will get the "Not Setup Properly To Perform That Task" status message. "

the problem is with the BLE Stack 1.2, when I open the "HostTestRelease" project with IAR, I have just : CC2540USB - CC2540EM - CC2540EM SBL - CC2540USB, I don't have  "CC2540USB Slave", so what can I do to make my CC2540USB acting as a slave ??

Regards.

slave BLE stack 1.2 CC2540USB 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 08 2012 01:44 AM
    Genius13370 points

    Hi Oscar,

    You can build the CC2540USB option, it contains both central and peripheral (slave) functionality.

    In the buildConfig.cfg file in the TOOLS project file you'll see that -DHOST_CONFIG=PERIPHERAL_CFG+CENTRAL_CFG specifies this.

    Best Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Oscar
    Posted by Oscar
    on Sep 14 2012 03:47 AM
    Prodigy215 points

    Hey Nick,

    thank you fo your reply, since that time, I found a way to make the USB CC2540 acting as a slave, I have post it here:

    http://e2e.ti.com/support/low_power_rf/f/538/p/161833/674669.aspx

    Today I have just one and  very important question, It is about BLE Master Slave dynamically switching...is the "DHOST_CONFIG=PERIPHERAL_CFG+CENTRAL_CFG" do this ??

    If (yes)

        How can I test it ?

    else

       Is there a way to do this ?

    Best Regards,

    Oscar  

    BLE Master Slave switch
    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 Sep 14 2012 04:09 AM
    Verified Answer
    Verified by Oscar
    Genius13370 points

    Hi Oscar,

    Have a look at our wiki (www.ti.com/ble-wiki), especially on the MasterSlaveSwitch sample application. I think that it can give you a clue or two :)

    Best Regards. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jayanta Das
    Posted by Jayanta Das
    on Oct 12 2012 03:01 AM
    Prodigy20 points

    I want to add some customize services and characteristics in TestHostRelease hex file how can I add those charecteristics?

    Another question, there ate two buttons on cc2540 usb dongle, can you tell me what are there functionality? I want to fire some task on  the button press action, what I have to do for that?

    BLE 2540 BLE discoverable mode time BLE API ble gatt discovery GATT_ReadUsingCharUUID blePending BLE cc2540 GATT 2540 HID ADC BTool Commands advet msg BLE CC2540 advertise service 128-bit UUID 1.2.1 debugger ble advertising cc 128bit UUID TI_BASE_128BIT_UUID BLE hex files
    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 Oct 12 2012 04:12 AM
    Genius13370 points

    Hi Jayanta,

    Have a look at NWPGATT - Network Processor GATT database example found on our wiki. I believetThe two buttons do not have any default functionality, so you can use them to what ever you want :)

    Best Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jayanta Das
    Posted by Jayanta Das
    on Oct 13 2012 00:29 AM
    Prodigy20 points

    is there any tutorial ?

    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 Oct 14 2012 03:58 AM
    Genius13370 points

    Hi Jayanta,

    Are you referring to action  upon button presses? I believe you can start by reading the Software Developers Guide and then take a closer look at our sample applications (SimpleBLEPeripheral and SimpleBLECentral) how button pushes are used. There are no specific tutorial for that (yet).

    You would then have to implements similar functionality for the HostTestRelease (Network Processor) project, because I suppose you still want to run the device from BTool, am I right?

    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