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.

LAUNCHXL-CC26X2R1: Not able to communication with simple central (modified ) with simple peripheral(modified)

Part Number: LAUNCHXL-CC26X2R1
Hello TI Team,


I have a simple central (modified) project which is working fine with mobile, And there is also the project of a simple peripheral (modified) which is working fine with the mobile. But when Simple Central and Simple Peripheral communicate with each other, only paring can happen, data sharing is not happening.

for peripheral I have used this services


#define DATA_SERVICE_SERV_UUID 0xFFF1
#define DATA_SERVICE_SERV_UUID_BASE128(uuid) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0xB0, 0x00, 0x40, 0x51, 0x04, LO_UINT16(uuid), HI_UINT16(uuid), 0x00, \
0xF0

// Stream Characteristic defines

#define DS_STREAM_ID 1
#define DS_STREAM_UUID 0xFFF2
#define DS_STREAM_UUID_BASE128(uuid) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0xB0, 0x00, 0x40, 0x51, 0x04, LO_UINT16(uuid), HI_UINT16(uuid), 0x00, \
0xF0
#define DS_STREAM_LEN 40
#define DS_STREAM_LEN_MIN 0


#define DS_STREAM_ID1 2
#define DS_STREAM_UUID1 0xFFF3
#define DS_STREAM_UUID_BASE128(uuid) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0xB0, 0x00, 0x40, 0x51, 0x04, LO_UINT16(uuid), HI_UINT16(uuid), 0x00, \
0xF0
#define DS_STREAM_LEN1 40
#define DS_STREAM_LEN_MIN1 0



Please suggest me any where I doing wrong.

Thanks,
Ashutosh Singh
  • Hi Ashutosh,

    The simple_central & simple_peripheral applications do not implement automatic data streaming. The applications, by default, implement reading and writing to specified characteristics that are present within the simple profile. To read/write to a custom characteristic, the application code should be modified, but the projects provide an excellent starting point for this.

    If you are interested in sending data back and forth, then I would recommend referencing the Simple Serial Socket (Server & Client) example available in our GitHub. The specified examples, transmits UART over BLE from one device to the other and vice versa. It may be a helpful reference for your use-case. I would also recommend referencing the throughput example (Peripheral & Central) as this example implements a data stream as part of its use-case.

    If you are implementing a custom profile, then I would also suggest referencing the Custom Profile SLA lab, as it contains a very useful service generator as well as material that shows how to implement a custom profile.

    Best Regards,

    Jan