V3.1.13 - Fixed problem with network datasource not responding to FAULT conditions correctly
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
OpenSeizureDetector Android App - Change Log
|
OpenSeizureDetector Android App - Change Log
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
V3.2.0 - (NEXT VERSION!)
|
V3.1.13 - 16feb2020
|
||||||
- Added neural network based data analysis.
|
- Fixed problem with NetworkDataSource not responding to FAULT conditions properly.
|
||||||
|
|
||||||
V3.1.12 - 15feb2019
|
V3.1.12 - 15feb2020
|
||||||
- Updated web server to return correct application/json mime type to get rid of -400
|
- Updated web server to return correct application/json mime type to get rid of -400
|
||||||
errors on garmin watch. Made error messages json strings too.
|
errors on garmin watch. Made error messages json strings too.
|
||||||
Added hrAlarmStanding value to /data json string, which should get remove
|
Added hrAlarmStanding value to /data json string, which should get remove
|
||||||
|
|||||||
BIN
app/release/app-release-3.1.13.apk
Normal file
BIN
app/release/app-release-3.1.13.apk
Normal file
Binary file not shown.
@@ -1 +1 @@
|
|||||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":66,"versionName":"3.1.12","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":67,"versionName":"3.1.13","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="uk.org.openseizuredetector"
|
package="uk.org.openseizuredetector"
|
||||||
android:versionCode="66"
|
android:versionCode="67"
|
||||||
android:versionName="3.1.12"
|
android:versionName="3.1.13"
|
||||||
>
|
>
|
||||||
<!--android:allowBackup="false"-->
|
<!--android:allowBackup="false"-->
|
||||||
|
|
||||||
|
|||||||
@@ -133,9 +133,10 @@ public class SdData implements Parcelable {
|
|||||||
simpleSpec[i] = specArr.optInt(i);
|
simpleSpec[i] = specArr.optInt(i);
|
||||||
}
|
}
|
||||||
haveData = true;
|
haveData = true;
|
||||||
|
Log.v(TAG, "fromJSON(): sdData = " + this.toString());
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.v(TAG, "fromJSON() - error parsing result");
|
Log.v(TAG, "fromJSON() - error parsing result"+e.toString());
|
||||||
haveData = false;
|
haveData = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ public class SdDataSourceNetwork extends SdDataSource {
|
|||||||
sdData.alarmPhrase = "Warning - No Connection to Server";
|
sdData.alarmPhrase = "Warning - No Connection to Server";
|
||||||
Log.v(TAG,"doInBackground(): No Connection to Server - sdData = "+sdData.toString());
|
Log.v(TAG,"doInBackground(): No Connection to Server - sdData = "+sdData.toString());
|
||||||
} else {
|
} else {
|
||||||
|
Log.v(TAG,"doInBackground - result = "+result);
|
||||||
sdData.fromJSON(result);
|
sdData.fromJSON(result);
|
||||||
// Populate mSdData using the received data.
|
// Populate mSdData using the received data.
|
||||||
sdData.serverOK = true;
|
sdData.serverOK = true;
|
||||||
@@ -200,9 +201,9 @@ public class SdDataSourceNetwork extends SdDataSource {
|
|||||||
// a string.
|
// a string.
|
||||||
private String downloadUrl(String myurl) throws IOException {
|
private String downloadUrl(String myurl) throws IOException {
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
// Only display the first 500 characters of the retrieved
|
// Only retrieve the first 2048 characters of the retrieved
|
||||||
// web page content.
|
// web page content.
|
||||||
int len = 500;
|
int len = 2048;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL url = new URL(myurl);
|
URL url = new URL(myurl);
|
||||||
@@ -214,7 +215,7 @@ public class SdDataSourceNetwork extends SdDataSource {
|
|||||||
// Starts the query
|
// Starts the query
|
||||||
conn.connect();
|
conn.connect();
|
||||||
int response = conn.getResponseCode();
|
int response = conn.getResponseCode();
|
||||||
Log.d(TAG, "The response is: " + response);
|
Log.d(TAG, "downloadUrl(): The response is: " + response);
|
||||||
is = conn.getInputStream();
|
is = conn.getInputStream();
|
||||||
|
|
||||||
// Convert the InputStream into a string
|
// Convert the InputStream into a string
|
||||||
|
|||||||
@@ -644,11 +644,13 @@ public class SdServer extends Service implements SdDataReceiver {
|
|||||||
logData();
|
logData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Called by SdDataSource when a fault condition is detected.
|
// Called by SdDataSource when a fault condition is detected.
|
||||||
public void onSdDataFault(SdData sdData) {
|
public void onSdDataFault(SdData sdData) {
|
||||||
Log.v(TAG, "onSdDataFault()");
|
Log.v(TAG, "onSdDataFault()");
|
||||||
mSdData = sdData;
|
mSdData = sdData;
|
||||||
mSdData.alarmState = 4; // set fault alarm state.
|
mSdData.alarmState = 4; // set fault alarm state.
|
||||||
|
mSdData.alarmPhrase = "FAULT";
|
||||||
mSdData.alarmStanding = false;
|
mSdData.alarmStanding = false;
|
||||||
if (webServer != null) webServer.setSdData(mSdData);
|
if (webServer != null) webServer.setSdData(mSdData);
|
||||||
if (mAudibleFaultWarning) {
|
if (mAudibleFaultWarning) {
|
||||||
|
|||||||
@@ -408,6 +408,7 @@ public class StartupActivity extends Activity {
|
|||||||
+ "http://openseizuredetector.org.uk, or the app Facebook page at https://www.facebook.com/openseizuredetector. "
|
+ "http://openseizuredetector.org.uk, or the app Facebook page at https://www.facebook.com/openseizuredetector. "
|
||||||
+ "so I can get in touch if necessary.\nThank you! Graham \ngraham@openseizuredetector.org.uk "
|
+ "so I can get in touch if necessary.\nThank you! Graham \ngraham@openseizuredetector.org.uk "
|
||||||
+ "\n\nChanges in this version:"
|
+ "\n\nChanges in this version:"
|
||||||
|
+ "\n V3.1.13 - Fixed ERR-400 display on garmin watch and associated problem with network datasource fault alerting."
|
||||||
+ "\n V3.1.11 - Fixed issue that Nework data source did not display heart rate data"
|
+ "\n V3.1.11 - Fixed issue that Nework data source did not display heart rate data"
|
||||||
+ "\n V3.1.10 - Provided a user option to treat a null heart rate as a fault or an alarm condition"
|
+ "\n V3.1.10 - Provided a user option to treat a null heart rate as a fault or an alarm condition"
|
||||||
+ "\n V3.1.9 - Fixed issue with Garmin Seizure Detector not producing warnings. Added fault pips for missing heart rate data if heart rate alarm active"
|
+ "\n V3.1.9 - Fixed issue with Garmin Seizure Detector not producing warnings. Added fault pips for missing heart rate data if heart rate alarm active"
|
||||||
@@ -440,6 +441,7 @@ public class StartupActivity extends Activity {
|
|||||||
+ "http://openseizuredetector.org.uk, or the app Facebook page at https://www.facebook.com/openseizuredetector. "
|
+ "http://openseizuredetector.org.uk, or the app Facebook page at https://www.facebook.com/openseizuredetector. "
|
||||||
+ "so I can get in touch if necessary.\nThank you! Graham \ngraham@openseizuredetector.org.uk "
|
+ "so I can get in touch if necessary.\nThank you! Graham \ngraham@openseizuredetector.org.uk "
|
||||||
+ "\n\nChanges in this version:"
|
+ "\n\nChanges in this version:"
|
||||||
|
+ "\n V3.1.13 - Fixed ERR-400 display on garmin watch and associated problem with network datasource fault alerting."
|
||||||
+ "\n V3.1.11 - Fixed issue that Nework data source did not display heart rate data"
|
+ "\n V3.1.11 - Fixed issue that Nework data source did not display heart rate data"
|
||||||
+ "\n V3.1.10 - Provided a user option to treat a null heart rate as a fault or an alarm condition"
|
+ "\n V3.1.10 - Provided a user option to treat a null heart rate as a fault or an alarm condition"
|
||||||
+ "\n V3.1.9 - Fixed issue with Garmin Seizure Detector not producing warnings. Added fault pips for missing heart rate data if heart rate alarm active"
|
+ "\n V3.1.9 - Fixed issue with Garmin Seizure Detector not producing warnings. Added fault pips for missing heart rate data if heart rate alarm active"
|
||||||
|
|||||||
Reference in New Issue
Block a user