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

Question - Is it possible to specify the modbus address? #6

Open
SP410 opened this issue Aug 23, 2022 · 7 comments
Open

Question - Is it possible to specify the modbus address? #6

SP410 opened this issue Aug 23, 2022 · 7 comments

Comments

@SP410
Copy link

SP410 commented Aug 23, 2022

I found out that my controller lives at address 17; not 1 which is typical for renogy controllers.

@kamkelsey
Copy link

did you ever get anywhere with this? i have a renogy wanderer with address 255

@sophienyaa
Copy link
Owner

adding modbusClient.setId(17) before the read might resolve this. If you're able to test and let me know I can add this as an enhancement.

@whuang0705
Copy link

where, which file, should this modbusClient.setId(17) be added?

@sophienyaa
Copy link
Owner

Between lines 159 and 160 of renogy.js. I've not tested this so you may need to make additional changes.

@oBorks
Copy link

oBorks commented Apr 20, 2024

I have the same issue of needing to change the address to 16 for our Wanderer. I tried adding the line to renogy.js, but when I tried to run it I got an error that modbusClient.setId is not a function.

@CzarDestructo
Copy link

I was able to get my Rover 40A controller working on address 16 by adding the following between lines 187 and 188:

        try {
            modbusClient.setTimeout(500);
            modbusClient.setID(16); 
            await modbusClient.connectRTUBuffered(args.serialport, { baudRate: args.baudrate });
            logger.info('Connected to controller!');
        }

Very happy to have my controller working, thanks for all your hard work on this repo :)

@ColbyBurkett
Copy link

I've been using this with my Rover 60A & RS232 for a few months now... works perfectly. Much appreciated. I also have a Rover 40 Li w/RS232 that I'll be spinning up... I expect no issues.

Now, I am purchasing a Renogy 12V 30A DC to DC Charger w/RS485 port. I am grateful to those blazing the trail on the RS485 side.... hope it won't be too painful.

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

No branches or pull requests

7 participants