Author Topic: Android app for the Classic  (Read 36468 times)

budred

  • Newby
  • *
  • Posts: 4
Re: Android app for the Classic
« Reply #345 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
Anguilla, BWI
15 x 305W Canadian Solar, Classic 150, Whizbang Jr, Magnum MS4448PAE, 11kWh Flooded Lead Acid

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #346 on: June 12, 2017, 08:29:10 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
« Last Edit: June 12, 2017, 08:33:41 PM by ClassicCrazy »
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

budred

  • Newby
  • *
  • Posts: 4
Re: Android app for the Classic
« Reply #347 on: June 12, 2017, 09:50:12 PM »
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

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #348 on: June 12, 2017, 09:58:48 PM »
Graham probably knows - he gets that value somehow on his Classic Android App.

Larry
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

binkino

  • Sr. Member
  • ****
  • Posts: 250
    • BinKino's PV
Re: Android app for the Classic
« Reply #349 on: June 13, 2017, 06:19:57 PM »
...
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 + Westech Combi 3000 + 3x4x240Wp + 1x4x255Wp + 575 AH EPzS
http://a68k.de:81/Solar/Monitor_LC.php

Graham

  • Full Member
  • ***
  • Posts: 195
    • SkyeTracker
Re: Android app for the Classic
« Reply #350 on: June 16, 2017, 01:54:18 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
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

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #351 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
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Graham

  • Full Member
  • ***
  • Posts: 195
    • SkyeTracker
Re: Android app for the Classic
« Reply #352 on: November 10, 2017, 11:06:08 AM »
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
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

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #353 on: November 10, 2017, 12:02:22 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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #354 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
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Westbranch

  • Hero Member
  • *****
  • Posts: 2624
  • Building System (sort of) 1 weekend at a time
Re: Android app for the Classic
« Reply #355 on: December 09, 2017, 12:19:39 PM »
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 V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub Hughes 1100 Sat. Modem
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #356 on: December 09, 2017, 02:20:04 PM »
I am using it on Amazon Fire tablet running  Cyanogenmod android .

Larry
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Graham

  • Full Member
  • ***
  • Posts: 195
    • SkyeTracker
Re: Android app for the Classic
« Reply #357 on: December 11, 2017, 08:34:57 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
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

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #358 on: December 11, 2017, 07:28:56 PM »
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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 1703
Re: Android app for the Classic
« Reply #359 on: January 29, 2018, 02:14:44 PM »
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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie