<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 05/07/2016 03:58 AM, Michael Balzer wrote:<br>
    <blockquote cite="mid:572CBF15.8080703@expeedo.de" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      I thought about using FEATURE_CB_SVALERTS for this as well -- no
      need to introduce a separate alert class IMO.<br>
      <br>
      But this really has no priority, just one user wondered why he got
      an SOC alert he did not configure... I think he'll be fine to
      accept it as a hard coded feature as well.<br>
    </blockquote>
    <br>
    The leaf vehicle generates an SMS on startup if the OVMS starts up
    while the car is switched off (because there is no SOC information
    on the can bus when the car is off). With my telco, SMS's are cheap
    but dramatically more expensive per byte than packet data, so I
    added <br>
    <br>
      // initialize SOC and SOC alert limit to avoid SMS on startup<br>
      car_SOC = car_SOCalertlimit = 2;<br>
    <br>
    to vehicle_nissanleaf_initialise(). This makes the alert on start up
    go away but preserves the original functionality.<br>
    <br>
    I guessed 2% was a suitable threshold. For the leaf, a fixed number
    of gids rather than a % SOC is probably a better way to do it --
    then the alarm goes off when the battery has a certain amount of
    energy in it.<br>
    <br>
    I'm working up a pull request for this change and more.<br>
  </body>
</html>