If the capture board counts correctly but the displayed energy scales incorrectly, verify pulses per kilowatt-hour, valid edges and display units before checking the board reference.
This is an isolated low-voltage pulse-counting bench with synthetic data, not connected to mains or an operating meter. It tests counting, conversion and reporting, not actual energy, meter settings, billing or regulatory compliance. A raw count and a converted engineering value are different quantities.
Pulses per kilowatt-hour and energy per pulse are reciprocals
An output can specify impulses per kilowatt-hour (imp/kWh), while another system stores kilowatt-hours per pulse. They are reciprocals with consistent units. A unitless field can be interpreted the other way after a gateway update.
Verify what quantity the output represents. A configurable pulse pin does not automatically indicate active energy, and two outputs are not necessarily interchangeable. Preserve quantity, constant, valid edge and each input condition from the approved interface. Fix these parameters in test scripts rather than reusing another board's assumptions.
A fixed integer scale error suggests conversion, edge mode or duplicate aggregation. An error that changes with spacing, width or jitter calls for checking the counts actually captured, not assuming crystal error. Preserve the increment before scaling.
Worked example: how do 250 pulses produce two answers?
Inject 250 specified test pulses unrelated to a real load. At 1,000 imp/kWh, the display should be 250 ÷ 1,000 = 0.25 kWh. That corresponds to 0.001 kWh, or 1 Wh, per pulse. If the gateway instead uses 500 imp/kWh, the same raw count displays 0.50 kWh, exactly double.
Alternatively, keep the correct constant but count both rising and falling edges as separate events. Then 250 pulses become 500 counts and display 0.50 kWh again. This error is in capture, not the equation. Preserve generator counts, receiver waveforms, counter increments and the platform result to tell them apart.
Before subtracting cumulative counters, check reset, rollover or clear events. Do not subtract a fresh boot count from a previous total without checking continuity. Pulse spacing does not give total input quantity. A rate estimate from spacing needs its own origin, window and timeout rules.
Where can the capture board's MHz reference matter?
For a custom capture controller that requires an external 12 MHz active reference, Epson SG-210STF X1G004171041400 is one candidate. Verify the supply, output and standby configuration against the applicable specification. Validate the candidate on the actual design. This example offers no evidence of what is fitted in a utility meter or of the upstream metering IC's internal clock frequency.
The reference can affect a capture filter or pulse-width timebase. If a glitch filter requires a fixed number of cycles, the sampling clock changes its effective duration. But 250 inputs already verified as counted once each do not acquire a different conversion constant because a physical clock changes. If substitution changes the clock tree or startup, retest edge increments and boundary widths on a digital bench, not a live metering device.
Disconnect real inputs and compare the three sets of numbers
First use one synthetic timing source and verify the actual edges over the interval. Record pin polarity, controller start/end counts and the units used by the upper layer. Establish a baseline away from timing limits, then check approved shorter and longer pulses. Change width and observation window separately so missing counts and duplication can be distinguished.
Keep source and firmware fixed and compare edges with the converted output. If raw counts agree but the value differs by an integer factor, inspect unit interpretation locally. If low-rate counts pass but high-rate ones do not, check input limits, capture timing and processing before attributing the result to the oscillator. Keep simulated inputs separate from real metering.
| Check | Bench evidence | Purchasing and quality record |
|---|---|---|
| Pulse meaning | Quantity, constant unit and simulated values | Approved interface and revision |
| Capture | Waveform, valid edge and count increment | Board configuration, samples and firmware |
| Conversion | Formula result for the same increment | Display unit and verification basis |
| Reference | Measurement point and relationship to input filter | Exact code, power, output, temperature and lot |
This validates reception, counting and reporting, not upstream meter accuracy. Investigate timestamp offsets separately; they do not change the conversion of a verified count.
Add a small-increment test. Ten equal windows with one valid pulse each at the example constant should total 10 Wh. If the platform rounds each 0.001 kWh value to two decimal places before adding the displayed values, all ten windows may show zero. Check where the system rounds and retain the higher-precision intermediate values. Report watt-hours alongside kilowatt-hours to distinguish a display-precision issue from an incorrect conversion.
Shift the same pulse train in time without changing the total. An edge at a boundary belongs to one interval under the agreed inclusion rule. Verify the sum of neighboring counts instead of expecting identical individual windows. Align timebases before comparing and do not replace local counting boundaries with network receipt times.
Tie the pulse definition to a measured production test record. After a firmware change, rerun scale, rounding and boundary cases to distinguish software regressions from part changes.
Frequently asked questions
Can pulse frequency alone qualify the energy display? No. Confirm count increment, quantity, units and state, then verify conversion under the same convention.
Will a more accurate oscillator remove a twofold error? Not if the cause is a unit, constant or double-edge count. Locate the first erroneous stage before assessing timing.
