AnsweredAssumed Answered

QN908x How to maximize notification throughput?

Question asked by Jose Raffucci on Apr 9, 2019
Latest reply on Oct 29, 2019 by Jose Raffucci

I need to periodically send sensor data to a connected host. The data can be several kilobytes in size.  I have been using the GattServer_SendInstantValueNotification() function to send the data via the notification mechanism.   The only way I can get it to work reliably is to only send a maximum of gAttMaxNotifIndDataSize_d bytes in each frame and wait at least a full connection interval before sending the next frame.

 

This doesn't seem right as I should be able to cram more frames per connection interval, no?  What's the best way to send, say, 4k worth of data via notifications with a 20ms connection interval and a 247 byte MTU?  I've looked all over but can't find any way to sync up to the connection event or event find a callback to tell me that it's ok to queue up more data.

Outcomes