<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Greg, Mark,<br>
<br>
that's actually a very old feature originating from V2. It's meant
to alert about a car left turned on, which is both a potential
security issue (key is plugged) and a potential fire/explosion
threat on vehicles that may overcharge the 12V battery from the
DC/DC converter. It's also main battery drainage.<br>
<br>
This also needs to trigger during charging, but of course not if
the vehicle wakes itself for some internal checks or OTA updates /
whatever.<br>
<br>
This was/is using the definition of "awake" as "turned on", and
"on" as "ignited". It seems all cars except the roadster follow
this scheme now, so maybe we should separate the "maintenance
awake" state?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
Am 07.02.20 um 08:43 schrieb Mark Webb-Johnson:<br>
</div>
<blockquote type="cite"
cite="mid:2E9FB03E-E1F9-4471-85DC-3530F197795B@webb-johnson.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Greg,
<div class=""><br class="">
</div>
<div class="">That would be the system thinking the vehicle is
asleep, but speed > 0.</div>
<div class=""><br class="">
</div>
<div class="">I did fix the roadster awake/sleep flag (which was
not being set correctly before), so most likely this is
something new.</div>
<div class=""><br class="">
</div>
<div class="">The logic is in VehicleTicker1() in vehicle.cpp. It
is:</div>
<div class=""><br class="">
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" class="">
<div class="">
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">//
Idle alert:</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">if
(!StdMetrics.ms_v_env_awake->AsBool() ||
StdMetrics.ms_v_pos_speed->AsFloat() > 0)</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
{</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
m_idle_ticker = 15 * 60; // first alert after 15 minutes</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
}</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">else
if (m_idle_ticker > 0 && --m_idle_ticker ==
0)</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
{</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
NotifyVehicleIdling();</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
m_idle_ticker = 60 * 60; // successive alerts every 60
minutes</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-style: normal; font-size: 14px;" class="">
}</span></font></div>
</div>
</blockquote>
<div class="">
<div><br class="">
</div>
<div>So, that resets the fifteen minute timer whenever the
vehicle is either asleep OR speed>0 (driving). Otherwise
the timer counts down, and after 15 minutes the alert is
raised (and every 60 minutes thereafter until either the
vehicle goes to sleep or speed>0).</div>
<div><br class="">
</div>
<div>For roadster, that work work. The car can ‘awake’ itself
for charging,etc.</div>
<div><br class="">
</div>
<div>I am not really sure why we are using ms_v_env_awake in the
first place here. Why do we care if the vehicle is awake or
not? Surely we should be looking at ms_v_env_on (ie; vehicle
switched on)? But for JDEMO users that would cause a problem
(as for they have to leave the vehicle ignition on while
charging).</div>
<div><br class="">
</div>
<div>Maybe simplest to disable this alert for Roadster, unless
someone else has any better ideas. In any case, we need to
think about using ms_v_env_awake vs ms_v_env_on.</div>
<div><br class="">
</div>
<div>Regards, Mark.</div>
<div><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 7 Feb 2020, at 2:22 AM, Greg D. <<a
href="mailto:gregd2350@gmail.com" class=""
moz-do-not-send="true">gregd2350@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi folks,<br class="">
<br class="">
I'm starting to get an alert "Vehicle is idling /
stopped turned on"<br class="">
when my Roadster is charging. Seems to occur every
hour.<br class="">
<br class="">
Is this something new with OVMSv3, or did something
change / break on my<br class="">
car?<br class="">
<br class="">
Greg<br class="">
<br class="">
_______________________________________________<br
class="">
OvmsDev mailing list<br class="">
<a href="mailto:OvmsDev@lists.openvehicles.com" class=""
moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a><br
class="">
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br
class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</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>
<br>
<pre class="moz-signature" cols="144">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>