Closed karthikmohan4 closed 1 year ago
increase mtu is the only solution.
if there is data loss it is a bug in your code or device.
The library is no problem for fast BLE data transfer. Thanks to the author's hard working.
If problems happen, it is the device and your code.
So what should be the ideal time to receive the data from BLE device for ex: 9654 bytes.?
Apart from read/write does any method helps us to retrieve data fast like sstream.
My code follows (req-res) method.
Also the ble device version is 4.2. Would that be a reason for slow transfer. ?
Can you provide any resource related to this.
BTW thanks for the package.
In fact, it is a little complicated. There is a negotiation between PHONE (BLE SERVER) and the device for the interval, MTU, and some other communication parameters. If you could control your device's BLE code, and then you could adjust BLE data performance, otherwise nothing could be improved. These parameters are much more important than the BLE library.
also, it will be faster if your ble device supports notifications & you use setNotifyValue
and onValueReceived
.
closing because there is nothing more for FBP to do
As read & write method is async. It would ideally take 54sec to transfer 9654 Bytes , packet by packet from the BLE device. If MTU is set more than 23, there is data loss.
How to basically achieve the fast data transfer in less time.
BLE device version : 4.2