diff --git a/about.js b/about.js
index db623d8..5519038 100644
--- a/about.js
+++ b/about.js
@@ -11,10 +11,10 @@
const electron = require('electron');
const audiomoth = require('audiomoth-hid');
-var versionDisplay = document.getElementById('version-display');
-var electronVersionDisplay = document.getElementById('electron-version-display');
-var audiomothHidVersionDisplay = document.getElementById('audiomoth-hid-version-display');
-var websiteLink = document.getElementById('website-link');
+const versionDisplay = document.getElementById('version-display');
+const electronVersionDisplay = document.getElementById('electron-version-display');
+const audiomothHidVersionDisplay = document.getElementById('audiomoth-hid-version-display');
+const websiteLink = document.getElementById('website-link');
versionDisplay.textContent = 'Version ' + electron.remote.app.getVersion();
electronVersionDisplay.textContent = 'Running on Electron version ' + electron.remote.process.versions.electron;
diff --git a/constants.js b/constants.js
index 19b62d5..461451a 100644
--- a/constants.js
+++ b/constants.js
@@ -13,8 +13,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 48,
- startCurrent: 11.0,
- recordCurrent: 10.0
+ recordCurrent: 9.22,
+ energySaverRecordCurrent: 5.92,
+ listenCurrent: 8.59,
+ energySaverListenCurrent: 5.41
}, {
trueSampleRate: 16,
clockDivider: 4,
@@ -22,8 +24,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 24,
- startCurrent: 11.2,
- recordCurrent: 10.9
+ recordCurrent: 9.83,
+ energySaverRecordCurrent: 6.63,
+ listenCurrent: 8.72,
+ energySaverListenCurrent: 5.54
}, {
trueSampleRate: 32,
clockDivider: 4,
@@ -31,8 +35,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 12,
- startCurrent: 11.5,
- recordCurrent: 12.3
+ recordCurrent: 11.3,
+ energySaverRecordCurrent: 8.04,
+ listenCurrent: 8.95,
+ energySaverListenCurrent: 5.78
}, {
trueSampleRate: 48,
clockDivider: 4,
@@ -40,8 +46,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 8,
- startCurrent: 11.8,
- recordCurrent: 14.0
+ recordCurrent: 12.3,
+ energySaverRecordCurrent: 8.93,
+ listenCurrent: 9.14,
+ energySaverListenCurrent: 5.98
}, {
trueSampleRate: 96,
clockDivider: 4,
@@ -49,8 +57,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 4,
- startCurrent: 12.7,
- recordCurrent: 17.4
+ recordCurrent: 15.8,
+ energySaverRecordCurrent: 15.8,
+ listenCurrent: 10.0,
+ energySaverListenCurrent: 10.0
}, {
trueSampleRate: 192,
clockDivider: 4,
@@ -58,8 +68,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 2,
- startCurrent: 14.5,
- recordCurrent: 25.6
+ recordCurrent: 24.1,
+ energySaverRecordCurrent: 24.1,
+ listenCurrent: 11.5,
+ energySaverListenCurrent: 11.5
}, {
trueSampleRate: 250,
clockDivider: 4,
@@ -67,8 +79,10 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 250000,
sampleRateDivider: 1,
- startCurrent: 15.8,
- recordCurrent: 29.5
+ recordCurrent: 26.4,
+ energySaverRecordCurrent: 26.4,
+ listenCurrent: 10.6,
+ energySaverListenCurrent: 10.6
}, {
trueSampleRate: 384,
clockDivider: 4,
@@ -76,11 +90,14 @@ exports.configurations = [{
oversampleRate: 1,
sampleRate: 384000,
sampleRateDivider: 1,
- startCurrent: 18.2,
- recordCurrent: 41.6
+ recordCurrent: 38.5,
+ energySaverRecordCurrent: 38.5,
+ listenCurrent: 12.7,
+ energySaverListenCurrent: 12.7
}];
/* Configuration settings to be used when a device is on firmware < 1.4.4 */
+/* Only sent to devices. Not used in energy calculations */
exports.oldConfigurations = [{
trueSampleRate: 8,
@@ -88,27 +105,21 @@ exports.oldConfigurations = [{
acquisitionCycles: 16,
oversampleRate: 1,
sampleRate: 128000,
- sampleRateDivider: 16,
- startCurrent: 11.0,
- recordCurrent: 10.0
+ sampleRateDivider: 16
}, {
trueSampleRate: 16,
clockDivider: 4,
acquisitionCycles: 16,
oversampleRate: 1,
sampleRate: 128000,
- sampleRateDivider: 8,
- startCurrent: 11.2,
- recordCurrent: 10.9
+ sampleRateDivider: 8
}, {
trueSampleRate: 32,
clockDivider: 4,
acquisitionCycles: 16,
oversampleRate: 1,
sampleRate: 128000,
- sampleRateDivider: 4,
- startCurrent: 11.5,
- recordCurrent: 12.3
+ sampleRateDivider: 4
}];
/* Packet lengths for each version */
@@ -131,6 +142,22 @@ exports.packetLengthVersions = [{
}, {
firmwareVersion: '1.5.0',
packetLength: 59
+}, {
+ firmwareVersion: '1.6.0',
+ packetLength: 62
}];
-exports.supportedFirmwareDescs = ['AudioMoth-Firmware-Basic', 'AudioMoth-Firmware-Basic-RC1', 'AudioMoth-Firmware-Basic-RC2', 'AudioMoth-Firmware-Basic-RC3'];
+/* Remove trailing digit and check if description is in list of supported firmware descriptions */
+
+exports.isSupportedFirmwareDescription = (desc) => {
+
+ const supportedFirmwareDescs = ['AudioMoth-Firmware-Basic', 'AudioMoth-Firmware-Basic-RC'];
+
+ return supportedFirmwareDescs.includes(desc.replace(/\d+$/, ''));
+
+};
+
+/* Version number for the latest firmware */
+
+exports.latestFirmwareVersionArray = [1, 6, 0];
+exports.latestFirmwareVersionString = '1.6.0';
diff --git a/expansion/expansion.html b/expansion/expansion.html
index 7d6bb67..422dc4e 100644
--- a/expansion/expansion.html
+++ b/expansion/expansion.html
@@ -4,117 +4,294 @@
- Expand AudioMoth Recordings
+ Expand AudioMoth T.WAV Recordings
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enable length limit:
+
+
+
+
+
+
+
+
+
+
+ Generate silent files:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enable length limit:
+
+
+
+
+
+
+
+
+
+
+ Align files to second transition:
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ Writing WAV files to source folder.
+
+
-
-
- No T.WAV files selected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No AudioMoth T.WAV files selected.
+
-
-
-
+
@@ -123,6 +300,10 @@
+
+