<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Michael,<div><br></div><div>I tried issuing the commands manually on the can bus and can switch modes shown on the VDS.</div><div><br></div><div>N.B. There is a bug in the Android App on the marketplace - it gets the mode numbers wrong (I guess 0..3 not 0,1,3,4).</div><div><br></div><div>I'm implementing this in the iPhone App tonight, so should be able to test later.</div><div><br></div><div>Regards, Mark.</div><div><br><div><div>On 17 Feb, 2012, at 9:11 PM, Michael Stegen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    I can confirm that switching between charge modes does not work 100%.<br>
    I tried switching to range mode, and then start charging from the
    app.<br>
    <br>
    The battery indicator in the car changes, i.e. the top of the
    battery is visible.<br>
    Range does not change, also charge mode visible on the VDS does not
    change (still standard charging)<br>
    <br>
    On the (Android) app , it's shows the same. After i stopped the
    charging, i received a SMS that does not start with Range - or
    Standard - <br>
    just "Charging Stopped, ideal range ..etc"<br>
    <br>
    Tonight i'll try to send the commands manually on the CAN bus, to
    see if i see any difference in behaviour.<br>
    <br>
    <br>
    Btw, i do receive a "Hello World" push message on my android phone,
    but not on the Ipad.<br>
    I'm not using any testflight version anymore, but the one from the
    appstore.<br>
    <br>
    Btw2, when a charge is stopped, i used to receive a push message +
    SMS, this somehow does not work anymore for me. I only receive the
    SMS<br>
    <br>
    Btw3, the car powers up fine, and starts charging, even if left
    unused (but connected) for over a day.<br>
    <br>
    -Michael<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    Op 17-2-2012 8:06, Mark Webb-Johnson schreef:
    <blockquote cite="mid:BFC8FE66-E9AA-4F2C-BB6A-861E65DA1EA6@webb-johnson.net" type="cite">
      <div><br>
      </div>
      <div>
        <blockquote type="cite">
          <div>P.S. Could someone fix the display so it reads Range Mode
            instead of Standard Mode when switched from standard to
            range? (Much appreciated.)</div>
        </blockquote>
      </div>
      <div>
        <div><br>
        </div>
      </div>
      <div>Is this Android App?</div>
      <div><br>
      </div>
      <div>If so, Sonny (again): modes are 0=standard,
        1=storage,3=range,4=performance</div>
      <div><br>
      </div>
      <div>P.S. What happened to mode 2? Did there used to be a mystery
        fifth mode?</div>
      <br>
      <div>
        <div>On 17 Feb 2012, at 2:59 PM, William Petefish wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div>Mark,</div>
          <div><br>
          </div>
          Yes, fully repeatable, reproducible, and verifiable. 
          <div><br>
          </div>
          <div>When not woken up first, none of the commands work.</div>
          <div><br>
          </div>
          <div>I will restart the module and try further.</div>
          <div><br>
          </div>
          <div>It will disarm the alarm and allow it to be driven. </div>
          <div><br>
          </div>
          <div>William</div>
          <div><br>
          </div>
          <div>P.S. Could someone fix the display so it reads Range Mode
            instead of Standard Mode when switched from standard to
            range? (Much appreciated.)</div>
          <div><br>
            <div><br>
              <div class="gmail_quote">On Fri, Feb 17, 2012 at 12:51 AM,
                Mark Webb-Johnson <span dir="ltr"><<a moz-do-not-send="true" href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div style="word-wrap:break-word">William,
                    <div><br>
                    </div>
                    <div>Is it repeatable?</div>
                    <div><br>
                    </div>
                    <div>ie; plug in, stop charge. wait 5 minutes until
                      coolant pump turns off, then try start charge from
                      the app.</div>
                    <div>
                      <br>
                    </div>
                    <div>Also, are other commands working (like
                      lock/unlock)?</div>
                    <div><br>
                    </div>
                    <div>After setting the feature for write-enabled CAN
                      bus, you need to restart the module. If not, none
                      of the commands will work. If at least one of the
                      commands is working, then that is fine.</div>
                    <div><br>
                    </div>
                    <div>Regards, Mark.</div>
                    <div><br>
                    </div>
                    <div>P.S. Not wishing to hijack this thread, but
                      since you are in the USA - could you test the
                      lock/unlock commands for us on your US car?
                      Supposedly, the US cars don't have an immobiliser
                      so that the UNLOCK command will disable the alarm
                      and allow the car to be driven. Please try and let
                      us know.</div>
                    <div>
                      <div class="h5">
                        <div><br>
                        </div>
                        <div>
                          <div>
                            <div>On 17 Feb 2012, at 2:35 PM, William
                              Petefish wrote:</div>
                            <br>
                            <blockquote type="cite">
                              <div>Mark,</div>
                              <div><br>
                              </div>
                              Yes, I did and to no avail. I had
                              purposefully let the car sit until it went
                              into power save mode and tried again, no
                              joy.
                              <div>
                                <br>
                              </div>
                              <div>Might it have something to do with
                                the new FW on the roadster? (4.6.4 I
                                think is the FW that is on mine.) My
                                roadster is a 2.5.</div>
                              <div>
                                <div><br>
                                </div>
                                <div>William<br>
                                  <div><br>
                                    <div class="gmail_quote">On Fri, Feb
                                      17, 2012 at 12:29 AM, Mark
                                      Webb-Johnson <span dir="ltr"><<a moz-do-not-send="true" href="mailto:mark@webb-johnson.net" target="_blank">mark@webb-johnson.net</a>></span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote" style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div style="word-wrap:break-word">William:
                                          <div><br>
                                          </div>
                                          <div>Current (1.2.0-rc3) code
                                            is:</div>
                                          <div><br>
                                          </div>
                                          <blockquote style="margin:0 0
                                            0
                                            40px;border:none;padding:0px">
                                            <div>
                                              <div>void
                                                can_tx_setchargecurrent(unsigned
                                                char current)</div>
                                              <div>  {</div>
                                              <div>  while
                                                (TXB0CONbits.TXREQ) {}
                                                // Loop until TX is done</div>
                                              <div>  TXB0CON = 0;</div>
                                              <div>  TXB0SIDL =
                                                0b01000000; // Setup
                                                0x102</div>
                                              <div>  TXB0SIDH =
                                                0b00100000; // Setup
                                                0x102</div>
                                              <div>  TXB0D0 = 0x05;</div>
                                              <div>  TXB0D1 = 0x02;</div>
                                              <div>  TXB0D2 = 0x00;</div>
                                              <div>  TXB0D3 = 0x00;</div>
                                              <div>  TXB0D4 = current;</div>
                                              <div>  TXB0D5 = 0x00;</div>
                                              <div>
                                                  TXB0D6 = 0x00;</div>
                                              <div>  TXB0D7 = 0x00;</div>
                                              <div>  TXB0DLC =
                                                0b00001000; // data
                                                length (8)</div>
                                              <div>  TXB0CON =
                                                0b00001000; // mark for
                                                transmission</div>
                                              <div>  while
                                                (TXB0CONbits.TXREQ) {}
                                                // Loop until TX is done</div>
                                              <div><br>
                                              </div>
                                              <div>
                                                  can_tx_wakeup(); //
                                                Also, wakeup the car if
                                                necessary</div>
                                              <div>  }</div>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div>
                                              <div>void
                                                can_tx_wakeup(void)</div>
                                              <div>  {</div>
                                              <div>  while
                                                (TXB0CONbits.TXREQ) {}
                                                // Loop until TX is done</div>
                                              <div>
                                                  TXB0CON = 0;</div>
                                              <div>  TXB0SIDL =
                                                0b01000000; // Setup
                                                0x102</div>
                                              <div>  TXB0SIDH =
                                                0b00100000; // Setup
                                                0x102</div>
                                              <div>  TXB0D0 = 0x0a;</div>
                                              <div>  TXB0DLC =
                                                0b00000001; // data
                                                length (8)</div>
                                              <div>  TXB0CON =
                                                0b00001000; // mark for
                                                transmission</div>
                                              <div>  while
                                                (TXB0CONbits.TXREQ) {}
                                                // Loop until TX is done</div>
                                              <div>  }</div>
                                            </div>
                                          </blockquote>
                                          <div><br>
                                          </div>
                                          <div>That should work.
                                            Pre-rc3, I used to see this,
                                            but since rc3 it has been ok
                                            for me.</div>
                                          <div><br>
                                          </div>
                                          <div>Maybe the bus was busy
                                            and lost the wakeup message?
                                            Did you try sending any
                                            other commands, or repeating
                                            the start charge command?</div>
                                          <div><br>
                                          </div>
                                          <div>What is the version of
                                            your car (2.x or 1.5?).</div>
                                          <div><br>
                                          </div>
                                          <div>Regards, Mark.</div>
                                          <div><br>
                                          </div>
                                          <div>P.S. There is also a
                                            specific command C,18 that
                                            calls the CAN wakeup
                                            function. Not sure if the
                                            Android App supports it or
                                            not.</div>
                                          <div>
                                            <div>
                                              <div><br>
                                              </div>
                                              <div>
                                                <div>
                                                  <div>On 17 Feb 2012,
                                                    at 2:22 PM, William
                                                    Petefish wrote:</div>
                                                  <br>
                                                  <blockquote type="cite">Mark,<br>
                                                    <div><br>
                                                    </div>
                                                    <div>Feature Needed:
                                                      Wake Up command.</div>
                                                    <div><br>
                                                    </div>
                                                    <div>I tried to send
                                                      the start charge
                                                      command from my
                                                      android phone and
                                                      it wouldn't start
                                                      to charge or
                                                      change charging
                                                      mode, etc. without
                                                      being woken up by
                                                      opening/closing
                                                      the
                                                      doors/trunk/remote/etc. </div>
                                                    <div><br>
                                                    </div>
                                                    <div>I am using the
                                                      latest release
                                                      (1.20) and the
                                                      Android app.</div>
                                                    <div><br>
                                                    </div>
                                                    <div>William</div>
                                                  </blockquote>
                                                </div>
                                                <br>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                        <br>
_______________________________________________<br>
                                        OvmsDev mailing list<br>
                                        <a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br>
                                        <a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
                                        <br>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  _______________________________________________<br>
                  OvmsDev mailing list<br>
                  <a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
                  <a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
          _______________________________________________<br>
          OvmsDev mailing list<br>
          <a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
          <a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Stegen Electronics
Kwartslaan 95 
3162 RD Rhoon
The Netherlands

Tel: +31 10-5016960
<a class="moz-txt-link-abbreviated" href="http://www.stegen.com/">www.stegen.com</a></pre>
  </div>

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