Repository navigation
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, plusdocs/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
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.ToFs9721reverses the bits,Fs9721Decoderreads the result, andDtm0660Decoderadds the 15th byte (°C/°F come from byte 13).Fs9721/NumberedFramer, shared by both chips.Fs9721Framer's API is unchanged.MeterModel.Dtm0660with its driver, capabilities (receive-only, 4 digits), MCP nameDTM0660, and bridge nameReadout DTM0660 XXXX. The LCD reuses the FS9721 drawing, with MAX and MIN where hFE was.CHIP_DTM0660profile and four envs (dtm0660-esp32dev,-esp32c3and their-vddversions), wired and sleeping like the FS9721 builds. Firmware 0.4.0. The README has a DTM0660 section.Reviewer notes
fs9721-*builds.Checks
dotnet test --project Readout.Tests: 320 passedpio runfordtm0660-esp32dev,dtm0660-esp32c3-vdd,fs9721-esp32dev,dso150-esp32dev: builtdotnet build Readout.Linux(compiles the shared LCD drawing): built🤖 Generated with Claude Code