NodeRenogy icon indicating copy to clipboard operation
NodeRenogy copied to clipboard

Question - Is it possible to specify the modbus address?

Open SP410 opened this issue 2 years ago • 7 comments

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

SP410 avatar Aug 23 '22 03:08 SP410

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

kamkelsey avatar Oct 20 '22 18:10 kamkelsey

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.

sophienyaa avatar Jun 30 '23 08:06 sophienyaa

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

whuang0705 avatar Jul 04 '23 09:07 whuang0705

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

sophienyaa avatar Sep 03 '23 17:09 sophienyaa

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.

oBorks avatar Apr 20 '24 04:04 oBorks

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 :)

CzarDestructo avatar Jun 19 '24 01:06 CzarDestructo

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.

ColbyBurkett avatar Jun 29 '24 01:06 ColbyBurkett