I'm looking for a way to transfer a large file at high transfer rate with an L2CAP oriented connection with credit based flow control, as briefly referenced in this post.
devzone.nordicsemi.com/.../what-is-credit-based-flow-control-l2cap-channel
If you want more detail I suggest you examine Vol. 3, Part A Section 3.4, 4.22, 4.23, 4.24 and 10.1 in the Bluetooth Core Specification 4.2.
I'm using a nrf52832, with an s132 soft device, and operating in peripheral mode.
I can't find a way to do this through the API. I've seen some other questions, as well as some good write-ups by Ulrich on the matter, but nothing that allows me to take control directly.
The CC2640 (www.ti.com/.../CC2640) has a function that lets the programmer set the credits...
bStatus_t L2CAP_FlowCtrlCredit( uint16 CID, uint16 peerCredits )
The s132 l2cap allows me to un/register a cid, and send data, but I can't find where to set credits. It seems like this device does/should support what I'm trying to do.
This may just be a case of me looking too hard. Does it do this by itself/controlled by the master? Or is there even a higher level call I can use to get this functionality without losing too much control...
What am I missing?
Thanks in advance.