hirschi-dev / renogy-rover-arduino Goto Github PK
View Code? Open in Web Editor NEWArduino MODBUS Driver for the Renogy Rover 20A/40A Charge Controller
License: MIT License
Arduino MODBUS Driver for the Renogy Rover 20A/40A Charge Controller
License: MIT License
The latest Arduino 1.8.19 needs a new attribute line in the library.properties
paragraph
Example
paragraph=Arduino MODBUS Driver for the Renogy Rover 20A/40A Charge Controller
Hi. I've been using your renogy interface for a few days on my Arduino
I have a Renogy 20A MPPT and RS232-TTL convertor and Arduino Uno and NRF24L01 wireless.
I noticed that after a few hours of continuous polling, the Arduino was send out corrupted data over the wireless.
(from my programming background) I worked out it was the getBatteryState and getPanelState and getProductName are mssing the free(values) at the end of the functions. You are calling "new uint16_t[registerLength];" which Arduino does a malloc, but it is not being released.
I added free() at the end to the three functions as a test and it us running without problems for thousands of polling now.
I also think you need to add the free() if the readHoldingRegisters fails.
eg.
if (!_readHoldingRegisters(registerBase, registerLength, values)) {
free(values);
return 0;
} else
Do you have an example file for this you could share? I'm struggling to get the library to compile properly in the IDE
Hi any idea if this library will work with Renogy 10 Amp model?
Also as you might know the Renogy controllers comes with RJ11/RJ12 port (not a standard 9pin com port). I haven't found any RS232 to TTL Converter that has RJ11/RJ12 port. what converter have you tested this with during your development?
Thanks for your time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.