Author Topic: Android app for the Classic  (Read 29379 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: 1331
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 , 20 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: 1331
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 , 20 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

  • Full Member
  • ***
  • Posts: 203
    • 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

Graham

  • Full Member
  • ***
  • Posts: 191
    • 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