Hi
I have an Arduino using the ArduinoBLE library. The board has a service which now has a handful of characteristics sending data from an IMU sensor. Cycling 100 samples per second, three characteristics each with three axes of data.
I have an LED on the Arduino which flashes every 100 cycles of IMU read (and does so when the B4A app is connected to the service before data transmission). It flashes slightly faster than 1 second intervals. A rate that I'm trying to achieve.
My B4A app. uses the manager.SetNotify() instruction, controlled by a timer, to launch successive connections to each of the characteristics.
Once the characteristics are live I do get data from the IMU. (In case it's the B4A code, as a test, I commented out all the code in the manager_DataAvailable routine.) Either way, the Arduino cycle slows dramatically; to the region of 100 cycles in TEN seconds.
Is there a setting, I'm missing? I have read in one post that throughput is potentially an issue but haven't found anyone providing insight or a fix. The Bluetooth LE standard talks about application throughput 0.27-1.37 Mbit/s.
Ideas, very welcome!
Thanks
I have an Arduino using the ArduinoBLE library. The board has a service which now has a handful of characteristics sending data from an IMU sensor. Cycling 100 samples per second, three characteristics each with three axes of data.
I have an LED on the Arduino which flashes every 100 cycles of IMU read (and does so when the B4A app is connected to the service before data transmission). It flashes slightly faster than 1 second intervals. A rate that I'm trying to achieve.
My B4A app. uses the manager.SetNotify() instruction, controlled by a timer, to launch successive connections to each of the characteristics.
Once the characteristics are live I do get data from the IMU. (In case it's the B4A code, as a test, I commented out all the code in the manager_DataAvailable routine.) Either way, the Arduino cycle slows dramatically; to the region of 100 cycles in TEN seconds.
Is there a setting, I'm missing? I have read in one post that throughput is potentially an issue but haven't found anyone providing insight or a fix. The Bluetooth LE standard talks about application throughput 0.27-1.37 Mbit/s.
Ideas, very welcome!
Thanks