• 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 » RF & Digital Radio » /etc... RF » /etc... RF Forum » How to get the RSSI in CC2500?
Share
/etc... RF
  • Forum
Options
  • Subscribe via RSS

How to get the RSSI in CC2500?

How to get the RSSI in CC2500?

This question is not answered
Kishan Pethani
Posted by Kishan Pethani
on Apr 03 2012 04:09 AM
Prodigy120 points

Hello everyone,

I want to design a system in which I can show the strength of received signal on computer screen. Basically Receiver would get the strength and send it via serial port to PC in which GUI is designed.

Now I have a portable transmitter which would transmit the packets of data every second. I am able to receive the packets at the receiver side. My question is how to get the signal strength so that I can know how far my transmitter is located?

I have tried to get the RSSI value every time controller receives the packets. But it gives the fixed value 250 with some fluctuations. Here is the code I am using at the receiver side. I am using eZ430-RF2500 module with the library codes of cc2500 provided by TI (sla325a)

----------------------------------------------------------------------------------

#include "include.h"
#include "msp430.h"


extern char paTable[];
extern char paTableLen;
extern void init_cc2500(void);
extern unsigned int convert_to_dec(unsigned int);
extern void init_uart(void);

char txBuffer[8];
char rxBuffer[8];
unsigned int i = 0,rssi,rssi_dec;


void main (void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT

init_cc2500();
init_uart();

__bis_SR_register(LPM3_bits + GIE);
}

// The ISR assumes the interrupt came from GDO0. GDO0 fires indicating that
// CCxxxx received a packet

#pragma vector=PORT2_VECTOR
__interrupt void Port2_ISR(void)
{
// if GDO fired
if(TI_CC_GDO0_PxIFG & TI_CC_GDO0_PIN)
{
char len=7;

if (RFReceivePacket(rxBuffer,&len)) // Fetch packet from CCxxxx
{
P1OUT ^= 0x01; 

rssi = TI_CC_SPIReadStatus(TI_CCxxx0_RSSI);

 while(!(IFG2 & UCA0TXIFG));
          IFG2 &= ~UCA0TXIFG;
UCA0TXBUF = rssi;
P1OUT ^= 0x02;

}
}
TI_CC_GDO0_PxIFG &= ~TI_CC_GDO0_PIN; // After pkt RX, this flag is set.

}

----------------------------------------------------------

Thanks.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Siping Wang
    Posted by Siping Wang
    on Apr 08 2012 21:13 PM
    Prodigy10 points

    I am also trying to do the same thing. Have you found fixed the problem or find anything good reference? Thanks.

    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