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.

C2540 BLE DESIGN KIT

Hello all ,

 

I bought a CC2540DK-MINI  and I would like to modify the keyfob payload , just adding " hello world" , but i don't succes where to modify the payload .

Does anyone success to do it , or the payload is fixed into the lib file ?

Where can i find more details concerning BLE stack ?

 

Have a nice day !

  • Didier,

    The first place to start in order to get more information about the BLE stack would be to read through the TI BLE Software Developer's Guide that is installed together with the software. This describes how the stack is organized, and also contains links to other documents that provide more detail about the specific APIs etc.

    If you take a look at the BLE architecture diagram on page 6, you will see that ATT and GATT are two very important pieces of the BLE architecture. To achieve what you want to do, you would basically define a text string attribute with the content "hello world". BLE does not have a direct equivalent of the SPP serial port profile of regular Bluetooth. Most things in BLE are done using attributes instead.

    I would recommend starting by modifying the example included to define a new attribute that contains the "hello world" string. There is more information about how this works in chapter 3.3.2 and onwards in the Developer's Guide.

    Good luck!

    Karl

  • Karl ,

     

    I try to use "simpleProfile_WriteAttrCB" but that don't work !

    Do you know where i can find a sample code just sending a value , for example just sending a value coming from the ADC to the host ?

     

    Have a nice day !

  • Dider,

    Just for grins, I changed the GAP_DEVICE_NAME from "Simple BLE Peripheral" to "Hello World!" on the device (keyfob) side. Compiled using the IAR Workbench. Then, using the BTool, I Read the Characteristic Value at handle 0x0003. Worked great and allowed me to then modify the SK_SERVICE to toggle the keyfob LED whenever I wrote a value to Characteristic 1.

    Cheers,

    Dan Dupree