<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">The new CTP command gives users full access to the charge time predictor. Currently only the Roadster has the necessary charge time predictor code, but the CTP command is general so it will work for other vehicles that add the required algorithm.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><div><div><font face="Calibri,sans-serif">There are a few ways to call it:</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">- If the car is charging, just send CTP to get the current estimate (1-minute resolution) and the charge target.</font></div><div><font face="Calibri,sans-serif">- If the car isn't charging, you have to tell is the power level to use, either in watts or volts and amps, e.g. "CTP 9600W" or "CTP 240V 40A".</font></div><div><font face="Calibri,sans-serif">- You can also specify the charge mode (S, R, P), start, stop and CAC values. For example, "CTP 9600w 100s 150e 152c 25d" says "use 152 as the CAC value, then calculate the time needed to go from 100 ideal miles to 150 ideal miles charging at 9.6 kW in a 25C environment." You can also specify the end percent target as: "CTP 9600w 90%".</font></div></div><div><br></div><div>For example, send:</div><div><font face="Calibri,sans-serif"><br></font></div><div><span style="font-family: Calibri, sans-serif;">CTP R </span><span style="font-family: Calibri, sans-serif;">240v 40a</span><span style="font-family: Calibri, sans-serif;"> 100s 152c 25d</span></div><div><span style="font-family: Calibri, sans-serif;"><br></span></div><div><span style="font-family: Calibri, sans-serif;">receive:</span></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">100 to 232 ideal miles</font></div><div><font face="Calibri,sans-serif">4:53</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">Which means charging in Range mode from 100 ideal miles to full (calculated to be 232 ideal miles for a Roadster with a CAC of 152 Ah) at 240V/40A is estimated to take 4 hours and 53 minutes.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">Many factors can influence the actual charge time, so don't expect to-the-minute accuracy, more like plus or minus the larger of 30 minutes and 10%.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">Next up is teaching it to convert to and from km.</font></div><div><font face="Calibri,sans-serif"><br></font></div><div><font face="Calibri,sans-serif">I'm interested in implementing the Leaf charge time predictor once we start getting some Leaf charge data. I'm also happy to help with other vehicles.</font></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">   Tom</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>><br><span style="font-weight:bold">Reply-To: </span> OVMS Developers <<a href="mailto:ovmsdev@lists.teslaclub.hk">ovmsdev@lists.teslaclub.hk</a>><br><span style="font-weight:bold">Date: </span> Thursday, November 21, 2013 at 5:40 AM<br><span style="font-weight:bold">To: </span> OVMS Developers <<a href="mailto:ovmsdev@lists.teslaclub.hk">ovmsdev@lists.teslaclub.hk</a>><br><span style="font-weight:bold">Subject: </span> [Ovmsdev] Tom and My updates<br></div><div><br></div><div><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>Quite a few updates have just been pushed, and may have broken things, but so far seem ok to me.</div><div><br></div><div>Tom’s changes are:</div><div><br></div><div><div><ul><li>add params to vehicle_minutestocharge</li><li>add #define for charge voltage assumed by ACC</li><li>add CTP SMS command</li><li>add timestamp to STAT SMS command</li><li>generalize timestring_to_mins</li><li>TR: CTP uses CAC100 for better resolution</li><li>TR: move MinutesToChargeCAC code into vehicle_teslaroadster_minutestocharge</li><li>TR: separate taper profiles for each charge mode</li></ul></div></div><div><br></div><div>My changes are:</div><div><br></div><div><ul class="MailOutline"><li>Add new polling framework to vehicle.{h,c}</li><li>Use new polling framework to implement vehicle_obdII</li><li>Extend polling framework for extended (mode 0x22) pid requests</li><li>Extend polling framework for Nissan Leaf style multi-frame requests</li><li>Change crypt_md5 to try to reduce ram usage (particular initialised ram)</li></ul></div><div><br></div><div>I’ve also extended CAN-RE-TOOL to build a simulation framework, to help test the above and to act as a framework for future work.</div><div><br></div><div>I haven’t changed the VoltAmpera to use the new framework yet.</div><div><br></div><div>Now, the framework is stable, I can finalise the Nissan leaf polling code.</div><div><br></div><div>Regards, Mark.</div></div></div>_______________________________________________
OvmsDev mailing list
<a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</span></body></html>