<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">As mentioned previously, another thing to check would be the 12v reading:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">metric list v.b.12v.voltage</div></blockquote><div class=""><div><br class=""></div><div>See if there is any difference in that between the car awake vs sleeping (probably safest to do this test with no car module loaded, so no polling at all).</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""><blockquote type="cite" class=""><div class="">On 3 Aug 2020, at 12:19 PM, Soko <<a href="mailto:ovms@soko.cc" class="">ovms@soko.cc</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div class=""><p class="">Mornin,</p><p class="">Source is here:
<a class="moz-txt-link-freetext" href="https://github.com/devmarxx/Open-Vehicle-Monitoring-System-3/tree/master/vehicle/OVMS.V3/components/vehicle_vweup/src">https://github.com/devmarxx/Open-Vehicle-Monitoring-System-3/tree/master/vehicle/OVMS.V3/components/vehicle_vweup/src</a></p><p class="">Attached are two logs. I haven't had the can-monitor active
      unfortuantely..</p><p class=""><b class="">VWUP_OFF_TICKER_THRESHOLD 5 with 4 trys.log</b><br class="">
      As the name says it polls every 5 seconds in PollState=1 and swaps
      back to PollState=0 after 5*4=20 seconds.<br class="">
      Until line 35 you see the CAN errors as the vehicle is OFF. Then I
      unlocked the car and in line 38 I get the first reply.<br class="">
      Around line 90 I locked the car again. It polls, but gets no
      reply, <u class="">but not error either</u> (?!).<br class="">
      Line 118 sets the PollState=0 and suddenly a response comes in. So
      in Line 123 I set the PollState=1 again.<br class="">
      The the game starts again: Polls get send, no reply but no error
      either. After 21 CarOffTickers I switch to PollState=0 and
      suddenly a reply comes in...</p><p class=""><b class="">VWUP_OFF_TICKER_THRESHOLD 10 with 4 trys.log<br class="">
      </b>Here I unlocked at line 57 and locked around line 100. After
      that polls get send, no reply, <u class="">but errors happen</u>. And the
      car is finally off.<br class="">
      Although I've tried the same thing later that day and the car
      didn't even go to sleep with Threshold=30!?!? So the behavior is
      not 100% reproducible (yet)...<br class="">
    </p><p class="">@gateway throttling: In VCDS (which - hopefully - does only
      polling too) I have a little number showing me the refresh rates
      of the values. It indicates ~8 refreshes per second. So with 1
      second shouldn't be any throttling.</p><p class="">@OBD "tester": I have no clue what this is ;) So if the polling
      framework doesn't do it, I don't do it. All I do is in the
      obd_eup.* files.</p><p class="">Soko<br class="">
    </p>
    <div class="moz-cite-prefix">On 02.08.2020 20:12, Michael Balzer
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:e90a5b00-7b54-e83b-99d7-0725b4f7ad53@expeedo.de" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
      Soko,<br class="">
      <br class="">
      polling may keep the car awake, that's also an issue on the Kia
      e-Niro IIRC.<br class="">
      <br class="">
      Changing the PollState can only affect the car indirectly via the
      changed polls. Maybe you could add your code & a log?<br class="">
      <br class="">
      Regarding the poll replies stopping, is that also reflected in a
      CAN log? Maybe the OBD gateway throttles if it sees too many
      requests? (Hopefully not…)<br class="">
      <br class="">
      If the gateway does throttling: do you login to the OBD as a
      "tester" and keep the session active by periodically sending the
      "tester present" frame?<br class="">
      <br class="">
      Regards,<br class="">
      Michael<br class="">
      <br class="">
      <br class="">
      <div class="moz-cite-prefix">Am 02.08.20 um 19:30 schrieb Soko:<br class="">
      </div>
      <blockquote type="cite" cite="mid:e62d94b7-82c2-370f-53cd-fa5e7a60ddaf@soko.cc" class="">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8" class=""><p class="">Heya again,</p><p class="">I'm trying to develop a detection for when the car is
          off/locked but I'm encountering a weird phenomena:</p>
        <ul class="">
          <li class="">Car is shut down and locked</li>
          <li class="">OVMS connected</li>
          <li class="">CAN poll for voltage (only one poll value active) with 30
            secs fails with error (so far nothing weird)</li>
          <li class="">Unlock the car via car-key remote</li>
          <li class="">Poll succeeds and I'm switching from PollState=0 to
            PollState=1 where I poll every 2 secs</li>
          <li class="">Lock the car via car-key remote</li>
          <li class=""><u class="">After 1 hour the polls still work and the car is active</u></li>
        </ul><p class="">Is something like this known from other vehicles? So
          basically my car never shuts down :(</p><p class="">Another secondary weird thing:<br class="">
          When increasing the time to 5 secs for PollState=1 the polls
          get no reply and after 20 secs I swap back to PollState=0.<br class="">
          BUT the second the PollState changes the car replies again...<br class="">
          Even more weirdness: When PollState=1 time is 10 secs and I
          swap back to Pollstate=0 after 40 secs the same thing happens!
          Immediately I swap to PollState=0 the car replies again.<br class="">
          As if the PollState switching somehow wakes the car up??!</p><p class="">Any ideas?</p><p class="">Soko<br class="">
        </p>
        <br class="">
        <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" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
      </blockquote>
      <br class="">
      <pre class="moz-signature" cols="72">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
      <br class="">
      <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>
  </div>

<span id="cid:9995B2A6-D321-447C-90E1-2AD48B6477BB"><VWUP_OFF_TICKER_THRESHOLD 10 with 4 trys.log></span><span id="cid:6A34713E-D4D3-4DCD-9DFD-11C2BF39E6E6"><VWUP_OFF_TICKER_THRESHOLD 5 with 4 trys.log></span>_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>