rosswarren / renogymodbus

Python library for communicating with Renogy solar charge controllers
MIT License
29 stars 7 forks source link

Any advice on how to find the slave address? #1

Closed SP410 closed 2 years ago

rosswarren commented 2 years ago

Hey, thanks for raising the issue. There is now a CLI tool available for this if you install the latest version.

You can then run the command

renogymodbus --find-slave-address --portname /dev/ttyUSB0

It will print the output.

For me, for my charge controller both 0 and 1 work, and for my battery I have two batteries and for some reason the addresses are 48 and 49.

Please note this library is very new and I am testing and adding new features all the time, some things might not be quite right yet or subject to change.

SP410 commented 2 years ago

Thank you so much! I say you had added the python script but had trouble figuring out how to use. Strangely, my Rover 20A is at Address 17.