Commit 39aeb92
DEV-793 Add MLX90632 skin-temperature decoder (data-block id 9)
Second Phase-C gen-2 sensor. Data block = fixed 16 samples x 4 bytes (object int16 then ambient int16, little-endian centi-degrees C - the firmware applies the chip EEPROM calibration before quantising, and only emits full blocks, partials discarded on stop per hal_slowSensorSampler.c), so it rides the generic fixed-size block path like the ambient light. New SensorMLX90632 mirrors the web SDK's SensorMLX90632.ts: UNCAL = centi-degC counts, CAL = /100 degrees Celsius. Config from payload header byte 32 (bit 0 measType medical/extended, bits 3:1 refresh code 0..7 = 0.5..64 Hz); enable from GEN_CFG_3 bit 4; output rate = refresh / sub-measurements (medical 2, extended 3).
The light-rate refinement is generalised to refineSlowSensorSamplingRateFromBlockTicks(sensorId) and applied to both LIGHT and SKIN_TEMP blocks - the header-derived rates are estimates, inter-block tick spacing is truth. Metadata guard now accepts ids <=7 plus 9; ALGO_HUB (8) and FLICKER (10) still fail loudly (deferred to the new prototypes per DEV-793). CSV config line: 'MLX90632 {Sampling Rate [Configured/Calculated]; Refresh = X Hz; Mode = Medical|Extended; Resolution = 16-bit}'.
Compile-clean, full ASM_PC_00005 suite green (all existing references bit-identical). NOT yet exercised on real data - no skin-temp recording exists; a ~2 min recording with skin temp enabled on any SR61-5/SR68-9 is wanted for the reference test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0165c3f commit 39aeb92
6 files changed
Lines changed: 304 additions & 16 deletions
File tree
- ShimmerDriver/src/main/java/com/shimmerresearch
- driver
- sensors
- verisense
- payloaddesign
- sensors
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2649 | 2649 | | |
2650 | 2650 | | |
2651 | 2651 | | |
| 2652 | + | |
| 2653 | + | |
2652 | 2654 | | |
2653 | 2655 | | |
2654 | 2656 | | |
| |||
2685 | 2687 | | |
2686 | 2688 | | |
2687 | 2689 | | |
| 2690 | + | |
2688 | 2691 | | |
2689 | 2692 | | |
2690 | 2693 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
Lines changed: 39 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
589 | 590 | | |
590 | 591 | | |
591 | 592 | | |
| 593 | + | |
592 | 594 | | |
593 | 595 | | |
594 | 596 | | |
| |||
1084 | 1086 | | |
1085 | 1087 | | |
1086 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1087 | 1106 | | |
1088 | 1107 | | |
1089 | 1108 | | |
| |||
1388 | 1407 | | |
1389 | 1408 | | |
1390 | 1409 | | |
1391 | | - | |
| 1410 | + | |
1392 | 1411 | | |
| 1412 | + | |
1393 | 1413 | | |
1394 | 1414 | | |
1395 | 1415 | | |
| |||
1606 | 1626 | | |
1607 | 1627 | | |
1608 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1609 | 1632 | | |
1610 | 1633 | | |
1611 | 1634 | | |
| |||
1632 | 1655 | | |
1633 | 1656 | | |
1634 | 1657 | | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1635 | 1662 | | |
1636 | 1663 | | |
1637 | 1664 | | |
| |||
1924 | 1951 | | |
1925 | 1952 | | |
1926 | 1953 | | |
1927 | | - | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
1928 | 1957 | | |
1929 | 1958 | | |
1930 | 1959 | | |
| |||
2374 | 2403 | | |
2375 | 2404 | | |
2376 | 2405 | | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2377 | 2414 | | |
2378 | 2415 | | |
2379 | 2416 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | | - | |
324 | | - | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | | - | |
| 329 | + | |
327 | 330 | | |
328 | 331 | | |
329 | | - | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
0 commit comments