Hello everyone,
I have an application (in both B4A & B4i) that gets sensors (IMU) data from an arduino type device using BLE. I get the data using Manager_DataAvailable sub.
The data is parsed and displayed using labels and two 3D animated bodies.
When I run the B4A version I can process my data (12 integers) at 70 Hz. Process meaning, parsing, displaying in 6 labels and animating two 3D bodies, all is perfect!
The problem (limitation) occurs with my B4i version, I only achieve 12Hz and cannot process the 3D bodies part, because it seems that the Manager_DataAvailable sub locks any other process intill it get all the data and of course it triggers again when new data is arriving, thus limiting the time to process the 3D display.
By any chance is there anyone around that faced such a limitation and found a workaround?
I cannot post the code because of the length and complexity, but I guess that you grasped the idea
Thank you
Cheers
B4i version: 8.90
Ipad (5th generation) IOS version: 16.7.11
using: BleManager2
I have an application (in both B4A & B4i) that gets sensors (IMU) data from an arduino type device using BLE. I get the data using Manager_DataAvailable sub.
The data is parsed and displayed using labels and two 3D animated bodies.
When I run the B4A version I can process my data (12 integers) at 70 Hz. Process meaning, parsing, displaying in 6 labels and animating two 3D bodies, all is perfect!
The problem (limitation) occurs with my B4i version, I only achieve 12Hz and cannot process the 3D bodies part, because it seems that the Manager_DataAvailable sub locks any other process intill it get all the data and of course it triggers again when new data is arriving, thus limiting the time to process the 3D display.
By any chance is there anyone around that faced such a limitation and found a workaround?
I cannot post the code because of the length and complexity, but I guess that you grasped the idea
Thank you
Cheers
B4i version: 8.90
Ipad (5th generation) IOS version: 16.7.11
using: BleManager2