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.

CC2564CMSP432BTBLESW: How send data to phone?

Part Number: CC2564CMSP432BTBLESW
Other Parts Discussed in Thread: CC2541

Hi,

SDK: CC256x MSP432 Bluetopia SDK

Example :SPPLEDemo

Putty send RegisterSPPLE and AdvertiseLE to CC2654, Phone can connect  SPPLEdemo.  I want send data to phone, but phone can't found Service and can't enable notification.

Log:


SPP+LE>registerspple
Successfully registered SPPLE Service.


SPP+LE>advertisele 1
GAP_LE_Advertising_Enable success.

SPP+LE>
etLE_Connection_Complete with size 16.
Status: 0x00.
Role: Slave.
Address Type: Random.
BD_ADDR: 0x4ABED049C677.

SPP+LE>
etGATT_Connection_Device_Connection with size 16:
Connection ID: 3.
Connection Type: LE.
Remote Device: 0x4ABED049C677.
Connection MTU: 23.

SPP+LE>
etLE_Authentication with size 36.
latKeyRequest:
BD_ADDR: 0x4ABED049C677.
GAP_LE_Regenerate_Long_Term_Key Success.

SPP+LE>
etLE_Encryption_Change with size 8.

http://processors.wiki.ti.com/index.php/CC256x_TI_Bluetooth_Stack_SPPLEDemo_App

  • Monster,

    Since SPPLE is a custom service created to perform SPP over a BLE link, most apps don't support it natively. I would suggest downloading the LightBlue app and working through the section in the wiki page you referenced for getting data transfer.

    Best Regards,

    Vince 

  • Hi Sir,

    I want set Characteristic like CC2541 simpleperipheral. Please help check code.

    #define SIMPLEPROFILE_SERV_UUID 0xFFF0

    // Key Pressed UUID
    #define SIMPLEPROFILE_CHAR1_UUID 0xFFF1

    static BTPSCONST GATT_Primary_Service_16_Entry_tSPPLE_Service_UUID =
    {
    SIMPLEPROFILE_SERV_UUID
    };

    /* The Tx Characteristic Declaration. */
    static BTPSCONST _tagGATT_Characteristic_Declaration_16_Entry_t SPPLE_Tx_Declaration =
    {
    GATT_CHARACTERISTIC_PROPERTIES_NOTIFY|GATT_CHARACTERISTIC_PROPERTIES_WRITE|GATT_CHARACTERISTIC_PROPERTIES_READ,
    SIMPLEPROFILE_CHAR1_UUID 
    };

    /* The Tx Characteristic Value. */
    static BTPSCONST GATT_Characteristic_Value_16_Entry_t SPPLE_Tx_Value =
    {
    SIMPLEPROFILE_CHAR1_UUID ,
    0,
    NULL
    };

  • Sending Data from LightBlue/Receiving Data in SPPLEDemo

    At this point the client (LightBlue) can send data to the server (SPPLEDemo). To send data from LightBlue to SPPLEDemo do the following:

    1. Open the Rx Characteristic (0x8B00ACE7-EB0B-49B0-BBE9-9AEE0A26E1A3).
    2. Choose Write new value.
    3. Type 414243 (ABC in ASCII).
    4. Choose Done

    Will trigger  SPPLE_RX_CHARACTERISTIC_ATTRIBUTE_OFFSET in GATT_ServerEventCallback when Lightbule Write new value?

  • It will trigger  SPPLE_RX_CHARACTERISTIC_ATTRIBUTE_OFFSET in GATT_ServerEventCallback when Lightbule Write new value

  • Monster,

    Did you solve your issue above?

    BR,

    Vince