Repository navigation
Conversation
Corrected a comment regarding the potential delay in readout.
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com>
The opcode table was aligned with tabs, which fails the Porcelain step of the Clean CI job. Whitespace only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
- restore Voltage at 0x040C (average L-N). Renaming it to VoltageL_N_avg left Voltage without an opcode, so Probe and Produce read register 0 - keep Current at 0x0418 (three phase vector current). 0x0416 is the neutral current, not the total - read the new L-L voltages, average L-L voltage and per-phase frequencies in Produce. Opcodes alone are never queried - drop the commented-out THD registers, which are not in the manual Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Add a CurrentN measurement ("Neutral Current", A) and read it from
register 0x0416 on the DS100. Regenerated measurement_enumer.go.
Depends on volkszaehler#385.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
This was referenced Oct 28, 2026
The total energy registers follow the meter's combination code. With Import - Export the manual marks the highest bit as sign bit, so a meter that exported more than it imported reported about 42.9 million kWh instead of a negative value. Read Sum and SumL1-3 as signed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuA1dQ8QTTW8pao9KcJS2
Export pointed at 0x118A, which is not in the DS100 register map. The manual lists total reverse active energy at 0x0118, which the WS100 driver also uses. Add a test pinning all energy register addresses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuA1dQ8QTTW8pao9KcJS2
Read forward, reverse and total reactive energy, in total and per phase, from the DS100 register map (0.01 kvarh). Total reactive energy follows the combination code like active total and is read signed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuA1dQ8QTTW8pao9KcJS2
Every value read in Produce needs an opcode (otherwise register 0 is read), every opcode needs to be read, no address may be used twice and read lengths must match the register size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuA1dQ8QTTW8pao9KcJS2
Explain that Sum follows the meter's combination code and can turn negative, and that currents follow the direction of active power. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmuA1dQ8QTTW8pao9KcJS2
isarrider
added a commit
to isarrider/mbmd
that referenced
this pull request
Nov 3, 2026
README: point fork's DS100 changes at upstream volkszaehler#411
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.
Brings the DS100 driver in line with the register map in the B+G e-tech manual (section 3, Modbus RTU).
Fixes
Export(total reverse active energy) read0x118A, which is not in the register map. The manual lists it at0x0118, and the WS100 driver uses the same address. This has been wrong since the driver was added in Add B+G e-tech BS100 #358.SumandSumL1–SumL3are now read signed. Total energy follows the meter's combination code, and with Import − Export the manual marks the highest bit as a sign bit. Read unsigned, a total of −1.00 kWh showed up as 42,949,671.96 kWh.New values
0x0406–0x040A) and the average L-L voltage (0x040E)0x0432–0x0434)CurrentNmeasurement (0x0416).Currentstays at0x0418(three-phase vector current)0x012C/0x0136/0x0140, plus the per-phase blocks), 0.01 kvarh. The reactive total is read signed, likeSumTests (
meters/rs485/ds100_test.go)Produce()agree: every value read has an address, every address is read, none is used twice, and read lengths match the manualDocs
The README explains what
Summeans for each combination code, and that currents follow the direction of active power, so they read negative while exporting.This adds 25 Modbus reads per cycle (57 instead of 32). The tariff registers are left out because only the DS100-30B has them, and an unsupported register would stall the device in mbmd's read loop.