Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renogy - Multi battery setup documentation #1099

Open
mr-manuel opened this issue Jul 14, 2024 · 8 comments
Open

Renogy - Multi battery setup documentation #1099

mr-manuel opened this issue Jul 14, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@mr-manuel
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Create a documentation on how to connect multiple Renogy batteries to one serial adapter.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

@mr-manuel mr-manuel added the enhancement New feature or request label Jul 14, 2024
@mr-manuel
Copy link
Collaborator Author

@TheVodden could you do that?

  1. Describe how you need to prepare the batteries, to get the correct addresses
  2. How to connect the batteries correctly
  3. How to setup the driver correctly

Please add some pictures/screenshots, so that others could follow more easily. I will add this then to the documentation.

@mr-manuel
Copy link
Collaborator Author

@TheVodden
Copy link

TheVodden commented Jul 14, 2024 via email

@Quadron
Copy link

Quadron commented Jul 16, 2024

I had used the BT2 first, not the RS485 battery monitor.
To check the addresses I used the CASModbusScanner program (from https://store.chipkin.com/products/tools/cas-modbus-scanner) to scan all the adresses while connected with the usb cable to my windows laptop. Batteries daisychained together as they were connected to the BT2.
It gave me responses "not available, Device exists but does not support this function" on 4 addresses: 48, 49, 50 and 51. Which translate to 0X30, 0X31, 0X32 and 0X33 so that does correlate with what others have reported. All other addresses reported "time out".
I reinstalled dbus-serialbattery to make sure I had not fumbled up my config.ini. Then inserted the 4 addesses.
The logfile now says:
++
Testing Renogy at address "\x30"
Renogy RBT100LFP12SH-G1
++
After each of the four addresses
In the end it says
++
DRIVER STOPPED! Another battery with the same serialnumber/unique identifier "RBT100LFP12SHG1_100.0Ah"
Change battery capacities to be unique.
++
But how do I do that?

EDIT:
I've poked around the code and found in renogy.py line 44 the batteries apperently do not return a unique serial number, therefore the conventional way of naming type_capacity is used.
To test I have changed the option USE_PORT_AS_UNIQUE_ID to true
logfile then reports:
four times:
INFO:SerialBattery:Changed CustomName = SerialBattery(Renogy)
And then:
WARNING:SerialBattery:Polling took too long. Set to 4.000 s
And nothing more. So that option will not work as it is now.

I have no idea why my batteries do not report their serial numbers. I do not know enough of modbus to even contemplate trying to connect directly to the batteries to try to figure that out.
My guess would be to modify the USE_PORT_AS_UNIQUE_ID function to append the modbus address to the port address or modify the renogy unique identifier function to append the modbus address or a sequential number to the generic type_capacity naming. But my coding skills are absolutely inadequate to pull that off.

@TheVodden do you have the same batteries? and if so, what firmware are they on. Mine are v1.31 according to the Renogy app. I have not been able to find a different firmware on the renogy site, so updating would probably not be an option anyway.

@Quadron
Copy link

Quadron commented Jul 16, 2024

This is the USB to RJ45 RS485 cable pinout that is working for me:
Victron FTDI to Renogy RJ45 pinout

@mr-manuel
Copy link
Collaborator Author

mr-manuel commented Jul 17, 2024

Hi, I will change that for Renogy batteries to use the port as unique identifier by default. They seem to not provide this info or do you see the serial number in their software?

@mr-manuel
Copy link
Collaborator Author

The port is now used for the unique identifier for the Renogy battery as default. See mr-manuel@ed1950b.

@mr-manuel mr-manuel reopened this Jul 19, 2024
@Quadron
Copy link

Quadron commented Jul 20, 2024

"do you see the serial number in their software?"

I have not been alle to find anything in the renogy app that provides a unique number of each battery. Only a numbering 1 through 4 (in my case) based on the rs485 daisychain connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants