• 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 ZigBee® Software & IEEE 802.15.4 Forum » CC2530 Send data to USB
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

CC2530 Send data to USB

CC2530 Send data to USB

This question is answered
Yoann Salique
Posted by Yoann Salique
on Apr 06 2012 03:18 AM
Intellectual410 points

Hi,

I bought the CC2530 ZDK.

At this time, i develop a program to send data to the computer with port serial RS232.

Now, I want send this data to PC with USB.

According to my research, with CC2530, we can not use USB to send data to PC. It is not configured.

Could you affirm my reseach?

Thanks for your help.

Regards,

Yoann

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 09 2012 18:22 PM
    Verified Answer
    Verified by Dirty Harry
    Mastermind19350 points

    You cannot use the USB connector on the SmartRF05EB board for sending data from the CC2530EM, as it is for running the debugger. While debugging via the IAR to this H/W, you can send debug messages, but these are very slow and interfere with real-time ISR handling.

    But in the CC2530ZDK kit that you have you will see one, small USB dongle, the CC2531USB-Dongle board. Note that this board has a CC2531 vice a CC2530, and the CC2531 does have a USB peripheral as part of the SOC and you can implement any USB class that you want. Most usable for your example is to implement the USB CDC class so that the dongle shows up on the Windows PC as a COM port that you can open and perform read/write like with any serial port. There are already HAL drivers that implement this virtual COM port on the SOC for you. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Yoann Salique
    Posted by Yoann Salique
    on Apr 16 2012 02:38 AM
    Intellectual410 points

    Hi Harry,

    Thanks for your answer.

    I have an other question for you.

    Can I choose the txpower and the gain of the antenna on the CC2530 with the Z-Stack code. If I can, where?

    Thanks for your help.

    Regards,

    Yoann

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 18 2012 12:24 PM
    Verified Answer
    Verified by Dirty Harry
    Mastermind19350 points

    Yes, Z-Stack 2.5.1 adds this command to control Tx power via the MT (monitor / test) serial API:  MT_SYS_SET_TX_POWER

    When compiling a sample application directly on the Z-Stack you have many ways of setting Tx power, so try the most basic way first:

    /********************************************************************************************************
     * @fn      ZMacSetTransmitPower
     *
     * @brief   Set the transmitter power according to the level setting param.
     *
     * @param   Valid power level setting as defined in ZMAC.h.
     *
     * @return  ZMacSuccess if PHY_TRANSMIT_POWER found or ZMacUnsupportedAttribute.
     ********************************************************************************************************/
    uint8 ZMacSetTransmitPower( ZMacTransmitPower_t level )

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Yoann Salique
    Posted by Yoann Salique
    on Apr 19 2012 02:27 AM
    Intellectual410 points

    Hi Harry,

    Thanks for your answer.

    What is the default value of Tx power?

    I read that the default value is 4.5 dB but I do not find it in the program.

    Thanks for your help.

    Regards,

    Yoann

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 19 2012 09:54 AM
    Verified Answer
    Verified by Dirty Harry
    Mastermind19350 points

    0 dBm is default

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Yoann Salique
    Posted by Yoann Salique
    on Apr 19 2012 10:38 AM
    Intellectual410 points

    So where is this value?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jinkang Cen
    Posted by Jinkang Cen
    on Apr 19 2012 10:44 AM
    Intellectual430 points

    Hi, Harry, 

    I think the transmission power can be easily changed by adding this code in the initiation for Z-stack 2.5.0:

    TXPOWER = value;  //0xF5 for example

    Right?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Apr 19 2012 10:53 AM
    Verified Answer
    Verified by Dirty Harry
    Mastermind19350 points

    Wrong - as is the case many times, the easy way is not the correct way to do something. Directly modifying the TXPOWER register does not register this desired tx power with the Z-Stack library and unexpected changing back to the default 0 dBm can occur. There is no global configuration setting to change to change the default tx power - the application code must add a call to ZMacSetTransmitPower() with the desired tx power.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jinkang Cen
    Posted by Jinkang Cen
    on Apr 19 2012 13:30 PM
    Intellectual430 points

    Thank you for pointing this out!!

    Is there anything similar that I should be aware of, or are there some guiding documents for that?

    PS: it is good to learn about that z-stack 2.5.1 has been released!

    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