driver-spm01r: check on a real SPM01R meter

Open
#787 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, typescript

Research direction

This is a hardware validation task for the @ya-modbus/driver-spm01r package added in #769; start by reading that PR and the driver's register map, then the package README line claiming it is "not yet confirmed on hardware". The check is a read-only ya-modbus read --driver @ya-modbus/driver-spm01r --slave-id N --all against a wired meter with a known load, comparing against ~230 V / 50 Hz and a known wattage. Done means the checklist passes (including registers 6000-6002 for device_address, baud_rate, parity), results are posted here, and the README caveat is removed or a fix PR links back.

Written by the indexing model from the issue text.

Description

The SPM01R driver (#769) was written from the vendor's register list and tested only with a mocked transport. It is merged without a real-device check, because no SPM01R is installed yet (decision 2026-11-18). This issue holds that check until a meter exists.

Not queued for a session: it needs a real meter, wired to a bus, with a known load.

How

Install the published driver (or a tarball) and run a read-only ya-modbus read --driver @ya-modbus/driver-spm01r --slave-id N --all with a known load. Compare with a second meter or a known load (for example a 1000 W heater).

Done when

  • voltage, current and frequency read plausible values (about 230 V, 50 Hz)
  • active_power is in W: a known load reads about its power (the kW→W scale is right), and apparent_power is in VA
  • The energy counters go up while the load runs
  • device_address, baud_rate and parity (registers 6000-6002) can be read. If not, the bridge poll fails: fix the driver
  • The results are in a comment here, and the "not yet confirmed on hardware" line in the package README is removed (or the fixes are in a PR that links here)
Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
13h 46m
Merged PRs (30d)
58

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from groupsky/ya-modbus

All issues in groupsky/ya-modbus

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.