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.

Object Transfer Service sample code for CC2640

Other Parts Discussed in Thread: CC2640

Hi,

A GATT service (Object Transfer Service) available for bulk data transfer in the bluetooth which occur via a separate L2CAP connection oriented channel.

so do you have a sample code for CC2640 to enable or use this service in the TI cc26xx BLE stack?

Or do you have documentation for that?

Thanks.

Thangaraj.P

  • Hello,

    We have documentation on L2CAP CO Channels in the BLE SW Developer's Guide (SWRU393). What are you looking to implement? I assume this is not with a smart phone as currently neither of the major smart device OS's support L2CAP CO channels.

    Best wishes
  • Also I could not find Object Transfer Service in the adopted specification:

    Based on your application needs, another option is to use our UART to serial bridge design to stream data over BLE.

    Best wishes

  • Hi Jxs and Zahid,

    Thanks for the info.

    our requirement is like we have to transfer the bulk data from cc2640 to smart phones over BLE  and vice versa.

    As we know that  can transfer max 21bytes of data over BLE at time. so that we need to do segmentation for outgoing data from cc2640  over BLE and reassemble  incoming data from BLE to cc2640. so to avoid that manual segmentation and reassembly we though to use the object transfer protocol which will support the bulk data transfer.

    so could you please suggest how can we handle this bulk data transfer in cc2640 platform?

    Thanks,

    Thangaraj.P

  • Hi,

    About how much data are you talking about transferring? I have used the BLE bridge design: www.ti.com/.../TIDC-SPPBLE-SW-RD
    to transfer files over. Since it uses GATT notifications/ Write no responses, it should be supported by all the smartphone supporting BLE.

    Best wishes
  • Hi Zahid,

    it's more than 21 bytes. its depend on the application.

    Let us assume 100bytes need to transfer.

    From this SPP document page no .3,  i understood that data characteristics can support 20 bytes of packet length.

    so how can we send the 100 bytes of data with doing the segmentation from our Application side?

    Please suggest.

    Thanks.

    Thangaraj.P

  • Hi Zahid,
    could you please clarify on my query ?

    Thangaraj.P
  • Hi,

    You should be able to send the 100 bytes one at a time and receive on the other end in the same order. You can store it in an array as the bytes come in and process it in the application layer. More info can be found in this doc:

    Specifically pg.6 on how where in the code data is sent/received in the application.