<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; "><div><br></div><span class="Apple-tab-span" style="white-space:pre">     </span>Ockham's Razor: "<i>Entia non sunt multiplicanda praeter necessitatem</i>"<div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>(or paraphrased and applied to science: "when you have two competing theories that make exactly the same predictions, the simpler one is the better")<br></div><div><div><br></div><div>I've been living by that saying for most of my professional career (dating back to my work on an occam compiler back in the '80s).</div><div><br></div><div>For the past couple of weeks, I've been fighting some data corruption bugs in the ACC/LOGGING code. The symptom was that the net_state got set to something impossible, and the GPRS connection hung until the box restarted (at which point the net_state corruption would happen again). This, coupled with lousy cellular reception at my home, has been driving me crazy.</div><div><br></div><div>Last night, I found the cause. The gory details are immortalised in github commit 80e275b, and an example of why Ockham's Razor works so well. Rather than concentrating on the simple (why was net_state getting corrupted), I searched wildly for the complex (buffer overflows, stack overflows, etc). It turned out that I had mis-coded acc_state_enter() for net_state_enter() in the ACC module. Doh!</div><div><br></div><div>Anyway, we're back on track. This evening, I setup ACC in my car to do a cool down, then charge to 90%, and it seemed to work just fine - nice logging and the cooldown went well.</div><div><br></div><div>All the code is committed. I've got a few little changes to make, and then I'll build binaries for v2.5.3. I should be sending out an eMail later tonight with some documentation on how this works, and some requests for wider testing (amongst Roadster owners for the ACC, and for everyone with Logging).</div><div><br></div><div>Regards, Mark.</div><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Mark Webb-Johnson <<a href="mailto:mark@openvehicles.com">mark@openvehicles.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>[Ovmsdev] v2.5.3</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">10 September, 2013 9:25:34 AM HKT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">OVMS Developers <<a href="mailto:ovmsdev@lists.teslaclub.hk">ovmsdev@lists.teslaclub.hk</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Reply-To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">OVMS Developers <<a href="mailto:ovmsdev@lists.teslaclub.hk">ovmsdev@lists.teslaclub.hk</a>><br></span></div><br><div><br>A few days ago, I committed a bunch of code past v2.5.2, labelled v2.5.3. I've been testing this in my car, but the results are not good. I'm getting crashes, and that is causing the cooldown (when configured in ACC mode) to restart. For the moment, I suggest people don't try past 7a6ecc4 (tag: v2.5.2). I'm working on getting the bugs out, but the test cycles are taking me 24-48 hours each, so this is taking some time. I'll let you know as soon as it is stable enough for wider testing.<br><br>A bit of better news: I finally found a minor typo (CAN ID 0x100 B1=0x8F not B1=0x87) that has been driving me up the wall for the past few weeks. HVAC monitoring during cooldown now seems to be working well, and I'm getting better results for cooldown. At this rate, I may just have cooldown working properly in time to work on heatup for the winter :-(<br><br>Regards, Mark.<br><br>_______________________________________________<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></div></blockquote></div><br></div></body></html>