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.

Bluetooth SPP service

Other Parts Discussed in Thread: CC2560, MSP430BT5190, MSP430F5438

Hi sir.

I have a question,

Platform: MSP-EXP430F5438 + PAN1315ETU CC2560
Demo firmware :  MSP430BT5190-CC2560 SDK

The current Bluetooth identifiers of “BlueMSP430” (SPP service , from the Host) are changeable in the firmware? 

then how do i change it?

thanks.

 

  • Dunk Wu,

     

    Absolutely. Than prefix is defined in sdk_bluetooth_config.h right at the top:

    #define SDK_CONFIG_DEVICE_NAME                  "BlueMSP-Demo"

     

    Gustavo

  • Hi Gustavo ,

    #define SDK_CONFIG_DEVICE_NAME                  "BlueMSP-Demo"

    it is right ,

    this define change DEVICE NAME "TMR-100BT-".

    example figure 1, blue frame. 

    ( figure 1)

    but, i want to change SPP name(BlueMSP430) in services item.

    example figure 2, red frame. 

    ( figure 2)

    thanks.

  • Dunk Wu,

                        Please refer to page 138 in the Developer's Guide: http://processors.wiki.ti.com/images/d/d2/MSP430BT5190_CC2560_Developers_Guide.zip 

    Regards,

    ~Miguel

  • Hi Miguel ,

    I read page 138 in the Developer's Guide (MSP430BT5190_CC2560_Developers_Guide)

    but the SDK (MindTree) not provide db_gen.c

    My Demo firmware :  MSP430BT5190-CC2560 SDK (MSPEXP-PAN13XX-SDK-GA: MSP430F5438 EXP Board + PAN13xx Bluetooth SDK GA 1.0)

    Has the method to solve?

    thanks.

  • Dunk Wu,

               You are right. It says that it is implemented in db_gen.c and db_gen.hdb_gen.c is not provided in source but you don't need it since all DEFINITIONS are listed under dg_gen.h. In summary, you just need to modify db_gen.h which is provided in source.

              I hope it is clear now. Please let us know.

    Regards,

    ~Miguel

  • Hi Miguel ,

    i want change Service Name(BlueMSP430), but db_gen.h has not provided the revision program.

    ex : /* Attribute value array */

    const UCHAR value_arr[] = {

    0x0A, 0x00, 0x00, 0x00, 0x00, ...........

    /* ServiceName */

    0x25, 0x0B, 0x42, 0x6C, 0x75, 0x65, 0x4D, 0x53, 0x50, 0x34, 0x33, 0x30, 0x00 };

    I guess db_gen.c in libspp_core.r43.

    Therefore, can not i solve this problem !?

    thanks.

  • Dunk,

             I apologize I made a mistake in my previous post. Both files, db_gen.c and db_gen.h are provided as source in the SDK (I just double checked). You should modify the Service Name defined in the const UCHAR value_arr[] array in the db_gen.c.

    C:\Texas Instruments\MSPEXP-PAN13xx SDK\GA 1.0\MSP430-CC2560_Applications\Source\bluetooth\export\common_appl\db_gen.c

    C:\Texas Instruments\MSPEXP-PAN13xx SDK\GA 1.0\MSP430-CC2560_Applications\Source\bluetooth\export\common_appl\db_gen.h

    Regards,
    ~Miguel

     

  • Dunk,

     

    If you look at the array :

     

    0x25, 0x0B, 0x42, 0x6C, 0x75, 0x65, 0x4D, 0x53, 0x50, 0x34, 0x33, 0x30, 0x00 };

     

    You'll see the name:

    0x25:0x0B:0x42:0x6C:0x75:0x65:0x4D:0x53:0x50:0x34:0x33:0x30:0x00

    ?%???B?l?u?e?M?S?P?4?3?0??

     

    For example, 0x42 is the letter B in Ascii.

     

    Regards,

    Gustavo

  • Hi Miguel,

    I revise the Service Name to succeed.

    I checked "MSPEXP-PAN13xx SDK" file, it  is provide db_gen.c.

    Therefore, i try a way.

    From "MSPEXP-PAN13xx SDK" In the file, copy "db_gen.c" to "MSP430BT5190-CC2560 SDK" In file.

    "db_gen.c" add in project, then "built all" is pass.

    then i checked Service Name which already to change.

    This method is feasible.

    thanks. 

     

    Hi Gustavo,

    I understand.

    thanks.