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.

Packet / Stream based protocol over GATT



I understand the GATT protocol in Bluetooth LE is designed mainly for a sensor who wishes to expose it's CURRENT information to a master device.

I am developing an application for a sensor that ACCUMULATES data, and when a master connects, it sends it all the accumulated data.

I am looking for a packet/ stream based protocol (like IP, or TCP/UDP) to implement over GATT. 

I would like to buffer all the data to be transmitted, and when a master connects, it would receive all the buffered data.

I thought about something like creating a linked list - each node is a characteristic value the has data and pointer to the next handle. 

Than when the master connects, it can read all the accumulated data, and writes to another value to indicated the data has been read.

But this seems to me like reinventing the wheel...  

Is there an existing (or planned for the near future) protocol like this that works over GATT ?

Thanks,

Sasha.

  • Currently there is no protocol like that for use over GATT. At some point in the future the BT core spec may include features such as dynamic L2CAP channels as well as fragmentation and defragmentation, which would bypass GATT altogether and allow for larger data transfers. With the current BT 4.0 spec, all data communications must use GATT.

  • Hi Sasha,

    it's been a long time since you raised that topic. I am wondering if you found an existing solution or did you implement something on your own?


    Regards

    Andreas