<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Steve,<br>
<br>
<div class="moz-cite-prefix">Am 17.12.20 um 13:40 schrieb Steve
Davies:<br>
</div>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><img
src="https://api2.activeinboxhq.com/1.0/anon/rr/e2a90b897beb29437f66bec7e694545f"
style="display:none !important" moz-do-not-send="true"
width="1" height="1"><img
src="https://api2.activeinboxhq.com/1.0/anon/rr/e2a90b897beb29437f66bec7e694545f"
style="display:none !important" moz-do-not-send="true"
width="1" height="1"><img
src="https://api2.activeinboxhq.com/1.0/anon/rr/e2a90b897beb29437f66bec7e694545f"
style="display:none !important" moz-do-not-send="true"
width="1" height="1"><img
src="https://api2.activeinboxhq.com/1.0/anon/rr/e2a90b897beb29437f66bec7e694545f"
style="display:none !important" moz-do-not-send="true"
width="1" height="1">Hi Michael et al,
<div><br>
</div>
<div>I set my first goal to get all the metrics that are
required for the standard dashboard to work on the I3. I've
got some questions about the intended use of the metrics. Hope
someone can give advice:</div>
<div><br>
</div>
<div>I'm sorry this is a tome, I did work to shorten it.</div>
<div><br>
</div>
<div>1) How do I understand a "trip"?</div>
<div><br>
</div>
<div>My car has a trip-meter that you can reset. It also by
itself seems to have some heuristic for trips that it uses for
the "ecodrive" stuff. <span
style="background-color:rgb(255,255,255);font-family:Arial,Helvetica,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;color:rgb(34,34,34);display:inline!important;float:none">There
are some PIDS that return trip-related data but I must still
figure out when they reset - whether it goes by the trip </span>feature.
But what does OVMS regard as a "trip"?</div>
</div>
</blockquote>
<br>
What you want it to be, what makes the most sense for your users. If
your car has multiple trip odometers you can read, choose the most
appropriate or make if configurable which one to use. If not,
implement your own.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>For me: I would want it to work automatically - ie reset
the trip stats each time the car goes to READY except perhaps
if it has just been a few minutes since it was turned off.</div>
<div><br>
</div>
<div>2) About temperatures: The i3 has SO MANY temperature
sensors, especially in the "electrical machine electronics" -
how to map them to the standard metrics in OVMS?</div>
</div>
</blockquote>
<br>
Map only those to the standards which match their meaning. Map
others to custom metrics.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>I guess you will say it's my call, but I'd like what I do
to be consistent with other vehicles.</div>
<div><br>
</div>
<div>There are the following standard metrics relating to
temperature (you can see some I mapped already)</div>
<div>
<div><br>
</div>
<div>a) Battery temps: These I took from a PID that returns a
"coldest", "hottest" and mean for the pack as a whole :<br>
</div>
<div><br>
</div>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div><font face="monospace">v.b.p.temp.avg
21.27°C</font></div>
</div>
<div>
<div><font face="monospace">v.b.p.temp.max
21.83°C</font></div>
</div>
<div>
<div><font face="monospace">v.b.p.temp.min
21.04°C</font></div>
</div>
<div>
<div>
<div><font face="monospace">v.b.p.temp.stddev</font></div>
</div>
</div>
<div>
<div>
<div><font face="monospace">v.b.p.temp.stddev.max</font></div>
</div>
</div>
</blockquote>
<div>
<div>
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div>
<div><font face="monospace">v.b.temp
21.27°C</font></div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div><font face="monospace"><br>
</font></div>
</blockquote>
</div>
<div><span style="font-family:arial,sans-serif">A min, max,
and mean doesn't give me enough to work out a standard
deviation. </span><span
style="font-family:arial,sans-serif">And: what is a
"maximum" stddev? Is that over time?</span></div>
</div>
</div>
</blockquote>
<br>
These are for the overall cell values.<br>
<br>
See the comments in main/metrics_standard.h, also at
<a class="moz-txt-link-freetext" href="https://docs.openvehicles.com/en/latest/userguide/metrics.html">https://docs.openvehicles.com/en/latest/userguide/metrics.html</a><br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>And for v.b.temp I just used the avg temp from above. I
could have used the max instead - any view? :</div>
</div>
</div>
</blockquote>
<br>
If you don't have a separate battery temperature (outside the
cells), that's reasonable.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">b) v.e.temp:
("environmental temp") Found a value for outside / ambient
temp :</font></div>
<div><font face="monospace"><br>
</font></div>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div>
<div><font face="monospace">v.e.temp
21.5°C</font></div>
</div>
</div>
</blockquote>
<div>
<div><font face="monospace"><br>
</font></div>
<div>
<div>
<div><font face="arial, sans-serif">c) v.m.temp - motor
temp: There are two temps for the "e-machine". These
are inside the actual electric motor. I used the
hotter of the two :</font></div>
<div><font face="monospace"><br>
</font></div>
</div>
</div>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div>
<div>
<div><font face="monospace">v.m.temp
25.3968°C</font></div>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<div>
<div><font face="arial, sans-serif"><br>
</font></div>
</div>
</div>
<div><font face="arial, sans-serif">d) v.e.cabintemp: I
haven't looked into the aircon system yet:<br>
</font></div>
<div><br>
</div>
<div>e) v.i.temp: Inverter temp: </div>
<div><br>
</div>
</div>
<div>There are 4 inverter temps:</div>
<div><br>
</div>
// Temperature converter phase U / Temperatur Umrichter
Phase U<br>
<div> <font face="monospace">2020-12-16 17:59:10 SAST D (289275)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_UMRICHTER_PHASE_U_WERT=35.8020"°C"<br>
</font> // Temperature converter phase V / Temperatur
Umrichter Phase V<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289275)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_UMRICHTER_PHASE_V_WERT=35.0532"°C"<br>
</font> // Temperature converter phase W / Temperatur
Umrichter Phase W<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289275)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_UMRICHTER_PHASE_W_WERT=34.7568"°C"<br>
</font> // Temperature inverter gate driver /
Temperatur Inverter Gatedriver<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289275)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_UMRICHTER_GT_WERT=45.5832"°C"<br>
</font><br>
</div>
<div>I just took the highest.</div>
</div>
</blockquote>
<br>
As above, whatever makes the most sense technically. On the Twizy,
which uses a SEVCON Gen4, I've used the short-term average overall
internal temperature instead of the highest one, as the highest is
an ultra short term estimation (simulation) of some internal
transistor temperature. The last of your temperatures sounds similar
to that, so may be a bad choice.<br>
<br>
Then again, for some motor sports enthusiast, all these values may
be of interest, so why not just provide them in custom metrics.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>f) v.c.temp: charger temp:</div>
<div><br>
</div>
<div>For v.c.temp there are also 4 measurements:</div>
<div><br>
</div>
<div> // Temperature SLE-PowerFactorCorrection /
Temperatur SLE-PowerFactorCorrection<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_SLE_PFC_WERT=27.0972"°C"<br>
</font> // Temperature SLE rectifier / Temperatur
SLE-Gleichrichter<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_SLE_GR_WERT=28.0488"°C"<br>
</font> // Temperature SLE push-pull converter /
Temperatur SLE-Gegentaktwandler<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_SLE_GTW_WERT=27.5652"°C"<br>
</font> // Temperature of the SLE board / Temperatur
des SLE Boards<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_SLE_BO_WERT=29.0004"°C"<br>
</font></div>
<div><br>
</div>
<div>(SLE also called KLE elsewhere - Komfort Ladeelectronik I
think it is)</div>
<div><br>
</div>
<div>I took the hottest.</div>
</div>
</blockquote>
<br>
Same as above.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>My car also has DC charging but if I understand that
rightly there isn't any high power electrical stuff onboard
for that, contactors are closed to give the external - so
nothing to get hot except the battery itself.</div>
<div><br>
</div>
<div><br>
</div>
<div>Then I have some more temps - </div>
<div><br>
</div>
<div>DC/DC converter used to supply the 12v systems (and to
charge the 12 battery).</div>
<div><br>
</div>
<div>I don't see any standard metrics for this subsystem?</div>
<div><br>
</div>
<div> // Temperature of the DCDC board / Temperatur des
DCDC Boards<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_DCDC_BO_WERT=35.8488"°C"<br>
</font> // Temperature DC / DC push-pull converter /
Temperatur DC/DC-Gegentaktwandler<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_DCDC_GTW_WERT=32.0892"°C"<br>
</font> // Temperature DC / DC buck converter /
Temperatur DC/DC-Tiefsetzer<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_DCDC_TS_WERT=59.9976"°C"<br>
</font> // Temperature of the DCDC board / Temperatur
des DCDC Boards<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_DCDC_GR_WERT=31.6524"°C"</font></div>
</div>
</blockquote>
<br>
No standard metrics, but that's a candidate. But again, only one
temperature (the most relevant for the user) will be standard.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">- "ELUP power output
stage". Dunno what "ELUP" is and didn't find it in the
technical training info I have.</font></div>
<div><font face="monospace"><br>
</font> // Temperature on the power board - measuring
point ELUP power output stage / Temperatur auf dem Powerbord -<br>
// Messstelle ELUP Leistungsendstufe</div>
<div><font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_ELUP_LE_WERT=30.0768"°C"</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">- And 2 processor temps:</font></div>
<div><font face="monospace"><br>
</font> // Temperature processor MC0 / Temperatur
Prozessor MC0<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_PROZESSOR_MC0_WERT=39.9048"°C"<br>
</font> // Temperature processor MC2 / Temperatur
Prozessor MC2<br>
<font face="monospace">2020-12-16 17:59:10 SAST D (289285)
v-bmwi3: From ECU EME, pid AE_TEMP_LE: got
STAT_TEMP_PROZESSOR_MC2_WERT=39.9048"°C"</font><br>
</div>
<div><br>
</div>
</div>
</blockquote>
<br>
See above: custom metrics.<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>3) What to do about "range".</div>
<div><br>
</div>
<div>So I found a pid that returns a "range" - but it always be
the range in so-called "Comfort" mode. The car instrument
display actually shows range according to the mode the car is
in. I normally drive in "Eco-pro".</div>
<div><br>
</div>
<div>There's another PID that gives a figure for each of the 4
modes my car has got.</div>
<div><br>
</div>
<div>How do other vehicles handle this? </div>
<div><br>
</div>
<div>I'd like to show users all the ranges, and then put the
range in the current mode into the standard metric
v.b.range.est</div>
<div><br>
</div>
<div>And I don't think I understand exactly the difference
between "est", "ideal", and "full".</div>
<div><br>
</div>
<div>My best guess for how to make them work:</div>
<div><br>
</div>
<div>"est" is the figure the car gives up - either that "comfort
mode" number or the number for the current mode</div>
<div>"ideal": my best idea for how to get this is the WLTP range
for the car's battery capacity scaled by the SOH% and the SOC%
to come up with some sort of theoretically "possible" figure?</div>
<div>"full": not sure - My idea would be to take the "est"
figure from the car and scale it up to a range if the battery
was full.</div>
</div>
</blockquote>
<br>
Estimated range = car figure for current driving mode &
conditions, or your own calculation if the car delivers
no/poor/undependable figures<br>
<br>
Ideal range = either the best range the car calculates, or your own
calculation for the best case driving conditions if the car delivers
no/poor/undependable figures<br>
<br>
Full range = Ideal range at 100% SOC & current conditions<br>
<br>
Don't use the WLTP figures if they are totally unrealistic. Try to
create additional, dependable value for the user.<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Thanks,</div>
<div>Steve</div>
</div>
</blockquote>
<br>
Regard,<br>
Michael<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CABFTEGVFEZo89fCQYN3RTX3nPAC35yyAm1ojckedP-3reYLXaQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</body>
</html>