This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430 rf-2560

hi; 

i need some help with msp430 ez430-rf2560 BT evaluation tool ,

i need to send data using BT to another device or between the two rf2560 in the development kit, 

if u have some reference code or every thing that help me i will be glad . 

thanks 

abed

  • Abed,

     

    The code provided as part of the Mindtree Bluetooth SDK is a great place to start. Have you tried it? You will need to download a 30-day evaluation version of IAR to use it.

    http://focus.ti.com/docs/toolsw/folders/print/mt-bt-sdk.html

    http://supp.iar.com/Download/SW/?item=EW430-EVAL

     

    Gustavo

  • HI QUSTAVO

    i tried it , 

    but i don't have some examples in this sdk it just  functions and libraries /

    did u have some example code (main.c) that send data using BT, or doing sampling- analog to digital ?

    thanks a lot  . and hope u can help me /

    abed

  • Abed,

     

    The SDK is all examples. All examples are composed of functions of libraries. main.c is just the main file that starts everything. The MSP430 needs to run the Bluetooth stack and uses a RTOS to manage that and the application.

     

    The accelerometer application itself uses an ADC to sample the Accelerometer output, which is analog. You can modify that to suit your needs. This is done in the function sdk_spp_data_read which is in sdk_pl.c

     

    Gustavo

  • hi gustavo,

     

     

     

    the funcyion sdk_spp_data_read used secondary functions like   halAdcStartRead(); and  halAccelerometerRead();

    where can i found these  functions ? 

    and about the BT transfer  if i download the main in the 2 microprossesor they will sent BT to each others or i need to define the direction? 

  • Abed,

    If you right click on the function name in IAR, you can click on go to definition. Another way in IAR is to use CTRL+SHIFT+F where you can search for something in all the project.

    If you put the same code into 2 microprocessors (MSP430 in this case), just like we do in the demos. The direction does not need to be defined since it depends on the connection and on the code you're using. In the accl example, you connect one device to another. Once the connection is done, one of the devices(I don't know who but looking at the code it should be easy to figure out) sends the accelerometer data and the other device responds with the accelerometer data. Then a "ping pong" mechanism beings where one device sends the data and the other responds with the data.

    Gustavo

     

     

     

     

  • i download  the SDK , i put the main in both microprocessors / 

    how i transmit or receive  data from one to the other ? i must define TX and RX ? or its automatically defined ?

    what should i do ?

     

    and what is the register that save the data before sending it to the another micro/ ? 

    thanks 

     

     

  • Abed,

     

    It's not very clear what you mean by " i put the main in both microprocessors". The SDK includes a complete project with more than just main. You need to use IAR's Debug and Download capability to download the code. When you program a microcontroller, you don't download main.c since this file is compiled into a binary image that is then used to program the microcontroller.

    appl_send_spp_data is the function that reads the accelerometer data (in the accl application) and sends it. You can modify it to send the data you want.

     

    Gustavo

  • hi ' 

    should i change the main.c file in the beta1 sdk or just to update the function accleometer read and write ?

     

  • and where i can see the output of the accelometer program ?  i mean the samples that transfared using BT/