GregH
Posts: 860
Joined: Fri Jul 01, 2011 4:16 pm
Delivery Date: 13 Jun 2011
Leaf Number: 26967
Location: Irvine, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Mon Mar 18, 2013 1:58 pm

garygid wrote:GregH,
So, it looks like the raw temp data will indicate
a precision of very near a tenth of a degree C,
even if we do not know much yet about the accuracy.

Akso, it seems that tell Pack temperature Bar display
operates on the highest temperature, and there is
essentially no hysteresis.

So, using the raw values, we might try to display the
extended-precision temperatures, like "C20. 3".

In the CANary, scrolling plots of the 4 high-precision
temperatures on one graph would be very interesting.
Yes. Just the other night I did see the highest temp reach 25.0 and even 25.1 and the 6th temp bar never came on... but in the past I'd seen it click on at 25.0 and off again at 24.9 so I believe the hysteresis (or lack thereof) is correct. I've been displaying temp to 0.1 degrees C now for about a week and it's certainly more entertaining than just using the car's 1.0 precision. There is a +/-0.1 error if you repeatedly sample but you can certainly discern temp changes of 0.2 degrees C or more. With the increased screen real estate on CANary you could certainly do a lot with this. Due to my limited screen space I'm just displaying Tmax (which is almost always T1 or T2, the front stack) as well as the delta from Tmax to Tmin just to get a sense of the spread..

Note I've been editing the post a few back to update the observed transition points for temperature conversion. I look forward to seeing data from folks in warmer or cooler climates so I can tweak my software for optimal precision... On my group 4 page I show the raw data, the car's temp (Celsius 1.0 precision), and my calculated temp (Celsius 0.1 precision) such as:
473 24 24.4
476 34 24.1
493 22 22.4
491 22 22.6
(my current battery temps)
And my main page shows 24.4-2.0
'17 blue Volt Premier w/ACC
'12 SL black Leaf
'11 SL blue Leaf
RAV4-EV 2002-2005
Gen1 & Gen2 EV1 1997-2003
PV 2.4Kw, 10kWh lithium battery SCE TOU-DA

User avatar
garygid
Gold Member
Posts: 12465
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Mon Apr 15, 2013 9:29 am

It just occurred to me that one of these groups of "Battery" data
might contain 96 bits to indicate which of the cell-pairs have
their "equalizing" shunt active, bleeding off excess charge
from the highest-voltage cells.

The data might look like 12 bytes of all zero data most the time.

These shuts are most likely to be active when some cells
are noticeably to the high side of the CP histogram.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

User avatar
garygid
Gold Member
Posts: 12465
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Sat Apr 20, 2013 7:09 am

Has anybody experimented with other Request commands,
perhaps 79C instead of 79B, using the same format for Group 1?

Just one ping please, to see if anything in the 7xx range comes back?
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

GregH
Posts: 860
Joined: Fri Jul 01, 2011 4:16 pm
Delivery Date: 13 Jun 2011
Leaf Number: 26967
Location: Irvine, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Sat Apr 20, 2013 12:34 pm

garygid wrote:It just occurred to me that one of these groups of "Battery" data
might contain 96 bits to indicate which of the cell-pairs have
their "equalizing" shunt active, bleeding off excess charge
from the highest-voltage cells.

The data might look like 12 bytes of all zero data most the time.

These shuts are most likely to be active when some cells
are noticeably to the high side of the CP histogram.
I've looked for this.. so far can't find any sign of it but I'm sure it's in there in some form.

Used the DCQC in Azusa Friday and later in the day got to 34 degrees, a new record :/
(will update the first post with new exact readings for 31-34 degrees C)

Also noted that at a full charge later in the day (L2) got to 278 Gids at 95.3% SOC :(
Seeing as how all of my prior 281 readings where at 95.4%, I'm guessing my days of seeing 281 are over.. Fun while it lasted.
'17 blue Volt Premier w/ACC
'12 SL black Leaf
'11 SL blue Leaf
RAV4-EV 2002-2005
Gen1 & Gen2 EV1 1997-2003
PV 2.4Kw, 10kWh lithium battery SCE TOU-DA

GregH
Posts: 860
Joined: Fri Jul 01, 2011 4:16 pm
Delivery Date: 13 Jun 2011
Leaf Number: 26967
Location: Irvine, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Sat Apr 20, 2013 12:49 pm

garygid wrote:Has anybody experimented with other Request commands,
perhaps 79C instead of 79B, using the same format for Group 1?

Just one ping please, to see if anything in the 7xx range comes back?
Looks like there are also controllers at:
0x744
0x746
0x784
0x792
0x79d
.. I haven't tried pinging any yet, but based on my time with the Consult tool I did see activity there..
'17 blue Volt Premier w/ACC
'12 SL black Leaf
'11 SL blue Leaf
RAV4-EV 2002-2005
Gen1 & Gen2 EV1 1997-2003
PV 2.4Kw, 10kWh lithium battery SCE TOU-DA

lincomatic
Posts: 312
Joined: Fri Jun 10, 2011 10:01 am
Delivery Date: 06 Apr 2011
Leaf Number: 3819

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Mon Apr 22, 2013 11:26 pm

I received my $11.35 eBay ELM 1.5 BT dongle today http://www.ebay.com/itm/310651672153?ss ... 1439.l2649

This is my first time playing with an ELM327, so I might have done something wrong, but it appears that I got data for groups 0 and 6-9.
Here is a log of my entire session:

Code: Select all

>atz
ÿ

ELM327 v1.5

>at sp 6
OK

>at h1 
OK

>at d1
OK

>at sh 79b
OK

>at fc sh 79b
OK

>at fc sd 30 00 20
OK

>at fc sm 1
OK

>21 00
7BB 8 06 61 00 FF 80 00 01 

>21 01
7BB 8 10 29 61 01 00 00 00 95 
7BB 8 21 02 88 00 00 02 9C FF 
7BB 8 22 FF FF FF 0F 90 2A F8 
7BB 8 23 91 2F 2D 1C 03 9F 00 
7BB 8 24 5C 21 81 00 06 18 0F 
7BB 8 25 00 08 DD 59 80 00 01 

>21 02
7BB 8 10 C6 61 02 0F 22 0F 20 
7BB 8 21 0F 20 0F 21 0F 24 0F 
7BB 8 22 21 0F 20 0F 22 0F 1D 
7BB 8 23 0F 1D 0F 18 0F 15 0F 
7BB 8 24 1D 0F 1E 0F 14 0F 1E 
7BB 8 25 0F 1B 0F 1B 0F 20 0F 
7BB 8 26 1D 0F 1E 0F 1F 0F 1A 
7BB 8 27 0F 1A 0F 1D 0F 1E 0F 
7BB 8 28 19 0F 15 0F 1E 0F 1F 
7BB 8 29 0F 1D 0F 15 0F 25 0F 
7BB 8 2A 25 0F 1B 0F 20 0F 24 
7BB 8 2B 0F 20 0F 16 0F 1C 0F 
7BB 8 2C 21 0F 22 0F 1B 0F 1D 
7BB 8 2D 0F 1D 0F 21 0F 1D 0F 
7BB 8 2E 18 0F 1B 0F 1D 0F 18 
7BB 8 2F 0F 19 0F 26 0F 22 0F 
7BB 8 20 24 0F 23 0F 20 0F 20 
7BB 8 21 0F 20 0F 21 0F 27 0F 
7BB 8 22 23 0F 23 0F 23 0F 20 
7BB 8 23 0F 24 0F 20 0F 21 0F 
7BB 8 24 22 0F 22 0F 21 0F 22 
7BB 8 25 0F 24 0F 1D 0F 21 0F 
7BB 8 26 22 0F 24 0F 24 0F 29 
7BB 8 27 0F 22 0F 1D 0F 1D 0F 
7BB 8 28 1D 0F 1E 0F 24 0F 22 
7BB 8 29 0F 21 0F 21 0F 27 0F 
7BB 8 2A 26 0F 29 0F 27 0F 27 
7BB 8 2B 0F 26 0F 26 0F 26 91 
7BB 8 2C 68 91 59 FF FF FF FF 

>21 03
7BB 8 10 1C 61 03 0E FC 02 87 
7BB 8 21 00 DC 00 06 1A 85 0F 
7BB 8 22 2B 0F 14 00 00 C5 00 
7BB 8 23 00 00 00 00 00 00 00 
7BB 8 24 01 FF FF FF FF FF FF 

>21 04
7BB 8 10 10 61 04 01 EE 16 01 
7BB 8 21 F4 15 01 F8 15 01 FB 
7BB 8 22 15 14 00 FF FF FF FF 

>21 05
7BB 8 10 47 61 05 02 7D 01 FF 
7BB 8 21 01 9A 0E FD 0E FC 01 
7BB 8 22 EE 01 F3 01 F9 01 FB 
7BB 8 23 02 86 00 00 00 D0 03 
7BB 8 24 9E 00 32 00 32 00 32 
7BB 8 25 00 32 00 32 00 32 00 
7BB 8 26 32 00 32 00 32 00 32 
7BB 8 27 03 D0 03 D1 03 D0 03 
7BB 8 28 D0 03 D1 03 D0 03 D2 
7BB 8 29 03 CF 03 D0 03 CF AA 
7BB 8 2A AA 00 FF FF FF FF FF 

>21 06
7BB 8 10 1A 61 06 00 00 00 00 
7BB 8 21 00 00 00 00 00 00 00 
7BB 8 22 00 00 00 00 00 00 00 
7BB 8 23 00 00 00 00 00 00 FF 

>21 07
7BB 8 10 0A 61 07 13 F6 26 A1 
7BB 8 21 75 78 01 FF FF FF FF 

>21 08
7BB 8 05 61 08 00 00 00 

>21 09
7BB 8 07 61 09 54 00 00 FF FF 

>21 0a
7BB 8 03 7F 21 12 

>21 0b
7BB 8 03 7F 21 12 

>21 0c
7BB 8 03 7F 21 12 

>21 0d
7BB 8 03 7F 21 12 

>21 0e
7BB 8 03 7F 21 12 

>21 0f
7BB 8 03 7F 21 12 

>21 10
7BB 8 03 7F 21 12 
Group 0: 1 line of data
Group 6: 4 lines
Group 7: 2 lines
Group 8: 1 line with only 6 bytes of data
Group 9: 1 line
Groups 0a-10 appear to be garbage, probably some sort of error message indicating an out of range group.
Last edited by lincomatic on Tue Apr 23, 2013 10:10 am, edited 1 time in total.

User avatar
garygid
Gold Member
Posts: 12465
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Tue Apr 23, 2013 6:51 am

Group 6, with 24 bytes of zero data, at two bits per cell-pair,
might possibly be a cell-pair status. One bit might indicate
that the equalizing shunt is turned on.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

User avatar
garygid
Gold Member
Posts: 12465
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Tue Apr 23, 2013 7:17 am

For Groups 0 and 8+, the first byte is not the initial
index 0x10, but a count of the following visible bytes.

So, the 1st byte = 0x10 indicates that there are additional
responses, and a value of 1 to 7 would seem to be just
the count of the following "used" data bytes in that single response.

So, all the responses appear to be real responses, with
Group 0, 8, and 9 having some real response data, yet to be
understood.

The other responses appear to be "real", probably an Error code
indicating that the responder does not expect to handle that request.

However, if the response message really has a length 8, then why does
the ELM327 output them as short "messages"?

Perhaps the length byte shown (as 8) is not correct?
Last edited by garygid on Tue Apr 23, 2013 7:49 am, edited 2 times in total.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

User avatar
garygid
Gold Member
Posts: 12465
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Tue Apr 23, 2013 7:27 am

The second byte in the first response (after the 0x10) appears
to be the number of "used" data bytes that follow...

Counting 6 bytes for the first message, 7 bytes for each following
response (except for the last), and N<8 bytes for the last response.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

GregH
Posts: 860
Joined: Fri Jul 01, 2011 4:16 pm
Delivery Date: 13 Jun 2011
Leaf Number: 26967
Location: Irvine, CA

Re: Active EV-CAN sampling: cell voltages, pack temperatures

Tue Apr 23, 2013 8:29 am

garygid wrote:Group 6, with 24 bytes of zero data, at two bits per cell-pair,
might possibly be a cell-pair status. One bit might indicate
that the equalizing shunt is turned on.
Cool! Good catch! I could have sworn I tried these other group IDs.. hmm.
'17 blue Volt Premier w/ACC
'12 SL black Leaf
'11 SL blue Leaf
RAV4-EV 2002-2005
Gen1 & Gen2 EV1 1997-2003
PV 2.4Kw, 10kWh lithium battery SCE TOU-DA

Return to “LEAF CANBus”