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.

Transferring data between Peripheral and Central Device

Hello everybody,

I'm quite new in BLE devices.

I bought a CC2541DK kit and I started playing with SimplePeripheral and Central examples. I managed in understanding advertising, scanning and connection mechanism...

But once the two devices are connected, how can I simply pass application data between them? For instance I want the peripheral device to send a variable to the central device. the central device reads it , increments it and then it sends it again to the peripheral device and so on... I looked up in the firmware but it's very difficult for me to understand where I can insert this code, if are there data-buffers as "scanRspData" or "advertData"...or I'm totally wrong and I have to act in a different way.

Thanks in advance.

  • Hello Paolo,

    Welcome to the Forum!


    There are some very helpful PDFs and a video found in the FILES tab for this forum.  You will also find information in the Documents founder in the BLE v1.3.  Plus you can download the actual Bluetooth v4.0 guide.


    Unless you are coming from a Bluetooth background, the BLE will require gaining the basic principles in order to follow the code.  There are many ways to send data, but the is only one way to do it that follows the proper protocol.


    Sending between devices requires the use of the get, set, read and write parameters.  Once you have familiarized youself with the code by going through the examples, you will see how to configure things properly.  Unless you qualify as super genius, you won't be able to do this in a weekend or two.  But it is not all doom and gloom!  You can search the forum for the answers to the questions you will have.  We were all in your shoes at one time.  It's not easy or intuitive, so you will have to do a lot of reading before the concepts sink in.


    Good luck,

  • OK,

    thank you very much greenja,

    so I' ll start reading and hope I'll be back "more prepared"!

    Bye! :-)