owagner / modbus2mqtt

Modbus master which publishes via MQTT
MIT License
120 stars 82 forks source link

multiple slaves on same rs485 bus #4

Open Starfish133 opened 7 years ago

Starfish133 commented 7 years ago

I have multiple slaves on same rs485 bus, slave ID 1 and slave ID 2. (both SDM120 meters) The register definition is like this: DEFAULT,,2,>f:%.1f,1,1,4 voltage,0 power,12 DEFAULT,,,>f:%.2f current,6 Pfactor,30 freq,70 TotalPower,342 DEFAULT,,2,>f:%.1f,1,2,4 voltage2,0 SolarVoltage,0 SolarPower,12 DEFAULT,,,>f:%.2f Solarcurrent,6 SolarTPower,342

It reads the first meter without error. Then start with second meter gives an error on first value (voltage2,0) then reads the rest of second meter without error.

Any way to specify a wait time between read first meter and start to read the second meter?

Thanks for this great piece of software, Jan

mbs38 commented 5 years ago

Has been fixed in https://github.com/mbs38/spicierModbus2mqtt