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.

Send data to Smartphone (android) via Bluetooth (BT)

Other Parts Discussed in Thread: MSP430F5529, CC2564MODNEM

Hi all,

I'm working on project that data is acquired and send to Smartphone via Bluetooth (Classic BT). First, I want test BT connection so I send a string to Smartphone. I have a launchpad  MSP430F5529LP kit with SimpleLink CC2564MODEM.

About app on Android, I use a worked app (my colleague tested).

But I'm not have any experience of woking with BT . Ofcourse I downloaded MSP430 Bluetopia, setup and look at example, It's seem be too complicated. So I hope anyone here who had been working on BT suggest me creat an simple project that I can test BT connection.

Thank you very much!

  • Hi,

    We have only one demo SPPLEDemo Lite which can run on MSP430F5529(MSP-EXP430F5529) and then scan and connect from your android phone (example using BlueTerm app).

    See http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_SPPLEDemo_Lite_APP

    As you are using the launchpad, First you need to connect the UART lines. make sure you follow the first three step from here http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide

    and you will need to make sure that your hardware connections are fine as per the  "Hardware Porting Guidelines.pdf" file in the documentation folder of the SDK.

  • Hi Sundeep,

    Thanks for your quick reply.

    I read carefully the instruction on wiki.ti.com page, as you mentioned before, only SPPLEDemo Lite can run on MSP430F5529 (with Blueterm app). I imported this demo, modified hw connection (following Hardware Porting Guidelines.pdf)

    After complie, the message:

    "./lnk.cmd", line 48: error #10099-D: program will not fit into available
        memory.  placement with alignment fails for section ".text" size 0x2b12 .
        Available memory ranges:
        FLASH        size: 0x1000       unused: 0xe56        max hole: 0xe56 

    Can you explain and how to fix it?

    One more thing, I want add some code to interface with an sensor via SPI, How can I put on main function?

    Thank you very much

     

  • Hi,

    MSP430F5529 has only 128KB of flash. make sure you code (binary) does not exceed it. 

    You can remove few functionality's (as you want to try Classic BT, you can remove GATT and LE )from the code. 

  • First, many thanks Sundeep. I solved the problem.

    Second, I have some issue:

    Now I'm using MSP430 Audio Sink kit. On kit, I want using 3 touch button as A3DP Snk project with addition: when press each touch button, it's also send o char to my device (Smartphone).

    For example: 

    Press Back send character 'A'

    Press Play/pause send character 'B'

    Press Next send character 'C'

    I was searching around, sb said using "SPP_Data_Write()" send data

    Is that true? If true, where should I put this function

    And do you have any suggestion?

    Thank you very much

  • Hi,

    Yes, But you should alo have a SPP connection before that.

    When you use the Capacitive touch, ProcessCapTouch() will be called which is running as a from the Scheduler started from the main thread and from there you will call SendRemoteControlCommand() and then AUD_Send_Remote_Control_Command() to send the command.  It should be here.

    once the command is set successfully and you receive a conformation from remote you will get etAUD_Remote_Control_Command_Confirmation in the callback.

    For more details please have a look at the code and the documentation folder as part of the SDK

  • Hi,

    Thank you very much, Sundeep. I solved the problem.

  • Hello Tuong Pham,
    My question is: what changes to the SPPLE Demo Lite App were necessary to make it compatible with the MSP430F5529LP and CC2564MODNEM?
    I am using the same components as you, the MSP430F5529LP kit with SimpleLink CC2564MODEM connected via an EM Adapter BoosterPack. I am using the IAR IDE and the SPPLE Demo Lite App downloads and debugs correctly, however, after I power the board again I end up with a flashing LED telling me an error has occurred in MainThread. To get the LED at P4.7 to flash I had to change the HAL.c file and I also changed HRDWCFG.h as suggested in the "Hardware Porting Guidelines.pdf" but I'm not sure if I have done this correctly.
    Any assistance would be greatly appreciated, thanks for your time.

    Mark