Skip to content

Commit 73c2393

Browse files
committed
Merge branch 'master' into DEV-135
2 parents 09fb410 + 68f1fa4 commit 73c2393

48 files changed

Lines changed: 2778 additions & 1954 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ShimmerBluetoothManager/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ publishing {
2424
from components.java
2525

2626
groupId = 'com.shimmerresearch' // Replace with your package's group/organization name
27-
artifactId = 'shimmerbluetoothmanagerdev' // Replace with the name of your package
28-
version = '0.10.21_alpha' // Replace with your package version
27+
artifactId = 'shimmerbluetoothmanager' // Replace with the name of your package
28+
version = '0.11.4_beta' // Replace with your package version
2929

3030
// Jar publication
3131
//(

ShimmerBluetoothManager/src/main/java/com/shimmerresearch/managers/bluetoothManager/ShimmerBluetoothManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public abstract class ShimmerBluetoothManager{
5555
protected static final boolean USE_INFOMEM_CONFIG_METHOD = true;
5656
public static final long SLEEP_BETWEEN_GROUP_ACTIONS_MS = 50;
5757
public static final String COMPORT_PREFIX = "COM";
58+
public static final String COMPORT_PREFIX_MAC = "/dev/";
5859
protected int mSyncTrainingIntervalInSeconds = 15;
5960
protected int msDelayBetweenSetCommands = 0;
6061
protected BluetoothProgressReportAll mProgressReportAll;
@@ -502,7 +503,7 @@ public void removeShimmerDeviceBtConnected(String connectionHandle){
502503
}
503504

504505
protected BluetoothDeviceDetails getBluetoothDeviceDetails(String connectionHandle){
505-
if (!connectionHandle.contains(COMPORT_PREFIX)) {
506+
if (!connectionHandle.contains(COMPORT_PREFIX) && !connectionHandle.contains(COMPORT_PREFIX_MAC)) {
506507
return getBLEDeviceDetails(connectionHandle);
507508
}
508509
return mMapOfParsedBtComPorts.get(connectionHandle);
@@ -835,7 +836,7 @@ else if(deviceTypeDetected==DEVICE_TYPE.ARDUINO){
835836
if (shimmerDevice!=null && !(shimmerDevice instanceof ShimmerShell)){
836837
printMessage("Connecting to " + shimmerDevice.getClass().getSimpleName() + " with connection handle = " + (connectThroughComPort? comPort:bluetoothAddress));
837838
if(connectThroughComPort){
838-
if (!comPort.contains(COMPORT_PREFIX)) {
839+
if (!comPort.contains(COMPORT_PREFIX) && !comPort.contains(COMPORT_PREFIX_MAC)) {
839840
connectShimmer3BleGrpc(bluetoothDetails);
840841
}else {
841842
connectExistingShimmer(shimmerDevice, comPort, bluetoothAddress);

ShimmerDriver/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ publishing {
4646
from components.java
4747

4848
groupId = 'com.shimmerresearch' // Replace with your package's group/organization name
49-
artifactId = 'shimmerdriverdev' // Replace with the name of your package
50-
version = '0.10.21_alpha' // Replace with your package version
49+
artifactId = 'shimmerdriver' // Replace with the name of your package
50+
version = '0.11.4_beta' // Replace with your package version
5151

5252
// Jar publication
5353
//(

ShimmerDriver/src/main/java/com/shimmerresearch/algorithms/orientation/OrientationModule9DOF.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static class DatabaseChannelHandles{
295295
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LSM303_MAG,
296296
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LSM6DSV_ACCEL_LN,
297297
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LSM6DSV_GYRO,
298-
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LIS3MDL_MAG),
298+
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LIS2MDL_MAG),
299299
CHANNEL_UNITS.NO_UNITS,
300300
SENSOR_CHECK_METHOD.ANY,
301301
listChannelsEuler9DOF_LN);
@@ -318,7 +318,7 @@ public static class DatabaseChannelHandles{
318318
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LSM303_MAG,
319319
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LIS2DW12_ACCEL_WR,
320320
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LSM6DSV_GYRO,
321-
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LIS3MDL_MAG),
321+
Configuration.Shimmer3.SENSOR_ID.SHIMMER_LIS2MDL_MAG),
322322
CHANNEL_UNITS.NO_UNITS,
323323
SENSOR_CHECK_METHOD.ANY,
324324
listChannelsQuat9DOF_WR);

0 commit comments

Comments
 (0)