Files
seismo-relay/minimateplus
serversdownandClaude Opus 5.5 b320a534bc fix(minimateplus): read a MiniMate's mode, sample rate, interval and record time after removing escapes (#1)
The unit escapes 02/03/04/10 in every reply and S3FrameParser keeps the 10 of
10 02/03/04, so on the raw SUB 1A bytes an escaped mode, rate or interval
shifted every field after it: BE9441 at Histogram / 4096 sps / 2 s read back as
0 sps and a 4098 s interval (bench 2026-10-29), and a Continuous unit read as
Single Shot.  The four anchor fields are now read from unescape_reply(data):
mode anchor-7, sample rate anchor-6, interval anchor-4, record time anchor+6 --
measured on all four distinct recorded replies, two of them Blastware's own
writes (15 min, then 2 s).  The old 'anchor-7 = constant 0x10' was the escape
before 04 at 1024 sps.

The channel block and strings still read the raw bytes: their label offsets were
measured there and are wrong unescaped (pinned by a test).  A reply with no
anchor -- BE9441's monitoring-time 1A answer was its device-info block -- leaves
all four None.

Store consequence: none; this is the live settings read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 23:19:11 -04:00
..