<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div class="v1moz-cite-prefix">Am 15.01.25 um 11:11 schrieb Michael Balzer via OvmsDev:</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Speaking of the Leaf, the code there actually does something fishy in `CommandWakeup()`:<br /><br /><span style="font-family: monospace;"> unsigned char data = 0;<br /> ...<br /> m_can1->WriteStandard(0x5C0, <strong><u>8</u></strong>, &data); //Wakes up the VCM (by spoofing empty battery request heating)</span></blockquote>
</div>
</blockquote>
<div> </div>
<div>I agree that is dodgy. It's going to write 8 bytes of data onto the bus, but only the first byte's contents are known. The other 7 are nondeterministic - just whatever happened to be on the stack at that time. This doesn't seem like a recipe for predictable operation.</div>
<div> </div>
<div>The commit was <a href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/09c58a2feda13c32f79c6599fdcb6a7512cf1a48">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/09c58a2feda13c32f79c6599fdcb6a7512cf1a48</a> by dalathegreat.</div>
<div> </div>
<div>Unfortunately my CAN knowledge is close to zero so I can't comment on the messages themselves.</div>
<div> </div>
<div>Chris</div>
</body></html>