<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Wayne,<br>
    <br>
    do you currently apply my CAN timing patch? If not, please try that
    first.<br>
    <br>
    Also, a general question to all Leaf developers: did anyone yet test
    fixing that random bytes write in
    `OvmsVehicleNissanLeaf::CommandWakeup()`?<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 23.03.25 um 06:59 schrieb Wayne Love
      via OvmsDev:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c80f942e-6df2-4fff-9a81-d79b4224cb97@me.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>
        <div>Using Leafspy I can see that it's using the following poll
          and response to get the SOH of the batteries<br>
        </div>
        <div><br>
        </div>
        <pre
style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;"><span
        class="size" style="font-size: 12px">1742706668.884315 1R11 79B 02 21 61 00 00 00 00 00
1742706668.892602 1R11 7BB 11 4b 61 61 1a cc 23 70</span>
</pre>
        <div>However, when try to do the same poll with OVMS using the
          following code...<br>
        </div>
        <div><br>
        </div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">static
              const OvmsPoller::poll_pid_t obdii_polls[] = </span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">  {</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              // BUS 2</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { CHARGER_TXID, CHARGER_RXID,
              VEHICLE_POLL_TYPE_OBDIIGROUP, VIN_PID, {  0, 900, 0, 0 },
              2, ISOTP_STD },           // VIN [19]</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { CHARGER_TXID, CHARGER_RXID,
              VEHICLE_POLL_TYPE_OBDIIEXTENDED, QC_COUNT_PID, {  0, 900,
              0, 0 }, 2, ISOTP_STD },   // QC [2]</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { CHARGER_TXID, CHARGER_RXID,
              VEHICLE_POLL_TYPE_OBDIIEXTENDED, L1L2_COUNT_PID, {  0,
              900, 0, 0 }, 2, ISOTP_STD }, // L0/L1/L2 [2]</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              // BUS 1</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { BMS_TXID, BMS_RXID, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x01,
              {  0, 60, 0, 60 }, 1, ISOTP_STD },   // bat [39/41]</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { BMS_TXID, BMS_RXID, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x02,
              {  0, 60, 0, 60 }, 1, ISOTP_STD },   // battery voltages
              [196]</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { BMS_TXID, BMS_RXID, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x06,
              {  0, 60, 0, 60 }, 1, ISOTP_STD },   // battery shunts
              [96]</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { BMS_TXID, BMS_RXID, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x04,
              {  0, 300, 0, 300 }, 1, ISOTP_STD }, // battery
              temperatures [14]</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              { BMS_TXID, BMS_RXID, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x61,
              {  0, 300, 0, 300 }, 1, ISOTP_STD }, // SOH for AZE1</span></span><span
            class="size" style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">   
              POLL_LIST_END</span></span><span class="size"
            style="font-size: 12px"><br>
          </span></div>
        <div><span
            style="font-family: courier new,monospace, sans-serif;"
            class="font"><span class="size" style="font-size: 12px">  };</span></span><br>
        </div>
        <div><br>
        </div>
        <div>It results a CAN bus error<br>
        </div>
        <pre
style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;"><span
        class="size" style="font-size: 12px">2025-03-23 13:48:10.648 AEDT E (11528) esp32can: can1 stuck bus-off error state (errflags=0x00040cab) detected - resetting bus</span><span
        class="size" style="font-size: 12px">
</span></pre>
        <div>I'm new to this but from what I can work out what I am
          doing should work.  Any suggestions?<br>
        </div>
        <div><br>
        </div>
        <div>Thanks<br>
        </div>
        <div>Wayne</div>
        <div><br>
        </div>
      </div>
      <div><br>
      </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>