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,
Guys please help,I'm just loosing my mind here.....
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
------------------------------------------------------------------------------------------
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 ??
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.
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
Hallo,
I can't find the sourcecode of accelerometerwith Blutooth stack for ez430-rf256x, can you tell me where I can download it?
Hey Misha,
you can find the code here.scroll down and download EZ430-RF256X-SDK-GA software.
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
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?
Misha,
This wiki should gives a tutorial on running the demo: http://processors.wiki.ti.com/index.php/EZ430-RF256x#EZ430_Software
@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.
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?
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
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
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?