<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 27 Sep 2022, at 08:55, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div class="">
    Michael,<br class="">
    <br class="">
    it's generally a bad idea to have polls running just based on the
    client connection status. Clients may be connected all the time,
    e.g. if users attach some API pollers or set the App to persistent
    background operation (which is necessary for widgets or tasker
    scripting for example).<br class="">
    <br class="">
    You should only enable polling when actually necessary to perform
    some user requested action, or to monitor a drive / charge session
    of course.<br class="">
    <br class="">
    We've got an explicit "wakeup" command users can call to tell the
    module to wake up the car. That needs to implement some timeout to
    put the car back to sleep if it doesn't do so by itself.<br class=""></div></div></blockquote><div><br class=""></div><div><br class=""></div><div><br class=""></div>Sounds like a better idea IMHO.  </div><div><br class=""></div><div>Tracking issue is <a href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/275" class="">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/issues/275</a></div><div><br class=""></div><div>I’ve got a Kona and did contribute a little a while back … but I’ve yet to get back using OVMS due to the power issues, although I have replace the 12v battery with a better one.</div><div><br class=""></div><div>It might be time for a re-write for the kona/ionic/niro support.</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class="">
    <br class="">
    Regards,<br class="">
    Michael<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 27.09.22 um 09:41 schrieb Michael
      Geddes:<br class="">
    </div>
    <blockquote type="cite" cite="mid:CAH0p7uJLv6uAeafDstRGn03TkE-kphYGs1LrYVNjRN3wH-KSbQ@mail.gmail.com" class="">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8" class="">
      <div dir="ltr" class="">
        <div class="">Thanks Michael,</div>
        <div class=""><br class="">
        </div>
        <div class="">I rang the Hyundai service centre, and apparently, my BMS
          should not need any updates (build date 2021 vs 2020 cars with
          the problem apparently), but I'm putting it in for a checkup
          of the battery.  Apparently, the BMS update was the subject of
          a recall for those cars affected. I'm going to take it in
          anyway in case.  </div>
        <div class=""><br class="">
        </div>
        <div class="">It seems, according to the OVMS, that the 12V is going from
          13v down to 12v over about 3hours before (generally) being
          recharged.  Looking at that link you shared with me (and
          related <a href="https://www.youtube.com/watch?v=lr3Z_z1C0Uk&t=965s" moz-do-not-send="true" class="">https://www.youtube.com/watch?v=lr3Z_z1C0Uk&t=965s</a>),
          it should be more like 24 hours.   It still should be
          triggering a charge cycle - and obviously in this case it
          seems to miss one and then it just goes downhill from there -
          so maybe the BMS still has a bug; not helped by being forced
          to trigger about 4x more frequently than normal!</div>
        <div class=""><br class="">
        </div>
        <div class="">Assuming nothing is wrong with the car (which unless I
          install some kind of external battery monitor like that
          youtube clip), I can only assume that the 3hr drain is because
          my Ioniq 5 module is polling too much (which, seeing I copied
          the vehicle_kianiroev/src/ as my base, would mean THAT polls
          too much as well).  I still have the  PollSetPidList() called
          with the same data (albeit a copy) as the Kia.  </div>
        <div class=""><br class="">
        </div>
        <div class="">So in drafting this email I think I've hit on the problem,
          which is when the car is off, but a V2 or V3 client is
          connected (like the android app in 'background' mode), then it
          uses the 'Charging' pollstate element.  </div>
        <div class=""><br class="">
        </div>
        <div class="">It has {OFF, Charging, ON} at the moment, which means
          there's space for a 4th which I will assign to 'off,
          not-charging and clients connected'.  I'll see what I can do
          to drop that right down in polling frequency and the number of
          modules being addressed.</div>
        <div class=""><br class="">
        </div>
        <div class="">At some point soon it might be worth me pushing up to a
          fork in case anybody else wants to jump in!  For example, the
          Lock module that the kia has is not present in the Australian
          version, but I suspect US ones with key-card ability might
          have it.</div>
        <div class=""><br class="">
        </div>
        <div class="">//.ichael</div>
        <br class="">
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Fri, 23 Sept 2022 at
            17:03, Michael Balzer <<a href="mailto:dexter@expeedo.de" moz-do-not-send="true" class="moz-txt-link-freetext">dexter@expeedo.de</a>>
            wrote:<br class="">
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">Michael,<br class="">
            <br class="">
            while the OVMS draws some power, unless you actually keep
            the car alive <br class="">
            by polling, that's normally no issue. The 12V battery will
            be recharged <br class="">
            automatically from the main battery by the car.<br class="">
            <br class="">
            The Ioniq 5 though has a history of issues with the 12V
            battery. <br class="">
            According to Andrew Till, a BMS update has fixed his issues:<br class="">
            <a href="https://www.youtube.com/watch?v=YmfkvL_O1IA" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.youtube.com/watch?v=YmfkvL_O1IA</a><br class="">
            <br class="">
            Also see his previous posts on that topic.<br class="">
            <br class="">
            Regards,<br class="">
            Michael<br class="">
            <br class="">
            <br class="">
            Am 23.09.22 um 09:55 schrieb Michael Geddes:<br class="">
            > Hi All,<br class="">
            ><br class="">
            > I have just had a bit of a painful experience with my
            12V being <br class="">
            > drained (twice).  I'm guessing it's related to OVMS,
            but also <br class="">
            > something seems to have happened as it was running file
            for a week!<br class="">
            ><br class="">
            > For some reason, the 12V battery graphs aren't working
            in the <br class="">
            > (android) App.. which means I'm not quite sure of the
            timelines, <br class="">
            > however it was most likely overnight.  This morning my
            12V was <br class="">
            > severely depleted (like 6v!). (Oh, it could be because
            I don't have <br class="">
            > the app running in the background).<br class="">
            ><br class="">
            > I'm assuming it's likely not to be the direct drain of
            the device <br class="">
            > itself, but maybe something it is querying on the CAN
            busses or <br class="">
            > something that is then causing a consequential power
            drain?<br class="">
            ><br class="">
            > I got road-side assist out and they got me going, but
            then 20mins <br class="">
            > later it was flat again! (I did see an alert in the APP
            and so was <br class="">
            > quick to go out, but was unsuccessful in getting the
            car going before <br class="">
            > it died!).<br class="">
            ><br class="">
            > I'm going to unplug it and see if that stops the card
            from dying.  <br class="">
            > Also, I might leave the car on for a bit longer.. but
            still I have <br class="">
            > concerns!<br class="">
            ><br class="">
            > Also I haven't started using 'write' commands yet. Any
            ideas?<br class="">
            ><br class="">
            > //.ichael<br class="">
            ><br class="">
            <br class="">
            -- <br class="">
            Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br class="">
            Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br class="">
            <br class="">
            _______________________________________________<br class="">
            OvmsDev mailing list<br class="">
            <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 class="">
            <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 class="">
          </blockquote>
        </div>
      </div>
      <br class="">
      <fieldset class="moz-mime-attachment-header"></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 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>
  </div>

_______________________________________________<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=""></body></html>