Open ghost opened 6 years ago
Not just accelerometer - none of the sensors transmit regularly/reliably at fast speeds over BLE e.g. see #316. In my experience lots of the expected notifications are just lost completely.
Wondering if there needs to be some flow control to stop overwhelming the nRF stack? I don't have time to look into this more unfortunately.
I've had a few people report issues (usually via the microbit foundation support team) with the frequency with which they receive accelerometer data over Bluetooth. This is configurable via the Accelerometer Period characteristic.
With a period of 640ms it works fine. At 20ms though, notifications arrive with a frequency that doesn't seem related to this value at all. Testing with nRF Connect :
Looks like notifications are being buffered and transmitted in batches, maybe.
whereas at 640ms periodicity:
This behaviour messes up some of the experiments people are doing with micro:bits moving in space, in various scenarios. It would be greast if it were possible to smooth the timing of the transmission of notifications so this was more aligned with the timing of the production of the data being notified.