Hi All,
I have an application that wants to send 1 array every 2ms.
There are 10Bytes of data in the array.
I will be based on 1Mbps, MTU size = 23byte, Payload = 27byte, Event Length = 7.5ms.
Is this possible?
Best regards,
Kai
Hi All,
I have an application that wants to send 1 array every 2ms.
There are 10Bytes of data in the array.
I will be based on 1Mbps, MTU size = 23byte, Payload = 27byte, Event Length = 7.5ms.
Is this possible?
Best regards,
Kai
At present, the MCU will generate 10Byte data at a speed of 2ms.
For the bluetooth part, I built a Buffer to load the data generated by the MCU and accumulated 100 bytes for Notify.
One option is to implement your own way to keep track of how many elements you have queued(Variant #2). Another option is to monitor whether NRF_SUCCESS or NRF_ERROR_RESOURCES is returned each time you queue an element(as in Variant #1).
I donot know how to use it,do you have any example code?
Would you be able to share some of your work?
How to handle this highly depends on your application.
Here is the throughput example: \examples\ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput
Check out char_notification_send() in amts.c
The function checks if the buffer is full. If it is full, it will wait and retry.
Here is a discussion on the topic: https://devzone.nordicsemi.com/f/nordic-q-a/69440/s140---gatts-handle-value-notification/285667#285667