A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => Arduino => Topic started by: NotAHeroMemberYet on October 10, 2017, 08:20:59 PM

Title: CLASSIC 150 - Data Specs
Post by: NotAHeroMemberYet on October 10, 2017, 08:20:59 PM
Hello Forum!

First post so please be nice  :o

I want to read the data coming from my CLASSIC 150 directly via serial data to an Arduino, I have read that most MPPT controllers output serial data, I have looked through the site, having a hard time finding any specs that talk about how to connect tx.rx, baud rates, commands etc. could someone point me in the right direction?

The basic idea, but he is using an RPI same principle though -)

https://youtu.be/1VxP38XlVEQ

Thanks in advance!!

Title: Re: CLASSIC 150 - Data Specs
Post by: Robin on October 11, 2017, 12:01:38 AM
The Classic has a few ways to communicate. I believe they all use Modbus, but I am not the expert.
Please e-mail our network engineer, Andrew Top. Andrew now lives in France, but he is a full time employee.
E-mail him at:    Andrew@midnitesolar.com
Title: Re: CLASSIC 150 - Data Specs
Post by: ClassicCrazy on October 11, 2017, 12:02:44 AM
If you look through this forum you should find the info - dgd has posted code on how to get modbus data out to arduino .
http://midniteftp.com/forum/index.php?topic=2393.new;topicseen#new
Also in this has the info too
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

Do you want to get data with wire plugged in to Classic or via IP ? link above has wiring connections I believe.

bikino has been working on Raspberry Pi to read the data to a webserver - there is a discussion going on that topic on forums now .
http://midniteftp.com/forum/index.php?topic=3835.0

Graham has an Android app that reads all the Classic data and has great graphical display . Available on playstore

Also there is a way to have Classic spit out some serial data via the same cable that the firmware update  USB  cable plugs into . You  need to change a setting somewhere to have it do that - should be in the Classic Manual . 

Also remember the Classic only allows one IP connection at a time so if you have Grahams android app you can not also connect to it with Local Status App at same time.

All depends what you want to accomplish

Larry
Title: Re: CLASSIC 150 - Data Specs
Post by: dgd on October 11, 2017, 12:56:58 AM
Quote from: NotAHeroMemberYet on October 10, 2017, 08:20:59 PM

I want to read the data coming from my CLASSIC 150 directly via serial data to an Arduino, I have read that most MPPT controllers output serial data

You will find all the code for an Arduino UNO to read serial port modbus data from a Classic in the Arduino area of this forum. This is a complete small web server.
There is also a more complex web server system using Mega2560 that uses graphical gauge displays and variosu graphs for data reporting. The C code can be directly loaded to your IDE and the html pages copied to microSD card.
Everything still appears to be good as I have been conversing with two MN users who just downloaded everything in July this year.

dgd
Title: Re: CLASSIC 150 - Data Specs
Post by: atop8918 on October 11, 2017, 02:48:39 PM
Hi,
All the Classic Modbus specs are here:

http://www.midnitesolar.com/documents.php?productCat_ID=21&productCatName=Charge+Controllers+-+Classics&model=CLASSIC%20150&product_ID=256&act=

Under the Specs category you'll find our modbus spec:
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

It is all over the place and can be hard to follow. Feel free to email me at the address Robin posted above. I don't much check the forum anymore I'm afraid.
Title: Re: CLASSIC 150 - Data Specs
Post by: atop8918 on October 11, 2017, 02:50:31 PM
If it's not called out in the spec we use 19200-8-n-1 MODBUS RTU. We also do _not_ follow the 40000 holding register address convention.
Title: Re: CLASSIC 150 - Data Specs
Post by: NotAHeroMemberYet on October 11, 2017, 06:38:53 PM
Thanks, everyone you have been tremendously helpful!
Title: Re: CLASSIC 150 - Data Specs
Post by: CDN-VT on October 11, 2017, 10:09:33 PM
NotAHeroMemberYet
Many are  tremendously helpful here ..


Let us know how your doing & keep US all informed .
I did like the Video link very much .

VT
Title: Re: CLASSIC 150 - Data Specs
Post by: NotAHeroMemberYet on October 13, 2017, 11:51:09 AM
Until I get everything hooked up, I have a bit more $$ to spend, but that's another "ok with the Wife" story -), is there some demo account I can use for read-only viewing to look at some live data from www.mymidnite.com

Using something like this?
http://www.zoneblue.org/cms/page.php?view=getting-data-off-midnite-classic






Title: Re: CLASSIC 150 - Data Specs
Post by: Westbranch on October 13, 2017, 01:04:11 PM
You might get a faster reply from Andrew @ MidNitesolar dot com...  I believe he is still the database guru...

cheers
Title: Re: CLASSIC 150 - Data Specs
Post by: NotAHeroMemberYet on October 20, 2017, 05:33:26 PM
Hopefully my last question:
What register value would supply 'Energy' in the attached local app image? 4371 from a Wizbang? attaching the register PDF, just not sure of the terminology?




Title: Re: CLASSIC 150 - Data Specs
Post by: boB on October 22, 2017, 02:02:31 AM
Energy from the Classic is register 4118  (address 4117)

kW--Hours   Energy to the Battery.  This is reset once per day

This value is from the ammeter shunt in the Classic itself and not from the Whizbang Junior BTW

boB