Skip to content

feat(dtm0660): DTM0660 meters through the bridge, and a survey of serial meters - #5

Open
amd989 wants to merge 1 commit into
mainfrom
claude/dmm-serial-ir-drivers-8f57ef
Open

amd989 wants to merge 1 commit into
mainfrom
claude/dmm-serial-ir-drivers-8f57ef

Conversation

@amd989

@amd989 amd989 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

What

Support for meters built on the Dream Tech DTM0660 chip (Aneng V8, Mestek DM91A, UNI-T UT139C…) through new dtm0660-* builds of the ESP32 bridge, plus docs/SERIAL-METERS.md, a survey of the meters in lygte-info's DMM reviews that have a serial or IR output, grouped by chip.

How

  • Decoder: a DTM0660 frame (15 bytes, 2400 8N1, numbered 1x–fx) is an FS9721 frame with each byte's four segment bits reversed, plus a 15th byte for MAX, MIN, MAX/MIN and auto power-off. Dtm0660Frame.ToFs9721 reverses the bits, Fs9721Decoder reads the result, and Dtm0660Decoder adds the 15th byte (°C/°F come from byte 13).
  • Framing: the FS9721 framer's byte-number sync moved to Fs9721/NumberedFramer, shared by both chips. Fs9721Framer's API is unchanged.
  • App: MeterModel.Dtm0660 with its driver, capabilities (receive-only, 4 digits), MCP name DTM0660, and bridge name Readout DTM0660 XXXX. The LCD reuses the FS9721 drawing, with MAX and MIN where hFE was.
  • Bridge: CHIP_DTM0660 profile and four envs (dtm0660-esp32dev, -esp32c3 and their -vdd versions), wired and sleeping like the FS9721 builds. Firmware 0.4.0. The README has a DTM0660 section.

Reviewer notes

  • Not tried on a real meter. The tests use frames built by hand from libsigrok's description of the format, plus about 300 of the real Miyako 890G FS9721 captures converted into DTM0660 form, which must read the same. A real capture would confirm the °C/°F bits and the 15th byte.
  • Serial output has to be turned on in the meter's EEPROM, which also holds the calibration. I couldn't find a reliable address for the enable bit, so the README points to the EEVblog DTM0660 hacking thread rather than guessing.
  • DTM0660 meters set to the 14-byte mode send FS9721 frames and work with the existing fs9721-* builds.
  • The DSO150 two-way work (feat(bridge): two-way DSO150 bridge and app-side send #3) isn't needed here, but the survey notes it covers most of what the two-way IR meters (Brymen, Fluke, Keysight) would need.

Checks

  • dotnet test --project Readout.Tests: 320 passed
  • pio run for dtm0660-esp32dev, dtm0660-esp32c3-vdd, fs9721-esp32dev, dso150-esp32dev: built
  • dotnet build Readout.Linux (compiles the shared LCD drawing): built
  • No MAUI iOS/Mac/Android build run

🤖 Generated with Claude Code

…ial meters

The DTM0660 sends a 15-byte frame that is an FS9721 frame with each byte's
segment bits reversed, plus a byte for MAX, MIN, MAX/MIN and auto power-off.
Dtm0660Frame.ToFs9721 turns the bits around so Fs9721Decoder reads it, and
Dtm0660Decoder adds the 15th byte. The FS9721 framer's byte-number sync moves
to NumberedFramer, shared by both chips.

- MeterModel.Dtm0660, its driver, capabilities, MCP name and bridge name
  ("Readout DTM0660 XXXX")
- The FS9721 LCD with MAX and MIN in place of hFE
- dtm0660-esp32dev / -esp32c3 bridge builds (and -vdd), firmware 0.4.0
- Tests from hand-built frames (libsigrok's layout) and the 890G captures
  sent the DTM0660 way
- docs/SERIAL-METERS.md: which meters in lygte-info's reviews have a serial
  or IR output, by chip, and what the bridge needs for each

Not yet tried on a real DTM0660 meter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant