Skip to content

DS100: read line voltages and per-phase frequency - #3

Merged
isarrider merged 2 commits into
masterfrom
fix/ds100-opcodes
Oct 19, 2026
Merged

isarrider merged 2 commits into
masterfrom
fix/ds100-opcodes

Conversation

@isarrider

Copy link
Copy Markdown
Owner

Fixes for upstream volkszaehler#385 (its head is this fork's master).

Register addresses are checked against the B+G e-tech DS100 manual.

  • Voltage had no opcode. The PR renamed Voltage: 0x040C to VoltageL_N_avg, but Probe() and Produce() still read Voltage. A missing map entry yields opcode 0x0000, so device detection and the average voltage read the wrong register. This restores Voltage: 0x040C (average L-N).
  • Current stays at 0x0418. The PR moved it to 0x0416, which the manual lists as the neutral current. 0x0418 is the three-phase vector current, as before.
  • New values are actually read. Opcodes that aren't in Produce() are never queried. This adds the L-L voltages, the average L-L voltage and the per-phase frequencies (7 more register reads).
  • Removed the commented-out THD block. Those addresses aren't in the manual's register map.

The diff against upstream master is now limited to these additions.


Generated by Claude Code

isarrider and others added 2 commits October 19, 2026 16:58
- 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
@isarrider
isarrider merged commit 2d92277 into master Oct 19, 2026
3 checks passed
@isarrider
isarrider deleted the fix/ds100-opcodes branch November 2, 2026 18:09
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