Inconsistent frequency when streaming at 50hz.
Hi
I am using MetaMotion R with firmware version 1.3.3.
I am using the following two gradle dependencies for mbient:
compile 'com.mbientlab:metawear:2.5.9'
compile 'com.mbientlab.bletoolbox:scanner:0.2.0'
compile 'com.mbientlab:metawear:2.5.9'
compile 'com.mbientlab.bletoolbox:scanner:0.2.0'
I am streaming both accelerometer and gyroscope at 50hz.
I have performed multiple tests by streaming 30-45 min data.
I have discovered that I am only streaming about 40hz instead of the 50hz.
You can see my mbient specific code here:
http://pastebin.com/20p80bF1
I am trying to revise how I stream the data, so I looked at the documentation and tutorial once again.
I am trying to revise how I stream the data, so I looked at the documentation and tutorial once again.
It looks like the documentation and tutorial are using two different ways of streaming. What is the difference?
This discussion has been closed.
Comments
I know that the tutorials are not out yet, but I wanted to try it out and see if it solved my problem.
http://pastebin.com/QhdHwtb7
I am trying to create streams for accelerometer and gyroscope at 50hz. But the Log.i() is not posting anything, so it seems like they are not actually streaming.
I have tried to call readDeviceInformation() and it print the following, so I know the sensor is connected properly.
{manufacturer: MbientLab Inc, serialNumber: 004F20, firmwareRevision: 1.3.3, hardwareRevision: 0.1, modelNumber: 5}
I can now stream with both sensors again.
Is there a onDisconnect event trigger? Such that you can enable led or logging if the sensor disconnects?