Android app for the Classic

Started by Graham, January 06, 2014, 07:54:42 PM

Previous topic - Next topic

budred

Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers
Anguilla, BWI
15 x 305W Canadian Solar, Classic 150, Whizbang Jr, Magnum MS4448PAE, 11kWh Flooded Lead Acid

ClassicCrazy

#346
Quote from: budred on June 12, 2017, 03:52:58 PM
Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers

Is this the document you looked at for the registers ?
http://www.midnitesolar.com/pdfs/classic_register_map_Rev-C5-December-8-2013.pdf

could you subtract with these and get the right number ?

365 43 66
R
WbJrAmpHourPOSitive
(([4366] << 16) + [4365]) Amp Hours Pos.
(
un
signed)
Positive Whizbang Jr. amp hours
4367 43 68
R
WbJrAmpHour
NEGative
(([4368] << 16) + [4367]) Amp Hours Neg.
(signed)
Negative Whizbang Jr. amp hour

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

budred

That's the document, Larry.  Thanks for this but I believe those registers measure the accumulated energy going in and out of the battery, but what I need is the capacity of the battery, which is an unchanging value.  The default value from factory is 400AH.

I'll let you know what I get from these registers.

Tomie
Anguilla, BWI
15 x 305W Canadian Solar, Classic 150, Whizbang Jr, Magnum MS4448PAE, 11kWh Flooded Lead Acid

ClassicCrazy

Graham probably knows - he gets that value somehow on his Classic Android App.

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

binkino

Quote from: Graham on May 22, 2017, 10:29:26 AM...
the German text is in the strings.xml file at https://github.com/graham22/Classic/tree/master/app/src/main/res/values-de
let me know what the text should be, I'll update the apk.


Graham.

thanks, will check these days ;)
PV-OUTPUT: http://pvoutput.org/list.jsp?id=38617
Classic Lite 200 + Classic 200 + Easun ISolar-SMX-II-5.6KW + 12x240Wp + 12x255Wp + 2x10kWh LFP
http://a68k.de/Solar/Monitor_LC2.php

Graham

Quote from: budred on June 12, 2017, 03:52:58 PM
Hi Graham, I'm writing a basic solar monitor for a raspberry pi and I wanted to display a calculated battery runtime. I need to pull the battery AH data from the whizbang jr ("Remaining AH" would work fine as well).  Do you know the whizbang modbus registers for "Battery AH" or "Remaining AH"? Much appreciated

Cheers

Here is a link to the source on github
https://github.com/graham22/Classic/blob/master/app/src/main/java/ca/farrelltonsolar/classic/ModbusTask.java

lines 294 to 308 read the whizbang data, TotalAmpHours is at  offset 4380


Graham.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

ClassicCrazy

Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Graham

Quote from: ClassicCrazy on November 08, 2017, 12:25:16 PM
Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry

Thanks Larry
found the issue, the fix will be in the next release.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

ClassicCrazy

Quote from: Graham on November 10, 2017, 11:06:08 AM
Quote from: ClassicCrazy on November 08, 2017, 12:25:16 PM
Graham ,
I noticed that in Messages tab where the list of Target Battery voltage , Ending Amps , etc is listed  that on mine I have ending amps set in Classic for 10.8 but on the app it is displaying as 10.0 A .
So maybe it is just not reading the decimal ?  No big deal but next time you are tinkering with the app or thinking of an update maybe you could see if it is an easy fix.
Thanks
Larry

Thanks Larry
found the issue, the fix will be in the next release.

Great glad you found it -  thanks - no big deal but might as well make it work right !

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

ClassicCrazy

Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Westbranch

Hi Larry, what are you running it on?

I will check next week when on site and check that out as I don't remember it doing that... but I don't use that screen very often as I watch the 'Power' screen the most and the 'Graph' page..
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

ClassicCrazy

I am using it on Amazon Fire tablet running  Cyanogenmod android .

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Graham

Quote from: ClassicCrazy on December 09, 2017, 11:03:36 AM
Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry

Thanks Larry

I published an update to the github repo https://github.com/graham22/Classic/ with the changes to the consumption gauge for the current precision. I'll update google play in a couple of weeks.

The apk is in my dropbox folder https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0


Graham.

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

ClassicCrazy

Quote from: Graham on December 11, 2017, 08:34:57 AM
Quote from: ClassicCrazy on December 09, 2017, 11:03:36 AM
Graham,
I noticed one other small quirk . When you are on the Consumption screen and toggle the dial from Power to Current - the amps displayed is rounded off  - so only either get like 6 amps , or 7 amps and nothing in between. The State of Charge will show amps to a decimal .
So you can put that on your list to look at for next update if you want to .
Thanks
Larry
Thanks Graham . I just installed it and now am seeing the consumption to decimal places on the amp scale.
The decimal on the ending amps is also working now too.

Larry

Thanks Larry

I published an update to the github repo https://github.com/graham22/Classic/ with the changes to the consumption gauge for the current precision. I'll update google play in a couple of weeks.

The apk is in my dropbox folder https://www.dropbox.com/sh/z04q8hpw5ibpwfd/AACbRXpllos-IuLR6Z4pGWska?dl=0


Graham.
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

ClassicCrazy

I have a question about the Live Chart 
If I double click on the screen it seems like it zooms in on the times . But I haven't been able to make it go backwards and zoom out .

Any hints on using  this ?

Also if I close it all the Live Chart data is gone  - is there a way to make that stick in there ? 

I am using Memu Play to view Classic Monitor  which is Android emulator - works great on the Windows 10 laptop .

Thanks
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable