Error multiple sensors or board logging
Hi Eric,
i have problems to log multiple sensores or boards. I use the R pro sensor with the firmware 1.24. When i log the sensor data seperate, my code works. But if i want log the data simultan, i become this error massages.
Here the configuration of the boards:
The download routine:
Last but not least the Error message:
Best reguards
tobi
i have problems to log multiple sensores or boards. I use the R pro sensor with the firmware 1.24. When i log the sensor data seperate, my code works. But if i want log the data simultan, i become this error massages.
Here the configuration of the boards:
accelHandRight.configureAxisSampling()
.setFullScaleRange(Bmi160Accelerometer.AccRange.AR_16G)
.setOutputDataRate(ACCEL_FREQ)
.commit();
accelHandRight.enableAxisSampling();
accelHandRight.routeData().fromAxes().log("log_accel_hand_right").commit()
.onComplete(new AsyncOperation.CompletionHandler</span><span><routemanager>() {
@Override
public void success(RouteManager result) {
result.setLogMessageHandler("log_accel_hand_right", new RouteManager.MessageHandler() {
@Override
public void process(Message msg) {
final CartesianFloat axisData = msg.getData(CartesianFloat.class);
//record.handRightData.addAccel(null, new Point3D(axisData.x(), axisData.y(), axisData.z()));
Log.i("Log Accel HR", String.format("Log: %s", axisData.toString()));
}
});
}
@Override
public void failure(Throwable error) {
Log.e("LOG TAG", "Error committing route", error);
}
});
gyroHandRight.configure()
.setFullScaleRange(Bmi160Gyro.FullScaleRange.FSR_2000)
.setOutputDataRate(GYRO_FREQ)
.commit();
gyroHandRight.routeData().fromAxes().log("log_gyro_hand_right").commit()
.onComplete(new AsyncOperation.CompletionHandler<routemanager>() {
@Override
public void success(RouteManager result) {
result.setLogMessageHandler("log_gyro_hand_right", new RouteManager.MessageHandler() {
@Override
public void process(Message msg) {
final CartesianFloat axisData = msg.getData(CartesianFloat.class);
record.handRightData.addGyro(null, new Point3D(axisData.x(), axisData.y(), axisData.z()));
Log.i("Log Accel", String.format("Log: %s", axisData.toString()));
}
});
}
@Override
public void failure(Throwable error) {
Log.e("LOG TAG", "Error committing route", error);
}
});
The download routine:
logModuleHandRight.stopLogging();
gyroHandRight.stop();
accelHandRight.stop();
logModuleHandRight.downloadLog(0.5f, new Logging.DownloadHandler() {
@Override
public void onProgressUpdate(int nEntriesLeft, int totalEntries) {
Log.i("LOG Entrys Tag HR", String.format("Progress= %d / %d", nEntriesLeft,
totalEntries));
}
});
Log.i("LOG Entrys Tag HR", "Log size: " + logModuleHandRight.getLogCapacity());
Last but not least the Error message:
10-11 13:36:56.897 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.898 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.899 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.910 22593-22593/com.gaitapp.steinmetzer.gaitapp I/Log Gyro: Log: (-0.122, -0.183, -0.305)
10-11 13:36:56.942 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.942 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.944 22593-22593/com.gaitapp.steinmetzer.gaitapp I/Log Gyro: Log: (-0.732, 0.000, -0.305)
10-11 13:36:56.945 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.945 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.991 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.992 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.993 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.993 22593-22593/com.gaitapp.steinmetzer.gaitapp I/Log Gyro: Log: (-0.366, -0.122, -0.305)
10-11 13:36:56.994 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data
10-11 13:36:56.997 22593-22593/com.gaitapp.steinmetzer.gaitapp I/Log Gyro: Log: (-0.244, -0.122, -0.305)
10-11 13:36:57.039 18484-18509/? E/bt_btif: bta_gattc_cmpl_cback unknown conn_id = 4, ignore data<br><br><br>
Thank you for your help! If you need more information give me a notice.Best reguards
tobi
This discussion has been closed.
Comments
I use Android 6.0.1 and a Sony Xperia Z4 tablet. I updated the API to 2.6.5 and the Firmware to 1.25. Now it works.
Best reguards