A Forum run by Enthusiasts of MidNite Solar

Charge Controllers and Clippers => The "Classic" charge controller => Topic started by: Nashville on June 26, 2016, 11:11:16 AM

Title: Real time data pull from classics
Post by: Nashville on June 26, 2016, 11:11:16 AM
Hi Gu
I would like to pull the data from my classics into a home automation program. Is this possible? I have heard about Modbus. Is this how this is done?
Thanks!
  :D
Title: Re: Real time data pull from classics
Post by: TomW on June 27, 2016, 08:56:49 AM
Modbus is one way.

You can actually pull the registers via serial port,, also in a continuous stream.

Check the "Black Box" project on the forum.  A search for "blackbox" should kick up some info on using Raspberry Pi or Cubieboards to monitor Classics over ethernet. Code can probably be adapted for other devices.

Tom
Title: Re: Real time data pull from classics
Post by: Syonyk on June 28, 2016, 08:35:19 PM
The easiest way to get data off a Classic for your own consumption is Modbus.

There's code for newmodbus and newmodbusd here: https://github.com/zoneblue/theblackboxproject/tree/master/source

The list of registers for a Classic, somewhat out of date, is here: http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

You can either "single shot" gather data with newmodbus, or use newmodbusd to gather into text files you can parse for your purposes.