<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi mark,<div><br></div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This should definitely be done in the module.</div></blockquote></div><div>yes, of course, best it is done in the module.</div><div><br></div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">One suggestion: can we store the smallest seen raw SOC value > 0, and the largest seen raw SOC value, and default these to 13524 (64400*0.21) and 56028 (64400*0.87) at start up.</div></blockquote><div>Yes and No!</div><div>The lowest usable SOC IS (!) 21%. When the RE comes in, it COULD be that the SOC falls to 17-18%. But the RE charge the Batterie to SOC 21%. This means that you normaly dont have this SOC for a long time.</div><div>And the highest usable SOC IS 87%. Above this is never shown anywhere. It is of course usable.</div><div>I think we cut the SOC at 21 and 87%.</div><div><br></div><div>Like this:</div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote class="webkit-indent-blockquote" style="margin: 0px 0px 0px 40px; border: none; padding: 0px; "><div><font class="Apple-style-span" face="'Andale Mono'">v = (can_databuffer[1]+(unsigned int) can_databuffer[0] << 8);</font></div><div><font class="Apple-style-span" face="'Andale Mono'">if ((v<soc_smallest)&&(v>0)) v=soc_smallest;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">if (v>soc_largest) v=soc_largest;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">car_SOC = (char)((v-soc_smallest)/((soc_largest-soc_smallest)/100));</font></div></blockquote></div></blockquote><br></div><div>Here is a Pic with a SOC 17% shown as -4 in my mod iPhone App:</div><div><br></div><div></div></div></body></html>