olivergregorius / sun2000_modbus

Library for reading Huawei Sun2000 inverter metrics via Modbus TCP
MIT License
23 stars 9 forks source link

use with master and slaver inverter #30

Open kurb77 opened 4 months ago

kurb77 commented 4 months ago

Hi, i have 2 inverters sun2000 , i talk with your api with the master, but i don't talk with the slave. i tried to use the param "unit" (1,2,3) and i have always the same error

pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)

do you have a example to use your API with more one inverter?

thank you jerome

olivergregorius commented 4 months ago

Hi Jerome,

unfortunately I don't have a setup with 2 inverters to dive deeper into this.

The documentation states that the master and slave must be communicating with each other using Modbus-RTU/RS485 and the master "forwards" the request to the corresponding slave defined by the unit number. Is that the case for your setup?

Please check the documentation, 6.2.2 Modbus-TCP (page 74ff)

Kind regards, Oliver

kurb77 commented 4 months ago

thank, i will digging

jerome