• 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 Proprietary Software & SimpliciTI Forum » CC2510
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

CC2510

This question is answered
Siti Khairuni Amalina Kamarol
Posted by Siti Khairuni Amalina Kamarol
on Mar 27 2012 02:21 AM
Prodigy90 points

Hi, I am using cc2510 for measuring temperature. I don't have any experience using this hardware before. I started with a sample project from simpliciTI. I want to build a star network and I want to use the sample AP_as_Data_Hub as a starting point. Which part of the code should I modify? And how can I get the measured values from the packets transferred? any sample on ADC?

Sensor Monitor CC2510 SimpliciTI Low power RF ADC ED AP Example Code IAR SimpliciTI AP as data hub 8051
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Mar 27 2012 03:15 AM
    Verified Answer
    Verified by Siti Khairuni Amalina Kamarol
    Mastermind27330 points

    Hi,

    i think it would be better for you if you take the eZ430-RF2500 Sensor Monitor Demo (http://www.ti.com/litv/zip/slac139f), it does pretty much the same what you are trying to do. Altough the demo was made for the dual chip solution on eZ430-RF2500 (MSP430F2274+CC2500), on application level, the code should be usable for different platform.

    Regarding the ADC sampling code, you can refer to the CC2510 basic example source code (http://www.ti.com/litv/zip/swrc117).

    Hope this helps.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siti Khairuni Amalina Kamarol
    Posted by Siti Khairuni Amalina Kamarol
    on Apr 11 2012 14:39 PM
    Prodigy90 points

    Hi,

    Thank you very much. They are very helpful. In the main_ED.c file of the eZ430-RF2500 Sensor Monitor Demo, there is a part about creating random address. Is that necessary? I will be measuring temperature using 6 sensors and it's really important for the AP to know where the data are coming from. In AP_AS_DATA_HUB sample project for cc2510, if I change the value of "THIS_DEVICE_ADDRESS" in the smpl_config.dat file to the actual address of the devices, is it necessary to create random addresses?

    For the interrupt used in the eZ430-RF2500 Sensor Monitor Demo, how can I define the sampling time? For example I want to take 20 samples per second for temperature measurement.


    Sensor Monitor CC2510 IAR SimpliciTI Low power RF interrupts End Devices ED End device Example Code IAR SimpliciTI AP as data hub IAR IDE
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Apr 17 2012 10:56 AM
    Verified Answer
    Verified by Siti Khairuni Amalina Kamarol
    Mastermind27330 points

    Hi,

    Siti Khairuni Amalina Kamarol
    Thank you very much. They are very helpful. In the main_ED.c file of the eZ430-RF2500 Sensor Monitor Demo, there is a part about creating random address. Is that necessary?

    No, it is not necessary. You can also remove the following codes for example for the main_ED.c:

      /* Check flash for previously stored address */
      if(Flash_Addr[0] == 0xFF && Flash_Addr[1] == 0xFF &&
         Flash_Addr[2] == 0xFF && Flash_Addr[3] == 0xFF )
      {
        createRandomAddress(); // Create and store a new random address
      }

      /* Read out address from flash */
      lAddr.addr[0] = Flash_Addr[0];
      lAddr.addr[1] = Flash_Addr[1];
      lAddr.addr[2] = Flash_Addr[2];
      lAddr.addr[3] = Flash_Addr[3];

      /* Tell network stack the device address */
      SMPL_Ioctl(IOCTL_OBJ_ADDR, IOCTL_ACT_SET, &lAddr);

    This will cause the stack to use the default address of the THIS_DEVICE_ADDRESS definition in the .dat file. But be careful that the each node in SimpliciTI network must have unique address, which means you have to change the THIS_DEVICE_ADDRESS defintion each time you compile the code for each node.

    Siti Khairuni Amalina Kamarol

    For the interrupt used in the eZ430-RF2500 Sensor Monitor Demo, how can I define the sampling time? For example I want to take 20 samples per second for temperature measurement.

    To do this, basically this part of the code which you have to modified:

      /* Initialize TimerA and oscillator */
      BCSCTL3 |= LFXT1S_2;                      // LFXT1 = VLO
      TACCTL0 = CCIE;                           // TACCR0 interrupt enabled
      TACCR0 = 12000;                           // ~ 1 sec
      TACTL = TASSEL_1 + MC_1;                  // ACLK, upmode

    It uses Timer_A CCR0 interrupt to generate interrupt after 12000 VLO clock cycles (assuming VLO is 12 kHz). However since VLO is by nature a very unprecised clock source, the period might differ between devices.

    More information can be found in the MSP430x2xx Family Users Guide:

    http://www.ti.com/lit/ug/slau144i/slau144i.pdf

    - chapter 5 about VLO

    - chapter 12 about Timer_A.

    Hope this helps.

    -Leo-

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siti Khairuni Amalina Kamarol
    Posted by Siti Khairuni Amalina Kamarol
    on Apr 18 2012 00:31 AM
    Prodigy90 points

    Hi, thank you so much. By the way, I am using cc2510 DK. And the format to initialize n set the interrupt must be different from the one u gave me. Can u give an example for setting the sampling frequency for the ADC on CC2510?

    IAR SimplciTI interrupts ADC End device IAR SimpliciTI AP as data hub timer
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Apr 18 2012 06:23 AM
    Verified Answer
    Verified by Anonymous
    Mastermind27330 points

    Hi,

    sorry to miss that you are using CC2510. I am not really familiar with CC2510 as i am with MSP430, but i think there is example codes which you can download here:

    http://www.ti.com/litv/zip/swrc117

    I found an example code t1_free.c which should do pretty much what you need.

    Hope this helps.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siti Khairuni Amalina Kamarol
    Posted by Siti Khairuni Amalina Kamarol
    on Apr 18 2012 10:20 AM
    Verified Answer
    Verified by Siti Khairuni Amalina Kamarol
    Prodigy90 points

    Hi, thanks for your help. I can't open the link you gave me.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Apr 18 2012 10:35 AM
    Verified Answer
    Verified by Siti Khairuni Amalina Kamarol
    Mastermind27330 points

    Hi,

    sorry for the link. it is fixed now.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siti Khairuni Amalina Kamarol
    Posted by Siti Khairuni Amalina Kamarol
    on May 10 2012 02:04 AM
    Verified Answer
    Verified by Siti Khairuni Amalina Kamarol
    Prodigy90 points

    Hi,

    I am using SMARTRF Packet Sniffer to capture the packets. How can I extract data from Packet Sniffer?

    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