From 5e67042dc03253137b4808e4791f723500025eb4 Mon Sep 17 00:00:00 2001 From: Mark Nolan Date: Sun, 19 Jul 2026 15:01:08 +0100 Subject: [PATCH] Clarify inactivity-timeout semantics in the op-config field schema The Inactive Timeout field's '0 = off' behaviour was only mentioned mid-description; it is now in the label itself ('minutes, 0 = off'). Both inactivity fields now also spell out the consequence that cost a real recording (DEV-793, 2026-07-19): with Resume Rec On Activity disabled, hitting the timeout stops recording permanently and turns Logging OFF in the device's stored config - the device will not record again until reconfigured (firmware taskStationaryDetectionTimer writes recordEn=0 to EEPROM). Text-only change; suite 241 green. v0.1.9. Co-Authored-By: Claude Opus 4.8 --- package-lock.json | 4 ++-- package.json | 2 +- src/devices/verisense/operationalConfig.ts | 11 ++++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7bbc4bd..486f659 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@shimmerresearch/shimmer-web-sdk", - "version": "0.1.8", + "version": "0.1.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@shimmerresearch/shimmer-web-sdk", - "version": "0.1.8", + "version": "0.1.9", "license": "BSD-3-Clause", "devDependencies": { "@eslint/js": "^10.0.1", diff --git a/package.json b/package.json index e5250f3..7befd55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shimmerresearch/shimmer-web-sdk", - "version": "0.1.8", + "version": "0.1.9", "description": "Web Bluetooth and Web Serial API for Shimmer sensor devices (Shimmer3R, Verisense IMU/Pulse+)", "type": "module", "main": "dist/shimmer-web-sdk.cjs", diff --git a/src/devices/verisense/operationalConfig.ts b/src/devices/verisense/operationalConfig.ts index 53a5364..1bd7ed6 100644 --- a/src/devices/verisense/operationalConfig.ts +++ b/src/devices/verisense/operationalConfig.ts @@ -809,8 +809,10 @@ export const VERISENSE_OPERATIONAL_FIELD_SCHEMA = [ }, { key: 'INACTIVE_TIMEOUT_MINUTES', - label: 'Inactive Timeout (minutes)', - desc: 'Minutes of no activity before the device stops recording and sleeps. 0 disables inactivity detection.', + label: 'Inactive Timeout (minutes, 0 = off)', + desc: + 'Minutes the device must be completely stationary before it stops recording (1-63; 0 = stationary detection off, record regardless of movement). ' + + 'CAUTION: with "Resume Rec On Activity" disabled, hitting this timeout also turns Logging OFF in the stored config - the device will not record again until it is reconfigured.', kind: 'inactiveMinutes', index: OP_IDX.INACTIVE_TIMEOUT, min: 0, @@ -819,7 +821,10 @@ export const VERISENSE_OPERATIONAL_FIELD_SCHEMA = [ { key: 'RESUME_REC_ON_ACTIVITY', label: 'Resume Rec On Activity', - desc: 'Automatically resume recording when activity is detected after an inactivity sleep. Only has an effect when Logging is enabled and the inactive timeout is above 0.', + desc: + 'Enabled: recording pauses at the inactive timeout and automatically resumes when movement is detected. ' + + 'Disabled: hitting the timeout stops recording permanently and turns Logging off in the stored config. ' + + 'Only has an effect when Logging is enabled and the inactive timeout is above 0.', kind: 'inactiveResume', index: OP_IDX.INACTIVE_TIMEOUT, options: [