Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project follows [Semantic Versioning](https://semver.org/).

### Added

- Nordic Power Profiler Kit II (PPK2) instrument driver (`src/instruments/ppk2/`, DEV-854): `Ppk2` Web Serial transport (source/ampere meter, source voltage, DUT power, 100 kS/s measurement stream) and a pure codec layer (`Ppk2SampleDecoder`, `parsePpk2Metadata`, `convertSourceVoltage`, `RunningStats`, `MinMaxDownsampler`). The decoder is an exact port of the Python `ppk2_api` calibration polynomial + spike filter, verified against fixtures generated by the Python reference (`tests/instruments/ppk2/`). Used by the device console's production power-consumption tests.
- Live stream statistics: `StreamStatsTracker` (core), `VerisenseBleDevice.getStreamStats()`, a throttled `streamStats` event, and per-sub-stream `SensorBase.getStreamContributions()` for windowed throughput and sample-gap-derived packet loss.

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shimmerresearch/shimmer-web-sdk",
"version": "0.1.7",
"version": "0.1.8",
"description": "Web Bluetooth and Web Serial API for Shimmer sensor devices (Shimmer3R, Verisense IMU/Pulse+)",
"type": "module",
"main": "dist/shimmer-web-sdk.cjs",
Expand Down
28 changes: 28 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,31 @@ export { SensorMAX32674 } from './devices/verisense/sensors/SensorMAX32674.js';
export type { MAX32674Sample } from './devices/verisense/sensors/SensorMAX32674.js';
export { SensorMLX90632 } from './devices/verisense/sensors/SensorMLX90632.js';
export type { MLX90632Sample } from './devices/verisense/sensors/SensorMLX90632.js';

// Instruments — Nordic Power Profiler Kit II (PPK2)
export { Ppk2 } from './instruments/ppk2/Ppk2.js';
export type { Ppk2Options } from './instruments/ppk2/Ppk2.js';
export {
Ppk2SampleDecoder,
parsePpk2Metadata,
convertSourceVoltage,
clampSourceVoltageMv,
clonePpk2Modifiers,
DEFAULT_PPK2_MODIFIERS,
RunningStats,
MinMaxDownsampler,
} from './instruments/ppk2/ppk2Codec.js';
export type {
Ppk2Modifiers,
Ppk2RangeTable,
Ppk2SampleBatch,
MinMaxBin,
} from './instruments/ppk2/ppk2Codec.js';
export {
PPK2_CMD,
PPK2_USB_VENDOR_ID,
PPK2_USB_PRODUCT_ID,
PPK2_BAUD_RATE,
PPK2_SAMPLES_PER_SECOND,
} from './instruments/ppk2/constants.js';
export type { Ppk2Command } from './instruments/ppk2/constants.js';
Loading