Android app for the Classic

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

Previous topic - Next topic

Graham

Quote from: ClassicCrazy on February 24, 2014, 09:16:32 AM
Thanks Grahm - can't wait to get back out to my solar setup to try the updated Whizbang meter part of your app.

Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in .

Yes, a tap on the gauge could flip it to watts,

still have to figure out how to display the AH info from the WhizBangJr

"Address (Register)
4360  (4361)  WbangJrCmdS           Whizbang Jr. command.  Default  0x35  gain = 8
4361  (4361)  WbJrrRawCurrent      Whizbang Jr. current signed.  +-3,276.7 amps
4362  (4362)  WbJrGainTweak         WbJr.  Signed 16 bit  gain tweak adjustment.  Default = 0
4364, 4365 (4365, 4366)        WbJr.  unsigned 32 bits Amp-Hours Positive Only  Low,High
4366, 4367 (4367, 4368)        WbJr.  signed 32 bits Amp-Hours Negative Only   Low,High
4368, 4369 (4369, 4370)        WbJr.  signed 32 bits Amp-Hours Positive AND Negative    Low,High
4370 (4371)    WzBangJrCurrent32Signed     WbJr.  signed  16 bits current   +-3,276.7 amps
4371  (4372)   WizBangJrRawCrcAndtemp     WbJr.   (CRC << 8)  |  (Temperature + 50 degrees C)
    CRC from Wb Jr. in high byte OR'd with temperature on WbJr.  -50 deg. C = 0 in temp. field.
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

cybermaus

NICE  ;D

Can't wait to get back home later this week and try. Do I need to forward some ports to be able to watch this from the internet?

Graham

Quote from: cybermaus on February 24, 2014, 11:15:53 AM
NICE  ;D

Can't wait to get back home later this week and try. Do I need to forward some ports to be able to watch this from the internet?

I haven't tried port forwarding, the app can be configured to scan your local subnet for an open port 502 or you can enter a static IP address/port. If you can access your data using the local app on a PC, it should also work with the android app.
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

cybermaus

heh, the dropbox link does not work anymore???

Graham

Quote from: cybermaus on February 25, 2014, 10:46:00 AM
heh, the dropbox link does not work anymore???

The latest apk is at http://sourceforge.net/projects/classicmonitor/
click the download classic.apk button, wait for the 5 second countdown.
Depending on the phone, it may ask you to install the apk or you might have to go to your download area and click on the classic.apk file to initiate the install.
You can use something like 'ES File Explorer File Manager'  (https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en) to access your downloads.

The dropbox doesn't provide any download stats and I wanted to know if there was any interest in this app...

Once it's complete I can add it to the GooglePlay app store so you won't have to have the 'Download from Unknown Source' checked in the security settings.
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

Halfcrazy

Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan
Changing the way wind turbines operate one smoke filled box at a time

Graham

Quote from: Halfcrazy on February 25, 2014, 12:30:55 PM
Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan

Thanks Ryan,
I started implementing the File Transfer code last weekend and I'm getting data back from the classic, hopefully I'll get back up to my cabin this weekend to continue with this.

Let me know if there is anything else you might find useful in the app.


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

cybermaus

It works. Nice.

Portmapping 502 also works, so I can see it from where I am. But I need to enter the IP address, not my Dynamic DNS hostname. Maybe a small change to allow hostnames?

Strictly speaking forwarding the port is a security concern, not sure what people can now do to my Classic, but its probably a bit too niche to be really worried (security by obscurity principle)

Did you say you added the SOC% stuff? I am not seeing it.
Also, would it be possible to display the Aux1 state?

ClassicCrazy

What I think would be useful in the app is being able to have some way to see when system amps stop falling off . So a minimum pointer on a dial or a graph which showed over time would be better - but it would have to be for only the absorb cycle.  That would make it easier to deterimine the ending amps point to set that up in Whizbang control.
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: cybermaus on February 25, 2014, 12:49:52 PM
Did you say you added the SOC% stuff? I am not seeing it.
Also, would it be possible to display the Aux1 state?

No I haven't done SOC% yet, currently working on the modbus file transfer, probably look at SOC etc next.
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

cybermaus

Sorry, did not want to push.
No problem. It's already very nice as is.

Graham

Quote from: Halfcrazy on February 25, 2014, 12:30:55 PM
Graham
Let me know if there is any Modbus info I can help with. As far as what is where in the classic that is. Some of it is not documented correctly so it can add to the challenge

Ryan

Ryan,
is the SOC% available in one of the modbus registers or does the local app calculate it from the WhizBangJr data?
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

Halfcrazy

Register 4373 or address 4372 is the SOC%
Changing the way wind turbines operate one smoke filled box at a time

offgridQLD

First off the app has been working great on my nexus 7 tablet. I haven't tried the latest update with my WBJR but I have it installed and keen to try it this weekend.

It's turning into a great little app. I was thinking with the price of small no name android tablets  I might even purchase one and permanently mount on the kitchen wall so anyone can get a quick visual of where the system is at. Without having to go to the PC and open the local app.

"Would it ever be possible to have it show the Whizbang interpreted to watts ?  Always nice to see what something is drawing in watts when you plug it in "

I agree this would be great. (Would nice if the midnite local app could do it to) Sure you can just read the wbjr amps and multiply it by the voltage a the time to get watts but its not as nice as just having watts displayed for quick reference.

It could just be me but I much prefer working in watts and kwh rather than (Amp's and AH's) Its much easier to relate to and work with across all areas of the system.

Kurt

Off grid system: 48v 16x400ah Calb lithium, Pv array one  NE facing  24 x 165w 3960w, Array two NW facing 21 x 200w 4200w total PV 8200w. Two x Classic 150,  Selectronic PS1 6000w inverter charger, Kubota J108 8kw diesel generator.

dapdan

Which nexus are you using qld? I am using the latest model.

Cheers...
Damani