A Forum run by Enthusiasts of MidNite Solar

Charge Controllers and Clippers => The "KID" charge controller => Topic started by: rayclark on January 06, 2020, 06:38:41 PM

Title: RS232 data
Post by: rayclark on January 06, 2020, 06:38:41 PM
I just bought a couple Kids for remote comm site installs. We need the ability to process the information available. What I am getting is
"120,112,,,,-530, ,100,400,39," without the quotes. We have the latest fw 1864 and I setup the Kid with only batteries to configure it for fielding. The data stream does not seem to match the paper document we got nor anything I have been able to locate here in the forums. I have searched and followed links, but alas I am coming up dry.

I have an RS232-Ethernet interface that lets me get the data every minute. I need to know what it is so I can shove it into the database correctly and then display and trend it in Metabase.

Can anyone help? I opened a ticket but am not able to properly convey what it is I need.

Thanks
Ray
Title: Re: RS232 data
Post by: A J Coop on January 06, 2020, 07:18:49 PM
G'day Ray
Those 120,112,,,,-530, ,100,400,39 is correct data, but by the looks of it you don't have a WhizBang Jr and BTS...

120 is 12.0
112 is 11.2
,
,
,
-530 is -53.0
,
400 is 400
39 ah I think 39.
The missing data ,,, is missing data given by the WB Jr and the BTS not being present is giving false data.
I hope my narrow explanation gives you a good hint on what's what.
;)
A J
Title: Re: RS232 data
Post by: rayclark on January 06, 2020, 07:28:00 PM
Thank you, I understand dividing the values by 10. What I do not know is what those values represent: Battery Volts, PV Volts, PV Amps, Load Amps, Battery Temp, Battery charge state,?,?,?.

Correct, nothing extra in my configuration.
Title: Re: RS232 data
Post by: A J Coop on January 06, 2020, 07:47:30 PM
Batt V, PV V, Yes
PV Amps, Load Amps, NO, close but no pie
Batt Temp, SOC is in the stream, so is Batt Ah (hint)
eg
12.0 Batt V
11.2 PV V
-53.0 is ??? What
400 is ???
39 is ???
Title: Re: RS232 data
Post by: rayclark on January 06, 2020, 09:44:00 PM
Problem is only battery was connected (no PV, no load) so values don't seem to make sense
Title: Re: RS232 data
Post by: ClassicCrazy on January 07, 2020, 12:53:31 AM
Take a look at this post and the links in the post - somewhere there is more info on output of the Kid
http://midniteftp.com/forum/index.php?topic=4074.0

Larry
Title: Re: RS232 data
Post by: FNG on January 07, 2020, 09:50:38 AM
I am currently working with Engineering to define the 10 data points. The document I have doesnt seem to agree with the data being exported.

Sorry this shouldnt be this hard, I will resolve this today I promise
Title: Re: RS232 data
Post by: A J Coop on January 07, 2020, 04:14:44 PM
1>    Batt V
2>    PV V
3>    PV Watts
4>    Controller KWh
5>    Controller Ah
6>    Batt Temp
7>    Batt A
8>    Batt SoC
9>    Batt Ah
10>  Controller Code *This code is of no use* Having Engineering define this would be of some help.

Hope this helps people! It took me 3 or 4 years to get this far.....

A J
Title: Re: RS232 data
Post by: FNG on January 08, 2020, 07:22:34 AM
The variables are as follows:

1- Battery Voltage as displayed on the kid, Must divide by 10
2- Input Voltage as displayed on the Kid, Must divide by 10
3- Kids output Wattage, No math the value is as shown
4- Kwh for the day, Must divide by 10
5- Amp Hours, No math the value is as shown
6- Battery Temperature in Celcius, Must divide by 10
7- WBjr amps, Must divide by 10
8- Battery State Of Charge, No math the value is as shown
9- WBjr Remaining Amp Hours, No math the value is as shown
10- Reason For Resting, No math the value is as shown. (I need to hunt down the RFR chart for the kid)

Ryan
Title: Re: RS232 data
Post by: rayclark on January 08, 2020, 09:50:15 AM
Thank you. Can we get the battery state chart too?
Title: Re: RS232 data
Post by: FNG on January 08, 2020, 10:02:53 AM
Battery State of Charge not chart. If you use the WBjr you can get an actual stat of charge percentage from the Kid.
Title: Re: RS232 data
Post by: rayclark on January 08, 2020, 10:16:08 AM
But I was asking for a chart that said 400=resting, ?=absorb, ?=bulk, ?= float
Title: Re: RS232 data
Post by: rayclark on January 28, 2020, 10:01:04 PM
1- Battery Voltage as displayed on the kid, Must divide by 10
2- Input Voltage as displayed on the Kid, Must divide by 10
3- Kids output Wattage, No math the value is as shown
4- Kwh for the day, Must divide by 10
5- Amp Hours, No math the value is as shown
6- Battery Temperature in Celcius, Must divide by 10
7- WBjr amps, Must divide by 10
8- Battery State Of Charge, No math the value is as shown
9- WBjr Remaining Amp Hours, No math the value is as shown
10- Reason For Resting, No math the value is as shown. (I need to hunt down the RFR chart for the kid)

These definitions do not correlate to the date being output by the kid. For a complete 24 hour cycle I got 100 for battery soc, 400 for remaining amp hrs (do not have wbjr), and a 5 as the reason for resting.

Additionally the output wattage of the kid is not correct and seems somehow related to PV voltage or PV current. I do not have a battery temp sensor installed yet and the only 2 values that I can reconcile are PV input voltage and battery voltage.
Title: Re: RS232 data
Post by: FNG on January 29, 2020, 08:29:36 AM
So SOC and AH will stay at 100% and 400Ah with no WBjr that makes sense. So can you post a shot of the data stream and what you think they coorelate to? Also can you remind me what firmware you are running
Title: Re: RS232 data
Post by: rayclark on January 29, 2020, 09:52:12 AM
Here is a sample
248,263,8,,,-530,,100,400,5,

I have the latest firmware available 1864. Starting with 3 Kid output wattage is bogus; 4 and 5 always empty, 6 bogus (probably because the remote battery temp sensor is not hooked up), 7 (no wbjr),8,9 (no wbjr), & 10 are meaningless
Title: Re: RS232 data
Post by: FNG on January 29, 2020, 03:20:08 PM
Ok so would you agree that the battery is 24.8v and the PV is 26.3v

As for wattage I will have to look into that. What do you think the kid was doing for watts at the time of that stamp?

And yes 6 will be no good with no BTS, 8&9 also will be default with no WBjr

As for 10 I am trying to get a list of these now
Title: Re: RS232 data
Post by: rayclark on January 29, 2020, 03:32:14 PM
Our network switch says we are drawing on average 1.3 amps at 27.2 volts so I would expect around 35.36 watts.
Title: Re: RS232 data
Post by: Nomad1 on February 23, 2020, 02:45:56 AM
@rayclark
I'd suggest you to look at my previous repository containing some data decoding attempts:
https://github.com/Nomad1/KIDStats

P.S. Note that there is firmware version lurking somewhere that contains complete garbage instead of data. I don't remember it's number, it could be 1863 or something alike.
Title: Re: RS232 data
Post by: Crashflow on August 26, 2020, 10:39:37 AM
Any more info on this? I'm preparing to do the same - get data out of the Kid.
Title: Re: RS232 data
Post by: harryn on February 22, 2023, 02:45:48 PM
Some of my customers would like to have this data available to look at on their tablets or phones.

Usually I use a controller that broadcast it via WiFi and it looks like a web page.

Some controllers use phone applications - not excited about those but understand why.

Is there an easy way to buy / connect - get this working wirelessly?

It is for a nominal 48 volt / LiFe based system.

Thanks

HarryN
Title: Re: RS232 data
Post by: ClassicCrazy on February 22, 2023, 05:50:27 PM
Quote from: harryn on February 22, 2023, 02:45:48 PMSome of my customers would like to have this data available to look at on their tablets or phones.

Usually I use a controller that broadcast it via WiFi and it looks like a web page.

Some controllers use phone applications - not excited about those but understand why.

Is there an easy way to buy / connect - get this working wirelessly?

It is for a nominal 48 volt / LiFe based system.

Thanks

HarryN

For the Kid there is no easy way to get the data from it like you are asking about.

Larry
Title: Re: RS232 data
Post by: harryn on February 23, 2023, 04:12:47 PM
Thank you.

Any of the other models capable of this - or via an add on device?

For instance in this thread, the OP was working on a way to retrieve the data - so I assume that it could be available from there.

Title: Re: RS232 data
Post by: ClassicCrazy on February 23, 2023, 09:21:38 PM
yes there is or was a way to get the data out of the kid, though if I remember correctly one of the firmware updates broke the data out. It may have been fixed but I haven't messed with it. You only get some basic data out like volts, amps , etc . There are details on the forums here how to make serial connections to it .
I guess you could program a an esp32 to get the data and make it into mqtt , which then could be read by other programs . A programmer could get the esp32 to serve up a webpage with the data too. First thing to do would be to connect up serial and use terminal program on computer to verify that the data output is there.
Larry