<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yep, please steer clear of the car_chargermode variable. That is really badly named and is more an operation mode (like Eco/Normal on a Prius, for example). I think it is named as it is because the source on the roadster is the charger message.<div class=""><br class=""></div><div class="">I suggest:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">unsigned char car_chargeplug;</div></blockquote><div class=""><br class=""></div><div class="">and setup an enumeration as desired. Create it in ovms.{h,c} and then add it on the end of the ’S’ message.<br class=""><div class=""><br class=""></div><div class="">If someone wants to commit that and send in a pull request, I’ll accept (and update the protocol guide myself).</div><div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 9 Dec 2015, at 3:10 AM, Robert Cotran <<a href="mailto:robert@cotran.ca" class="">robert@cotran.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    I like the idea of having charge type for logging purposes. <br class="">
    <br class="">
    I agree it shouldn't be combined with the Roadster charging types.<br class="">
    <br class="">
    Can just create a new "field" called connector type?<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 12/8/2015 2:07 PM, Nikki
      Gordon-Bloomfield wrote:<br class="">
    </div>
    <blockquote cite="mid:CAOWoTn8SV4Jr91jYjEAybwXGyog+ehqT_wAfkQgYtosJxxh6_g@mail.gmail.com" type="cite" class="">
      <div dir="ltr" class="">Charge type would become important if you were
        automatically sending charge session data back (anonymously) to
        the OCM database… </div>
      <div hspace="streak-pt-mark" style="max-height:1px" class=""><img moz-do-not-send="true" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=abmlra2kuYmxvb21maWVsZEBnbWFpbC5jb20%3D&type=zerocontent&guid=7a00ec6d-f8c3-43b1-8711-65a242229863" class=""><font size="1" color="#ffffff" class="">ᐧ</font></div>
      <div class="gmail_extra"><br clear="all" class="">
        <div class="">
          <div class="gmail_signature">
            <div dir="ltr" class="">
              <table style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51);line-height:18.2000007629395px" border="0" cellpadding="0" cellspacing="0" class="">
                <tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                  <tr style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                    <td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:30px" class=""> </td>
                  </tr>
                  <tr style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                    <td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;width:auto" class="">
                      <div style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;line-height:0" class=""><a moz-do-not-send="true" href="https://about.me/aminorjourney?promo=email_sig" style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(43,130,173);text-decoration:none;display:inline-block" target="_blank" class="">
                          <table style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;border-spacing:0px" border="0" cellpadding="0" cellspacing="0" class="">
                            <tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                              <tr style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                                <td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:top;width:107px;line-height:1" align="left" valign="top" class=""><img moz-do-not-send="true" alt="--" style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden" height="0" width="0" class="">
                                  <div style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class=""><img moz-do-not-send="true" src="https://d3mod6n032mdiz.cloudfront.net/thumb2/a/m/i/aminorjourney/aminorjourney-105x70.jpg" alt="" style="margin:0px;padding:0px;border:1px
                                      solid
rgb(238,238,238);outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block" height="70" width="105" class=""></div>
                                </td>
                                <td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:10px" class=""> </td>
                                <td style="padding:0px 0px
3px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:bottom;width:auto;line-height:1" align="left" valign="bottom" class="">
                                  <div style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51)" class="">Nikki
                                    Gordon-Bloomfield</div>
                                  <div style="margin:1px 0px
0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-size:12px;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline" class=""><img moz-do-not-send="true" alt="https://" style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;display:block;width:0px;height:0px;overflow:hidden" height="0" width="0" class="">about.me/aminorjourney</div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </a>  </div>
                    </td>
                  </tr>
                  <tr style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline" class="">
                    <td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:20px" class=""><img moz-do-not-send="true" src="https://about.me/t/sig?u=aminorjourney" style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;overflow:hidden" height="1" width="1" class=""></td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        <br class="">
        <div class="gmail_quote">On Tue, Dec 8, 2015 at 10:46 AM, Tom
          Saxton <span dir="ltr" class=""><<a moz-do-not-send="true" href="mailto:tom@idleloop.com" target="_blank" class="">tom@idleloop.com</a>></span>
          wrote:<br class="">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">The
            chargemode currently encodes software charging profiles,
            based on what the Roadster offers. It's similar to what the
            early Leafs offered, charging to full or charge to 80%, but
            more complex setting both a charging limit and target
            battery temperature ranges.<br class="">
            <br class="">
            What you are proposing adding is to encode the charging
            connection type, which is a different kind of thing,
            orthogonal to the car's chosen charging profile.<br class="">
            <br class="">
            A Roadster can charge in any of the four profiles from
            either a Level 1 connection (120V, 12A to 16A) or Level 2
            (208V to 240V at up to 70A), for example Standard mode on
            Level 1 or Range mode on Level 2. So, you can't encode both
            a charging profile and a connection type with a single
            number. A Leaf is similar in how those two interact.<br class="">
            <br class="">
            To me, the interesting thing is more the charge rate (V/A or
            kW) more than which connector my car uses. I don't need OVMS
            to tell me how I plugged in, but I do care about knowing how
            fast it's charging.<br class="">
            <span class="HOEnZb"><font color="#888888" class=""><br class="">
                   Tom<br class="">
              </font></span>
            <div class="HOEnZb">
              <div class="h5"><br class="">
                <br class="">
                <br class="">
                <br class="">
                On 12/8/15, 10:19 AM, "Geir Øyvind Vælidalo" <<a moz-do-not-send="true" href="mailto:ovmsdev-bounces@lists.teslaclub.hk" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:ovmsdev-bounces@lists.teslaclub.hk">ovmsdev-bounces@lists.teslaclub.hk</a>
                on behalf of <a moz-do-not-send="true" href="mailto:geir@validalo.net" class="">geir@validalo.net</a>>
                wrote:<br class="">
                <br class="">
                >Hi guys,<br class="">
                ><br class="">
                >I would like to have ChaDeMo and CSS added to
                car_chargemode,  and maybe Type 1 and Type 2 too. Then
                we can display those names in the apps and maybe even
                add images for those charge plugs.<br class="">
                >I would propose this:<br class="">
                >0x00 - Standard<br class="">
                >0x01 - Storage<br class="">
                >0x02 - ???<br class="">
                >0x03 - Range<br class="">
                >0x04 - Performance<br class="">
                >0x05 - ChaDeMo<br class="">
                >0x06 - CSS<br class="">
                >0x07 - J1772  Type 1<br class="">
                >0x08 - Mennekes Type 2<br class="">
                ><br class="">
                >What to you guys think? Would it be problematic for
                the server and/or apps if suddenly the Kia Souls stated
                sending chargemode 0x05?<br class="">
                ><br class="">
                >Best regards,<br class="">
                >Geir<br class="">
                ><br class="">
                >_______________________________________________<br class="">
                >OvmsDev mailing list<br class="">
                ><a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">
                ><a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" rel="noreferrer" target="_blank" class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br class="">
                ><br class="">
                <br class="">
                _______________________________________________<br class="">
                OvmsDev mailing list<br class="">
                <a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">
                <a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" rel="noreferrer" target="_blank" class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></div></body></html>