<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Chris, Derek,<br>
<br>
as you're checking the Leaf code, also have a look at this:<br>
<br>
<div class="moz-cite-prefix">Am 15.01.25 um 11:11 schrieb Michael
Balzer via OvmsDev:<br>
</div>
<blockquote type="cite"
cite="mid:cc598a02-7aec-40c0-84a8-d4b705b6acf5@expeedo.de">
Speaking of the Leaf, the code there actually does something fishy
in `CommandWakeup()`:<br>
<br>
<font face="monospace"> unsigned char data = 0;<br>
…<br>
m_can1->WriteStandard(0x5C0, <b><u>8</u></b>, &data);
//Wakes up the VCM (by spoofing empty battery request heating)</font></blockquote>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 04.02.25 um 02:00 schrieb Derek
Caudwell via OvmsDev:<br>
</div>
<blockquote type="cite"
cite="mid:CAKUcfWE-90ByiY3zkgG6vfP2RG1pTzsp-J1SsX4-0886nuWAnA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Chris
<div><br>
</div>
<div>I can't see any issue with setting the poll state to OFF if
the <span
style="font-family:Verdana,Geneva,sans-serif;font-size:13.3333px">charger
state is either CHARGER_STATUS_IDLE or
CHARGER_STATUS_PLUGGED_IN_</span><span
style="font-family:Verdana,Geneva,sans-serif;font-size:13.3333px">TIMER_WAIT,
particularly if the can bus goes to sleep in these states. </span></div>
<div><span
style="font-family:Verdana,Geneva,sans-serif;font-size:13.3333px"><br>
</span></div>
<div><span
style="font-family:Verdana,Geneva,sans-serif;font-size:13.3333px">Kind
regards</span></div>
<div><span
style="font-family:Verdana,Geneva,sans-serif;font-size:13.3333px">Derek</span></div>
</div>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Tue, 4 Feb 2025 at 11:47,
Chris Box via OvmsDev <<a
href="mailto:ovmsdev@lists.openvehicles.com"
moz-do-not-send="true" class="moz-txt-link-freetext">ovmsdev@lists.openvehicles.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div
style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p id="m_4890371074057665589reply-intro">On 2025-02-03
07:34, Michael Balzer wrote:</p>
<blockquote type="cite"
style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_4890371074057665589replybody1">This is the
moment the vehicle state change was detected:<br>
<br>
<blockquote type="cite"
style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px"><span
style="font-family:"courier new",courier,monospace;font-size:8pt">2025-02-02
21:08:14.372 GMT D (338493292) events:
Signal(vehicle.charge.stop)</span></blockquote>
<br>
The event is emitted automatically by the vehicle
framework when metric "v.c.charging"
(ms_v_charge_inprogress) changes from true to false.<br>
<br>
I don't know the Leaf code, but I think that should
directly lead to a poller state change, but doesn't.</div>
<div> </div>
</blockquote>
<div> </div>
<div>In <a
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/blob/master/vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.cpp"
target="_blank" moz-do-not-send="true">vehicle_nissanleaf.cpp</a>
there are four places where we have
"StandardMetrics.ms_v_charge_inprogress->SetValue(false);"</div>
<div>They're all in the same switch statement block.</div>
<div> </div>
<div>Two of them also say "PollSetState(POLLSTATE_OFF);"</div>
<div>These are CHARGER_STATUS_INTERRUPTED and
CHARGER_STATUS_FINISHED.</div>
<div> </div>
<div>The two that don't set poll state are
CHARGER_STATUS_IDLE and
CHARGER_STATUS_PLUGGED_IN_TIMER_WAIT.</div>
<div> </div>
<div>For anyone that knows the Leaf code, does it seem
reasonable to add PollSetState(POLLSTATE_OFF) to both of
those? I note there's a mysterious comment "Separate from
vehicle_nissanleaf_poll1() to make it clearer what is
going on." but I can find no record of such a function in
the current repo.</div>
<div> </div>
<div>Chris</div>
</div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">OvmsDev@lists.openvehicles.com</a><br>
<a
href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
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 * Am Rahmen 5 * D-58313 Herdecke
Fon 02330 9104094 * Handy 0176 20698926</pre>
</body>
</html>