Git Product home page Git Product logo

renogy-rover-arduino's People

Contributors

gasagna avatar hirschi-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

renogy-rover-arduino's Issues

New new attribute for library.properties

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

Some functions missing free() at the end

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

Example file?

Do you have an example file for this you could share? I'm struggling to get the library to compile properly in the IDE

10A model compitability

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.