BlueNRG-MS: How to increase TX Buffer or How to minimize buffer available delay?
Hi,
I'm facing a problem with TX Buffer in my Through Put test using two SPBTLE-RF module. One acts as Client, and one as a Server.
The test is simple, continously call aci_gatt_write_without_response to send 20 bytes of data 1024 times (20 KB) and measure speed. But the test result came out not as expected, it takes about 19 seconds to send 20 KB.
Putting some debug code to see how it goes, I see that after first 7 consecutively sends, TX buffer is full and each time, it has to wait about 27ms before sending again.

Below is the debug code:

I have some questions regarding this, please support me:
- Is the TX buffer limited to 7 packets? How can I increase TX Buffer? In this case I only update 1 characteristic.
- Why does it takes about 27 ms to have a free TX slot again, and only 1 slot after next TX buffer full ? It is larger than the connection interval I'm using which is about 20ms. Also, first 7 packets sent without problem. I have checked my interrupt routine which served EVT_BLUE_GATT_TX_POOL_AVAILABLE, it seems no delay added, so the ISR serving time very small.
Best regards,
Dat Le.