I have tried to modify "SendAccelerometerDataOverBle" to send data every 10ms (100Hz) / even 5ms (200Hz) and encountered ErrorCode78 - probably because the frequency of the data from accelerometer was less compared to the data output rate(?)
I have separatly initialized BMA280 sensor at 500Hz (even at other frequencies), but I still face the same ErrorCode. Could someone suggest me where I am going wrong?
Expected output - BLE data transfer at 100Hz/200Hz
Really appreciate your help?
the packet rates 10ms or 5ms are not supported by BLE.
The time between packets in BLE is called connection interval and this is limited, for example in iOS to 15ms (https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf) . Also due to thermal management and duty-cycling, every 4 packets there will be a larger pause between packets.
The recomendation to increase payload (up to a certain point) is to pack the most amount of data points into the characteristic's payload.
Besides that, BLE is usually not the recomended physical layer for high-troughput telemetry.