Commit Graph
607 Commits
Author SHA1 Message Date
serversdownandClaude Opus 5.5 e1af35e1d0 docs(spec): park the phase 1a review's minor findings in the spec
They were recorded only in the plan's scratch ledger, which is deleted
when the plan finishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:59:42 -04:00
serversdownandClaude Opus 5.5 278921796a fix(sfm): any request taking the legacy path is refused beside a held line
The /device guard let every non-UM serial through before its held-line
check.  FastAPI drops an undeclared `serial`, so `?serial=BE18193` on a
legacy route still ran Series-3 code at an address holding a Series-4
line -- the hole the guard exists to close.  Serial-aware routes go
straight to DeviceAccess, which refuses that case itself; everything
else is checked.  baud is no longer parsed (it is not in the address
key, and pydantic's coercion made "38400.0" a second way past).

Also, from the same review:
- RingWatchTransport clears its frame state on every write, so a stray
  STX on an idle line cannot hide the ring that answers the next request.
- Series4Session.is_open reads _client once; held_serial() calls it
  without the unit lock, and a concurrent hang-up between two reads was
  an AttributeError (a 500).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:58:57 -04:00
serversdownandClaude Opus 5.5 080e8f4704 docs: serial parameter, settings/hangup endpoints, single-worker rule, cool-down prerequisite for 1c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:45:33 -04:00
serversdownandClaude Opus 5.5 d393a149f8 fix(sfm): a different UM serial at a held address is refused (409), not swapped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:45:17 -04:00
serversdownandClaude Opus 5.5 aa79e996c5 fix(sfm): construct the DeviceAccess singleton at import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:45:17 -04:00
serversdownandClaude Opus 5.5 52ada0215c fix(sfm): RADIO RING detection ignores bytes inside frames
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:45:10 -04:00
serversdownandClaude Opus 5.5 82b91835fb fix(sfm): one guard in front of every /device route -- UM serials 501 off the serial-aware routes, held lines 409 serial-less requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:44:35 -04:00
serversdownandClaude Sonnet 5.5 6dd34f8fd7 docs(claude): SFM speaks Series 4 by serial -- phase 1a done, bench-checked on UM20147
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:27:56 -04:00
serversdownandClaude Opus 5.5 e7a5a3cce1 feat(sfm): serial-named /device/info, /status, /settings and /hangup for both series
With serial: one contract for Series 3 and 4 through sfm.device_access.  Without it: the legacy Series-3 path, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:26:16 -04:00
serversdownandClaude Opus 5.5 73b6089012 fix(sfm): retry once on a dropped held line; refuse Series-3 beside a held Series-4 line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:23:57 -04:00
serversdownandClaude Opus 5.5 96c7b31f4e feat(sfm): DeviceAccess -- one door, held Series-4 lines, a reaper, and the same answer shape for both series
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:17:39 -04:00
serversdownandClaude Opus 5.5 ece9ec79e3 feat(sfm): Series-4 identify, status and settings into the shared models
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:15:43 -04:00
serversdownandClaude Opus 5.5 8e7333b899 feat(sfm): Series-4 session -- call up once, stay on the line, release on RADIO RING
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:13:34 -04:00
serversdownandClaude Opus 5.5 d39f8ef360 fix(sfm): Series-3 status says its serial is unverified
Series 3 status reads no serial, so the serial shown is the requested one, not one the unit reported. detail now carries serial_verified=False.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:12:17 -04:00
serversdownandClaude Opus 5.5 5c6ca049c8 feat(sfm): Series-3 adapter -- identify, status, settings into the shared models
Connect-per-request with the TCP cold-boot retry kept; a different unit answering is refused (409) whenever the serial is already in hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:10:23 -04:00
serversdownandClaude Haiku 5.5 bb4b26835b feat(sfm): per-unit lock -- one connection per unit, 423 when busy
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:08:10 -04:00
serversdownandClaude Haiku 5.5 034529f498 feat(sfm): device_access core -- typed errors, series by serial prefix, shared models
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:06:20 -04:00
serversdownandClaude Opus 5.5 fa032567c2 feat(micromate): get_event_count() and read_unsolicited()
0x06 content[0:4] moves from the bench tool into the client, tested against a real UM20147 read and its chain-walk count.  read_unsolicited() reads without sending, for spotting RADIO RING on an idle session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:04:35 -04:00
serversdownandClaude Opus 5.5 31181f64e6 fix(micromate): is_open() called a property -- TypeError on every real transport
Hidden because the test double defined is_connected as a method; it is now a property, matching BaseTransport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 01:02:32 -04:00
serversdownandClaude Opus 5.5 8eab5f9479 docs(plan): SFM device access phase 1a -- foundation plus identify/status/settings for both series
Ten tasks, test-first: the is_open fix, two client reads, core types, the
per-unit lock, both adapters, Series-4 sessions with ring safety,
DeviceAccess with the reaper and the contract tests, the endpoints, and a
read-only bench check on UM20147.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 19:10:15 -04:00
serversdownandClaude Opus 5.5 bbc6fe2a61 docs(spec): serial-less requests keep today's shapes; phase 1 splits into 1a/1b/1c
Nothing breaks between phases: the shared models apply when a request names
the unit by serial, and the legacy Series-3 path stays as it is until the
webapp (1c) and watch_unit.sh move over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 19:03:03 -04:00
serversdownandClaude Opus 5.5 68cad4e2ab docs(spec): monitor logs are their own piece of work -- row 6 moves to the parking lot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 18:54:24 -04:00
serversdownandClaude Opus 5.5 435c1978a0 docs(spec): park setup files and schedules as one open question
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 18:42:41 -04:00
serversdownandClaude Opus 5.5 90171996d6 docs(spec): say plainly what 'no PC-side setup library' means
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 18:38:56 -04:00
serversdownandClaude Opus 5.5 3215c17e37 docs(spec): one user experience for both series -- the guiding principle, applied
Brian's principle: talking to a Series 3 or a Series 4 unit is identical for
the user; only the serial prefix and each model's settings differ, and the
adapters absorb the rest.

Five places the draft broke it, now fixed: units are named the same way
(serial + address, no-serial kept only as a legacy Series-3 path); one set
of series-neutral response models with series-only fields under `detail`;
one opaque event_id for both; a uniform 501 "not supported for Series N
yet" instead of missing routes; and the webapp brought into scope with the
same screens for both.  Adds an adapter table, contract tests that keep the
two adapters honest, and notes that existing Series-3 response shapes move
to the shared models (the webapp updates with them; Terra-View does not
call /device/*).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 18:33:48 -04:00
serversdownandClaude Opus 5.5 1c6aa04687 docs(spec): SFM Series-4 parity and a device safety layer -- design for review
Parity of jobs with Series 3 for regular comms and settings (identify,
status, settings, events, download, monitor log, start/stop, call-home
enable/disable, setup push); Series-4 emergency tools deferred.  A single
device-access layer: series from the serial prefix, identity confirmed
before any write, a per-unit lock, an 0xA2 opcode guard, read-back
verification of every change, distinct error codes, and an audit table.
Series-4 sessions ("stay on the line") now; Series-3 sessions after a bench
test of MiniMate hangup/DCD behaviour.

Includes the fix list found in the 2026-10-19 inventory, the to-be-added
table, and the RX55 container idea as a parking-lot item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-20 17:41:00 -04:00
serversdownandClaude Opus 5.5 618fcb7770 docs(changelog): Series-4 config decoding -- get_setup(), the 0x1A map, and one checksum rule
Folded into the existing Unreleased sections.

Added: MicromateClient.get_setup() (verified line by line against UM20147's
screen), micromate.setup_block.crc_ok() for 0x1A/0x08/0x2E, the config diff
harness, and the decoded setup in mm_client_check.

Changed: the 0x1A field map; channel blocks 4/5/6 are the active mic and two
stored mic setups; 0x1A reads the edit buffer and a load replaces it
byte-for-byte; the unit's own conversion constants (3.2808, 2.21); 0x08 is
preferences; the geophone scale confirmed from the unit's config; the 0x1C
sub-second tick; the never-write-modem-baud rule; two corrected 16-byte slips;
and the Series III anchor hypothesis, flagged inferred with no code change.

Fixed: the watcher overwriting previous sessions, and two stale bench-tool
labels.

Migration stays None -- additive modules only, no codec/store/DB change, no
TOOL_VERSION bump, no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-19 18:41:35 -04:00
serversdownandClaude Opus 5.5 fa017b0ee7 merge: Series-4 config decoding -- the setup block mapped from the keypad, and get_setup()
Closes the gap the 10-13 recap named: config blocks were fetched but barely
read.  Two keypad passes on UM20147 (10-17, 10-19), every byte that moved
attributed to a setting the operator named, then the map turned into code.

MicromateClient.get_setup() reads SUB 0x1A once and returns a MicromateSetup
-- record mode, sample rate, histogram interval, pre-trigger, stop mode,
record time, auto-stop, active sensors, trigger sources, trigger levels, mic
type and level, job number, scaled distance, notes.  Measured fields only.
Every value matched UM20147's screen.

Findings that shape what comes next:

1. ONE CHECKSUM RULE (CRC-16/AUG-CCITT) covers 0x1A, 0x08 and 0x2E -- a free
   integrity check on every config read.  Thor's write omits it; the unit
   computes it, so it is not a write obligation.

2. LOADING A SETUP REPLACES THE ACTIVE CONFIG BYTE-FOR-BYTE, and 0x1A reads
   the keypad's edit buffer live.  The name is the only link between a file
   and its contents, and even its spelling varies (.MMB / .mmb).

3. THE SIX CHANNEL BLOCKS ARE 3 GEOPHONES + THE ACTIVE MIC + TWO STORED MIC
   SETUPS.  Read the mic from block 4 only.

4. THE UNIT CONVERTS UNITS WITH ITS OWN CONSTANTS (ft / 3.2808, lb / 2.21).
   Convert back with them or 45 lb reads 44.89.

5. 0x08 IS THE PREFERENCES BLOCK; display units live there and never touch
   the stored setup values.

6. NEVER WRITE MODEM BAUD OR MODEM TYPE REMOTELY -- the remote link is the
   modem port.

INFERRED, Series III, no code changed: S3's 6-byte "stable anchor" sits where
Series IV keeps pre-trigger + stop mode, so an S3 unit in Auto stop mode may
lose it.  One Blastware capture in Auto mode settles it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-19 18:40:28 -04:00
serversdownandClaude Opus 5.5 6bd45b56ec docs(claude): get_setup() exists -- the checksum is wired in, not pending
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-19 18:20:39 -04:00
serversdownandClaude Opus 5.5 b3aff4ed66 feat(micromate): get_setup() -- the setup block decoded, checksum-verified, and read off a real unit
MicromateClient.get_setup() reads SUB 0x1A once and returns a MicromateSetup:
record mode, sample rate, histogram interval, pre-trigger, stop mode, record
time, auto-stop, active sensors, trigger sources, the three geophone trigger
levels, mic type and (linear) mic trigger, job number, scaled distance, and
the four notes.  MEASURED FIELDS ONLY -- everything graded inferred or
unknown in the reference stays in .raw.

micromate/setup_block.py holds the decode as pure functions (no I/O), plus
crc_ok(): one checksum rule for 0x1A, 0x08 and 0x2E.  A failed checksum
raises SetupChecksumError (a ProtocolError) unless verify=False; a short
block raises either way.

Two things the decoder gets right that a naive one would not:
- the mic comes from channel block 4 (the ACTIVE mic), never blocks 5/6,
  which hold the stored settings of whichever mic is NOT fitted;
- distance and charge weight convert back with the unit's own 3.2808 and
  2.21, so 45 lb entered on the unit reads 45.0, not 44.89.

TESTS: 69 new.  15 real fixtures (2,103 B each) -- 14 UM20147 reads from the
10-17/10-19 keypad passes, chosen so every field takes at least two values,
plus UM12947's read from Thor's 9-24 capture (other firmware line).
Expected values are what the operator read off the unit's screen, never the
decoder's own output.  Fixtures force-added, per the tests/fixtures/
convention.  Full suite 541 passed; the 16 pre-existing failures
(test_bw_ascii_report.py 15, test_event_file_io.py 1) are unchanged.

VERIFIED ON HARDWARE: bridges/mm_client_check.py now prints the decoded
setup; against UM20147 every line matched the unit's screen (Brian, 10-19).

Also: the scratch harness uses the library checksum and checks all three
blocks; mm_client_check's stale labels fixed (0x06 content[4:8] is the
likely monitor-log count, not "unexplained"; 11.0BD is no longer "the first
one this code has met").

No codec, store or DB change; no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-19 18:20:25 -04:00
serversdownandClaude Opus 5.5 a74d3c9b00 docs(series4): loading a setup is an exact replacement -- plus the prefs block, a checksum rule, and the firmware's own unit constants
23 more snapshots of UM20147, keypad-driven.

MEASURED: loading a .MMB replaces the active config byte-for-byte -- three
loads, each moving exactly the fields that differ, the loaded block identical
to the file's saved state, no load marker.  The setup name's spelling
(.MMB/.mmb) depends on whether it was saved or loaded.

MEASURED: job number [40:42], report flags [39] (0x02 job no., 0x08 scaled
distance; 0x01 unknown); distance [30:34] in metres and charge weight
[34:38] in kg, converted bit-exactly with ft / 3.2808 and lb / 2.21 -- the
firmware's own constants, not the textbook ones.  Scaled distance is not
stored.  Location confirmed at [144].

MEASURED: 0x08 is the preferences block (display units at content[31]),
not an event index; switching units moves nothing in 0x1A.  0x1A, 0x08 and
0x2E share one checksum rule (N = content[0:2]; CRC over [0:N-2] at
[N:N+2]); 0x2C has none.  0x2C session timeout is at [118:120], encoding
unknown; modem baud is in none of the six blocks.

CORRECTED IN PLACE: the 9-24 notes-label offset (0x8A -> 0x7A) and
channel-block start (0x06BC -> 0x06AC), both 16-byte slips.

RULE: never write modem baud or modem type remotely -- the remote link is
the modem port.

No codec, store or DB change; no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-19 17:30:37 -04:00
serversdownandClaude Opus 5.5 7c010e42a4 docs(claude): leave the next config step written down -- load a setup and diff it
Brian's hypothesis from the end of the 10-17 pass: selecting a .MMB
repopulates the active config, so a single load moves every field that
differs between two setups -- a check of the whole map in one step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-17 02:41:13 -04:00
serversdownandClaude Opus 5.5 56b8aac4cb docs(series4): the 0x1A field map from a keypad pass -- a CRC, an edit buffer, and three mic blocks that are not channels
47 snapshots of UM20147 while settings were changed on its own keypad, one
at a time.  Every byte that moved is accounted for; nothing outside 0x1A
moved.

MEASURED (operator named setting + values): record mode [5] (01 Waveform,
02 Manual, 03 Histogram, 04 Combo -- S3's encoding, one byte later than the
S3 analogy put it), sample rate [6:8], histogram interval [8:10] s,
pre-trigger [12:16] f32 negative s (all four values), stop mode [17], record
time [18:22] f32, auto-stop [23], active-sensor and trigger-source bitmasks
[25]/[29], trigger level at channel +30 (geo in/s, mic psi).

MEASURED: the trailer is CRC-16/AUG-CCITT over content[0:2088] -- 47/47 and
a second unit.  Thor's write omits it, so it is read-side integrity, not a
write obligation.

MEASURED: blocks 1-3 are geophones, block 4 is the ACTIVE mic (a byte copy
of 5 or 6), 5 and 6 are the stored linear / SLM mic setups.  No separate
mic-type byte; block 4's +4:8 code is the type.  Promotes the 10-15 "+4
channel type" guess; retracts "+46:48 is a trigger-source flag" in place.

MEASURED: 0x1A reads the keypad's edit buffer live; discard reverts;
commit timing differs by widget (list / spinner / sub-window).

INFERRED, Series III: the 6-byte "stable anchor" sits exactly where Series
IV keeps pre-trigger (-0.25 s) + stop mode (Fixed).  An S3 unit in Auto
stop mode would lose it and decode no mode/rate/interval/record time.  Not
measured on S3; noted in instantel_protocol_reference.md, code untouched.

No codec, store or DB change; no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-17 02:22:00 -04:00
serversdownandClaude Opus 5.5 75cbe23214 fix(micromate): config watcher no longer overwrites the previous session -- and checks the 0x1A CRC
`watch` saved every session as `watch-000..NNN`, so each run silently
overwrote the last.  Harmless while those snapshots were clock ticks; data
loss once they were findings.  Labels now default to `watch-MMDD-HHMM-NNN`
(`--prefix` overrides).

Each 0x1A change also prints its trailer check: CRC-16/AUG-CCITT over
content[0:2088], stored BE at content[2090:2092].  Measured on 47/47
snapshots of UM20147 plus UM12947's 9-24 capture; a mismatch means a short
or corrupt read, or a layout this does not assume.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-17 02:22:00 -04:00
serversdownandClaude Opus 5 ba021df6b2 docs(claude): say where config decoding actually stands -- set up, waiting on a keypad press
"Where things stand" said config decoding "needs a bench session varying one
setting at a time -- not desk work", which was true when written and now sends a
reader off to build tooling that exists.  This is the same staleness that had
the file claiming micromate/ had no live client.

What it now says, because these are the things that cost time to rediscover:

- The harness is scratch/mm_config_diff.py and the baseline is already captured.
- THE METHOD IS VERIFIED VIABLE: all five config blocks are bit-stable, so any
  byte differing between two snapshots IS the setting.  That was the open
  question about whether the Series III approach transfers at all.
- Start with SAMPLE RATE.  A large distinctive power of two pins endianness in
  one shot; a boolean toggle moves one byte 0 -> 1 and teaches nothing.
- The keypad works.  No Windows VM, no contending for the modem's single TCP
  session.
- `sg dialout -c` is required to open /dev/ttyACM0, because the group membership
  exists in /etc/group but not in shells started before it was added -- AND THE
  FAILURE LOOKS LIKE A DEAD UNIT, which is worth a line on its own.
- watch-001..005 on disk are clock ticks, not findings.
- channel+24 = 3.1030800342559814, independently confirming _GEO_LSB_IPS to
  1.1e-8 and 32,226.05 counts exactly.
- The rest of that channel map is GRADED and the grades are load-bearing: +4
  "channel type" and the +8:24 uint16 split are single-setup guesses, recorded
  as guesses on purpose.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-16 19:09:58 -04:00
serversdownandClaude Opus 5 66171ffe36 docs(series4): the 0x1A channel blocks -- graded, because one of these is strong
and two are guesses

Six 48-byte channel blocks at content[1708], stride exactly 48: Tran, Vert,
Long, Mic, LMic, SMic.  (Mic is 3 chars, so a 4+-printable scan misses it and
the stride looks like 96 across that gap.)

RECORDED IN THREE EXPLICIT GRADES, because I wrote them in one voice first and
that is the failure mode this reference already carries retractions for -- the
0x0C float from a single sample, the cost model fitted to sub-1 KB responses,
offset detector v1.  All three were an interpretation presented with the
confidence of a measurement.

MEASURED, and the one worth having: channel+24 is a float32 BE reading
3.1030800342559814 on all three geo channels.  Divided by 10,000 that is
0.00031030800342559815 -- the documented _GEO_LSB_IPS to 1.1e-8.  It implies
10.0/3.10308 = 3.222605 V full scale, which at 10,000 counts/V gives 32226.05
counts, the documented figure exactly.

That is an INDEPENDENT confirmation of a number that until now rested purely on
statistical inference: _GEO_LSB_IPS was pinned by intersecting 991,415 rounding
constraints from Thor's own CSV exports.  The unit reports it directly.  Two
unrelated derivations agreeing to eight digits.  It is also almost exactly half
Series III's 6.206053 (ratio 1.99997, the residual being S3's rounded display
value).

Also measured: the units strings ("in."/"/s.", "psi"/"(L)", "dB"/"(A)") are
literal ASCII, and Tran/Vert/Long are byte-identical EXCEPT +47, which reads
0x01 on Tran and Vert and 0x00 on Long.

INFERRED (one setup, one unit): that +24 is the calibration constant rather than
another field holding the same number -- the arithmetic proves the number, not
the field's purpose; and that +47 is an enable or trigger-source flag.

GUESSED, explicitly flagged not to build on: +4 as a uint32 "channel type", from
six correlated observations in a single setup; and +8:24 as eight uint16 BE
values, where the split itself is an assumption.

TOOLING FIX in the same commit, from a real miss: the volatile baseline ran four
reads over eight seconds, so it never crossed a minute boundary and never saw
the minutes byte.  Five "changes" then came in a row that were just the clock.
Hours and the date would have slipped through identically.  An empirical noise
floor only catches what moves WHILE sampling, so 0x1C's known clock span
(content[2:10]) is now seeded regardless, and the report says which bytes were
observed versus seeded.  Memory-free is deliberately left unmasked -- it moves
only when the unit records, which is worth being told about.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-15 14:35:54 -04:00
serversdownandClaude Opus 5 711277131a feat(micromate): a config diff harness -- and the blocks turn out to be bit-stable
The Series III config map was built by changing one setting and seeing which
bytes moved.  Whether that method transfers to Series IV depended on an
unmeasured question: how much of a config block moves ON ITS OWN.  If a block
carries a clock or a counter, every diff arrives polluted and there is no way to
tell the real answer from the noise in a single pair.

MEASURED ON UM20147 (11.0BD), FOUR READS BACK TO BACK, NOTHING TOUCHED:

  0x1A compliance    2103 B    0 bytes moved
  0x2C call home      137 B    0
  0x2E trigger         39 B    0
  0x08 event index    101 B    0
  0x01 device info    163 B    0
  0x1C monitor status  59 B    2  (and those two are explained below)

Every config block held every byte still, so the method transfers directly and
needs no noise floor subtracted.  That was the open question.

scratch/mm_config_diff.py drives it: `volatile` establishes the floor, `snap`
saves a labelled read of all five blocks, `diff` reports changed runs with each
plausible field interpretation (u8/u16be/u32be/f32be) and reports any volatile
bytes separately rather than silently hiding them.

CORRECTION TO content[6] OF 0x1C, long recorded only as "NOT the hour": it is a
sub-second tick, ~4020 counts/second in steps of exactly 4, wrapping at 256 --
about a 64 ms period, consistent with the low 6 bits of a millisecond counter.
Consequence worth knowing: a 0x1C block is never byte-identical to itself, so
any "has the status block changed?" check answers yes ~15 times a second.
Compare named fields, never whole blocks.

I nearly recorded that byte wrong, and the trap is cheap enough to document:
sampled once per second it reads as a smooth monotonic counter at ~16/s with a
16-second wrap.  Twelve consecutive samples supported it.  It is aliasing -- a
64 ms counter read once a second is noise that happens to look tidy.  Measure a
counter back to back before trusting any rate from spaced samples.

Also: the settings do not have to be changed from THOR.  The unit's own keypad
works, which needs no Windows VM and does not contend for the modem's single
TCP session.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-15 12:28:40 -04:00
serversdownandClaude Opus 5 4c29820831 docs(changelog): the Series-4 call-home session, and two more corrections
Folded into the existing Unreleased sections.

Added: bridges/mm_ach_server.py, flagged as implementing the listener path only.

Changed: the captured ACH session (101 frames, every command already
implemented bar one); the two call-home paths and what decides between them; the
0xA2 collision with series III's CONFIRM ERASE; monitor-while-calling-home
blocking erase while THOR reports success; THOR rewriting unit IPs from the
call-home source; and the CLAUDE.md refresh.

Fixed: mm_client_check misreporting its own request count, the ACH server
buffering its output and leaving modem chatter as a hex dump, and .gitignore
missing capture artefacts beside tracked bridge source.

TWO ENTRIES CORRECT THIS FILE'S OWN EARLIER TEXT, which is the part worth
reading: 0x06 content[4:8] was recorded here as "a constant, 9 on both units"
and is the monitor-log count; SUB 0x49 was recorded as two states and has three.

Migration stays None -- no codec, store, DB or schema change and no TOOL_VERSION
bump -- but the note now says explicitly that THE 0xA2 COLLISION IS DOCUMENTATION
RATHER THAN A FIX.  minimateplus can already send 0xA2 as the last step of its
erase sequence, and nothing yet stops a future shared path confusing the two
meanings.  A guard is outstanding, and a reader deciding whether this release is
safe deserves to know that.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-15 00:06:45 -04:00
serversdownandClaude Opus 5 8b48b3f42b merge: the Series-4 call-home session, captured end to end
Closes the last protocol unknown.  A MITM between UM12947's modem and THOR
1.5.0.29 captured a complete working ACH session: 101 request frames, 101
responses, 0 bad checksums, 34,872 B of event data in 65 seconds.

EVERY COMMAND IN A REAL ACH SESSION IS ONE micromate/protocol.py ALREADY
IMPLEMENTS -- POLL, BULK_DOWNLOAD, STATE, EVENT_RECORD, EVENT_NEXT,
STORAGE_RANGE, MONITOR_STATUS, ARM_EVENT, SERIAL, EVENT_FIRST -- bar one.

Three findings that change how a receiver must be built:

1. CALL-HOME HAS TWO PATHS, decided by who holds the modem's single TCP
   session.  If something is already connected, the unit's RADIO RING travels up
   THAT connection; if nothing is, the modem dials out to a listener.  THOR's
   UnitWatchDogTimer reconnects continuously, so THOR usually holds the slot --
   which is why probes and relays saw "connected, no reply" all afternoon.  That
   was contention, not a fault.

2. SUB 0xA2 ENDS A CALL-HOME ON SERIES IV AND IS CONFIRM ERASE ON SERIES III.
   Same opcode, same 0x5D response, opposite consequence.  minimateplus and
   micromate already share a transport, so any shared path must dispatch on
   series before that byte reaches a wire.  This is a hazard in code that
   already ships, which is the main reason this merge should not wait.

3. "MONITOR WHILE CALLING HOME" SILENTLY BLOCKS ERASE, and THOR reports the
   session successful anyway.  A receiver therefore cannot rely on erase to
   manage storage -- the server-side high-water mark is load-bearing, and the
   condition is detectable from event count plus free memory on every call.

Two corrections to entries made earlier this month: 0x06 content[4:8] is the
monitor-log count rather than a constant, and SUB 0x49 has a third state (0x03,
in-call-home) which is why that flag is tested for non-zero.

bridges/mm_ach_server.py implements the LISTENER path only and says so; the
poller half -- holding outbound connections and watching for the ring -- is the
next piece of work.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-15 00:05:47 -04:00
serversdownandClaude Opus 5 9c8eb5c5b8 docs(claude): refresh "Where things stand" -- it claimed there was no live client
Stale since 2026-09-26, and wrong in two ways that matter to anyone picking the
project up:

- "micromate/ still has no live client -- it is codec-only."  There has been a
  full client since 2026-10-02: framing/protocol/client + models, 119 tests,
  verified on hardware across both firmware lines and both transports.
- "the inbound call-home session is the only protocol unknown left."  It was
  captured end to end on 2026-10-14.  There are no protocol unknowns left.

Replaced with the current state, and added the three things a reader most needs
up front: that ACH has TWO paths decided by who holds the modem's single session
(so silence from a probe is usually contention with THOR, not a fault); that
0xA2 ends a call-home on series IV and CONFIRMS ERASE on series III across a
shared transport; and that monitor-while-calling-home blocks erase while THOR
calls the session a success, which makes the server-side high-water mark
load-bearing.

Also named the real remaining gap honestly: config decoding, not protocol.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 19:51:46 -04:00
serversdownandClaude Opus 5 7645c91ae2 docs(series4): monitor-while-calling-home blocks erase, and THOR calls it success
Manual 11.4.4: a Micromate can call home WHILE IT CONTINUES TO MONITOR, or pause
monitoring and send.  UM12947 is on the former, which is why the captured session
logged "CANNOT DOWNLOAD MONITOR LOG" and "CANNOT DELETE ALL EVENTS -- The unit is
monitoring".

THOR REPORTS THAT SESSION AS "SESSION COMPLETED SECCESSFULLY" ANYWAY.  The
refusals are INFO lines.  From outside, a unit quietly accumulating looks
identical to one being managed correctly.

Correcting my own framing from earlier today: I flagged "Delete Events and Logs
from Unit = Yes" as a risk to the test data.  It is TMI's normal and necessary
fleet setting -- without it a unit fills up and re-offers every event on every
call.  A unit left on monitor-while-calling-home is the misconfigured one, and
drifts toward a full buffer by itself.

DESIGN CONSEQUENCE FOR SFM: a receiver cannot rely on erase to manage storage.
The erase can fail for a reason the unit considers normal, so the server-side
high-water mark is LOAD-BEARING rather than an optimisation -- it is the only
thing preventing a full re-download every session.  Series III's ach_state.json
(downloaded_keys / max_downloaded_key) is the pattern and has to carry over
deliberately.

Also a detectable fleet-health signal: "memory filling AND deletes refused" is
visible on every call from 0x06's event count and 0x1C's memory fields.  Worth
surfacing precisely because THOR calls it success.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 18:37:10 -04:00
serversdownandClaude Opus 5 08d2d31a09 docs(series4): a complete ACH session captured -- and 0xA2 is a loaded gun
MITM between UM12947's modem and THOR 1.5.0.29: 101 request frames, 101
responses, 0 bad checksums, 34,872 B of event data in 65 seconds.

EVERY COMMAND IN A REAL ACH SESSION IS ONE WE ALREADY IMPLEMENT -- POLL, SERIAL,
STORAGE_RANGE, MONITOR_STATUS, STATE, ARM_EVENT, EVENT_FIRST/NEXT, EVENT_RECORD,
BULK_DOWNLOAD -- except one.

SUB 0xA2 ENDS A CALL-HOME, AND COLLIDES WITH SERIES III'S ERASE.  The session's
final command is 0xA2 at offset 0xFFFF, answered 0x5D, and THOR's log at that
instant reads "StartMonitoringAfterCallhome / Switching unit back to monitoring".
So on series IV it means exit call-home and resume monitoring.

On SERIES III, 0xA2 -> 0x5D is CONFIRM ERASE -- the last step of
0xA3/0x1C/0x06/0xA2, after which the unit's memory is cleared.  Same opcode, same
response SUB, opposite consequence.  This is the most dangerous collision found
in this protocol: minimateplus and micromate already share a transport, and
sending 0xA2 to a MiniMate Plus to "end a session" erases it.  Any shared path
must dispatch on series before that byte goes near a wire.

It also corroborates the firmware string found by static analysis in September,
CMD_EXIT_CALL_HOME_DELETE_EVENTS_START_MONITORING.

TWO CORRECTIONS TO EARLIER ENTRIES OF MINE:

- 0x06 content[4:8] was recorded on 2026-10-01 as "9 on both units regardless of
  count -- a constant, not a count".  It reads 47 here, where THOR's log twelve
  minutes earlier reported "Monitor Log count: 45" on the same unit.  It is
  almost certainly the monitor-log count; both units reading 9 just meant both
  held 9 records.

- SUB 0x49 was recorded as 0x00 idle / 0x02 monitoring.  It reads 0x03 throughout
  this session, ten for ten -- a distinct in-call-home state.  Precisely why the
  rule is "test for non-zero": a client checking == 0x02 would call a unit
  mid-call-home idle.

Also softened the claim that mm_ach_server is "built on the wrong model".
ListenerAchTcp HAS now accepted a connection -- when nothing else holds the
modem's single session, the unit dials out and the listener takes it; when THOR
already holds a connection, the ring rides that instead.  Both paths are real.
The listener model is valid, it just loses the race against anything already
connected -- which explains every failed probe and relay attempt today as
contention rather than bugs.

And noted: THOR rewrites a unit's stored IP from the call-home source address, so
a relay silently poisons THOR's record of where that unit lives.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 18:35:38 -04:00
serversdownandClaude Opus 5 8f67608e0f feat(micromate): answer a RADIO RING the way THOR does -- SERIAL, immediately
THOR's ACH log exposed two differences between what it does on seeing a ring and
what we were doing, and either could explain why the unit never answered us:

              | ours              | THOR
  command     | POLL (0x5B)       | ReadSerialNumber (0x15)
  delay       | 8 s (grace window)| 36 ms

We sat silent for the whole grace window and then asked a different question.
The unit may well have given up long before we spoke.

So the grace window now ENDS THE MOMENT a RING is seen, and the ring is answered
with SERIAL first -- which is THOR identifying which unit rang before doing
anything else.  The push-vs-pull experiment the window was built for is
unaffected: silence still runs the full duration.

This does not change the bigger finding that mm_ach_server is built on the wrong
model for a PAD-connected unit -- THOR's working path is a POLLER holding an
outbound connection, not a listener.  But if a unit whose modem dials out can be
made to answer on the inbound path too, that is worth knowing before the rewrite,
and it costs two small changes to find out.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 18:12:14 -04:00
serversdownandClaude Opus 5 90ac7ff76a docs(series4): SOLVED -- call-home is an in-band wake signal, not a dial-out
From THOR's own ACH log, 4,414 lines, UM12947 over an RX55.  This overturns the
model this document has carried from the start and explains every confusing
result of the past weeks.

A MICROMATE DOES NOT DIAL ANYBODY.  It emits the ASCII string "RADIO RING" over
its serial port, and that text travels up a TCP connection THE SERVER ALREADY HAS
OPEN TO THE UNIT.  The server recognises it and runs a session on that same
connection.

  17:18:17  TcpClientSystemNet    #1: RADIO RING IS RECEIVED FROM IP:63.45.161.30 Port:9034
  17:18:17  ListenerAchRadioRing  #2 RADIO RING IS DETECTED
  17:18:17  ConnectorWorkerThread Process Request: ReadSerialNumber
  17:18:18  ListenerAchRadioRing  #3 RADIO RING UNIT SERIAL NUMBER = UM12947
  17:18:18  ACHManager            #8 RADIO RING STARTED A NEW SESSION

TcpClientSystemNet is THOR's outbound TCP CLIENT -- the ring arrives on the
connection THOR itself opened to unit:9034, the ordinary call-UP path.  No
inbound connection, no dial, nothing to accept.  THOR keeps that connection alive
on purpose: UnitWatchDogTimer reconnects continuously, 1,039 log lines in 37
minutes.

THOR's OTHER ACH path was never used.  ListenerAchTcp logs "Waiting for a ACH
connection on Port 12346" and in 4,414 lines NEVER ACCEPTED ONE.  All twelve ACH
events came through ListenerAchRadioRing.

CONSEQUENCE: bridges/mm_ach_server.py is built on the wrong model for this
deployment.  It listens for an inbound connection -- ListenerAchTcp's model, the
one THOR never exercises here.  The right shape is a POLLER that holds an
outbound connection to each unit, watches the stream for RADIO RING, identifies
the unit, and runs a session on the same socket.

That also dissolves the single-session contention that dogged every experiment
today: the receiver must hold the modem's one session slot PERMANENTLY.  Our
probes and MITM attempts were not fighting a bug, they were fighting the design.

Also captured: the full ACH state machine (15 steps), the eight request types
with counts, and two corroborations -- StartMonitoringAfterCallhome matches the
firmware string found by static analysis in September, and ReadEventRecordCount
returning "Event count: 19" independently supports the SUB 0x06 event-count
finding.

Flagged, unexplained: events are addressed as 90000001 (length 4076) in THOR's
ACH path, where our chain walk returns 055d4a81 for an event of exactly that
length.  Same event, different address space.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 17:55:50 -04:00
serversdownandClaude Opus 5 52d18b0d5d docs(series4): OBSERVED -- THOR's ACH side is POLL, byte-identical to ours
First capture of THOR's half of a Micromate call-home, taken with ach_mitm.py
between UM12947's modem and a THOR 1.5.0.29 ACH server on port 8070.

THOR sends POLL (SUB 0x5B, offset 0x0030) and NOTHING ELSE -- four times over
~21 s, then gives up.  No greeting, no answer to the RADIO RING, no CONNECT.

And that POLL is BYTE-IDENTICAL to what micromate.protocol builds:
build_request(SUB_POLL, 0x0030) reproduces all four frames exactly.

So the ACH session is PULL, and bridges/mm_ach_server.py already implements it
correctly.  The "inbound call-home session" -- carried for weeks as the last
protocol unknown -- was never a separate protocol at all.  It is the ordinary
command set on an inbound socket, exactly as series III's 72 captured sessions
suggested it would be.

THE OPEN PROBLEM IS NOW CLEARLY ELSEWHERE.  In the same capture the unit sent
only "RADIO RING", four times, and never a protocol frame.  THOR polled four
times and got nothing -- identically to our own server in three attempts the
same afternoon.  THE VENDOR'S OWN SOFTWARE FAILS THE SAME WAY WE DO, which
eliminates the receiver as a suspect and places the fault between modem and
unit.

Established: cellular healthy (151 ms connect, outbound dial works), bytes do
reach us from the unit's side, modem serial config matches spec (115200 8N1, no
flow control, PAD/TCP), cable is FTDI and cold-booted with it attached.  Not
established: whether the unit or the modem emits "RADIO RING" -- it is the
literal string in this unit's own 0x2C dial-string field, and the cheap
disambiguation is to disconnect the unit and see if it still appears.

Next step is a config diff against a working deployed unit's modem, not more
protocol work.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 16:42:18 -04:00
serversdownandClaude Opus 5 fc0a7b2a88 chore: ignore capture artefacts beside the bridge scripts
A stale Windows checkout had ten March-era capture files staged as new and
deleted from the working tree -- .bin/.log/.set artefacts in bridges/ and
bridges/s3-bridge/ that .gitignore never covered, since it only had
/bridges/captures/.

Deliberately NOT ignoring /bridges/s3-bridge/ wholesale: proxy.py and
s3_bridge.py live there and are tracked.  Only the artefact extensions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 16:33:44 -04:00
serversdownandClaude Opus 5 3fa2a4035e fix(micromate): the ACH server now names modem chatter, and flushes its output
Three things the first real call-in exposed.  UM12947's modem dialled in at
14:16:56 from 63.45.161.30 -- the network path works -- and sent 60 bytes of
"RADIO RING", space-padded and newline-separated, four times.

1. THAT IS MODEM CHATTER, NOT THE UNIT, and the server left it as a hex dump to
   interpret by hand.  CLAUDE.md already records that an RV50/RV55 "sends
   \r\nRING\r\n\r\nCONNECT\r\n over TCP to the caller even with Quiet Mode
   enabled"; an RX55 on AirLink OS says RADIO RING instead.  The server now
   recognises the known modem strings and says so.

   ⚠ The diagnostic value is in what was MISSING: four RINGs and NO CONNECT.
   RING means the modem is ringing the serial device, CONNECT means something
   answered.  Rings without a connect, plus no answer to POLL, means TCP is fine
   and the unit is not on the other end of the serial link.  The server now
   prints that conclusion and the three things to check -- cabled at all, cable
   chipset (FTDI/CDC-ACM only, never Prolific), and a cold boot with the cable
   attached, since the USB-A host port only enumerates at power-on.

2. STDOUT WAS BLOCK-BUFFERED.  With output redirected, every print sat in a
   buffer, so the log read EMPTY while a call was in progress and the session was
   only discoverable on disk afterwards.  For a tool whose whole job is to be
   watched during a one-shot event, that is close to useless.  Line-buffered now.

3. THE DOCSTRING PROMISED SCANNERS LEAVE NO TRACE ON DISK, AND THEY DID.  The
   failed-handshake path created a session directory unconditionally -- my own
   loopback sanity check produced one.  Now a connection that sends nothing AND
   fails the handshake is discarded with no directory; one that sent something
   unprompted is always kept, because that is the interesting case.

Also recorded in session.json: modem_chatter, ring_count and a diagnosis string,
so a session can be triaged without re-reading the raw bytes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 14:21:42 -04:00
serversdownandClaude Opus 5 67de2c18da fix(tooling): mm_client_check reported THOR's request count, not its own
The download line computed `size // 1024` -- THOR's chunk size -- while the
download used the 16 KB default.  So a 72,560 B event that took 5 requests was
printed as "71 chunks", and I nearly read a working 16 KB download as a broken
1 KB one.  A diagnostic that misreports what it did is worse than one that says
nothing.

Now prints the real count and the size used: "5 req @ 16384 B".

Verified by counting the frames in a capture of that run: 5 x SUB 0x5A at
offsets 0x4000 0x4000 0x4000 0x4000 0x1b70, summing to exactly 72,560.  That is
also the FIRST time the 16 KB chunk size has run through the real download loop
on hardware -- previously only the probe had issued 16 KB single requests, and
the loop itself had only been exercised at 1024 B against THOR's frames and at
16 KB against simulated responses.

Also recorded: USB identification for the Micromate's own ports.  Its PC port is
2504:0300 (Instantel Inc. MICROMATE COM PORT), appearing as CDC-ACM, against
0403 FTDI and 067b Prolific for the USB-A host-port cables.  Address it by
/dev/serial/by-id/ and not /dev/ttyACM<n>, because the number moves whenever
another CDC-ACM device appears -- which has already cost a session aimed at a
TMI-Seismo MCU by mistake.

And: passing one through to a Proxmox guest hot-plugs with no VM restart via
`qm set <vmid> -usb0 host=2504:0300`.  UM20147 is now on tmi-dev (10.0.0.44)
this way, which means the unit can be driven from the dev VM directly instead of
relaying commands.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-14 12:46:01 -04:00
serversdownandClaude Opus 5 bdf4909d2a docs(series4): no Micromate has ever been observed calling home
Correcting an implication I made.  The 72 ach_inbound_* sessions in
bridges/captures/ are MiniMate Plus, and I framed the Series III ACH setup as
though it transfers to a Micromate.  It is not known to.

What we actually have for Series IV is prior, not observation:

- THOR manual 6.2 and the firmware's own strings
  (CMD_EXIT_CALL_HOME_DELETE_EVENTS_START_MONITORING, "Call Home Deleting
  Events") say the unit dials in and waits to be told what to do -- server-driven,
  the same shape as Series III's pull model.
- UM12947's 0x2C dial string reads literally "RADIO RING", which is modem ANSWER
  vocabulary rather than a destination.  With the RV50 debug string
  ATQ1 ATE0 ATS0=2 ... RADIO RING -- ATS0=2 being auto-answer-after-2-rings --
  that reads as the unit arranging to ACCEPT calls, i.e. the call-UP path.  Which
  argues the ACH destination lives in the modem, as it does for series III.

If both priors hold, mm_ach_server.py is just MicromateClient on an inbound
socket and the unknown evaporates.  But there is a specific failure mode worth
naming in advance:

THE MICROMATE DEMONSTRABLY TALKS AT TO ITS MODEM.  If it drives an AT dial for
call-home, that exchange happens on the SERIAL LINK and a TCP listener sees none
of it.  So the first experiment has an AMBIGUOUS NULL -- no connection could mean
the trigger did not fire, or that the interesting part is invisible from the
network.  The escalation is a serial-level capture between unit and modem, not
more fiddling with the server.

Recorded in both the protocol reference and the server's own docstring, so
whoever runs the experiment reads the caveat before being puzzled by a silence.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-03 01:54:31 -04:00
serversdownandClaude Opus 5 4579896b6d feat(micromate): inbound ACH server -- and the push-vs-pull experiment
The inbound call-home session is the last unmapped part of the Series IV
protocol, and it may well not be a separate protocol at all.  Series III's
answer, from the 72 ach_inbound_* sessions on disk, is that the unit DIALS IN AND
THEN WAITS: ach_server.py accepts the socket, wraps it in SocketTransport ->
MiniMateClient, runs the ordinary handshake and drives with the ordinary command
set.  If Series IV behaves the same way, this file is just MicromateClient
attached to an inbound socket.

THE ONE QUESTION THAT MATTERS IS PUSH VS PULL, and no packet capture can answer
it -- you have to connect and keep quiet.  So the server says NOTHING for --grace
seconds after accepting.  Bytes in that window mean the unit speaks first, and it
reports the hex, the ASCII, and whether they parse as a response frame (series III
sends an "Operating System" banner on cold boot, so a banner is the likely shape).
Silence means pull, and the normal handshake follows.

READ-ONLY, and deliberately more so than its series III sibling: that one has
"rescue actions" that stop monitoring and disable ACH on a runaway unit, and
those are absent here.  No command has ever been originated against a unit by
this project, and an inbound session is the worst place to break that.  --depth
defaults to walking the event chain WITHOUT downloading.

Captures land as raw_bw_*/raw_s3_* so scratch/mm_frame_parse.py reads the pair
with no arguments, plus a session.json recording what was learned -- including
the push flag, which is the result worth keeping.  The session directory is
created only after the handshake succeeds, so a port scanner leaves nothing on
disk.

Smoke-tested both paths against a fake unit that dials in: PULL detected over
silence and driven to a full chain walk (33 frames, 0 bad checksums, parses with
the existing tool), and PUSH detected from a 10-byte banner with the frame-parse
attempt reported honestly as "none parsed".

Worth recording for the setup: for series III the call-home DESTINATION lived in
the MODEM's config (ACEmanager), not in the seismograph.  If that holds for the
RX55 then nothing on the instrument needs changing, which keeps the no-writes
line intact.  If it has to come from the unit, its 0x2C block holds a 40-byte
dial string -- and writing that is THOR's job, not ours.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
2026-10-03 01:25:53 -04:00