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.

CC2640R2F: Need to make BLE project to connect(act like mobile phone) with an existing simple peripheral project.

Part Number: CC2640R2F


Hi,

Need to make BLE project to connect(act like a mobile phone) with an existing simple peripheral project.

I want to make the new BLE device connect to the simple peripheral device whenever directed via UART.

Please let me know which example project to pick for this activity?


Thanks in advance.

Regards,

Saurav

  • You can use simple_central example.

  • Saurav,

    Yikai's suggestion is valid to connect to a simple_peripheral, as your initial premise shows. 

    Since you mentioned UART at the end, perhaps you can take a look at the Simple Serial Socket example at our Github repository.

    https://github.com/ti-simplelink/ble_examples/tree/simplelink_cc13x2_26x2_sdk-4.10

    Otherwise you will need to provide additional details about the application so we can point to a more useful resource.

    Hope this helps,

    Rafael

  • Hi ,

    I need to

    send data(30 Byte) to the peripheral device on characteristic 1

    &

    have to receive data(30 Byte) on the characteristic 2

    --------------------------------------------------------------------------------------

    I will manage the UART communication part.

    But need to know if good resources are present for sending a receiving more than 1 byte of data and that also on different characteristic as I have seen that the central project sends data on 1 characteristic and receive data on that characteristic only.

    Regards,

    Saurav

  • Saurav,

    Please apologize for the delay; this thread slipped under the radar.

    If I understood correctly, you would like to know if there is a way to transmit multiple bytes in a single transfer, is that so? If so, Bluetooth 4.2 and newer allow setting the MTU up to 255 Bytes (251 Bytes of net payload). You still have to manage the data, but you can get a higher throughput. Some references can be seen at the section "Attribute" of the Simplelink Academy Custom Profile module:

    https://dev.ti.com/tirex/explore/node?a=krol.2c__2.20.00.49&node=AALRuBvnOq9sws.aXdTEQw__krol.2c__LATEST

    A typical simple_peripheral project contains a Symbol define for the MAX_PDU_SIZE in its project properties, which is also referenced in the file ICallBLE/ble_user_config.h

    You can surely transfer data through multiple characteristics, but the connection interval will define how frequently the 251 Bytes of payload data will be sent. 

    Hope this helps,

    Rafael