<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 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 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 href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br>
<a 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 href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
<a 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 href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br></blockquote></div><br></body></html>