Hello,
Some will remember that I had a small struggle to connect the SDM120 meters to my emonPi. Thanks to a lot of help and handholding I got it work.
Unfortunately some time ago both meters stopped communicating. I don’t know what I’ve done wrong. I’ve looked at previous discussions about this and think I’ve tried all the suggestions.
This is the log message I get:
2025-02-02 10:43:27,373 ERROR SDM120 Could not read register @ 74: No communication with the instrument (no answer)
2025-02-02 10:43:28,391 ERROR SDM120 Could not read register @ 76: No communication with the instrument (no answer)
2025-02-02 10:43:28,491 ERROR SDM120 Could not read all registers
2025-02-02 10:43:28,492 INFO SDM120 Connecting to Modbus device=/dev/ttyUSB0 baud=2400 parity=none datatype=float
2025-02-02 10:43:31,099 ERROR SDM120 Could not read register @ 0: No communication with the instrument (no answer)
I’ve tried restarting, I’ve checked the code and it’s unaltered, the meters have the correct baud rate and id numbers, I’ve tried a different USB port, I’ve replaced the USB to RS485 adaptor…
So I’m stuck.
Here is the sdm120 config part:
[[SDM120]]
Type = EmonHubMinimalModbusInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = sdm120
# prefix = sdm_
[[[[meters]]]]
[[[[[sdm120a]]]]]
address = 1
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
[[[[[sdm120b]]]]]
address = 2
registers = 0,6,12,18,30,70,72,74,76
names = V,I,P,VA,PF,FR,EI,EE,RI
precision = 2,3,1,1,3,3,3,3,3
Any suggestions? I’m sure it’s something trivial but I can’t see the wood for the trees.
Thanks,
Andrea
[Edited for presentation. Moderator (RW)]