• 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 » Modifying the sample accelerometer code (ez430-rf256x)
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Modifying the sample accelerometer code (ez430-rf256x)

This question is not answered
Sanat Dutta
Posted by Sanat Dutta
on Jun 07 2012 10:39 AM
Prodigy90 points

Hey guys,

                I'm using two ez430-rf256x bluetooth modules to exchange data. I used the sample accelerometer code from ti and its working perfectly.
But it keeps sending the data continuously. I know that "appl_send_spp_data" function is used to send data but i don't know how this function is being called. I tried to trace it down but the code is too complicated.

i need some sort of function which will send a bunch of data (not accelerometer data) and then come back to main so i could do rest of my processing.
Any help would b appreciated.
Thank you,   

cc256x ANT-Bluetooth ANT+ RF ANT SDK eZ430-RF256x appl_spp_l2cap_tx_queue_flow_cb pan1323 ti accelerometer code
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Sanat Dutta
    Posted by Sanat Dutta
    on Jun 12 2012 00:38 AM
    Prodigy90 points

    Guys please help,
    I'm just loosing my mind here..... 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zahid Haq
    Posted by Zahid Haq
    on Jun 12 2012 12:13 PM
    Expert5525 points

    Sanat, 

    I will try to help you. For a start, try looking at http://processors.wiki.ti.com/index.php/CC256x_MT_UART_BRIDGE#appl_spp.c

    There are many place in the code where data is being sent so you need to uncomment them.

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

    Please visit our CC256x Forum Guidelines and FAQs

    Check out our CC256x Bluetooth Main Wiki page: http://processors.wiki.ti.com/index.php/CC256x

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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanat Dutta
    Posted by Sanat Dutta
    on Jun 13 2012 02:41 AM
    Prodigy90 points

    Hey Zahidul,

                           Thanks a lot for the reply.

    I did the changes described in the wiki but while running the code, it gets trapped in "sdk_error_handler()". What should i do ?? 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zahid Haq
    Posted by Zahid Haq
    on Jun 13 2012 15:48 PM
    Expert5525 points

    Can you tell me all the changes you've made to the original ez430 project since sdk_error_handler() is called from many places. Also the main function is only used once at the beginning for initialization. Then any other processing would take place in "tasks" for example, in user_task_routine()in user_task.c which runs periodically. I would comment out all the appl_send_spp_data() to stop continuously sending accelerometer data and modify the code to call it in user_task_routine() instead.

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

    Please visit our CC256x Forum Guidelines and FAQs

    Check out our CC256x Bluetooth Main Wiki page: http://processors.wiki.ti.com/index.php/CC256x

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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanat Dutta
    Posted by Sanat Dutta
    on Jun 14 2012 01:02 AM
    Prodigy90 points

    I fixed that problem, that was happening because i had included the wrong .lib file.

    but still its not working completely.

    i have also done the ez430 modifications given on the wiki so i could send uart data through my pc hyper-terminal, but on the other side i don't receive anything. When i run the code it connects with the other bluetooth and then i send data through uart but i don't get anything on the other bluetooth module and after sometime it goes in to low power mode.

    also i have the sample accelerometer code on the receiving side, could it be happening because of that ??

    i put a led notification function inside "USB_UART_ISR" to see if it's receiving data through my pc hyperterminal, but it turned out that its not even going into ISR.

    and i understand that "appl_send_spp_data()" function is used to send spp data but in the modification it had commented all four of these functions in "appl_spp.c", So how is it sending spp data ??

    also can i send uart data through IAR workbench and debug at the same time ?? 

    I have attached the modified files. could you please take a look??
    i'm really sorry i have too many doubts, I really appreciate your help.  

    5852.CC256x MT UART Bridge.rar

    regards,

    Sanat Dutta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Misha Mold
    Posted by Misha Mold
    on Jun 14 2012 04:11 AM
    Prodigy30 points

    Hallo,

    I can't find the sourcecode of accelerometerwith Blutooth stack for ez430-rf256x, can you tell me where I can download it?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanat Dutta
    Posted by Sanat Dutta
    on Jun 14 2012 04:43 AM
    Prodigy90 points

    Hey Misha,

    you can find the code here.
    scroll down and download EZ430-RF256X-SDK-GA software.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Misha Mold
    Posted by Misha Mold
    on Jun 14 2012 08:01 AM
    Prodigy30 points

    And how can I compile this for ez430-rf256x? Can you tell me step by step what I have to do?

    I have instaled EZ430-RF256X-SDK-GA, and iar v. 5.40 msp

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Misha Mold
    Posted by Misha Mold
    on Jun 14 2012 09:51 AM
    Prodigy30 points

    I open EZ430-RF256x IAR Workspace, and download the programm accl on the board, leds (red and blue) is blinking. Debugging shows an error???

    What do I wrong???

    PS: I habe two ez430-rf256x (one on battery, one on usb), habe I download the same code on bouth boards, ore have I to change configs in somewhere, something like master and slave?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zahid Haq
    Posted by Zahid Haq
    on Jun 14 2012 10:33 AM
    Expert5525 points

    Misha, 

    This wiki should gives a tutorial on running the demo: http://processors.wiki.ti.com/index.php/EZ430-RF256x#EZ430_Software

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

    Please visit our CC256x Forum Guidelines and FAQs

    Check out our CC256x Bluetooth Main Wiki page: http://processors.wiki.ti.com/index.php/CC256x

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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanat Dutta
    Posted by Sanat Dutta
    on Jun 15 2012 00:52 AM
    Prodigy90 points

    @misha : In your workspace there is a folder named "BT_Stack_Lib", it contains two lib files "CC2560.r43" & "CC256x.r43" you need to exclude the cc2560 file and include cc256x file. just right click go to options and include/exclude.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Giovanni Rivera
    Posted by Giovanni Rivera
    on Nov 01 2012 18:42 PM
    Prodigy120 points

    Hi all

    I managed to program the msp430 demo accelerometer. I also made changes to the code dimensioned according to the guide, http://processors.wiki.ti.com/index.php/CC256x_MT_UART_BRIDGE


    How can I modify the code to disable the accelerometer reading and send other information to another port on the ADC?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • J_Manuel
    Posted by J_Manuel
    on Feb 15 2013 09:59 AM
    Prodigy0 points

    Hi,

    I can't download the sourcecode of accelerometer with Bluetooth stack for ez430-rf256x in the "http://www.ti.com/tool/mt-bt-sdk", can you tell me where I can download it?

    Regards,

    J_Manuel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Giovanni Rivera
    Posted by Giovanni Rivera
    on Feb 15 2013 10:24 AM
    Prodigy120 points

    Unfortunately, there is no more support for that code. I worked with this stack but there are things I do not like, besides the use of IAR only 30 days is a constraint. Try Bluetopia stack (http://www.ti.com/tool/stonestreetone-bt-sdk) or BTstack

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • J_Manuel
    Posted by J_Manuel
    on Feb 15 2013 10:43 AM
    Prodigy0 points

    Hi,

    I have instaled the IAR and i very interesting in modify the accelerometer code to use the ADC's of my ez430-rf256x, but i don't have the accelerometer code and mt-bt-sdk. Can you tell me where I can download it? or can somebody provide me or send me?

    Regards,

    J_Manuel

    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