Emon Hub not reading all registers of Energy meter

So, i have a energy meter that does modbus rtu. i have the below config in emonhub and get reading in the logs for like 3 of the parameters, eg: V, P, IMP and it says it is unable to read other registers.

however, if i read just the I register, that paramater is read fine individually. What might be the problem. Any help?

 [[selec]]
        Type = EmonHubMinimalModbusInterfacer
        [[[init_settings]]]
            device = /dev/ttyUSB0
            baud = 9600
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
            read_interval = 15
            nodename = selec
            # prefix = sdm_
            [[[[meters]]]]
                [[[[[selecEV]]]]]
                    address = 2
                    registers = 21,23,29,15,3
                    names = V,I,MD,P,IMP
                    precision = 2,2,2,2,2

[Edited for presentation - Moderator (RW)]

For future reference, when posting code or output, please put 3 ‘backticks’ (normally found at the top left of the keyboard) on a line of their own before the code, and 3 more backticks also on a line of their own after the code:

```
code
```

If it is something like php you can add a language identifier after the first 3 backticks: ```php or even ```text if you don’t want any language markup applied.

I also have a question, is there a way to pull data from say address 1 to 30 and then parse via emonhub somehow. i suspect that might be the problem too.

You need to check the actual model of the meter and determine what the MODBUS register layout is.

Yeah, i have all those details and am listing out the correct register addresses etc. Turns out the issue might be due to polling each register separately or something.

I am experimenting the same with nodered and if i pull all registers to gether it is returning all the values…

1 Like