iOS Question BLE Receiving and Displaying data simultinuasously

noega33

Member
Licensed User
Longtime User
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
 

noega33

Member
Licensed User
Longtime User
Are you testing it in release mode? There could be huge difference in performance.
You are right Erel, so far, I had only tested in debug mode.
In release mode, I can achieve 47Hz without the 3D bodies display and 25Hz with the 3D bodies display (which is plenty enough for my app)
It does indeed make a huge difference
Thank you
 
Upvote 0
Top