• 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 » Bluetooth® Applications » EZ430 RF2560
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

EZ430 RF2560

EZ430 RF2560

This question has suggested answer(s)
xiaodong cai
Posted by xiaodong cai
on Jun 24 2011 15:06 PM
Prodigy140 points

Hi,

I have the ez430 rf2560 kit. I'm wondering if I don't use any of the sample application code and build my own code from scratch, do I need any libraries from the sample code? Another question is, after i configure the UART in MSP430F5190, do I need to do anything to configure the CC2560? Of I just need to look at the TX/RX buffer directly and no need to worry about the CC2560? Please forgive my innocence.

 

Thanks a lot,

Kevin

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 24 2011 15:06 PM
    Prodigy140 points

    when i said libraries, i mean libraries files and head files.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 24 2011 15:10 PM
    Suggested Answer
    Genius9990 points

    Kevin,

    Yes. Unless you build your own bluetooth stack or use another stack, you will need those libraries. The MSP430+Bluetooth requires a stack running on the MSP430.

     

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Balaji Jeyaraman
    Posted by Balaji Jeyaraman
    on Jun 27 2011 05:31 AM
    Suggested Answer
    Intellectual440 points

    Configuring the UART, managing the buffers and configuring the CC2560 is done as part of the MindTree BT stack.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 27 2011 15:37 PM
    Prodigy140 points

    Thanks for both of your replies. If I decided to use the sample code, and I need to use the MSP430 ADC to sample some signals, how should I handle the interrupt priority with the bluetooth's usart interrupts? Do I also want to develop my appl_adc.c file? Should I create a user task semaphore to handle the interrupt in my application file?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 27 2011 15:40 PM
    Genius9990 points

    Xiaodong,

    I suggest that you leverage the already existing code that samples the ADC that's connected to the Accelerometer. Since that works, getting your own sensor to work should be easy.

     

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 27 2011 16:19 PM
    Prodigy140 points

    Gustavo,

    That's a good idea. Seems like for the ez430 platform, they use I2C to read from the accelerometer directly. However, for the MSPEXP-PAN13xx SDK, they use the ADC12 to sample and do that. I'm thinking I should just put the hal_adc.c from this SDK and added to the ez430 SDK and modified that file. That should be OK right? I might ask you again if I have any other questions.

     

    Thanks a lot,

    Kevin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 27 2011 16:21 PM
    Genius9990 points

    Kevin,

    There are a few differences(as you have noted) in the hardware. You should be able to merge the two of them together.

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 29 2011 08:24 AM
    Prodigy140 points

    After I pair my BT adapter from my laptop to the EZ430 transmitter, it shows that I cannot open the com port that was connected to it by the PC application code. I also tried hyperterminal and it failed to open it as well. Any solution to open the com port?

     

     

    Kevin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 29 2011 09:53 AM
    Genius9990 points

    Kevin,

    Can you explanin how you paired the device? did you change the name? Did the computer tell you which ports it opened?

     

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 29 2011 13:41 PM
    Prodigy140 points

    Gustavo,

    I changed the name of my adapter to BlueMSP-Demo0666. uUnder device manager and connected BT device, it shows that it is connected to COM 14. And when i use the automatc detect port code, it is not shown under the available com port list in the debug window. So i go ahead create a com_port.txt file and put 14 in it and when I run it again , I type 999 and it said it fails to open the com port 14.

     

     

    Kevin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 29 2011 15:36 PM
    Genius9990 points

    Kevin,

    Are you using the program bundled with the EZ430 SDK? The EXP SDK might have a different filtering. What is the name it is showing up with in device manager?

     

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 29 2011 15:53 PM
    Prodigy140 points

    It is shown as BlueMSP-066A.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 29 2011 16:58 PM
    Genius9990 points

    Kevin,

    Are you using the Microsoft stack, the Toshiba stack or another stack on your machine?

    Gustavo

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xiaodong cai
    Posted by xiaodong cai
    on Jun 29 2011 21:30 PM
    Prodigy140 points

    Gustavo,

    I can read the data using the PC application now. The trick and also problem is, I need to remove the device from my connected BT device list everytime I power off the EZ430 transmitter. Any comments on why it would do that? Moreover, new problem is, when I change the buffer[0] [1] [2] [3] from the sdk_spp_data_read function, the PC application code doesn't display any receive message. When I change back to the original code, I found that if I do not twist the ez430 transmitter, there will not be any data receive from the PC application code. Is it because the accelerometer chip does not send out any data if it is not accelerate? But why it wouldn't receive message if I change the buffer to some static number? My target application requires sending the data constantly without going into any chilling mode.

     

     

    Thanks,

    Kevin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gustavo L
    Posted by Gustavo L
    on Jun 30 2011 10:09 AM
    Genius9990 points

    Kevin,

     

    1) I've had to do this sometimes myself. Have you tried clicking on the S1 button before trying to open the bluetooth port? The Bluetooth connection needs to be up I believe

    2) There is some packetization when data is received. The following is present in appl_spp.c:

        case SPP_RECVD_DATA_IND:
            sdk_display("SPP_RECVD_DATA_IND -> Data received successfully\n");
            sdk_display("\n----------------HEX DUMP------------------------\n");
            for (index = 0; index < datalen; index++) {
                sdk_display("%02X ", l_data[index]);
            }
            sdk_display("\n------------------------------------------------\n");


            if (TRUE == sdk_usb_detected) {
    #ifdef PACKETISE_USB_DATA
                packet[INDEX_0] = SOH;  /* SOH Character */
                memcpy(&packet[INDEX_1], l_data, PAYLOAD_SIZE);
                packet[INDEX_5] = calculate_checksum(packet);
                packet[INDEX_6] = '\0';
                halUsbSendString(packet);
    #else
                memcpy(packet, l_data, PAYLOAD_SIZE);
                packet[INDEX_5] = '\0';
                halUsbSendString(packet);
    #endif /* #ifdef PACKETISE_USB_DATA */

            }
            break;

     

    Gustavo

     

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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